Zakir Meer | 6b0fffb | 2018-03-08 21:55:05 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | |
| 8 | <parent> |
| 9 | <relativePath>../../../build/org.eclipse.app4mc.transformation.build/pom.xml</relativePath> |
| 10 | <groupId>org.eclipse.app4mc.transformation</groupId> |
| 11 | <artifactId>org.eclipse.app4mc.transformation.build</artifactId> |
| 12 | <version>0.3.0-SNAPSHOT</version> |
| 13 | </parent> |
| 14 | |
| 15 | <properties> |
Harald Mackamul | e258063 | 2018-05-28 15:35:33 +0200 | [diff] [blame] | 16 | <plugin-id>app4mc.example.transform.m2t</plugin-id> |
Zakir Meer | 6b0fffb | 2018-03-08 21:55:05 +0100 | [diff] [blame] | 17 | <examples-installer-location>../../../build/org.eclipse.app4mc.transformation.examples.installer</examples-installer-location> |
| 18 | </properties> |
| 19 | |
| 20 | |
Harald Mackamul | e258063 | 2018-05-28 15:35:33 +0200 | [diff] [blame] | 21 | <artifactId>app4mc.example.transform.m2t</artifactId> |
Zakir Meer | 6b0fffb | 2018-03-08 21:55:05 +0100 | [diff] [blame] | 22 | <packaging>jar</packaging> |
| 23 | |
| 24 | <build> |
| 25 | <plugins> |
| 26 | <plugin> |
| 27 | <groupId>org.apache.maven.plugins</groupId> |
| 28 | <artifactId>maven-antrun-plugin</artifactId> |
| 29 | <version>1.7</version> |
| 30 | |
| 31 | <executions> |
| 32 | <execution> |
| 33 | <id>replace-build-token</id> |
| 34 | <phase>generate-sources</phase> |
| 35 | |
| 36 | <configuration> |
| 37 | <target> |
| 38 | <copy todir="${examples-installer-location}/examples/${plugin-id}"> |
| 39 | <fileset dir="./"> |
| 40 | <exclude name=".externalToolBuilders/" /> |
| 41 | <exclude name="database/" /> |
| 42 | <exclude name="bin/" /> |
| 43 | <exclude name="target/" /> |
| 44 | <exclude name=".settings/org.eclipse.mylyn*" /> |
| 45 | <exclude name=".settings/org.eclipse.pde.api.tools.prefs" /> |
| 46 | <exclude name="**/.gitignore" /> |
| 47 | <exclude name="**/pom.xml" /> |
| 48 | <exclude name="**/release.*" /> |
| 49 | <include name="**" /> |
| 50 | </fileset> |
| 51 | </copy> |
| 52 | |
| 53 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 54 | byline="false" |
| 55 | flags="sg" |
| 56 | match="\s*<buildCommand>\s+<name>org.eclipse.ui.externaltools.ExternalToolBuilder.*?</buildCommand>" |
| 57 | replace="" /> |
| 58 | |
| 59 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 60 | byline="false" |
| 61 | flags="s" |
| 62 | match="\s*<buildCommand>\s+<name>org.eclipse.pde.api.tools.apiAnalysisBuilder.*?</buildCommand>" |
| 63 | replace="" /> |
| 64 | |
| 65 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 66 | byline="false" |
| 67 | flags="s" |
| 68 | match="\s*<buildCommand>\s+<name>org.eclipse.emf.cdo.releng.version.VersionBuilder.*?</buildCommand>" |
| 69 | replace="" /> |
| 70 | |
| 71 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 72 | byline="false" |
| 73 | flags="s" |
| 74 | match="\s*<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>" |
| 75 | replace="" /> |
| 76 | |
| 77 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 78 | byline="false" |
| 79 | flags="s" |
| 80 | match="\s*<nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature>" |
| 81 | replace="" /> |
| 82 | </target> |
| 83 | </configuration> |
| 84 | |
| 85 | <goals> |
| 86 | <goal>run</goal> |
| 87 | </goals> |
| 88 | </execution> |
| 89 | |
| 90 | <execution> |
| 91 | <id>auto-clean</id> |
| 92 | <phase>clean</phase> |
| 93 | |
| 94 | <configuration> |
| 95 | <target> |
| 96 | <delete dir="${examples-installer-location}/examples/${plugin-id}"/> |
| 97 | </target> |
| 98 | </configuration> |
| 99 | |
| 100 | <goals> |
| 101 | <goal>run</goal> |
| 102 | </goals> |
| 103 | </execution> |
| 104 | |
| 105 | </executions> |
| 106 | |
| 107 | </plugin> |
Zakir Meer | 9ecf0a0 | 2018-03-08 23:12:36 +0100 | [diff] [blame] | 108 | |
| 109 | <plugin> |
| 110 | <groupId>org.eclipse.xtend</groupId> |
| 111 | <artifactId>xtend-maven-plugin</artifactId> |
Zakir Meer | 4e33e48 | 2018-07-02 23:09:14 +0200 | [diff] [blame^] | 112 | <version>2.14.0</version> |
Zakir Meer | 9ecf0a0 | 2018-03-08 23:12:36 +0100 | [diff] [blame] | 113 | <executions> |
| 114 | <execution> |
| 115 | <goals> |
| 116 | <goal>compile</goal> |
| 117 | <goal>xtend-install-debug-info</goal> |
| 118 | <goal>testCompile</goal> |
| 119 | <goal>xtend-test-install-debug-info</goal> |
| 120 | </goals> |
| 121 | </execution> |
| 122 | </executions> |
| 123 | <configuration> |
| 124 | <outputDirectory>xtend-gen</outputDirectory> |
| 125 | </configuration> |
| 126 | </plugin> |
Zakir Meer | 6b0fffb | 2018-03-08 21:55:05 +0100 | [diff] [blame] | 127 | </plugins> |
| 128 | </build> |
| 129 | </project> |