History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MNG-1118
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Jason van Zyl
Reporter: Eugene Kuleshov
Votes: 7
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
Maven 2

mavenEmbedder.readProjectWithDependencies improvements

Created: 06/Oct/05 10:47 AM   Updated: 08/Apr/07 07:39 PM
Component/s: POM, Embedding
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Complexity: Intermediate


 Description  « Hide
Currently mavenEmbedder.readProjectWithDependencies return instance of MavenProject. So, collection of artifacts in this instance (including transient dependencies) does not have information where those artifacts had been declared. It would be useful for an IDE to be able to get this information somehow (e.g. getArtifactMap(), which could return map of artifacts to list of pom files).

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Milos Kleint - 01/Jan/06 07:20 AM
it would also be nice to know the artifacts that were not resolved correctly. Current behaviour is not really friendly for IDE integration. After failing to download the dependency, the returned Mavenproject object doesn't have any dependency artifacts set.

I think having a way to plug into the artifact resolution process either by listening or by replacing the default components is the way to go. A closely related issue is that the reaProjectWithDependencies should be configurable to be lightning fast (absolutely no network traffic). See : MNG-1457


Jason van Zyl - 28/Feb/07 11:15 AM
Ok, this is not really a problem with this method but with artifact resolution. You two have worked around this by creating new implementations of the resolver.

Jason van Zyl - 28/Feb/07 11:17 AM
I'll create new issues that deal specifically with the internals. The project return, or any other information you IDE integrators are now capturing and we have to return those strategies to the default artifact resolvers. It should not fail fast but collect all the information it can which is what you have done.

Dan Rollo - 28/Feb/07 12:56 PM
Could you link the new Jira issue to this one so I can track it?

Brett Porter - 08/Apr/07 07:39 PM
from what I can tell, this is being done in other issues