java - Maven artifact jar different name than version -


I got a small question about Maven. I got a project I pom.xml

There are basically these treasures:

  & lt; Repositories & gt; & Lt; Stores & gt; & Lt; ID & gt; Alfresco Mirror & lt; / Id & gt; & Lt; Name & gt; Alfresco Public Mirror & lt; / Name & gt; & Lt; URL & gt; Http: //maven.alfresco.com/nexus/content/groups/public< / URL & gt; & Lt; / Stores & gt; & Lt; Stores & gt; & Lt; ID & gt; Alfresco-Snapshot & lt; / Id & gt; & Lt; Name & gt; Alfresco Public Snapshots & lt; / Name & gt; & Lt; URL & gt; Http: //maven.alfresco.com/nexus/content/groups/public-snapshots< / URL & gt; & Lt; Snapshot & gt; & Lt; UpdatePolicy & gt; Always & lt; / UpdatePolicy & gt; & Lt; / Snapshot & gt; & Lt; / Stores & gt; & Lt; Stores & gt; & Lt; ID & gt; Alfresco & lt; / Id & gt; & Lt; Name & gt; Alfresco Public & lt; / Name & gt; & Lt; URL & gt; Http: //pipin.bluexml.com/nexus/content/repositories/thirdparty/< / URL & gt; & Lt; Snapshot & gt; & Lt; UpdatePolicy & gt; Always & lt; / UpdatePolicy & gt; & Lt; / Snapshot & gt; & Lt; / Stores & gt; & Lt; / Treasures & gt;   

And this dependency:

   & Lt; Version & gt; 3.4.d & lt; / Edition & gt; & Lt; Type & gt; Jar & lt; / Type & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt;   

I think the main problem is that the jar file and version get different names.

PS: To save time,

Try adding a classifier node to see if it works:

  & lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.alfresco & lt; / Group & gt; & Lt; ArtifactId & gt; Alfresco-web-service-customer & lt; / ArtifactId> & Lt; Version & gt; 3.4.d & lt; / Edition & gt; & Lt; Classifier & gt; Community & lt; / Classifier & gt; & Lt; Type & gt; Jar & lt; / Type & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt;   

You can see the logic behind it: Long story short, Classfoferifs are associated with the exact same name after the version number only. They are not always used all the time, but you can periodically see them.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -