Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318889 - maven properties prevent mapping of maven artifact as IU
Summary: maven properties prevent mapping of maven artifact as IU
Status: RESOLVED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Filip Hrbek CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-05 09:21 EDT by Lars Fischer CLA
Modified: 2016-09-16 15:57 EDT (History)
1 user (show)

See Also:


Attachments
local maven repository with an artifact using an unset property (5.85 MB, application/octet-stream)
2010-07-05 09:22 EDT, Lars Fischer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Fischer CLA 2010-07-05 09:21:23 EDT
Using a maven repository in a b3aggr contribution, the resolved pom.xml files are used to fill the IU metadata.

The pom.xml files could have properties inside the configuration, which do not have to be explicit set. (e.g. "${project.artifactId}")
Also look at http://maven.apache.org/pom.html#Properties

Such a not resolvable property results in an infinite loop at POM#expandProperties.

The attached local maven repository contains an artifact which uses a not defined property. (com.ibykus.devtool.unittest)
Trying to use the extracted folder as maven mapped repository should reproduce the error.
Comment 1 Lars Fischer CLA 2010-07-05 09:22:36 EDT
Created attachment 173424 [details]
local maven repository with an artifact using an unset property
Comment 2 Filip Hrbek CLA 2010-07-22 10:56:16 EDT
Fixed and uploaded to http://download.eclipse.org/modeling/emft/b3/updates-3.7milestones
Comment 3 David Williams CLA 2016-09-16 15:57:17 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
No change to assignee for resolved and verified bugs.]