Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] settings.xml and Aether

The Aether Ant Tasks code base mentioned here [1] led me to success.
There the ConvertUtils.toDistRepository() method shows how authentication and proxy is assigned to a repository to make it a distribution repository.

How to get a Maven Settings injected into my Mojo I had already learned from the EffectiveSettingsMojo of the maven-help-plugin.
So, my question was probably a tad more on the Aether side.

To answer your question: I'm doing my prototype as a Mojo out of pure convenience.
Eventually I want to have everything working in OSGi.

This particular use case involved the install & deploy of a generated POM.
I'm currently generating the a POM file literally, hoping to do this eventually completely in memory.
Yes, that would be a topic for the Maven mailing list :-)

Thanks a lot for your help!

Regards,
-Max

[1] http://wiki.eclipse.org/Aether/Creating_a_Repository_System_Session


On 02/21/2012 03:18 AM, Benjamin Bentmann wrote:
Max Spring wrote:

I'm trying to use my settings.xml together with Aether (within a Mojo).
I read the Wiki section on this topic [1]

The wiki page on that topic, i.e. use of Aether within Maven, is [0].

Most of the other wiki pages are targetted at users that wish to use Aether outside of Maven.

I can't find out how I
would use the maven-settings-builder for this purpose.
Is there a good example which would exhibit this?

 From your brief description, it's not clear why you have the need to reach out to that component within a mojo, the current Maven settings can be accessed via usual parameter injection.

A general usage example of the settings builder is mentioned in [1]. For any further questions on that Maven component, please contact the Maven mailing list.


Benjamin


[0] http://wiki.eclipse.org/Aether/Using_Aether_in_Maven_Plugins
[1] http://wiki.eclipse.org/Aether/Creating_a_Repository_System_Session
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aether-users



Back to the top