A required class is missing: org/codehaus/tycho/BundleResolutionState

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

A required class is missing: org/codehaus/tycho/BundleResolutionState

schoelle
Dear List,

I am trying to understand Maven and Tycho and to get it running for our internal RCP builds (PluginBuilder has issues). Platform is Linux.

I did the following:
- I downloaded eclipse 3.6 and the delta pack
- I have downloaded the latest Maven3 beta and set M2_HOME accordingly
- I checked out tycho from git and run the bootstrap.sh script (after adapting the variables)
- I have created a settings.xml file in ~/.m2 with the following content

<settings>
  <profiles>
    <profile>
      <id>tycho</id>
      <repositories>
        <repository>
          <id>helios</id>
          <layout>p2</layout>
          <url>http://download.eclipse.org/releases/helios/</url>
        </repository>
      </repositories>
    </profile>
  </profiles>
</settings>

- I have created a sample setup following the tutorial available at
http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/

Now, if I run mvn, I get the following output:

[ERROR] Failed to execute goal org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin (default-package-plugin) on project net.comerge.rcptest.plugin: Execution default-package-plugin of goal org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin failed: Unable to load the mojo 'package-plugin' in the plugin 'org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0'. A required class is missing: org/codehaus/tycho/BundleResolutionState

(full output below)

I have read somewhere that this might point to a wrong M2_HOME, but I do not have any other maven installation than the one pointed to by M2_HOME. As far as I see, the build process installed everything to ~/.m2/repository, but a package starting with org.codehaus.tycho cannot be found.

Can anybody help me how to make the required class available?

Thanks,
Bernd

---------------------------------

$M2_HOME/bin/mvn clean install -DgroupId=net.comerge -Dtycho.targetPlatform=/home/schoelle/apps/eclipse
[INFO] Scanning for projects...
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project target platform resolver=local
[INFO] Resolving target platform for project MavenProject: net.comerge:net.comerge.rcptest.feature:1.0.0-SNAPSHOT @ /home/schoelle/workspace/net.comerge.rcptest.feature/pom.xml
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project target platform resolver=local
[INFO] Resolving target platform for project MavenProject: net.comerge:net.comerge.rcptest.plugin:1.0.0-SNAPSHOT @ /home/schoelle/workspace/net.comerge.rcptest.plugin/pom.xml
[WARNING] Dependency at location /home/schoelle/apps/eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.100.I20100511-0800 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[WARNING] Dependency at location /home/schoelle/apps/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project target platform resolver=local
[INFO] Resolving target platform for project MavenProject: net.comerge:net.comerge.rcptest:1.0.0 @ /home/schoelle/workspace/net.comerge.rcptest/pom.xml
[WARNING] Dependency at location /home/schoelle/apps/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520 can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[WARNING] No explicit target runtime environment configuration. Build is platform dependent.
[INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project target platform resolver=local
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] workspace
[INFO] net.comerge.rcptest.plugin
[INFO] net.comerge.rcptest.feature
[INFO] net.comerge.rcptest
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building workspace 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ workspace ---
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) @ workspace ---
[INFO] Installing /home/schoelle/workspace/pom.xml to /home/schoelle/.m2/repository/net/comerge/workspace/0.0.1-SNAPSHOT/workspace-0.0.1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building net.comerge.rcptest.plugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ net.comerge.rcptest.plugin ---
[INFO] Deleting /home/schoelle/workspace/net.comerge.rcptest.plugin/target
[INFO]
[INFO] --- maven-osgi-packaging-plugin:0.7.0:build-qualifier (default-build-qualifier) @ net.comerge.rcptest.plugin ---
[INFO]
[INFO] --- maven-osgi-packaging-plugin:0.7.0:validate-version (default-validate-version) @ net.comerge.rcptest.plugin ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ net.comerge.rcptest.plugin ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/schoelle/workspace/net.comerge.rcptest.plugin/src/main/resources
[INFO]
[INFO] --- maven-osgi-compiler-plugin:0.9.0:compile (default-compile) @ net.comerge.rcptest.plugin ---
[INFO] Using compile source roots from build.properties
[WARNING] Overriding compiler source level 1.5 from POM with source level 1.6 from MANIFEST.MF
[WARNING] Overriding compiler target level 1.5 from POM with target level 1.6 from MANIFEST.MF
[INFO] Compiling 7 source files to /home/schoelle/workspace/net.comerge.rcptest.plugin/target/classes

