[ 
http://jira.codehaus.org/browse/MOJO-993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150880#action_150880
 ] 

Eric Ladouceur commented on MOJO-993:
-------------------------------------

I am seeing this issue also in the assembly plugin.  jar plugin works, but not 
the assembly.  Since this behavior is seen in different plugins, could it be 
related to how buildnumber stores its properties (like not using a standard 
way)?

            project.getProperties().put(buildNumberPropertyName, revision );
            project.getProperties().put(timestampPropertyName, timestamp);


> ${buildNumber} or ${timestamp} evaluate as null in maven-assembly-plugin 
> after created by buildnumber-maven-plugin
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: MOJO-993
>                 URL: http://jira.codehaus.org/browse/MOJO-993
>             Project: Mojo
>          Issue Type: Bug
>          Components: buildnumber
>         Environment: OS X 10.4.11
>            Reporter: Ellen Strnod
>
> buildnumber plugin runs & logs [INFO] Storing buildNumber: 20080108-131808 at 
> timestamp: 1199827088287, but during assembly plugin, the build number 
> evaluates as "null" when used as part of the final name:
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>${JDK_VERSION}</source>
>           <target>${JDK_VERSION}</target>
>         </configuration>
>       </plugin>
>       
>       <plugin>
>         <groupId>org.codehaus.mojo</groupId>
>         <artifactId>buildnumber-maven-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>validate</phase>
>             <goals>
>               <goal>create</goal>
>             </goals>
>           </execution>
>         </executions>
>         <configuration>
>           <doCheck>false</doCheck>
>           <doUpdate>false</doUpdate>
>           <format>{0,date,yyyyMMdd-HHmmss}</format>
>           <items>
>               <item>timestamp</item>
>           </items>
>         </configuration>
>       </plugin>      
>       
>       <plugin>
>         <artifactId>maven-assembly-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>assembly:assembly</phase>
>           </execution>
>         </executions>
>         <configuration>
>           <finalName>${project.build.finalName}-${timestamp}</finalName>
>           <descriptor>release.xml</descriptor>
>           <outputDirectory>release</outputDirectory>
>           <items>
>               <item>timestamp</item>
>           </items>  
>         </configuration>
>       </plugin>
>       
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <configuration>
>           <skip>true</skip>
>           <testFailureIgnore>true</testFailureIgnore>
>           <printSummary>false</printSummary>
>           <excludes>
>             <exclude>**/*.java</exclude>
>           </excludes>
>         </configuration>
>       </plugin>
>     </plugins>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to