On 4/19/2010 10:07 AM, Marshall Schor wrote: > On 4/17/2010 10:31 PM, Marshall Schor wrote: > >> The Apache common POM ( >> http://repo2.maven.org/maven2/org/apache/apache/7/apache-7.pom ) uses >> the maven remote resources plugin to retrieve standard files including >> META-INF/NOTICE for inclusion in Jar file builds for Apache projects. >> >> It retrieves the resource org.apache:apache-jar-resource-bundle:1.4 >> >> We need for many of our Jars to have the same additional lines in the >> NOTICE file. I noticed that the DEPENDENCIES.vm file has at the end the >> lines: >> >> #if($postDepListText) >> $postDepListText >> #end >> >> > I discovered (by experiment - using Maven 2.1.1) typo - should be Maven 2.2.1 > that the above didn't > work (for me), but what did work was to replace the variable name (I use > "postNoticeText") references with $project.properties.postNoticeText > > Are there any rule(s) which describe when you have to reference > variables using project.properties.<user-defined-property-name> and when > you can just use <user-defined-property-name>? Or did I do something > incorrect in my attempt before? > > -Marshall > >> which allows users to include custom text. If something like this was >> added to the NOTICE.vm, then we could use that to address our use case. >> >> Or is there a better approach for this? >> >> - Marshall Schor >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> >> >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org