of cause :-)
https://github.com/openengsb/labs-paxexam-karaf/blob/master/regression/src/test/java/org/openengsb/labs/paxexam/karaf/regression/BaseOpenEngSBTest.java
shows
one example; but you can also reference the distribution in the pom again
and use the versionAsInProject notation again.

Kind regards,
Andreas

p.s.: it might be faster/easier for you if you simply ping me in the karaf
irc channel (username pieber)

On Wed, Oct 26, 2011 at 09:45, Dan Tran <[email protected]> wrote:

> Thanks Andreas,
>
> Adding execution of depends-maven-plugin get me started.
>
> The next question is, i am not using the standard karaf distribution
> but  a patched version of it, is there a way for me to point pax-exam
> for karaf to use my custom karaf?
>
> Thanks
>
> -Dan
>
> On Wed, Oct 26, 2011 at 12:35 AM, Andreas Pieber <[email protected]>
> wrote:
> > Hey Dan,
> > Sorry for the delay in the reply (different time zones :-)).
> > As an reply to your first mail: The error just points out that you're not
> > using the depends-maven-plugin:
> >
> > <build>
> >     <plugins>
> >       <plugin>
> >         <groupId>org.apache.servicemix.tooling</groupId>
> >         <artifactId>depends-maven-plugin</artifactId>
> >         <executions>
> >           <execution>
> >             <id>generate-depends-file</id>
> >             <goals>
> >               <goal>generate-depends-file</goal>
> >             </goals>
> >           </execution>
> >         </executions>
> >       </plugin>
> >     </plugins>
> >   </build>
> >
> > my bad that I've missed that in the documentation; I'll update it right
> now!
> > For your second mail:
> > On Wed, Oct 26, 2011 at 09:29, Dan Tran <[email protected]> wrote:
> >>
> >> May be there is  a real example some where that I can compare with?
> >
> > Please
> > see
> https://github.com/openengsb/labs-paxexam-karaf/tree/master/regression.
> > There is at least one integration test for each feature of paxexam. But
> if
> > you miss anything in the documentation please feel free to point it out
> so
> > that I can correct/improve it!
> >
> >>
> >> Does Karaf uses pax-exam for karaf?
> >
> > Not right now; but as pointed out in various discussions already
> > paxexam-karaf will make it's way into karaf. I hope I find some time to
> port
> > karaf to use paxexam-karaf during the weekend. But I've got some feature
> > requests I want to include into a 0.4.0 release first;
> > Kind regards,
> > Andreas
> >
> >>
> >> Thanks
> >>
> >> -Dan
> >>
> >> On Tue, Oct 25, 2011 at 9:21 PM, Dan Tran <[email protected]> wrote:
> >> > I am testing out this framework [1] and running to this stack trace
> >> > when start the test [1]
> >> >
> >> > java.lang.RuntimeException: Could not resolve version. Did you
> >> > configured the plugin in your maven project?Or maybe you did not run
> >> > the maven build and you are using an IDE?
> >> >        at
> >> > org.ops4j.pax.exam.MavenUtils.getArtifactVersion(MavenUtils.java:79)
> >> >        at
> >> > org.ops4j.pax.exam.MavenUtils$1.getVersion(MavenUtils.java:102)
> >> >        at
> >> >
> org.ops4j.pax.exam.options.MavenArtifactUrlReference.version(MavenArtifactUrlReference.java:110)
> >> >        at
> >> >
> org.ops4j.pax.exam.options.MavenArtifactUrlReference.versionAsInProject(MavenArtifactUrlReference.java:118)
> >> >        at
> >> > com.loglogic.mc.agent.AgentBaseTest.config(AgentBaseTest.java:23)
> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >        at
> >> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> >        at
> >> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >> >        at
> >> >
> org.ops4j.pax.exam.junit.JUnit4TestRunner.addConfigurationsToReactor(JUnit4TestRunner.java:198)
> >> >        at
> >> >
> org.ops4j.pax.exam.junit.JUnit4TestRunner.prepareReactor(JUnit4TestRunner.java:185)
> >> >        at
> >> >
> org.ops4j.pax.exam.junit.JUnit4TestRunner.<init>(JUnit4TestRunner.java:80)
> >> >        at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> >> > Method)
> >> >        at
> >> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> >> >        at
> >> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> >> >        at
> >> > java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> >> >        at
> >> >
> org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
> >> >        at
> >> >
> org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
> >> >        at
> >> >
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
> >> >        at
> >> >
> org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
> >> >        at
> >> >
> org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
> >> >        at
> >> >
> org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> >> >        at
> >> >
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> >> >
> >> >
> >> > This fails in both eclipse project ( generated by maven-eclipse-plugin
> >> > ) and mvn3 build
> >> >
> >> > Help to get me started is greatly appreciated
> >> >
> >> > Thanks
> >> >
> >> > -Dan
> >> >
> >> > [1] https://github.com/openengsb/labs-paxexam-karaf/wiki
> >> >
> >
> >
>

Reply via email to