How to change the default value of $ {project.build.outputDirectory} in Maven?

I would like to know how to change the default value of $ {project.build.outputDirectory} from target / classes to codebase in maven.

thanks

+6
source share
1 answer

inside pom.xml inside the assembly:

<build> <directory>${project.basedir}/target</directory> <outputDirectory>${project.build.directory}/classes</outputDirectory> </build> 

see http://maven.apache.org/pom.html for even more pom enjoyment

+14
source

Source: https://habr.com/ru/post/949555/


All Articles