Hi,
Are you talking about the maven-junit4osgi-plugin ?
In fact, I recently move the plugin to the junit4osgi folder (in the iPOJO
trunk). Moreover, I change the groupId of the junit4osgi framework (which
was ipojo.examples) to org.apache.felix.
So to use the plugin, use the following plugin configuration:
<plugin> <!-- maven-junit4osgi-plugin -->
<groupId>org.apache.felix</groupId>
<artifactId>maven-junit4osgi-plugin
</artifactId>
<version>1.1.0-SNAPSHOT</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
<configuration>
<deployProjectArtifact>false</deployProjectArtifact>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <!-- surefire configuration to generate the report page
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<showSucess>true</showSucess>
<reportsDirectories>
<param>target/junit4osgi-reports</param>
</reportsDirectories>
</configuration>
</plugin>
But first, you need to compile the iPOJO trunk and examples. From the iPOJO
folder launch the following maven command:
mvn clean install -Pexamples
Then, you can launch test execution with:
mvn clean integration-test
This command starts Felix and the junit4osgi framework and deploys every
bundles specified as maven dependencies in the 'test' scope
(<scope>test</scope>). Then, tests are executed.
Hope this helps,
Regards,
Clement
2008/12/6 Brad Cox <[EMAIL PROTECTED]>
> What's the secret to making JUnit4OSGi work? This article just mentions
> plugin options, not dependencies I I think I need to add to my poms.
>
> org.apache.felix.ipojo.junit4osgi does not exist
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>