Typically all compiled classes go to the target directory. I have a project that wants the compiled classes in a different path. How can I tell Maven to put the compiled classes in a different directory?
Asked
Active
Viewed 96 times
0
-
Note that changing the standard values should be avoided if possible. It will confuse people. – J Fabian Meier Jan 26 '21 at 19:08
-
Why does a project needs to be compiled somewhere else? For what purpose? – khmarbaise Jan 26 '21 at 19:48
-
I have no idea why you would want to have a different directory. This is a 3rd parties source code.
– Dale Jan 28 '21 at 13:49
1 Answers
1
Set this in pom.xml
<build>
<directory>/path/to/directory</directory>
</build>

Martin Pechacek
- 120
- 5