[ 
http://jira.codehaus.org/browse/MNG-4460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MNG-4460.
----------------------------------

    Resolution: Not A Bug
      Assignee: Benjamin Bentmann

>From the mojo:
{code:java}
Date now = new Date();
projectProperties.put("project.date",now);
{code}
Putting non-string objects into properties violates the contract of 
[java.util.Properties|http://java.sun.com/javase/6/docs/api/java/util/Properties.html].

> NPE from the classworlds launcher while trying to use custom component.xml
> --------------------------------------------------------------------------
>
>                 Key: MNG-4460
>                 URL: http://jira.codehaus.org/browse/MNG-4460
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>         Environment: Windows XP
>            Reporter: Liz Sommers
>            Assignee: Benjamin Bentmann
>         Attachments: build.log, components.xml, ProjectDateMojo.java
>
>
> All of this code works with Maven 2.0.8-2.0.9 
> I have included the components.xml file i am using and the first mojo it 
> calls so that you can see that it is working correctly.  Resources never gets 
> executed.
> I am not sure if the problem is with the launcher or with the resource 
> plugin, but it should be obvious to you if you look at the build.log
> I am putting the pom here because there isn't another attachement available
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
>       <modelVersion>4.0.0</modelVersion>
>       <groupId>mil.disa.packages</groupId>
>       <artifactId>FAKE-PACKAGE</artifactId>
>       <packaging>package</packaging>
>       <version>4.2.0.2-RC03</version>
>       <name>FAKE-PACKAGE</name>
>       <url>http://maven.apache.org</url>
>       
>       <parent>
>               <groupId>mil.disa.ap.segments</groupId>
>               <artifactId>packageParent</artifactId>
>               <version>1.8</version>
>       </parent>
>       
>       <properties>
>               <package-release-version> 4.2.0.2 </package-release-version>
>               <package-name>FAKE</package-name>
>               <package-prefix>FAKE</package-prefix>
>       </properties>
>       <scm>
>               
> <connection>scm:svn:http://svnsrv/svn/SEGS/PACKAGES/FAKE-package/trunk</connection>
>               
> <developerConnection>scm:svn:http://svnsrv/svn/SEGS/PACKAGES/FAKE-package/trunk</developerConnection>
>               <url>http://svnsrv/svn/SEGS/PACKAGES/FAKE-package/trunk</url>
>       </scm>
>               
>       <build>
>               <resources>
>                       <resource>
>                               <excludes>
>                                       <exclude>**/pkginfo</exclude>
>                                       <exclude>**/ReleaseNotes</exclude>
>                               </excludes>
>                               <directory>FAKE</directory>
>                       </resource>
>                       <resource>
>                               <includes>
>                                       <include>**/pkginfo</include>
>                                       <include>**/ReleaseNotes</include>
>                               </includes>
>                               <directory>FAKE</directory>
>                               <filtering>true</filtering>
>                       </resource>
>               </resources>
>       </build>
>       <dependencies>
>       </dependencies>
> </project>

-- 
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

        

Reply via email to