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

Bug 335894

Summary: Error parsing activemq-core pom
Product: z_Archived Reporter: Jason Bennett <jasonab>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Reporter's eclipse configuration none

Description Jason Bennett CLA 2011-01-31 14:19:05 EST
Build Identifier: 20100917-0705

Adding activemq:core 5.4.2 (or most versions) produces the following error in m2e:

[WARN] The POM for org.apache.activemq:activemq-core:jar:5.4.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

This warning does not occur using maven from the command line. I am using the embedded maven version (3.0-SNAPSHOT) and m2e version 0.12.1.20110112. This error has been occurring for a few versions now.


Reproducible: Always
Comment 1 Jason Bennett CLA 2011-02-01 18:54:09 EST
This also occurs with org.mybatis:mybatis:jar:3.0.4. I believe this has been mentioned in the past as being caused by the ${} variable in dependency specifications.
Comment 2 Igor Fedorenko CLA 2011-02-01 19:40:56 EST
I am unable to reproduce the problem using neither latest m2e from master nor official 0.12.1. Tried adding dependencies on both activemq:core 5.4.2 and org.mybatis:mybatis:jar:3.0.4 to a test project and both resolved without a problem. 

For the reference, here is my test pom.xml


<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>q</groupId>
  <artifactId>q</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>q</name>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
    	<groupId>org.mybatis</groupId>
    	<artifactId>mybatis</artifactId>
    	<version>3.0.4</version>
    </dependency>
    <dependency>
    	<groupId>org.apache.activemq</groupId>
    	<artifactId>activemq-core</artifactId>
    	<version>5.4.2</version>
    </dependency>
  </dependencies>
</project>

Anything else I need to do to reproduce the problem?

Also, can you please attach your Eclipse installation configuration (Help->AboutEclipseSDK->InstallationDetails->Configuration)?
Comment 3 Jason Bennett CLA 2011-02-01 19:51:13 EST
Here is the debug log I'm seeing:

2/1/11 4:49:19 PM PST: [WARN] The POM for org.apache.activemq:activemq-core:jar:5.4.2 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.apache.activemq:activemq-core:5.4.2
[ERROR] Failed to determine Java version for profile jdk1.4 @ 

2/1/11 4:49:19 PM PST: [WARN] The POM for org.mybatis:mybatis:jar:3.0.4 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.mybatis:mybatis:3.0.4
[ERROR] Failed to determine Java version for profile doclava @ org.mybatis:mybatis-parent:8

2/1/11 4:49:19 PM PST: [WARN] The POM for org.mybatis:mybatis-spring:jar:1.0.0 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.mybatis:mybatis-spring:1.0.0
[ERROR] Failed to determine Java version for profile doclava @ org.mybatis:mybatis-parent:8

I normally see this when I access one of the dependency screens (e.g. Dependency Hierarchy).

My Eclipse system info is huge - almost to the point where Mozilla chokes on it. Is there a particular section that's helpful?
Comment 4 Igor Fedorenko CLA 2011-02-01 21:27:47 EST
You can gzip the configuration and attach the .gz file.

Since the problem may be related to JDK profile activation, what is exact version of JVM you are using and do you use JDK or JRE?
Comment 5 Jason Bennett CLA 2011-02-01 21:30:47 EST
Created attachment 188108 [details]
Reporter's eclipse configuration
Comment 6 Jason Bennett CLA 2011-02-01 21:31:53 EST
(In reply to comment #4)

> Since the problem may be related to JDK profile activation, what is exact
> version of JVM you are using and do you use JDK or JRE?

JDK 1.6.0_22 is used to start Eclipse. It's also configured as the default build VM.
Comment 7 Igor Fedorenko CLA 2011-08-01 01:24:45 EDT
I am closing this issue until somebody can provide additional information that explains the problem or provides a patch.
Comment 8 Denis Roy CLA 2021-04-19 13:25:03 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/