Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is there a way to specify a different output directory without having to edit the pom or configuration file each time I do a build?

0
Posted

Is there a way to specify a different output directory without having to edit the pom or configuration file each time I do a build?

0

Yes. You can make use of the pom’s element to accomplish this. To do so, simply add the following fragment to your pom: ${directory} ${directory}/classes ${directory}/test-classes target Now, to specify a different output directory at runtime simply use the directory property as a mvn command line parameter; mvn -Ddirectory=tmp package This will send the build’s output files to the ${basedir}/tmp directory.

0

Yes. You can make use of the pom’s element to accomplish this.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.