[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Some tycho build questions
|
When maven-resources-plugin is executed:
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>install</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>/home/builds/iit.tycho.builds</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/products</directory>
<filtering>true</filtering>
<includes>
<include>**/*.zip</include>
<include>**/*.tar.gz</include>
</includes>
</resource>
<resource>
<directory>${basedir}/target/products</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.zip</exclude>
<exclude>**/*.tar.gz</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Correct files are being copied, but for some reason these files are
twice the size of the ones in the directory - 800+ MB vs 400+ MB, I
also get these errors during
tycho-p2-director-plugin:archive-products:
[WARNING] Entry:
features/org.eclipse.datatools.enablement.ingres.feature.source_1.9.2.v201109161655-540AkF78Z7UCRAQDB/META-INF/MANIFEST.MF
longer than 100 characters.
Not sure if it's related. I also added filtering because of this:
http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html,
but not sure if it's really needed here.
Thanks,
Alex
On Mon, Dec 24, 2012 at 2:45 PM, Alex Kravets <kravets.dev@xxxxxxxxx> wrote:
> I found a way to copy my products:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <plugin>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.4.3</version>
> <executions>
> <execution>
> <id>copy-resources</id>
> <!-- here the phase you need -->
> <phase>install</phase>
> <goals>
> <goal>copy-resources</goal>
> </goals>
> <configuration>
> <outputDirectory>/home/builds/test3</outputDirectory>
> <resources>
> <resource>
> <directory>${basedir}/target/products</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/iIT-*</include>
> </includes>
> </resource>
> </resources>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> Have a lot to learn about Maven :)
>
> Also figured out #2:
>
> <formats>
> <win32>zip</win32>
> <linux>tar.gz</linux>
> </formats>
>
> However, still not sure about #1 how to extract major.minor.service value.
>
> Thanks,
> Alex
>
> On Fri, Dec 21, 2012 at 2:54 PM, Alex Kravets <kravets.dev@xxxxxxxxx> wrote:
>> Hi,
>>
>> I have some questions about building with Tycho.
>>
>> 1. Using tycho-p2-director-plugin[1] I want to use version defined in
>> pom which is set to 1.0.0.qualifier. As I understand
>> ${unqualifiedVersion} gives me the whole value of version, is there
>> anyway to get just the major.minor.service value?
>> 2. In the same pom I have formats defined as:
>>
>> <formats>
>> <format>
>> <win32>zip</win32>
>> <linux>tar.gz</linux>
>> </format>
>> </formats>
>>
>> But during product assembly both windows and linux products are being
>> compressed as ZIP, what I am doing wrong here?
>>
>> 3. Using maven-dependency-plugin I want to copy final products to
>> staging location, during the assembly I am changing the name of the
>> final deliverable file:
>>
>> <products>
>> <product>
>> <id>${product.id}</id>
>> <archiveFileName>${product.id}-1.0.0.${buildQualifier}</archiveFileName>
>> </product>
>> </products>
>>
>> and in maven-dependency-plugin:
>>
>> <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>
>> <classifier>win32.win32.x86</classifier>
>> <type>zip</type>
>> </artifactItem>
>> <artifactItem>
>> <groupId>${project.groupId}</groupId>
>> <artifactId>${project.artifactId}</artifactId>
>> <version>${project.version}</version>
>> <classifier>linux.gtk.x86</classifier>
>> <type>zip</type>
>> </artifactItem>
>> </artifactItems>
>> <outputDirectory>/home/builds/test</outputDirectory>
>> <overWriteReleases>true</overWriteReleases>
>> <overWriteSnapshots>true</overWriteSnapshots>
>> </configuration>
>> </execution>
>> </executions>
>> </plugin>
>>
>> Right now what gets copied is artifact
>> " com.iwaysoftware.integration.tools.product.feature-1.0.0.qualifier.zip",
>> what do I need to copy the newly created file as defined in
>> <archiveFileName>${product.id}-1.0.0.${buildQualifier}</archiveFileName>?
>> Do I need to use something else for this? I use this thread [2] for
>> reference.
>>
>> [1] http://pastebin.com/TVwfJiaf
>> [2] http://dev.eclipse.org/mhonarc/lists/tycho-user/msg00024.html
>>
>> Thanks,
>> Alex