Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] doubts about custom packaging artifacts resolution

Ok, Benjamin...

I got it... many thanks...

Cristiano


On 05-05-2014 17:29, Benjamin Bentmann wrote:
Cristiano Gavião wrote:

Btw, and if I need to do such resolution of artifacts at runtime,
without maven, how would I setup aether to consider the artifacts types
? for example I have some install pieces that are packaged using zip
format with a proper mime/type and have extension ".proc".

Depends to some degree on where in the dependency graph you need to deal with those custom types.

If all you do is grab that one artifact itself, there's little point in bothering with the concept, just specify the proper file extension when creating the DefaultArtifact instance to resolve.

If the artifacts with the custom types are not specified as input to Aether directly but are mentioned in POMs used for transitive dependency resolution, you would need to customize the ArtifactTypeRegistry [0] of your RepositorySystemSession.


Benjamin


[0] http://download.eclipse.org/aether/aether-core/0.9.1/apidocs/org/eclipse/aether/RepositorySystemSession.html#getArtifactTypeRegistry%28%29
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aether-users



Back to the top