Committed by
Gerrit Code Review
tokenizing features.xml
Change-Id: I89969f78beb7ae182013faae8b550b43a160d17d
Showing
2 changed files
with
28 additions
and
1 deletions
This diff is collapsed. Click to expand it.
... | @@ -34,6 +34,33 @@ | ... | @@ -34,6 +34,33 @@ |
34 | <build> | 34 | <build> |
35 | <plugins> | 35 | <plugins> |
36 | <plugin> | 36 | <plugin> |
37 | + <groupId>com.google.code.maven-replacer-plugin</groupId> | ||
38 | + <artifactId>replacer</artifactId> | ||
39 | + <version>1.5.3</version> | ||
40 | + <executions> | ||
41 | + <execution> | ||
42 | + <phase>prepare-package</phase> | ||
43 | + <goals> | ||
44 | + <goal>replace</goal> | ||
45 | + </goals> | ||
46 | + </execution> | ||
47 | + </executions> | ||
48 | + <configuration> | ||
49 | + <file>${pom.basedir}/features.xml</file> | ||
50 | + <outputFile>${pom.basedir}/target/features.xml</outputFile> | ||
51 | + <replacements> | ||
52 | + <replacement> | ||
53 | + <token>@ONOS-VERSION</token> | ||
54 | + <value>${project.version}</value> | ||
55 | + </replacement> | ||
56 | + <replacement> | ||
57 | + <token>@FEATURE-VERSION</token> | ||
58 | + <value>${project.version}</value> | ||
59 | + </replacement> | ||
60 | + </replacements> | ||
61 | + </configuration> | ||
62 | + </plugin> | ||
63 | + <plugin> | ||
37 | <groupId>org.codehaus.mojo</groupId> | 64 | <groupId>org.codehaus.mojo</groupId> |
38 | <artifactId>build-helper-maven-plugin</artifactId> | 65 | <artifactId>build-helper-maven-plugin</artifactId> |
39 | <version>1.9</version> | 66 | <version>1.9</version> |
... | @@ -47,7 +74,7 @@ | ... | @@ -47,7 +74,7 @@ |
47 | <configuration> | 74 | <configuration> |
48 | <artifacts> | 75 | <artifacts> |
49 | <artifact> | 76 | <artifact> |
50 | - <file>features.xml</file> | 77 | + <file>target/features.xml</file> |
51 | <type>xml</type> | 78 | <type>xml</type> |
52 | <classifier>features</classifier> | 79 | <classifier>features</classifier> |
53 | </artifact> | 80 | </artifact> | ... | ... |
-
Please register or login to post a comment