maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Hanisch (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MDEPLOY-202) deploy-file goal insists on deploying source file for previous deploy-file execution
Date Thu, 23 Jun 2016 13:10:16 GMT

    [ https://issues.apache.org/jira/browse/MDEPLOY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15346398#comment-15346398
] 

Matthias Hanisch commented on MDEPLOY-202:
------------------------------------------

Looking at the commit for this issue it seems to me that this really does not fix my case
where the attachment was not added within a deploy-file configuration but within the normal
project lifecycle - in my case by maven-source-plugin and maven-javadoc-plugin.

> deploy-file goal insists on deploying source file for previous deploy-file execution
> ------------------------------------------------------------------------------------
>
>                 Key: MDEPLOY-202
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-202
>             Project: Maven Deploy Plugin
>          Issue Type: Sub-task
>          Components: deploy:deploy-file
>    Affects Versions: 2.8.1, 2.8.2
>            Reporter: Stephan Leicht Vogt
>            Assignee: Robert Scholte
>             Fix For: 3.0.0
>
>         Attachments: MDEPLOY-202-DeployFileMojo.patch
>
>
> In a releng pom I deploy various files to a repository. Each file is in its own execution.
Beside the binary file I also want to deploy the source jar:
> {code:xml}
>     <profile>
>       <id>deploy-equinox-snapshots</id>
>       <activation>
>         <activeByDefault>true</activeByDefault>
>       </activation>
>       <build>
>         <plugins>
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-deploy-plugin</artifactId>
>             <executions>
>               <execution>
>                 <id>deploy-osgi</id>
>                 <goals>
>                   <goal>deploy-file</goal>
>                 </goals>
>                 <phase>deploy</phase>
>                 <configuration>
>                   <file>${downloaded}/org.eclipse.osgi_${org.eclipse.osgi}.jar</file>
>                   <sources>${downloaded}/org.eclipse.osgi.source_${org.eclipse.osgi}.jar</sources>
>                   <pomFile>${project.build.outputDirectory}/org.eclipse.osgi.pom</pomFile>
>                 </configuration>
>               </execution>
>               <execution>
>                 <id>deploy-equinox-common</id>
>                 <goals>
>                   <goal>deploy-file</goal>
>                 </goals>
>                 <phase>deploy</phase>
>                 <configuration>
>                   <file>${downloaded}/org.eclipse.equinox.common_${org.eclipse.equinox.common}.jar</file>
>                   <sources>${downloaded}/org.eclipse.equinox.common.source_${org.eclipse.equinox.common}.jar</sources>
>                   <pomFile>${project.build.outputDirectory}/org.eclipse.equinox.common.pom</pomFile>
>                 </configuration>
>               </execution>
>               <execution>
>                 <id>deploy-equinox-security</id>
>                 <goals>
>                   <goal>deploy-file</goal>
>                 </goals>
>                 <phase>deploy</phase>
>                 <configuration>
>                   <file>${downloaded}/org.eclipse.equinox.security_${org.eclipse.equinox.security}.jar</file>
>                   <sources>${downloaded}/org.eclipse.equinox.security.source_${org.eclipse.equinox.security}.jar</sources>
>                   <pomFile>${project.build.outputDirectory}/org.eclipse.equinox.security.pom</pomFile>
>                 </configuration>
>               </execution>
>               <execution>
>                 <id>deploy-equinox-registry</id>
>                 <goals>
>                   <goal>deploy-file</goal>
>                 </goals>
>                 <phase>deploy</phase>
>                 <configuration>
>                   <file>${downloaded}/org.eclipse.equinox.registry_${org.eclipse.equinox.registry}.jar</file>
>                   <sources>${downloaded}/org.eclipse.equinox.registry.source_${org.eclipse.equinox.registry}.jar</sources>
>                   <pomFile>${project.build.outputDirectory}/org.eclipse.equinox.registry.pom</pomFile>
>                 </configuration>
>               </execution>
>               <execution>
>                 <id>deploy-equinox-preferences</id>
>                 <goals>
>                   <goal>deploy-file</goal>
>                 </goals>
>                 <phase>deploy</phase>
>                 <configuration>
>                   <file>${downloaded}/org.eclipse.equinox.preferences_${org.eclipse.equinox.preferences}.jar</file>
>                   <sources>${downloaded}/org.eclipse.equinox.preferences.source_${org.eclipse.equinox.preferences}.jar</sources>
>                   <pomFile>${project.build.outputDirectory}/org.eclipse.equinox.preferences.pom</pomFile>
>                 </configuration>
>               </execution>
>             </executions>
>           </plugin>
>         </plugins>
>       </build>
>     </profile>
> {code}
> The first execution works fine but every other execution deploys again the source files
from all past executions. Although this works for SNAPSHOTS it breaks for RELEASES as a released
file shouldn't/can't be overwritten.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message