Hi, At the moment I can't try openjdk. I'm using a pretty old Mac using Snow Leopard. I should be able to test against openjdk this week (as soon as Apple deliver my new Mac).
I've deployed a new build on the Apache Snapshot Maven repo: https://repository.apache.org/content/repositories/snapshots/org/apache/felix/maven-junit4osgi-plugin/1.1.0-SNAPSHOT/ Regards, Clement 2013/1/7 Pierre Rust <[email protected]> > Ok, thanks for your answer, > > I'll give it a try but as far as I remember, I had dependency issues with > osgi4maven 1.1-SNAPSHOT (trunk). > > Last week I tried to build the trunk version and it failed on the > junit4osgi module (could not find the SAX2 parser, it might have been a > problem with the open jdk I was using). > > I'll let you known if it works. > > regards, > > Pierre > > > On Mon, Jan 7, 2013 at 9:32 AM, clement escoffier < > [email protected]> wrote: > > > Hi, > > > > The maven-junit4osgi-plugin is already starting iPOJO (trunk version). I > > never tried but you can check to configure the maven-junit-plugin with: > > > > > > > <plugin><groupid>org.apache.felix</groupid><artifactid>maven-junit4osgi-plugin</artifactid><executions><execution><goals> > > <goal>test</goal></goals></execution></executions> > > > > <dependencies> > > > > > > <dependency> > > > > <groupId>org.apache.felix</groupId> > > > > > > <artifactId>org.apache.felix.ipojo</artifactId> > > > > <version>${ipojo.core.version}</version> > > > > </dependency> > > > > > > </dependencies></plugin> > > > > > > Regards, > > > > > > Clement > > > > > > 2013/1/4 Pierre Rust <[email protected]> > > > > > Hi, > > > > > > I've been playing a bit with osgi (felix) and iPojo and found it to be > a > > > great combination. However it's a pain to test and I would like to use > > > osgi4junit with my maven build. > > > > > > I've tried to use the maven plugin for osgi4juint but I've faced a > > strange > > > problem : my build is not stable, one time the test pass and one time > it > > > fails with the following error : > > > ERROR: Error starting > > > > > > > > > file:/C:/Users/Pierre/Projets/Agora/maven-repository/org/apache/felix/org.apache.felix.ipojo/1.8.0/org.apache.felix.ipojo-1.8.0.jar > > > (org.osgi.framework.BundleException: Activator start error in bundle > > > org.apache.felix.ipojo [4].) > > > java.lang.ClassCastException: > > org.apache.felix.ipojo.HandlerManagerFactory > > > cannot be cast to org.apache.felix.ipojo.HandlerFactory > > > [...] > > > [ERROR] Bundle stability isn't reached after 500 tries > > > [INFO] Bundles: > > > [INFO] org.apache.felix.framework - 32 > > > [INFO] org.apache.felix.ipojo - 32 > > > [INFO] org.apache.felix.ipojo.handler.extender - 32 > > > [INFO] org.apache.felix.ipojo.junit4osgi - 32 > > > [INFO] org.apache.felix.ipojo - 4 > > > [INFO] org.apache.felix.ipojo.annotations - 32 > > > [INFO] Connector - 32 > > > [INFO] OsgiBundle - 32 > > > [INFO] OsgiTests - 32 > > > > > > > > > And from what I see it seems to deploy two ipojo bundle (which might > > > certainly be the root of my problem. > > > > > > I suspect a version conflict , I'm currently using the following > versions > > > (I've tried other combinations with no success ) : > > > <ipojo.core.version>1.8.0</ipojo.core.version> > > > <ipojo.annotations.version>1.8.4</ipojo.annotations.version> > > > <ipojo.maven.plugin.version>1.8.4</ipojo.maven.plugin.version> > > > > <junit4osgi.maven.plugin.version>1.0.0</junit4osgi.maven.plugin.version> > > (I > > > excluded explicitly the dependency to anotation and ipojo) > > > <bundle.maven.plugin.version>2.3.7</bundle.maven.plugin.version> > > > <android.maven.plugin.version>3.1.1</android.maven.plugin.version> > > > Am I doing something wrong ? > > > > > > thanks for your help > > > > > > Pierre > > > > > >

