I have a Maven project with <packaging>jar</packaging>and <version>0.0.11-SNAPSHOT</version>. When I run mvn clean install, it deploys the following in my local repository
~ / .m2 / storage / com / example / MyProject / 0.0.11-SNAPCHOT / stock-0.0.11-SNAPSHOT.jar
I expected the name of the generated artifact to replace -SNAPSHOTwith the timestamp when the JAR was created, something like:
~ / .m2 / storage / com / example / MyProject / 0.0.11-SNAPCHOT / stock-0.0.11-20110217011633.jar
Why does this replacement not occur?
source
share