Maven: specify the outputDirectory only for packaging a jar?

前端 未结 4 1846
不知归路
不知归路 2020-11-29 23:28

How can I specify the outputDirectory only for packaging a jar?

http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html this shows all parameters, but how can

4条回答
  •  日久生厌
    2020-11-30 00:10

    on command line

    -DoutputDirectory=
    

    and in pom.xml

    
      
        
          org.apache.maven.plugins
          maven-jar-plugin
          2.3.1
          
            /my/path
          
        
      
    
    

提交回复
热议问题