Skip to content

Commit

Permalink
Upgrade to tycho 0.24 and cleanup pom.xml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrun committed Apr 26, 2016
1 parent 4fd7eb5 commit e07f95e
Show file tree
Hide file tree
Showing 8 changed files with 414 additions and 382 deletions.
48 changes: 24 additions & 24 deletions building-and-using-generator/com.mycompany.generator.update/pom.xml
@@ -1,30 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<packaging>eclipse-repository</packaging>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>com.mycompany.generator.update</artifactId>
<relativePath>../</relativePath>
</parent>

<packaging>eclipse-repository</packaging>
<version>1.0.0-SNAPSHOT</version>
<artifactId>com.mycompany.generator.update</artifactId>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<createArtifactRepository>true</createArtifactRepository>
<finalName>${project.artifactId}</finalName>
<compress>true</compress>
</configuration>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<createArtifactRepository>true</createArtifactRepository>
<finalName>${project.artifactId}</finalName>
<compress>true</compress>
</configuration>
</plugin>
</plugins>
</build>

</project>
117 changes: 58 additions & 59 deletions building-and-using-generator/com.mycompany.generator/pom.xml
@@ -1,70 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>

<packaging>eclipse-plugin</packaging>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<artifactId>com.mycompany.generator</artifactId>
<relativePath>../</relativePath>
</parent>

<packaging>eclipse-plugin</packaging>
<version>1.0.0-SNAPSHOT</version>
<artifactId>com.mycompany.generator</artifactId>


<dependencies>
<dependency>
<groupId>org.eclipse.acceleo</groupId>
<artifactId>org.eclipse.acceleo.maven</artifactId>
<version>3.5.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
</dependency>
</dependencies>

<dependencies>
<dependency>
<groupId>org.eclipse.acceleo</groupId>
<artifactId>org.eclipse.acceleo.maven</artifactId>
<version>3.5.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.4</version>
</dependency>
</dependencies>

<build>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.acceleo</groupId>
<artifactId>org.eclipse.acceleo.maven</artifactId>
<version>3.5.0-SNAPSHOT</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>acceleo-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<useBinaryResources>false</useBinaryResources>
<usePlatformResourcePath>true</usePlatformResourcePath>
<acceleoProject>
<root>${project.basedir}</root>
<entries>
<entry>
<input>src</input>
<output>target/classes</output>
</entry>
</entries>
</acceleoProject>
<packagesToRegister>

<plugins>
<plugin>
<groupId>org.eclipse.acceleo</groupId>
<artifactId>org.eclipse.acceleo.maven</artifactId>
<version>3.5.0-SNAPSHOT</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>acceleo-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<useBinaryResources>false</useBinaryResources>
<usePlatformResourcePath>true</usePlatformResourcePath>
<acceleoProject>
<root>${project.basedir}</root>
<entries>
<entry>
<input>src</input>
<output>target/classes</output>
</entry>
</entries>
</acceleoProject>
<packagesToRegister>

<packageToRegister>com.mycompany.devtool.DevtoolPackage</packageToRegister>
<!-- TODO : you might need to reference the java qualified class name of your xxxPackage
<packageToRegister>com.mycompany.devtool.DevtoolPackage</packageToRegister>
<!-- TODO : you might need to reference the java qualified class
name of your xxxPackage Reading this http://wiki.eclipse.org/Acceleo/Maven
would probably be a good start. -->

Reading this http://wiki.eclipse.org/Acceleo/Maven would probably be a good start.
-->

</packagesToRegister>
</configuration>
</plugin>
</packagesToRegister>
</configuration>
</plugin>
</plugins>
</build>
</build>
</project>
166 changes: 87 additions & 79 deletions building-and-using-generator/com.mycompany.project/pom.xml
@@ -1,85 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<packaging>pom</packaging>
<artifactId>com.mycompany.project</artifactId>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.acceleo.examples</groupId>
<artifactId>org.eclipse.acceleo.examples.equinox.launcher.withgenerator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<packaging>pom</packaging>
<artifactId>com.mycompany.project</artifactId>


<!-- We specify this dependency to be sure the generator is going to be built and packaged before this module will get built.-->
<dependencies>
<dependency><artifactId>com.mycompany.generator.update</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>org.eclipse.acceleo.examples</groupId>
</dependency>
</dependencies>
<!-- We specify this dependency to be sure the generator is going to be
built and packaged before this module will get built. -->
<dependencies>
<dependency>
<artifactId>com.mycompany.generator.update</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>org.eclipse.acceleo.examples</groupId>
</dependency>
</dependencies>

<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.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<repositories>
<repository>
<id>Acceleo Launcher</id>
<layout>p2</layout>
<url>https://hudson.eclipse.org/acceleo/job/master-gerrit/802/PLATFORM=platform-mars/artifact/releng/org.eclipse.acceleo-updatesite/target/repository/
</url>
</repository>
<repository>
<id>Just built</id>
<layout>p2</layout>
<url>file:${project.basedir}/../com.mycompany.generator.update/target/repository</url>
</repository>
<repository>
<id>To get dependencies</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/mars</url>
</repository>
</repositories>
<appArgLine>-consoleLog -application
org.eclipse.acceleo.equinox.AcceleoLauncher -data
${project.parent.build.directory}/wks -models
platform:/resource/com.mycompany.project/model/model.xmi
-actions generate:com.mycompany.generator/com.mycompany.generator.main.Generate
-output ${project.basedir}/src-gen
</appArgLine>
<dependencies>
<!-- We need the actual launcher application -->
<dependency>
<artifactId>org.eclipse.acceleo.equinox.launcher
</artifactId>
<type>eclipse-feature</type>
</dependency>
<!-- The Eclipse feature packaging the code generator. -->
<dependency>
<artifactId>com.mycompany.generator</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<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.extras</groupId>
<artifactId>tycho-eclipserun-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<repositories>
<repository>
<id>Acceleo Launcher</id>
<layout>p2</layout>
<url>https://hudson.eclipse.org/acceleo/job/master-gerrit/802/PLATFORM=platform-mars/artifact/releng/org.eclipse.acceleo-updatesite/target/repository/
</url>
</repository>
<repository>
<id>Just built</id>
<layout>p2</layout>
<url>file:${project.basedir}/../com.mycompany.generator.update/target/repository</url>
</repository>
<repository>
<id>To get dependencies</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/mars</url>
</repository>
</repositories>
<applicationsArgs>
<args>-consoleLog</args>
<args>-application</args>
<args>org.eclipse.acceleo.equinox.AcceleoLauncher</args>
<args>-data</args>
<args>${project.parent.build.directory}/wks</args>
<args>-models</args>
<args>platform:/resource/com.mycompany.project/model/model.xmi</args>
<args>-output</args>
<args>${project.basedir}/src-gen</args>
<args>-actions</args>
<args>generate:com.mycompany.generator/com.mycompany.generator.main.Generate</args>
</applicationsArgs>
<dependencies>
<!-- We need the actual launcher application -->
<dependency>
<artifactId>org.eclipse.acceleo.equinox.launcher
</artifactId>
<type>eclipse-feature</type>
</dependency>
<!-- The Eclipse feature packaging the code generator. -->
<dependency>
<artifactId>com.mycompany.generator</artifactId>
<type>eclipse-plugin</type>
</dependency>
</dependencies>
</configuration>
<executions>
<execution>
<goals>
<goal>eclipse-run</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit e07f95e

Please sign in to comment.