Reputation: 47
As example, i have program with version 0.0.1. Maven must create separate folder for it - "target/0.0.1/" instead of "target/". It must be done for version "0.0.2", "0.0.3", etc.
I use Eclipse & it's Maven: Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
JDK 1.8.0_172
Upvotes: 1
Views: 333
Reputation: 298818
Maven doesn't work that way, and trying to do something like that will lead to a path of suffering. Options I see include
As you can see, both of these approaches are pretty hacky and require advanced Maven skills. It would be much easier to have parameterized builds where you pass in the output version. But that would make sense on a CI server like Jenkins.
Upvotes: 4