2

I have a little problem that´s occurs in my computer, when I make deploy to artifactory, the name of the library changes as follows:

servico-disponibilizacao-2.0.0.0-20120117.194415-1.ear

In my project on Eclipse, I can see normally how this is:

servico-disponibilizacao-2.0.0.0-SNAPSHOT.ear

I really don´t know how to fix this, anyone have some ideia?

Thank´s so much for any help!

Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185
ricardo
  • 621
  • 1
  • 11
  • 22

1 Answers1

3

When publishing to a snapshot repository Maven will substitute the "SNAPSHOT" part of the revision with a timestamp, to create a unique version for that build.

See the Maven documentation on the distributionManagement section of your POM.

Additionally checkout this answer:

Maven Snapshot Repository vs Release Repository

Update

The Nexus book has a section describing the differences in artifact handling between snapshot and release repositories. I should think this information also applies to Artifactory, considering Nexus is the reference Maven repository manager.

Community
  • 1
  • 1
Mark O'Connor
  • 76,015
  • 10
  • 139
  • 185
  • 1
    This is also true for Artifactory; on top of that, this behavior can be controlled: http://wiki.jfrog.org/confluence/display/RTF/Local+Repositories – noamt Jan 19 '12 at 07:36