[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ net.comerge.rcptest.plugin ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/schoelle/workspace/net.comerge.rcptest.plugin/src/test/resources
[INFO]
[INFO] --- maven-osgi-packaging-plugin:0.7.0:package-plugin (default-package-plugin) @ net.comerge.rcptest.plugin ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] workspace ......................................... SUCCESS [0.740s]
[INFO] net.comerge.rcptest.plugin ........................ FAILURE [3.696s]
[INFO] net.comerge.rcptest.feature ....................... SKIPPED
[INFO] net.comerge.rcptest ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.028s
[INFO] Finished at: Tue Aug 17 11:56:48 CEST 2010
[INFO] Final Memory: 71M/230M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin (default-package-plugin) on project net.comerge.rcptest.plugin: Execution default-package-plugin of goal org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin failed: Unable to load the mojo 'package-plugin' in the plugin 'org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0'. A required class is missing: org/codehaus/tycho/BundleResolutionState
-----------------------------------------------------
realm =    plugin>org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/home/schoelle/.m2/repository/org/sonatype/tycho/maven-osgi-packaging-plugin/0.7.0/maven-osgi-packaging-plugin-0.7.0.jar
urls[1] = file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.jar
urls[2] = file:/home/schoelle/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
urls[3] = file:/home/schoelle/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
urls[4] = file:/home/schoelle/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
urls[5] = file:/home/schoelle/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
urls[6] = file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
urls[7] = file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.2/plexus-component-annotations-1.5.2.jar
urls[8] = file:/home/schoelle/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
urls[9] = file:/home/schoelle/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
urls[10] = file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.jar
urls[11] = file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.jar
urls[12] = file:/home/schoelle/.m2/repository/junit/junit/4.1/junit-4.1.jar
urls[13] = file:/home/schoelle/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
urls[14] = file:/home/schoelle/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
urls[15] = file:/home/schoelle/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.jar
urls[16] = file:/home/schoelle/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
urls[17] = file:/home/schoelle/.m2/repository/biz/aQute/bndlib/0.0.236/bndlib-0.0.236.jar
urls[18] = file:/home/schoelle/.m2/repository/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
urls[19] = file:/home/schoelle/.m2/repository/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
Number of foreign imports: 4
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm ClassRealm[plexus.core, parent: null]]

realm =    project>net.comerge:workspace:0.0.1-SNAPSHOT
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Number of foreign imports: 4
import: Entry[import org.sonatype.tycho from realm ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent: ClassRealm[maven.api, parent: null]]]
import: Entry[import org.osgi.framework from realm ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent: ClassRealm[maven.api, parent: null]]]
import: Entry[import org.eclipse.osgi from realm ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent: ClassRealm[maven.api, parent: null]]]
import: Entry[import org.codehaus.tycho from realm ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent: ClassRealm[maven.api, parent: null]]]

realm =    maven.api
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Number of foreign imports: 20
import: Entry[import org.codehaus.plexus.personality from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.logging from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.lifecycle from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.context from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.container from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.configuration from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.component from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.classworlds from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.PlexusContainerException from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.PlexusContainer from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.PlexusConstants from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.DuplicateChildContainerException from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.plexus.ComponentRegistry from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.codehaus.classworlds from realm ClassRealm[plexus.core, parent: null]]
import: Entry[import org.apache.maven from realm ClassRealm[plexus.core, parent: null]]

-----------------------------------------------------: org.codehaus.tycho.BundleResolutionState
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :net.comerge.rcptest.plugin
Reply | Threaded
Open this post in threaded view
|

Re: A required class is missing: org/codehaus/tycho/BundleResolutionState

