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

Stephan Leicht Vogt commented on MDEPLOY-202:
---------------------------------------------

Great, it works! Thank you very much.
BUILD SUCCESS: 
https://hudson.eclipse.org/scout/job/org.eclipse.scout.sdk.dependencies/27/

> 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
>
>         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)

Reply via email to