IDEA Maven打包Scala可执行jar

IDEA+Maven打包Scala可执行jar

pom.xml插件配置


    src/main/scala
    src/test/scala
    
      
        org.scala-tools
        maven-scala-plugin
        2.15.2
        
          
            
              compile
              testCompile
            
          
        
      
      
        org.apache.maven.plugins
        maven-assembly-plugin
        2.5.5
        
          
            
              org.example.App
            
          
          
            jar-with-dependencies
          
        
        
          
            make-assembly
            package
            
              single
            
          
        
      
    
  

mvn package即可。

你可能感兴趣的:(scala)