On 1/21/2014 2:07 PM, Jaroslaw Cwiklik wrote: > I tried defining a property but it did not work for me. Check the parent > pom and it has the inceptionYear property defined > but the generated sources still say 2006-.. I dont think the current > approach is so wrong. Its still in one place in the > plugin where it is being used. This is a minor issue.
<inceptionYear> is not a property. It's a top-level maven element, see http://maven.apache.org/ref/3.1.1/maven-model/maven.html and do a "find" on inceptionYear. It turns out that this value in the Maven Model is used frequently, when a copyright notice string is being formed. For instance, another example is in the velocity macro used by the maven remote resource plugin that gets the info for the JAR MANIFEST NOTICE file. That macro (which is in uima-build-resources/src/main/resources/META-INF/NOTICE.vm) has this: ... Copyright ${projectTimespan} ... ... Surprisingly, the documentation for the maven-remote-resources plugin says ( see http://maven.apache.org/plugins/maven-remote-resources-plugin/process-mojo.html ) Several properties are automatically added: project - the current MavenProject projects - the list of dependency projects projectTimespan - the timespan of the current project (requires inceptionYear in pom) I noticed that the ducc parent pom sets the maven property "projectTimespan", but that is not being passed to the velocity macro - instead the maven-remote-resources plugin computes this value from the inceptionYear. Here's the little bit of code from that plugin that does that: context.put( "presentYear", year ); if ( inceptionYear.equals( year ) ) { context.put( "projectTimespan", year ); } else { context.put( "projectTimespan", inceptionYear + "-" + year ); } Because of this, all the Jars in DUCC have notice files generated from this with incorrect start dates: Apache UIMA DUCC: uima-ducc-examples Copyright 2006-2014 The Apache Software Foundation -Marshall > > On Tue, Jan 21, 2014 at 12:50 PM, Marshall Schor <[email protected]> wrote: > >> This is probably not the right way to fix this? >> >> Instead, leave the bottom setting at its default value, and override the >> UIMA-wide parent pom value for <inceptionYear> to be the first year of the >> project, in the parent-pom for the project. >> >> >> -Marshall >> >> >> On 1/21/2014 11:14 AM, [email protected] wrote: >>> Author: cwiklik >>> Date: Tue Jan 21 16:14:47 2014 >>> New Revision: 1560059 >>> >>> URL: http://svn.apache.org/r1560059 >>> Log: >>> UIMA-3574 Added new copyright message in javadoc plugin >>> >>> Modified: >>> uima/sandbox/uima-ducc/trunk/pom.xml >>> >>> Modified: uima/sandbox/uima-ducc/trunk/pom.xml >>> URL: >> http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/pom.xml?rev=1560059&r1=1560058&r2=1560059&view=diff >> ============================================================================== >>> --- uima/sandbox/uima-ducc/trunk/pom.xml (original) >>> +++ uima/sandbox/uima-ducc/trunk/pom.xml Tue Jan 21 16:14:47 2014 >>> @@ -251,6 +251,8 @@ >>> API >> Documentation</doctitle> >> <windowtitle>Apache UIMA DUCC Java SDK ${project.version} >>> User-Level >> API Documentation</windowtitle> >>> + <!-- Show >> Copyright message at the bootom of each page --> >>> + >> <bottom><![CDATA[Copyright © 2012, <a href="http://www.apache.org">The >> Apache Software Foundation<a>. All rights reserved.]]> </bottom> >>> </configuration> >>> </execution> >>> </executions> >>> >>> >>> >>
