mvn deploy:deployFile -Dfile=... -DpomFile=... -Durl=... should deploy both the jar and the pom. If it is not doing so can you raise a JIRA.
Note that you might have to force the version of the deploy plugin as it could be an issue with an older version, mvn org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy-file ... rather than just plain deploy:deploy-file On 13 July 2011 13:14, <olaf.klisc...@sofd.de> wrote: >> On 07/12/2011 04:02 AM, Wendy Smoak wrote: >>> On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischat<olaf.klisc...@sofd.de> >>> wrote: >>>> mvn deploy:deploy-file -Dfile=mylib.jar DpomFile=mypom.pom >>>> -DgeneratePom=false -Durl=<repourl> >>>> >>>> , it apparently just uploads the jar under the name<groupid-artifactid >>>> from >>>> mypom.pom>-<timestamp>.pom. >>> >>> You mentioned a timestamp, so... you're deploying a snapshot? >> >> Oh, yeah I do. Sorry, I forgot to mention that. Somewhat answering my >> own question, it looks like I can just issue two such mvn invocations to >> upload first the pom, then the jar, like so: >> >> mvn deploy:deploy-file -Dfile=mypom.pom -DpomFile=mypom.pom >> -DgeneratePom=false -Durl=<repourl> >> >> mvn deploy:deploy-file -Dfile=mylib.jar -DgroupId=<groupId from >> mypom.pom> -DartifactId=<artifactId from mypom.pom> -Dversion=SNAPSHOT >> -DgeneratePom=false -Dpackaging=jar -Durl=<repourl> > > Hm, no, the differing timestamps resulting from the two seperate uploads > are a problem. A build that references this library in its dependencies > fails -- the POM isn't found: > > [WARNING] The POM for <groupId>:<artifactId>:jar:<timestamp of the jar> is > missing, no dependency information available. > > So my original issue remains: How do I upload these two things (snapshot > jar + pom) correctly? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org