Skip to content

Commit

Permalink
Maven-tycho build support
Browse files Browse the repository at this point in the history
  • Loading branch information
ghillairet committed Oct 25, 2013
1 parent 260aaf6 commit 90589ff
Show file tree
Hide file tree
Showing 9 changed files with 183 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
target
bin
.metadata
/com.github.eclipsecolortheme.updatesite/artifacts.jar
Expand Down
12 changes: 12 additions & 0 deletions com.github.eclipsecolortheme.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eclipsecolortheme</artifactId>
<groupId>com.github</groupId>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>com.github.eclipsecolortheme.feature</artifactId>
<packaging>eclipse-feature</packaging>
</project>
2 changes: 0 additions & 2 deletions com.github.eclipsecolortheme.test/build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
jre.compilation.profile = J2SE-1.5
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
13 changes: 13 additions & 0 deletions com.github.eclipsecolortheme.test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eclipsecolortheme</artifactId>
<groupId>com.github</groupId>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>com.github.eclipsecolortheme.test</artifactId>
<packaging>eclipse-test-plugin</packaging>
<version>0.11.0-SNAPSHOT</version>
</project>
13 changes: 13 additions & 0 deletions com.github.eclipsecolortheme.updatesite/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eclipsecolortheme</artifactId>
<groupId>com.github</groupId>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>com.github.eclipsecolortheme.updatesite</artifactId>
<packaging>eclipse-repository</packaging>

</project>
2 changes: 0 additions & 2 deletions com.github.eclipsecolortheme/build.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
schema/,\
themes/,\
mappings/
jre.compilation.profile = J2SE-1.5
12 changes: 12 additions & 0 deletions com.github.eclipsecolortheme/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eclipsecolortheme</artifactId>
<groupId>com.github</groupId>
<version>0.13.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>com.github.eclipsecolortheme</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
132 changes: 132 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.github</groupId>
<artifactId>eclipsecolortheme</artifactId>
<packaging>pom</packaging>
<version>0.13.0-SNAPSHOT</version>

<modules>
<module>com.github.eclipsecolortheme</module>
<module>com.github.eclipsecolortheme.feature</module>
<module>com.github.eclipsecolortheme.test</module>
<module>com.github.eclipsecolortheme.updatesite</module>
</modules>

<properties>
<tycho-version>0.18.1</tycho-version>
</properties>

<repositories>
<repository>
<id>kepler</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/kepler</url>
</repository>
</repositories>

<build>
<plugins>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<argLine>-Xmx512M</argLine>
<includes>
<include>**/test/*Test.java</include>
</includes>
</configuration>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<includeAllDependencies>false</includeAllDependencies>
<createArtifactRepository>true</createArtifactRepository>
<compress>true</compress>
</configuration>
</plugin>

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<publishArtifacts>true</publishArtifacts>
</configuration>
</plugin>

<!-- enable source bundle generation -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-9</version>
</plugin>

</plugins>
</build>

</project>

0 comments on commit 90589ff

Please sign in to comment.