Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Workspace feature dependency resolution is failing

Found it! I was using the shared license option in the information section and it was pointing to the old name. Thanks for the help!

Ken

On Wed, Oct 5, 2016 at 9:31 PM, Ken Keefe <kjkeefe@xxxxxxxxxxxx> wrote:
So, looking closer at my earlier error message, I notice what might be the problem:

Missing requirement: edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier requires 'edu.illinois.mobius.feature.group [2.6.0,2.6.1)' but it could not be found

Shouldn't it be requiring edu.illinois.mobius.feature.feature.group? The id of my feature is edu.illinois.mobius.feature and I read that Tycho adds .feature.group to the end of all feature id's. However, it looks like it is trying to find a feature called edu.illinois.mobius. That feature used to have that name, but I changed it a few days ago. I've checked the xml of both the edu.illinois.mobius.feature and edu.illinois.mobius.advise.feature features and they are using the correct ids. I checked the filesystem directory and it is correct. Is there somewhere else that old feature name could be hanging on? Does tycho cache any of the maven config info? If so, how can I flush that cache?

Thanks,
Ken

PS, Here is the error message with full debugging on in case that sheds some light on things.


[INFO] Computing target platform for MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[DEBUG] Added p2 repository neon (http://download.eclipse.org/releases/neon)
[DEBUG] Using default execution environment 'JavaSE-1.7'
[DEBUG] Registered artifact repository org.eclipse.tycho.repository.registry.facade.RepositoryBlackboardKey(uri=file:/resolution-context-artifacts@/Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature)
[DEBUG] Added 0 locally built units to the target platform
[INFO] Resolving dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[INFO] Resolving class path of MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[DEBUG] Dependency from /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature to nested classpath entry /Users/kjkeefe/git/Mobius-4.6/bundles/edu.illinois.mobius.legacy/jars/java_cup.jar can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[DEBUG] Dependency from /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature to nested classpath entry /Users/kjkeefe/git/Mobius-4.6/bundles/edu.illinois.mobius.legacy/jars/jcommon-1.0.8.jar can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[DEBUG] Dependency from /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature to nested classpath entry /Users/kjkeefe/git/Mobius-4.6/bundles/edu.illinois.mobius.legacy/jars/jfreechart-1.0.4.jar can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[DEBUG] Dependency from /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature to nested classpath entry /Users/kjkeefe/git/Mobius-4.6/bundles/edu.illinois.mobius.legacy/jars/postgresql-8.1-407.jdbc3.jar can not be represented in Maven model and will not be visible to non-OSGi aware Maven plugins
[INFO] Computing target platform for MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
[DEBUG] Added p2 repository neon (http://download.eclipse.org/releases/neon)
[DEBUG] Using default execution environment 'JavaSE-1.7'
[DEBUG] Registered artifact repository org.eclipse.tycho.repository.registry.facade.RepositoryBlackboardKey(uri=file:/resolution-context-artifacts@/Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature)
[DEBUG] Added 0 locally built units to the target platform
[INFO] Resolving dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier to edu.illinois.mobius.feature.group [2.6.0,2.6.1).; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier
[ERROR]   Missing requirement: edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier requires 'edu.illinois.mobius.feature.group [2.6.0,2.6.1)' but it could not be found
[ERROR] 
[ERROR] Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:100)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:266)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.eclipse.tycho.artifacts.DependencyResolutionException: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:202)
at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:116)
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies(P2DependencyResolver.java:367)
at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies(P2DependencyResolver.java:335)
at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:117)
at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:95)
... 14 more
Caused by: org.eclipse.tycho.p2.util.resolution.ResolverException: See log for details
at org.eclipse.tycho.p2.util.resolution.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
at org.eclipse.tycho.p2.util.resolution.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:42)
at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:195)
... 19 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:

On Wed, Oct 5, 2016 at 5:30 PM, Paul Roubekas <paul@orthogroup.holdings> wrote:
I get this a lot.  Double check and triple check the poms for all projects/features for name errors.
The other thing to check is the directories names.  If you did a refactor and changed the name of a project the OS level folders still has the old name.


On 10/5/2016 6:13 PM, Ken Keefe wrote:
I'm comfortable with RCP and e4, but Tycho/Maven is new for me. I'm trying to eventually get my project to build headlessly on a Jenkins build server.

I've been following Vogella's Tycho/Maven tutorial and it was going really well until I tried to build features that depend on other features. My product is based on features. I have one core feature and dozens of other features. All of the other features depend on the core feature. 

Running the Maven build, it looks like it builds all of my bundles just fine and it builds my core feature (edu.illinois.mobius.feature), but then chokes on the first of my "other" features because it can't find the feature that it just finished building.

Here's a snippet of the Maven output:

[INFO] Computing target platform for MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[INFO] Resolving dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[INFO] Resolving class path of MavenProject: edu.illinois.mobius:edu.illinois.mobius.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.feature/.polyglot.build.properties
[INFO] Computing target platform for MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
[INFO] Resolving dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier
[ERROR]   Missing requirement: edu.illinois.mobius.atomic.advise.feature.feature.group 2.6.0.qualifier requires 'edu.illinois.mobius.feature.group [2.6.0,2.6.1)' but it could not be found
[ERROR] 
[ERROR] Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.atomic.advise.feature:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/features/edu.illinois.mobius.atomic.advise.feature/.polyglot.build.properties: See log for details -> [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:


Any advice would be greatly appreciated!

Ken


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user


--
The people that bring you Usque.

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top