Igor Fedorenko-2
Can you explain what you are trying to do?

If you just want to develop an RCP application then you don't need to
build Tycho itself and use Tycho 0.9.0 release available from Maven
central repository.

There is simplistic RCP app [1] you can use as an example.

There is also very good article by Mattias Holmqvist [2] that explains
how to setup and build RCP apps with Tycho 0.7.0. Although there is a
couple of improvements/changes in Tycho 0.9.0 that are not covered, most
of the information and examples in the artifact are still applicable.


[1]
http://github.com/sonatype/sonatype-tycho/tree/master/tycho-demo/itp03-crossplatform/
[2]
http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/

--
Regards,
Igor

schoelle wrote:

> Dear List,
>
> I am trying to understand Maven and Tycho and to get it running for our
> internal RCP builds (PluginBuilder has issues). Platform is Linux.
>
> I did the following:
> - I downloaded eclipse 3.6 and the delta pack
> - I have downloaded the latest Maven3 beta and set M2_HOME accordingly
> - I checked out tycho from git and run the bootstrap.sh script (after
> adapting the variables)
> - I have created a settings.xml file in ~/.m2 with the following content
>
> <settings>
>   <profiles>
>     <profile>
>       <id>tycho</id>
>       <repositories>
>         <repository>
>           <id>helios</id>
>           <layout>p2</layout>
>           <url>http://download.eclipse.org/releases/helios/</url>
>         </repository>
>       </repositories>
>     </profile>
>   </profiles>
> </settings>
>
> - I have created a sample setup following the tutorial available at
> http://mattiasholmqvist.se/2010/03/building-with-tycho-part-2-rcp-applications/
>
> Now, if I run mvn, I get the following output:
>
> [ERROR] Failed to execute goal
> org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin
> (default-package-plugin) on project net.comerge.rcptest.plugin: Execution
> default-package-plugin of goal
> org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin failed:
> Unable to load the mojo 'package-plugin' in the plugin
> 'org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0'. A required class is
> missing: org/codehaus/tycho/BundleResolutionState
>
> (full output below)
>
> I have read somewhere that this might point to a wrong M2_HOME, but I do not
> have any other maven installation than the one pointed to by M2_HOME. As far
> as I see, the build process installed everything to ~/.m2/repository, but a
> package starting with org.codehaus.tycho cannot be found.
>
> Can anybody help me how to make the required class available?
>
> Thanks,
> Bernd
>
> ---------------------------------
>
> $M2_HOME/bin/mvn clean install -DgroupId=net.comerge
> -Dtycho.targetPlatform=/home/schoelle/apps/eclipse
> [INFO] Scanning for projects...
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project
> target platform resolver=local
> [INFO] Resolving target platform for project MavenProject:
> net.comerge:net.comerge.rcptest.feature:1.0.0-SNAPSHOT @
> /home/schoelle/workspace/net.comerge.rcptest.feature/pom.xml
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project
> target platform resolver=local
> [INFO] Resolving target platform for project MavenProject:
> net.comerge:net.comerge.rcptest.plugin:1.0.0-SNAPSHOT @
> /home/schoelle/workspace/net.comerge.rcptest.plugin/pom.xml
> [WARNING] Dependency at location
> /home/schoelle/apps/eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.2.100.I20100511-0800
> can not be represented in Maven model and will not be visible to non-OSGi
> aware Maven plugins
> [WARNING] Dependency at location
> /home/schoelle/apps/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520
> can not be represented in Maven model and will not be visible to non-OSGi
> aware Maven plugins
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project
> target platform resolver=local
> [INFO] Resolving target platform for project MavenProject:
> net.comerge:net.comerge.rcptest:1.0.0 @
> /home/schoelle/workspace/net.comerge.rcptest/pom.xml
> [WARNING] Dependency at location
> /home/schoelle/apps/eclipse/plugins/org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100520
> can not be represented in Maven model and will not be visible to non-OSGi
> aware Maven plugins
> [WARNING] No explicit target runtime environment configuration. Build is
> platform dependent.
> [INFO] tycho.targetPlatform=/home/schoelle/apps/eclipse overrides project
> target platform resolver=local
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] workspace
> [INFO] net.comerge.rcptest.plugin
> [INFO] net.comerge.rcptest.feature
> [INFO] net.comerge.rcptest
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building workspace 0.0.1-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ workspace ---
> [INFO]
> [INFO] --- maven-install-plugin:2.3:install (default-install) @ workspace
> ---
> [INFO] Installing /home/schoelle/workspace/pom.xml to
> /home/schoelle/.m2/repository/net/comerge/workspace/0.0.1-SNAPSHOT/workspace-0.0.1-SNAPSHOT.pom
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building net.comerge.rcptest.plugin 1.0.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> net.comerge.rcptest.plugin ---
> [INFO] Deleting /home/schoelle/workspace/net.comerge.rcptest.plugin/target
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.7.0:build-qualifier
> (default-build-qualifier) @ net.comerge.rcptest.plugin ---
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.7.0:validate-version
> (default-validate-version) @ net.comerge.rcptest.plugin ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> net.comerge.rcptest.plugin ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /home/schoelle/workspace/net.comerge.rcptest.plugin/src/main/resources
> [INFO]
> [INFO] --- maven-osgi-compiler-plugin:0.9.0:compile (default-compile) @
> net.comerge.rcptest.plugin ---
> [INFO] Using compile source roots from build.properties
> [WARNING] Overriding compiler source level 1.5 from POM with source level
> 1.6 from MANIFEST.MF
> [WARNING] Overriding compiler target level 1.5 from POM with target level
> 1.6 from MANIFEST.MF
> [INFO] Compiling 7 source files to
> /home/schoelle/workspace/net.comerge.rcptest.plugin/target/classes
>
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:testResources
> (default-testResources) @ net.comerge.rcptest.plugin ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory
> /home/schoelle/workspace/net.comerge.rcptest.plugin/src/test/resources
> [INFO]
> [INFO] --- maven-osgi-packaging-plugin:0.7.0:package-plugin
> (default-package-plugin) @ net.comerge.rcptest.plugin ---
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] workspace ......................................... SUCCESS [0.740s]
> [INFO] net.comerge.rcptest.plugin ........................ FAILURE [3.696s]
> [INFO] net.comerge.rcptest.feature ....................... SKIPPED
> [INFO] net.comerge.rcptest ............................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 11.028s
> [INFO] Finished at: Tue Aug 17 11:56:48 CEST 2010
> [INFO] Final Memory: 71M/230M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin
> (default-package-plugin) on project net.comerge.rcptest.plugin: Execution
> default-package-plugin of goal
> org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0:package-plugin failed:
> Unable to load the mojo 'package-plugin' in the plugin
> 'org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0'. A required class is
> missing: org/codehaus/tycho/BundleResolutionState
> -----------------------------------------------------
> realm =    plugin>org.sonatype.tycho:maven-osgi-packaging-plugin:0.7.0
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> urls[0] =
> file:/home/schoelle/.m2/repository/org/sonatype/tycho/maven-osgi-packaging-plugin/0.7.0/maven-osgi-packaging-plugin-0.7.0.jar
> urls[1] =
> file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.1/plexus-utils-2.0.1.jar
> urls[2] =
> file:/home/schoelle/.m2/repository/org/apache/xbean/xbean-reflect/3.4/xbean-reflect-3.4.jar
> urls[3] =
> file:/home/schoelle/.m2/repository/log4j/log4j/1.2.12/log4j-1.2.12.jar
> urls[4] =
> file:/home/schoelle/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar
> urls[5] =
> file:/home/schoelle/.m2/repository/com/google/code/google-collections/google-collect/snapshot-20080530/google-collect-snapshot-20080530.jar
> urls[6] =
> file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
> urls[7] =
> file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.2/plexus-component-annotations-1.5.2.jar
> urls[8] =
> file:/home/schoelle/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> urls[9] =
> file:/home/schoelle/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> urls[10] =
> file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-12/plexus-archiver-1.0-alpha-12.jar
> urls[11] =
> file:/home/schoelle/.m2/repository/org/codehaus/plexus/plexus-io/1.0-alpha-4/plexus-io-1.0-alpha-4.jar
> urls[12] = file:/home/schoelle/.m2/repository/junit/junit/4.1/junit-4.1.jar
> urls[13] =
> file:/home/schoelle/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
> urls[14] =
> file:/home/schoelle/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
> urls[15] =
> file:/home/schoelle/.m2/repository/org/apache/maven/surefire/surefire-booter/2.4.3/surefire-booter-2.4.3.jar
> urls[16] =
> file:/home/schoelle/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
> urls[17] =
> file:/home/schoelle/.m2/repository/biz/aQute/bndlib/0.0.236/bndlib-0.0.236.jar
> urls[18] =
> file:/home/schoelle/.m2/repository/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
> urls[19] =
> file:/home/schoelle/.m2/repository/org/apache/maven/maven-archiver/2.4/maven-archiver-2.4.jar
> Number of foreign imports: 4
> import: Entry[import org.codehaus.plexus.util.xml.pull.XmlSerializer from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import
> org.codehaus.plexus.util.xml.pull.XmlPullParserException from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.util.xml.pull.XmlPullParser from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.util.xml.Xpp3Dom from realm
> ClassRealm[plexus.core, parent: null]]
>
> realm =    project>net.comerge:workspace:0.0.1-SNAPSHOT
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> Number of foreign imports: 4
> import: Entry[import org.sonatype.tycho from realm
> ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent:
> ClassRealm[maven.api, parent: null]]]
> import: Entry[import org.osgi.framework from realm
> ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent:
> ClassRealm[maven.api, parent: null]]]
> import: Entry[import org.eclipse.osgi from realm
> ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent:
> ClassRealm[maven.api, parent: null]]]
> import: Entry[import org.codehaus.tycho from realm
> ClassRealm[extension>org.sonatype.tycho:tycho-maven-plugin:0.9.0, parent:
> ClassRealm[maven.api, parent: null]]]
>
> realm =    maven.api
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> Number of foreign imports: 20
> import: Entry[import org.codehaus.plexus.personality from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.logging from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.lifecycle from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.context from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.container from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.configuration from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.component from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.classworlds from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusContainerException from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.PlexusConstants from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.MutablePlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DuplicateChildContainerException
> from realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultPlexusContainer from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultContainerConfiguration from
> realm ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.DefaultComponentRegistry from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.ContainerConfiguration from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.plexus.ComponentRegistry from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.codehaus.classworlds from realm
> ClassRealm[plexus.core, parent: null]]
> import: Entry[import org.apache.maven from realm ClassRealm[plexus.core,
> parent: null]]
>
> -----------------------------------------------------:
> org.codehaus.tycho.BundleResolutionState
> -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :net.comerge.rcptest.plugin
Reply | Threaded
Open this post in threaded view
|

Re: A required class is missing: org/codehaus/tycho/BundleResolutionState

schoelle
As stated, I had tried the tutorial at [2], but I did not know about [1]. I started new from the example and this time everything works fine. The situation is a little unsatisfying as I do not know what the fault in the old configuration was - but I can live with that. ;-)

Thanks for the hint and for updating the example file.

Regards,
  Bernd
Reply | Threaded
Open this post in threaded view
|

Re: A required class is missing: org/codehaus/tycho/BundleResolutionState

chill
Hi,

I'm getting the same error when building a product. How did you solve this?

Regards
Christian
Reply | Threaded
Open this post in threaded view
|

Re: A required class is missing: org/codehaus/tycho/BundleResolutionState

chill
Removed the plugin from the POM file:
<plugin>
  <groupId>org.sonatype.tycho</groupId>
  <artifactId>maven-osgi-packaging-plugin</artifactId>
  <version>0.7.0</version>
  <configuration>
    <environments>
      <environment>
        <os>macosx</os>
        <ws>cocoa</ws>
        <arch>x86</arch>
      </environment>
    </environments>
  </configuration>
</plugin>