diff options
Diffstat (limited to 'velocity-engine-core/pom.xml')
-rw-r--r-- | velocity-engine-core/pom.xml | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/velocity-engine-core/pom.xml b/velocity-engine-core/pom.xml index a06956ec..592d1a4b 100644 --- a/velocity-engine-core/pom.xml +++ b/velocity-engine-core/pom.xml @@ -66,6 +66,26 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <executions> + <!-- put engine version in class org.apache.velocity.runtime.VelocityEngineVersion --> + <execution> + <id>filter-engine-version</id> + <phase>process-sources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <resources> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>**/*.java</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + <outputDirectory>${project.build.directory}/generated-sources/version</outputDirectory> + </configuration> + </execution> <!-- prepare parser grammar file --> <execution> <id>generate-parser-grammar</id> @@ -75,7 +95,6 @@ </goals> <configuration> <useDefaultDelimiters>false</useDefaultDelimiters> - <delimiters> <delimiter>${*}</delimiter> </delimiters> @@ -200,6 +219,27 @@ </executions> </plugin> + <!-- add VelocityEngineVersion source root --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>add-source</id> + <phase>generate-sources</phase> + <goals> + <goal>add-source</goal> + </goals> + <configuration> + <sources> + <source>${project.build.directory}/generated-sources/version</source> + </sources> + </configuration> + </execution> + </executions> + </plugin> + <!-- handle OSGi information --> <plugin> <groupId>org.apache.felix</groupId> @@ -276,8 +316,17 @@ </execution> </executions> </plugin> - </plugins> + + <resources> + <resource> + <directory>src/main/resources</directory> + <includes> + <include>**/*.properties</include> + </includes> + </resource> + </resources> + </build> <dependencies> @@ -321,7 +370,7 @@ <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> - <version>3.0.4</version> + <version>3.0.5</version> <configuration> <xmlOutput>true</xmlOutput> <threshold>Low</threshold> |