IntelliJ uses timestamped snapshots instead of -SNAPSHOT to create an artifact

I have a project with snapshot dependencies. To simplify, suppose there is a project A, which depends on the B-0.1-SNAPSHOT library.

A depends on B

B is in the Nexus repository as a snapshot. I see that it is stored with a timestamp, so the actual name in Nexus is something like: B-0.1-20141126.171716-67.jar

After execution:

mvn clean install -U

in project A, dependency B is downloaded from Nexus to my local repository. There I can find two banks of library B:

B-0.1-SNAPSHOT.jar
B-0.1-20141126.171716-67.jar

So far so good.

After completing the maven build, I see that B-0.1-SNAPSHOT.jar was taken to create the A artifact (.war file)

A, IntelliJ maven. Tomcat. IntelliJ B-0.1-20141126.171716-67.jar .war .

.war B-0.1-SNAPSHOT.jar B-0.1-20141126.171716-67.jar WEB-INF/lib.

IntelliJ, B-0.1-SNAPSHOT.jar maven... . IntelliJ proproply?

Maven - 3.2.3, IntelliJ 14.0.1 ( 13).

+4
1

, , .

F4 artifacts, webapp:exploded ​​show contents .

WEB-INF/lib dependecy B-0.1-SNAPSHOT.jar , compile output, , , B-0.1-SNAPSHOT.jar , , .

, , A IntelliJ, mvn install B , IntelliJ , , maven.

+1

All Articles