Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
sisu-maven-plugin helped a lot: https://github.com/mfriedenhagen/mavenembeddedtest Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Tue, Nov 24, 2015 at 4:53 PM, Mirko

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Tamás Cservenák
Mirko, or just run the index goal of sisu-maven-plugin in pre-package phase, like it is done here (to create the META-INF/sisu/javax.inject.Named index for WAR that contains many things). https://github.com/sonatype/nexus-oss/blob/nexus-2.11.x/components/nexus-webapp/pom.xml#L336 See

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
Hello Tamás, hello Jason, thanks for your tips, I will try to understand and digest your input :-). Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Tue, Nov

Re: Running tests using failsafe from a shaded jar?

2015-11-23 Thread Jason van Zyl
Mirko, You’ll notice if you look at the source that it’s a JSR330 component. So there is a the sisu-maven-plugin which generates a META-INF/sisu/javax.inject.Named as part of the build. You will want to look in your shaded JAR and make sure you have one of those files, I’m not certain if there

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
Hello Stephen, I will share how to do this in general. As it it not as easy as I hoped I will firstly extract a POC project and share that on GitHub immediately with the risk of never succeeding :-) Regards Mirko -- Sent from my mobile Am 21.11.2015 23:34 schrieb "Stephen Connolly" <

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
Hello Karl-Heinz, I found the class but in none of the components.xml files from plexus is a hint that DCRM is the default for CRM :-) Regards Mirko -- Sent from my mobile Am 21.11.2015 22:33 schrieb "Karl Heinz Marbaise" : > Hi Mirko, > > The class DefaultClassRealmManager

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Stephen Connolly
If you get this working, any chance you could share your work? On 21 November 2015 at 21:20, Mirko Friedenhagen wrote: > Hello, > > I want to use to run tests on machine, where Maven is not installed > and access to a repository is not allowed. > However I want to

Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
Hello, I want to use to run tests on machine, where Maven is not installed and access to a repository is not allowed. However I want to (ab-)use the failsafe plugin so I may use the fine machinery which allows to specify tests and get XML reports. Using maven-embedded I created an App class

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Karl Heinz Marbaise
Hi Mirko, The class DefaultClassRealmManager is contained in maven-core module.. @Named @Singleton public class DefaultClassRealmManager implements ClassRealmManager { public static final String API_REALMID = "maven.api"; /** * During normal command line build, ClassWorld is