Ok ... so I invested quite some time in different ways to get the MavenSession 
injected, till I had a look at the other "events" the EventSpy got and found 
the ExecutionEvent containing an instance of a MavenSession. So I changed my 
code to that and now my Extension seems to be working nicely with Maven 3.1.1 
and above.

Chris

________________________________________
Von: Christofer Dutz <[email protected]>
Gesendet: Samstag, 18. April 2015 22:03
An: Maven Users List; [email protected]
Betreff: AW: Packaging Maven Core Extensions

Hi,

the code is here:
https://github.com/apache/flex-utilities/tree/develop/mavenizer/maven-extension

The "provided" scope was the tip that got my fat-jar running in lib/ext for 
Maven 3.1.1 ...
Unfortunately it seems to only run in Maven 3.3.1 ... if I try it in 3.2.2 or 
3.1.1 I get errors :-(

Chris


-----Ursprüngliche Nachricht-----
Von: Karl Heinz Marbaise [mailto:[email protected]]
Gesendet: Samstag, 18. April 2015 18:51
An: Maven Users List
Betreff: Re: Packaging Maven Core Extensions

Hi,

are you running from within Jenkins ?

On 4/18/15 6:26 PM, Christofer Dutz wrote:
> Hi,
>
>
> I have just finished a small maven core extension containing an EventSpy. 
> It's working nicely if I include it into my build using Maven 3.3.1 and a 
> ".mvn/extensions.xml", but I couldn't get it working by copying the jar to 
> the MAVEN_HOME/lib/ext directory (I even tried a shaded jar). All I am 
> getting are these warnings:
>
>
> [WARNING] Failed to notify spy 
> org.apache.flex.utilities.converter.mavenextension.FlexEventSpy: 
> java.util.NoSuchElementException
>        role: org.apache.maven.execution.MavenSession
>    roleHint:
>
> ?What is the difference between the two options? What do I have to change in 
> order to have my extension working in older Maven versions (down to 3.1.1) by 
> installing it into the lib/ext directory?
>
> Chris
>
>

Kind regards
Karl Heinz Marbaise

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\��][��X��ܚX�PX]�[��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\��Z[X]�[��\X�K�ܙ�B

Reply via email to