Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365901

Summary: org.codehaus.mojo:properties-maven-plugin fails in Indigo with m2e
Product: z_Archived Reporter: Dean Schulze <dean_w_schulze>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Dean Schulze CLA 2011-12-07 09:13:21 EST
Build Identifier: 20110916-0149

Executing the plugin below gives the following error.  This worked under Helios with m2eclipse and it still works from the command line.

Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project pttutil: Execution default of goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties failed. NullPointerException -> [Help 1]


			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>properties-maven-plugin</artifactId>
				<version>1.0-alpha-2</version>
				<executions>
					<execution>
						<phase>initialize</phase>
						<goals>
							<goal>read-project-properties</goal>
						</goals>
						<configuration>
							<files>
								<file>${VERSIONS_FILE}</file>
							</files>
						</configuration>
					</execution>
				</executions>
			</plugin>


Reproducible: Always

Steps to Reproduce:
1. install m2e into Indigo
2. Execute the plugin above
3.
Comment 1 Igor Fedorenko CLA 2011-12-07 18:43:17 EST
I am getting exactly the same NPE running "mvn initialize" from command line, so this is not m2e specific problem. Feel free to reopen this bug if you believe m2e can handle this better, but make sure to provide complete standalone project that works on command line using maven 3.0.2 and exact steps to reproduce the problem inside m2e.
Comment 2 Denis Roy CLA 2021-04-19 13:26:07 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/