Issue with deploy:deploy-file

2012-02-06 Thread Igor Bljahhin
Hello,

I would like to set up non-trivial configuration of deploy plugin. Sometimes
it is necessary to deploy the snapshot of the artifact into public
repository and it is not needed to deploy snapshots into private repository
at all.

I disabled deploy plugin using skip parameter and I created profile for
snapshots deploys:

?xml version=1.0 encoding=UTF-8?
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId
version2.7/version
configuration
  skiptrue/skip
/configuration
  /plugin
  ...
/plugins
  /build
  profiles
profile
  idpublish-snapshot/id
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId
version2.7/version
executions
  execution
iddeploy-snapshot/id
phasedeploy/phase
goals
  goaldeploy-file/goal
/goals
configuration
 
urlhttp://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots//url
  repositoryIdzt-public-snapshots/repositoryId
 
file${project.build.directory}/${zt-license-server.finalName}.zip/file
  version${project.version}/version
  groupId${project.groupId}/groupId
  artifactId${project.artifactId}/artifactId
  generatePomfalse/generatePom
  packagingzip/packaging
/configuration
  /execution
/executions
  /plugin
/plugins
  /build
/profile
  /profiles

To upload the artifact I use the following command:

mvn clean deploy -Ppublish-snapshot

For some reason the artifact is uploaded twice:

[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @
jr-license-server-runner ---
[INFO] Skipping artifact deployment
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (deploy-snapshot) @
jr-license-server-runner ---
Downloading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml
Uploading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip
Uploaded:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip
(32025 KB at 507.4 KB/sec)
Downloading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml
Uploading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml
Uploaded:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml
(637 B at 1.1 KB/sec)
Uploading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml
Uploaded:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml
(320 B at 0.4 KB/sec)
Uploading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip
Uploaded:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip
(32025 KB at 922.0 KB/sec)
Uploading:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml
Uploaded:
http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml
(637 B at 1.3 KB/sec)
[INFO]

[INFO] BUILD SUCCESS
[INFO]



Why it happens?



--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5459611.html
Sent from the Maven - Users mailing list archive at Nabble.com.


Re: Issue with deploy:deploy-file

2012-02-06 Thread Wayne Fay
 I disabled deploy plugin using skip parameter and I created profile for
 snapshots deploys:
 ...
 For some reason the artifact is uploaded twice:

Check mvn help:effective-pom to be sure that Maven's generated model
matches what you are expecting after evaluation of your profiles.

Wayne

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



Re: Issue with deploy:deploy-file

2012-02-06 Thread Igor Bljahhin
Thank you for the tip!

Effective pom has two definitions of maven-deploy-plugin: one is
profile and one is plugins section.

Second definition has two execution. First execution is generated by
Maven. It runs the goal deploy and has configuration/skip = true
(I set this parameter it in my profile). Second execution came from
profile.

Could it be an issue in deploy plugin?

Igor

On 6 February 2012 18:16, Wayne Fay [via Maven]
ml-node+s40175n5460471...@n5.nabble.com wrote:
 I disabled deploy plugin using skip parameter and I created profile
 for
 snapshots deploys:
 ...
 For some reason the artifact is uploaded twice:

 Check mvn help:effective-pom to be sure that Maven's generated model
 matches what you are expecting after evaluation of your profiles.

 Wayne

 -
 To unsubscribe, e-mail: [hidden email]
 For additional commands, e-mail: [hidden email]



 
 If you reply to this email, your message will be added to the discussion
 below:
 http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5460471.html
 To unsubscribe from Issue with deploy:deploy-file, click here.
 NAML


--
View this message in context: 
http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5460910.html
Sent from the Maven - Users mailing list archive at Nabble.com.