I resolved my org.apache.commons.logging issue by rolling my own
version of commons logging into an osgi jar to make Tycho happy.
*sigh*
I can honestly say that I've spent more time dealing with maven,
tycho issues with this project than I have with writing java code.
Building eclipse plugins with Maven is like trying to climb Mt.
Everest in a wheelchair.
Walt
On 10/17/2011 02:47 PM, Walter A. Boring IV wrote:
ok I
believe I found my issue. I was missing the tycho plugins
section in the main/pom.xml.....now I have other issues related to
not being able to find
a suitable org.apache.commons.logging dependency that spring core
has.
Is there a way to get maven/tycho to use an eclipse orbit
repository to fetch osgi versions of jars?
Walt
Hey folks,
I'm having a problem getting tycho to build my project. I
have created a sample version of my project that exhibits the
same problems.
I basically have 2 eclipse plugins, core and main. main depends
on core. core depends on org.springframework.core
3.0.6.RELEASE
when I mvn install from the top level (parent) I get an error
saying that main depends on core, which depends on spring, which
can't be resolved.
when I build core by itself, it builds just fine.
Here is my sample project layout.
project/
project/core/
project/core/pom.xml
project/core/build.properties
project/core/META-INF/
project/core/META-INF/MANIFEST.MF
project/core/src/
project/core/src/main/
project/core/src/main/java/
project/core/src/main/java/foo.java
project/pom.xml
project/main/
project/main/pom.xml
project/main/META-INF/
project/main/META-INF/MANIFEST.MF
I have included the sample project.tgz as an attachment, but if
this attachment doesn't work, you can find it at this url
http://wx.hemna.com/tycho-project.tgz
Here is the error output I get.
waboring@hemna:~/devel/oo/test/project:(master)$ mvn clean
install
[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject:
com.my.test:com.my.test.core:1.0.0-SNAPSHOT @
/home/waboring/devel/oo/test/project/core/pom.xml
[INFO] Adding repository
http://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Adding repository
http://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] 1 operation remaining.
[INFO] Resolving target platform for project MavenProject:
com.my.test:com.my.test.main:1.0.0-SNAPSHOT @
/home/waboring/devel/oo/test/project/main/pom.xml
[INFO] Adding repository (cached)
http://download.eclipse.org/releases/indigo
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO]
{org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,
osgi.ws=gtk, osgi.arch=x86, osgi.os=linux,
org.eclipse.update.install.features=true,
org.osgi.framework.system.packages=}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: com.my.test.main
1.0.0.qualifier
[ERROR] Missing requirement: com.my.test.core 1.0.0.qualifier
requires 'bundle org.springframework.core 3.0.6.RELEASE' but it
could not be found
[ERROR] Cannot satisfy dependency: com.my.test.main
1.0.0.qualifier depends on: bundle com.my.test.core
[1.0.0,2.0.0)
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: "No solution
found because the problem is unsatisfiable.": ["Unable to
satisfy dependency from com.my.test.core 1.0.0.qualifier to
bundle org.springframework.core 3.0.6.RELEASE.", "No solution
found because the problem is unsatisfiable."] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: "No solution found because the
problem is unsatisfiable.": ["Unable to satisfy dependency from
com.my.test.core 1.0.0.qualifier to bundle
org.springframework.core 3.0.6.RELEASE.", "No solution found
because the problem is unsatisfiable."]
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: "No solution found
because the problem is unsatisfiable.": ["Unable to satisfy
dependency from com.my.test.core 1.0.0.qualifier to bundle
org.springframework.core 3.0.6.RELEASE.", "No solution found
because the problem is unsatisfiable."]
at
org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:106)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:102)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:69)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:342)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:162)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:85)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:273)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
[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/InternalErrorException
BUILDING CORE WORKS......
waboring@hemna:~/devel/oo/test/project:(master)$ cd core
waboring@hemna:~/devel/oo/test/project/core:(master)$ mvn
install
[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject:
com.my.test:com.my.test.core:1.0.0-SNAPSHOT @
/home/waboring/devel/oo/test/project/core/pom.xml
[INFO] Adding repository
http://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Adding repository
http://download.eclipse.org/releases/indigo
[INFO] Fetching p2.index (0B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] Fetching p2.index (131B of 131B at 0B/s) from
http://download.eclipse.org/technology/epp/packages/indigo/
[INFO] 1 operation remaining.
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building com.my.test.core 1.0.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier
(default-build-qualifier) @ com.my.test.core ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.13.0:validate-id
(default-validate-id) @ com.my.test.core ---
[INFO]
[INFO] --- tycho-packaging-plugin:0.13.0:validate-version
(default-validate-version) @ com.my.test.core ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources
(default-resources) @ com.my.test.core ---
[WARNING] Using platform encoding (UTF-8 actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/waboring/devel/oo/test/project/core/src/main/resources
[INFO]
[INFO] --- tycho-compiler-plugin:0.13.0:compile
(default-compile) @ com.my.test.core ---
[INFO] Using compile source roots from build.properties
[INFO] Compiling 1 source file to
/home/waboring/devel/oo/test/project/core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ com.my.test.core ---
[WARNING] Using platform encoding (UTF-8 actually) to copy
filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/waboring/devel/oo/test/project/core/src/test/resources
[INFO]
[INFO] --- tycho-packaging-plugin:0.13.0:package-plugin
(default-package-plugin) @ com.my.test.core ---
[INFO] Building jar:
/home/waboring/devel/oo/test/project/core/target/com.my.test.core-1.0.0-SNAPSHOT.jar
[INFO] already added, skipping
[INFO]
[INFO] --- tycho-p2-plugin:0.13.0:p2-metadata
(default-p2-metadata) @ com.my.test.core ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install)
@ com.my.test.core ---
[INFO] Installing
/home/waboring/devel/oo/test/project/core/target/com.my.test.core-1.0.0-SNAPSHOT.jar
to
/home/waboring/.m2/repository/com/my/test/com.my.test.core/1.0.0-SNAPSHOT/com.my.test.core-1.0.0-SNAPSHOT.jar
[INFO] Installing
/home/waboring/devel/oo/test/project/core/pom.xml to
/home/waboring/.m2/repository/com/my/test/com.my.test.core/1.0.0-SNAPSHOT/com.my.test.core-1.0.0-SNAPSHOT.pom
[INFO] Installing
/home/waboring/devel/oo/test/project/core/target/p2content.xml
to
/home/waboring/.m2/repository/com/my/test/com.my.test.core/1.0.0-SNAPSHOT/com.my.test.core-1.0.0-SNAPSHOT-p2metadata.xml
[INFO] Installing
/home/waboring/devel/oo/test/project/core/target/p2artifacts.xml
to
/home/waboring/.m2/repository/com/my/test/com.my.test.core/1.0.0-SNAPSHOT/com.my.test.core-1.0.0-SNAPSHOT-p2artifacts.xml
[INFO]
[INFO] --- tycho-p2-plugin:0.13.0:update-local-index
(default-update-local-index) @ com.my.test.core ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:27.370s
[INFO] Finished at: Mon Oct 17 11:59:17 PDT 2011
[INFO] Final Memory: 70M/736M
[INFO]
------------------------------------------------------------------------
[WARNING] The requested profile "gwtdev" could not be activated
because it does not exist.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
|