maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Enrique Gaona <>
Subject How-to pass variables from one plugin to another
Date Fri, 23 Feb 2007 18:42:04 GMT

How do I go about setting the value of a variable from 1 plugin and passing
that variable to another plugin.   If I'm being vague, here are the
details:-)   I have a custom plugin (buildtools-tag-plugins) where I set
the buildNumber instance variable to the current date and time and then I
add it to the project hashtable using
project.getProperties().put("buildNumber", builddate).  What I want to do
is pass ${buildNumber} to the maven jar/ear/war plugins  as such:




In my ear and war MANIFEST files, I only get Implementation-Build: null ,
while in my jar files MANIFEST files Implementation-Build doesn't even show

This is how  am invoking my build:
 mvn clean
-Dtagbuild.tagPrefix='CSDP_DEV_tag' antrun:run install rpm:rpm

Any help is very much appreciated.   Thanks


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message