Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] NoClassDefFoundError When Running eclipse-test-plugin

Hi all,

I have created Eclipse fragment which contains my test classes, I've set up Maven configuration as follows:

<build>
<plugins>
<plugin>
    <groupId>org.eclipse.tycho</groupId>
        <artifactId>tycho-surefire-plugin</artifactId>
        <version>${tycho.version}</version>
        <configuration>
        <defaultStartLevel>
      <level>4</level>
      <autoStart>true</autoStart>
        </defaultStartLevel>
        <includes>**/AllTests.java</includes>
   </configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
  <artifactId>target-platform-configuration</artifactId>
  <version>${tycho.version}</version>
  <configuration>
    <dependency-resolution>
      <extraRequirements>
           <requirement>
              <type>eclipse-plugin</type>
                <id>org.axonframework.axon-core</id>
                <versionRange>0.0.0</versionRange>
           </requirement>
        </extraRequirements>
      </dependency-resolution>
  </configuration>
</plugin>
</plugins>
</build>

But the test keeps failing with the following exception:

Actually the dependency to Axonframework packages is declared as Import-Package in the fragment's host bundle.

Any help would be greatly appreciated.

Thanks & Regards,
Setya

Back to the top