Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » null pointer exception when using custom archetype
null pointer exception when using custom archetype [message #734937] Mon, 10 October 2011 09:27
Madhav Bhargava is currently offline Madhav Bhargava
Messages: 1
Registered: October 2011
Junior Member
Hi All,

We have created a custom maven archetype for creating a custom project structure. We are able to successfully use the archetype from the command line. When we try the same using m2e then it gives a couple of problems:

1. A null pointer exception(NPE) is thrown and we do not get any stack trace.
2. The project gets created in spite of the NPE, however an additional step "Update maven configuration" needs to be done. Is this necessary? Can this be avoided?
3. Since it nature of the project is java eclipse builder is invoked which creates the bin folder which again is not required. When doing from command line this is never created. Is there anyway to avoid this?

We have tried using maven 3.0.3 along with m2e and it still has the same problem. We have also looked at the bug ID 347602 but we have specified the version and the action properly.

Following is our plugin management snippet:
<pluginManagement>
 <plugins>
  <plugin>
	<groupId>org.eclipse.m2e</groupId>
	<artifactId>lifecycle-mapping</artifactId>
	<version>1.0.0</version>
	<configuration>
  	<lifecycleMappingMetadata>
         <pluginExecutions>
	  <pluginExecution>
	   <pluginExecutionFilter>
	    <groupId>com.test</groupId>
            <artifactId>generator.test</artifactId>
            <versionRange>[0.0.1-SNAPSHOT,]</versionRange>
             <goals>
               <goal>generate-flow</goal>
             </goals>
           </pluginExecutionFilter>
	   <action>
            <ignore></ignore>
	   </action>
	</pluginExecution>
	</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>


How do we change the log level for this plugin so that we can get a detailed stack trace? Any pointers would be greatly appreciated.

Best Regards,
Madhav
Previous Topic:What Does Build Automatically Do?
Next Topic:Default jre
Goto Forum:
  


Current Time: Tue Jul 22 11:43:10 EDT 2014

Powered by FUDForum. Page generated in 0.04175 seconds