> On 07/12/2011 04:02 AM, Wendy Smoak wrote:
>> On Mon, Jul 11, 2011 at 8:15 PM, Olaf Klischat<[email protected]>
>> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to