| [comment encoding = UTF-8 /] |
| [** |
| * Copyright (c) 2008, 2012 Obeo.<br/> |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Obeo - initial API and implementation |
| * @author sbegaudeau |
| */] |
| [module pom('http://www.eclipse.org/acceleo/ui/acceleowizardmodel/3.1')] |
| |
| |
| [** |
| * Generates the pom.xml file. |
| * @param anAcceleoPom The Acceleo Pom |
| * @param parent The parent id |
| */] |
| [template public genPom(anAcceleoPom : AcceleoPom, parent : String)] |
| [comment @main /] |
| [file ('pom.xml', false, 'UTF-8')] |
| <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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <prerequisites> |
| <maven>3.0</maven> |
| </prerequisites> |
| |
| <groupId>org.eclipse.acceleo</groupId> |
| <artifactId>[parent/]</artifactId> |
| <version>1.0.0.qualifier</version> |
| <packaging>pom</packaging> |
| <name>Acceleo Generator Project</name> |
| |
| <modules> |
| <module>../[anAcceleoPom.artifactId/]</module> |
| <module>../[anAcceleoPom.artifactId/].feature</module> |
| <module>../[anAcceleoPom.artifactId/].updatesite</module> |
| </modules> |
| |
| <properties> |
| <acceleo-version>3.3.0</acceleo-version> |
| <tycho-version>0.14.1</tycho-version> |
| <acceleo-site>https://hudson.eclipse.org/hudson/job/m2t-acceleo-master/lastSuccessfulBuild/artifact/Acceleo.p2.repository/</acceleo-site> |
| <orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/S20120308061416/repository/</orbit-site> |
| </properties> |
| |
| <profiles> |
| <profile> |
| <id>platform-indigo</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| <property> |
| <name>platform-version-name</name> |
| <value>indigo</value> |
| </property> |
| </activation> |
| <properties> |
| <eclipse-site>http://download.eclipse.org/releases/indigo</eclipse-site> |
| <platform-version>['['/]3.7,3.8)</platform-version> |
| </properties> |
| </profile> |
| <profile> |
| <id>platform-juno</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| <property> |
| <name>platform-version-name</name> |
| <value>juno</value> |
| </property> |
| </activation> |
| <properties> |
| <eclipse-site>http://download.eclipse.org/releases/juno</eclipse-site> |
| <platform-version>['['/]3.8,4.2)</platform-version> |
| </properties> |
| </profile> |
| </profiles> |
| |
| <repositories> |
| <repository> |
| <id>eclipse-platform</id> |
| <layout>p2</layout> |
| <url>${eclipse-site}</url> |
| </repository> |
| <repository> |
| <id>acceleo</id> |
| <layout>p2</layout> |
| <url>${acceleo-site}</url> |
| </repository> |
| <repository> |
| <id>orbit</id> |
| <layout>p2</layout> |
| <url>${orbit-site}</url> |
| </repository> |
| </repositories> |
| |
| <pluginRepositories> |
| <pluginRepository> |
| <id>codehaus.snapshots</id> |
| <url>http://snapshots.repository.codehaus.org/</url> |
| </pluginRepository> |
| </pluginRepositories> |
| |
| <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> |
| </configuration> |
| </plugin> |
| </plugins> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-compiler-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <configuration> |
| <encoding>UTF-8</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-source-plugin</artifactId> |
| <version>${tycho-version}</version> |
| <executions> |
| <execution> |
| <id>attach-source</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>plugin-source</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.4.1</version> |
| <configuration> |
| <encoding>ISO-8859-1</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <version>1.3</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| </project> |
| [/file] |
| [/template] |