Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Copying a product to a custom location

Hi,

I'm currently using Tycho 0.11.0 to successfully build an Eclipse Product.  The product is generated in the following location if I run `mvn clean install`:

...\com.exoanalytic.seas.ide.product\target\products\com.exoanalytic.seas.ide.product-win32.win32.x86.zip

We'd like to copy this file to a custom location, and I tried to do so with code below [1] in the above product's POM.  However, the code I came up with seems to copy the following file instead:

...\com.exoanalytic.seas.ide.product\target\com.exoanalytic.seas.ide.product.zip

I am guessing that the culprit here is the artifact type specified in the code below [2].  Can anyone correct my approach below or recommend a more tycho-friendly way to accomplish this?

Thanks for reading,
Joey 

[1]
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.2</version>
        <executions>
          <execution>
            <id>copy</id>
            <phase>install</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                 <artifactItem>
                  <groupId>${project.groupId}</groupId>
                  <artifactId>${project.artifactId}</artifactId>
                  <version>${project.version}</version>
                  [2]<type>${project.packaging}</type>
                </artifactItem>
              </artifactItems>
              <outputDirectory>c:/Users/inajamaica/Desktop</outputDirectory>
              <overWriteReleases>false</overWriteReleases>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>

Back to the top