Extract the pom.xml from the jar file into the same directory the jar is located in.
ie /home/maven/file/file-0.1.jar /home/maven/file/pom.xml Then run mvn install:install-file -DpomFile=./pom.xml -Dfile=./file-0.1.jar Something along these lines should do it. But admittedly I've never attempted this, specifically. So if it errors out, reply back and we'll help some more... Wayne On 4/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello - I have a jar file that was generated from a Maven 2.0 build. > The pom.xml file is included inside the jar file. Is there a maven > command to install the jar file into the local repository without > having to specify artifactId, groupId, etc? This info is inside the jar > in the pom.xml file already. I tried to unzip the jar and then do a > "mvn install:install -DpomFile=<path to pom.xml>" and I got this error: > > [INFO] Cannot execute mojo: install. It requires a project with an > existing pom.xml, but the build is not using one. > > Whats the best way to get this thing installed into the local > repository??? > > Thanks, > > Scott. > > > ___________________________________________________ > Try the New Netscape Mail Today! > Virtually Spam-Free | More Storage | Import Your Contact List > http://mail.netscape.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
