Skip to main content

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

I think you need to specify the maven classifier and type of the artifact(s) to be copied.

Try

<classifier>win32.win32.x86</classifier>
<type>zip</type>

Regards
Jan


From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Joey Mink
Sent: Donnerstag, 31. März 2011 23:37
To: tycho-user@xxxxxxxxxxx
Subject: [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