[fedora-java] Q: How to locally maven-install a fedora maven-based package?

Alec Leamas leamas.alec at gmail.com
Wed Apr 8 07:22:50 UTC 2015


I'm probably dumb (again...) but: my current understanding is that when 
installing a typical fedora java package it installs 
/usr/share/maven-metadata/app.xml and other things including a jar file 
typically like /usr/share/java/app/app.jar.

Now, if I need to make some local development I need to install this 
app.jar file into my local maven repository using something like

mvn install:install-file -DgroupId=... -DartifactId=... -Dfile=...

All this metadata (groupId, artifactId, etc.) is available in the 
/usr/share/maven-metadata/app.xml file. So, my question: is there any 
tool which parses app.xml and installs the jar file to the local maven 
repository?

Or have I just got it wrong, and there is another much more elegant way 
to make system jar files available to the local maven?


cheers!

--alec


More information about the java-devel mailing list