Repository: opennlp-site Updated Branches: refs/heads/master 170ecddfc -> 7dccc1513
OPENNLP-1071: Update year of copyright notice closes apache/opennlp-site#17 Project: http://git-wip-us.apache.org/repos/asf/opennlp-site/repo Commit: http://git-wip-us.apache.org/repos/asf/opennlp-site/commit/7dccc151 Tree: http://git-wip-us.apache.org/repos/asf/opennlp-site/tree/7dccc151 Diff: http://git-wip-us.apache.org/repos/asf/opennlp-site/diff/7dccc151 Branch: refs/heads/master Commit: 7dccc1513189898238c15ec430e7a3f6621cf283 Parents: 170ecdd Author: William D C M SILVA <[email protected]> Authored: Sun May 21 18:54:25 2017 -0300 Committer: William D C M SILVA <[email protected]> Committed: Sun May 21 18:54:25 2017 -0300 ---------------------------------------------------------------------- pom.xml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/opennlp-site/blob/7dccc151/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index a665c05..b3570a5 100644 --- a/pom.xml +++ b/pom.xml @@ -103,7 +103,24 @@ </execution> </executions> </plugin> - + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>timestamp-property</id> + <goals> + <goal>timestamp-property</goal> + </goals> + <phase>validate</phase> + <configuration> + <name>current.year</name> + <pattern>yyyy</pattern> + </configuration> + </execution> + </executions> + </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.7</version> @@ -127,6 +144,25 @@ <mapper type="regexp" from="^.*apache-opennlp-(.*?)/docs/(.*)" to="\1/\2" /> </copy> + <!-- Fix copyright year for 1.5.3 --> + <replaceregexp> + <regexp pattern="copy; , The Apache Software Foundation"/> + <substitution expression="copy; 2011, ${current.year} The Apache Software Foundation"/> + <fileset dir="target/opennlp-site/docs/1.5.3/manual"> + <include name="opennlp.html"/> + </fileset> + </replaceregexp> + + <!-- Update copyright year for all releases --> + <replaceregexp> + <regexp pattern="copy; 2011, \d+ The Apache Software Foundation"/> + <substitution expression="copy; 2011, ${current.year} The Apache Software Foundation"/> + <fileset dir="target/opennlp-site/docs/"> + <include name="**/manual/opennlp.html"/> + </fileset> + </replaceregexp> + + </sequential> </ac:for>
