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>

..and the varying timestamps are correctly written to the maven-metadata.xml. The redundancy in the explicit groupId etc. parameters in the 2nd call is unfortunate but tolerable. Maybe there's a better way still.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to