XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.1, 2.8.2
    • 3.0.0-M1
    • deploy:deploy-file
    • None
    • Patch, Important

    Description

      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:

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

      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.

      Attachments

        1. MDEPLOY-202-DeployFileMojo.patch
          0.5 kB
          Stephan Leicht Vogt

        Activity

          People

            rfscholte Robert Scholte
            sleicht Stephan Leicht Vogt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: