• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Maven - descriptor file alongside a jar

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When installing jar to the repository - Is it possible to tell maven to add artifact descriptor file (something specific for my needs) alongside the jar file?
So in the repository I will have:

repoServer/com/company/artifact1.jar
repoServer/com/company/pom.xml
repoServer/com/company/artifact1.xml

Thank you!
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you are looking for is a "classifer". Both source JAR files and site zip files are often loaded into repositories as classifiers. What you need is to either find or write a plugin that will let you identify the descriptor as a classifier, and that will attach that classifier to the build. Looks like the Build Helper plugin might just do this for you (see the Usage page for an example):
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic