Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Won't Fix
-
2.7
-
None
-
None
-
Windows 7, Maven 2.2.1
Description
We use an own lifecycle here which creates a zip file instead of a jar file.
So we use
org.apache.maven.plugins:maven-install-plugin:install,org.apache.maven.plugins:maven-install-plugin:install-file
which installs the zip file correctly.
Additionally I now wanted to also allow deploying of this zip file to nexus by:
org.apache.maven.plugins:maven-deploy-plugin:deploy,org.apache.maven.plugins:maven-deploy-plugin:deploy-file
in the pom I have then:
<properties> <file>${project.build.directory}/${project.artifactId}-${project.version}.zip</file> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>install-service-zip</id> <goals> <goal>install-file</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>deploy-service-zip</id> <goals> <goal>deploy-file</goal> </goals> </execution> </executions> </plugin> </plugins> </pluginManagement>
as well as settings for the repositories within the maven settings.xml.
As said the install process works perfectly, but I have trouble with the deploy-file.
When working without the deploy-file (only with the deploy) everything also works correct for the deployment.
After adding the deploy-file as shown above I come into trouble, because beside the <file> property the deploy-plugin requests for the required <url> parameter.
I wonder about this, because I assumed that the <url> parameter will come from the choosen repository (release vs snapshot) settings?
When I set the <url> as property beside the <file> property, then I can deploy a snapshot.
But to deploying snapshot/release this will not work.
In deploy the url parameter is implicitly correctly choosen, why not in deploy-file? this would make the url parameter optional.
So I see this as a bug/feature, because when deploy works in this way, then deploy-file should work analogous. Or have I missed something here?
Attachments
Issue Links
- relates to
-
MDEPLOY-68 altDeploymentRepository allows dangerous deploy processes
- Closed