Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Found dependencies for multiple snapshots of same artifact

Having a bundle and a feature with the same id is not unusual in Eclipse. I can't comment on how this maps to maven, but I can say we have several examples of such feature/bundle pairs in our build today.

John




From:        Yates Monteith <jymonte@xxxxxxxxxxx>
To:        cbi-dev@xxxxxxxxxxx,
Cc:        John McGregor <johnmc@xxxxxxxxxxx>
Date:        01/21/2013 01:10 PM
Subject:        [cbi-dev] Found dependencies for multiple snapshots of same artifact
Sent by:        cbi-dev-bounces@xxxxxxxxxxx




Dear CBI,

Recently I was performing some static analysis on the R4_2_maintenance branch via the tool Sonar.  While running it, I  stumbled across a peculiar error and an even more peculiar dependency in the build.

The error I received from Sonar was as follows:
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project platform-aggregator: Can not execute Sonar: Can not add twice the same measure on org.sonar.api.resources.Project@20d2c8ed[id=211,key=org.eclipse.platform.runtime:org.eclipse.core.tools,qualifier=BRC]: org.sonar.api.measures.Measure@372a56da[id=<null>,metricKey=packages,metric=Metric[id=8,formula=<null>,key=packages,description=Packages,type=INT,direction=-1,domain=Size,name=Packages,qualitative=false,userManaged=false,enabled=true,origin=JAV,worstValue=<null>,bestValue=<null>,optimizedBestValue=false,hidden=false,deleteHistoricalData=false],value=5.0,data="" -> [Help 1]

Usually, the error indicates that it has encountered multiple packages with the same artifactID.  A little bit of Grep Fu, and I came across the two pom.xml files in question:

From eclipse.platform.releng.aggregator/eclipse.platform.runtime/features/org.eclipse.core.tools-feature
  <groupId>org.eclipse.platform.runtime</groupId>
  <artifactId>org.eclipse.core.tools</artifactId>
  <version>1.4.0-SNAPSHOT</version>
  <packaging>eclipse-feature</packaging>

From eclipse.platform.releng.aggregator/eclipse.platform.runtime/bundles/org.eclipse.core.tools:
 <groupId>org.eclipse.platform.runtime</groupId>
  <artifactId>org.eclipse.core.tools</artifactId>
  <version>1.5.100-SNAPSHOT</version>
  <packaging>eclipse-plugin</packaging>

So, the org.eclipse.core.tools module exists in both the Bundles and the Features directories, in two different snapshots.  And these are both required by the org.eclipse.platform.runtime module.  While this did not break the build, it does not seem quite correct.  And while I'm handling the Sonar problem with the Sonar Mailing List, I figured I would let the CBI development team know about this.  If anyone can provide me any assistance, however, I would be grateful.

Thanks in advance,
Yates Monteith
_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev


Back to the top