RepositorySystemSession Null in Maven 3 Plugin Unit Test -


i attempting write unit test maven 3 plugin dependency on aether using maven plugin testing harness. when executing tests though repositorysystemsession null , after extensive search can not figure out how inject session unit tests plugin harness.

i using maven 3.0.3 core apis, maven plugin test harness 2.0 , aether 1.12. have tried other various combinations appear missing critical component somewhere along line.

the code base example can found here: http://www.sonatype.com/people/2011/01/how-to-use-aether-in-maven-plugins/.

the documentation plugin harness can found here: http://maven.apache.org/plugin-testing/maven-plugin-testing-harness/getting-started/index.html.

my example code can seen here:

myaethermojo

myaethermojotest

any ideas on how repositorysystemsession injected container unit test?

tia, scott es

the plugin testing harness not support aether testing. have use maven invoker plugin demonstrated in how use aether in maven plugins demo code.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -