You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Connolly (JIRA)" <ji...@codehaus.org> on 2011/05/23 12:57:22 UTC

[jira] Closed: (MDEPLOY-117) Use GAV from specified pomFIle but not deploy the pom

     [ http://jira.codehaus.org/browse/MDEPLOY-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Connolly closed MDEPLOY-117.
------------------------------------

    Resolution: Duplicate

MDEPLOY-48 is essentially a duplicate of a large chunk of this issue and the previously linked issue covers the remainder

> Use GAV from specified pomFIle but not deploy the pom
> -----------------------------------------------------
>
>                 Key: MDEPLOY-117
>                 URL: http://jira.codehaus.org/browse/MDEPLOY-117
>             Project: Maven 2.x Deploy Plugin
>          Issue Type: New Feature
>          Components: deploy:deploy-file
>    Affects Versions: 2.4
>         Environment: Windows XP
> Sun Java JDK 1.6.0_18
> Maven 3.0-alpha6
>            Reporter: Anders Hammar
>
> For or MRM (Nexus) we have redeployment turned off. When deploying a lot of 3rd party artifacts to it, we do that by a script using the deploy-file goal. This works just fine for the jar artifact, but when the artifact is just a pom or when also trying to deploying a sources artifact, we want to use GAV from a specified pom. However, deploy-file will then also try to deploy the pom which makes the plugin fail as redeployment is turned off.
> I'll explain through a simple example:
> We have a pom artifact that we want to deploy. We do that like this:
> mvn deploy:deploy-file -Dfile=abc.pom -DpomFile=abc.pom -DrepositoryId=... -Durl=...
> We want to use GAV from the POM and not specify that through params. Otherwise we need to parse the pom for that info, which is difficult in Windows.
> What happens is that the pom artifact deploys fine, but then plugin also tries to deploy the pom which then fails as reployment is turned off in the repo. This makes it very hard to see if the script executes ok or not.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira