Bug 464568 - Missing requirement: org.eclipse.sisu.plexus 0.9.0.qualifier requires 'package org.eclipse.sisu 0.0.0' but it could not be found
Summary: Missing requirement: org.eclipse.sisu.plexus 0.9.0.qualifier requires 'packag...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sisu (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Stuart McCulloch CLA
QA Contact:
URL:
Whiteboard:
Keywords: core, greatbug
Depends on:
Blocks:
 
Reported: 2015-04-14 03:28 EDT by Ilia Sretenskii CLA
Modified: 2021-10-25 16:48 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Sretenskii CLA 2015-04-14 03:28:27 EDT
Build Identifier: 0.3.0

I have checked out the master branch of org.eclipse.sisu.plexus
But Maven reports that some strang requirement can not be found

$ mvn clean install
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository
[INFO] Adding repository http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/org.eclipse.sisu.inject/build.extra?id=8ebc2f9074d5208d9e3fe32d4356093d9dd23ca5
[INFO] Fetching content.xml from http://git.eclipse.org/c/sisu/org.eclipse.sisu.inject.git/plain/org.eclipse.sisu.inject/build.extra/content.xml?id=8ebc2f9074d5208d9e3fe32d4356093d9dd23ca5 (0B at 0B/s)
[INFO] Adding repository http://git.eclipse.org/c/sisu/org.eclipse.sisu.plexus.git/plain/org.eclipse.sisu.plexus/build.extra?id=2bbb73635360a54188dbf1dead24e8967d83c7dc
[INFO] Fetching content.xml from http://git.eclipse.org/c/sisu/org.eclipse.sisu.plexus.git/plain/org.eclipse.sisu.plexus/build.extra/content.xml?id=2bbb73635360a54188dbf1dead24e8967d83c7dc (0B at 0B/s)
[INFO] Fetching p2.index from http://download.eclipse.org/eclipse/updates/3.7/ (0B at 0B/s)
[INFO] Adding repository http://download.eclipse.org/eclipse/updates/3.7
[INFO] Resolving dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.sisu.plexus 0.9.0.qualifier
[ERROR]   Missing requirement: org.eclipse.sisu.plexus 0.9.0.qualifier requires 'package org.eclipse.sisu 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml: 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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionException

Reproducible: Always

Steps to Reproduce:
1. Checkout from https://github.com/eclipse/sisu.plexus
2. Run Maven command: mvn clean install
Actual Results:  
There is reported the mentioned error aboiut missing requirement

Expected Results:  
It is expected that the command should be performed without errors

I have tested it also in IDEA and Eclipse
Comment 1 Ilia Sretenskii CLA 2015-04-14 03:31:10 EDT
[INFO] Resolving dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml
[DEBUG] No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu 0.0.0.; Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu.bean 0.0.0.; Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu.inject 0.0.0.; Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu.launch 0.0.0.; Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu.space 0.0.0.; Unable to satisfy dependency from org.eclipse.sisu.plexus 0.9.0.qualifier to package org.eclipse.sisu.wire 0.0.0.; No solution found because the problem is unsatisfiable.]
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: org.eclipse.sisu.plexus 0.9.0.qualifier
[ERROR]   Missing requirement: org.eclipse.sisu.plexus 0.9.0.qualifier requires 'package org.eclipse.sisu 0.0.0' but it could not be found
[ERROR]
[ERROR] See http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for help.
[ERROR] Cannot resolve dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml: See log for details -> [Help 1]
org.apache.maven.MavenExecutionException: Cannot resolve dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:82)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        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: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: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: org.eclipse.tycho.core.ee.shared.BuildFailureException: Cannot resolve dependencies of MavenProject: org.eclipse.sisu:org.eclipse.sisu.plexus:0.9.0-SNAPSHOT @ C:\eclipse\sisu.plexus\org.eclipse.sisu.plexus\pom.xml
        at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:199)
        at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:113)
        at org.eclipse.tycho.p2.resolver.P2DependencyResolver.doResolveDependencies(P2DependencyResolver.java:360)
        at org.eclipse.tycho.p2.resolver.P2DependencyResolver.resolveDependencies(P2DependencyResolver.java:333)
        at org.eclipse.tycho.core.resolver.DefaultTychoResolver.resolveProject(DefaultTychoResolver.java:117)
        at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
        ... 13 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:86)
        at org.eclipse.tycho.p2.util.resolution.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:42)
        at org.eclipse.tycho.p2.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:192)
        ... 18 more
[ERROR]
[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/MavenExecutionException
Comment 2 Stuart McCulloch CLA 2015-04-14 06:02:39 EDT
Hi Ilia,

At the moment in order to build the master branch of org.eclipse.sisu.plexus you first need to build the master branch of org.eclipse.sisu.inject from git://git.eclipse.org/gitroot/sisu/org.eclipse.sisu.inject.git (or the mirror at https://github.com/eclipse/sisu.inject/)

Sisu's build uses Tycho (http://eclipse.org/tycho/) and the error below is saying that it can't find the dependency that provides the 'org.eclipse.sisu' package in Tycho's local index. Building org.eclipse.sisu.inject first will update the local P2 index so it can find the project. (ie. just like you occasionally need to build a related project to satisfy a snapshot dependency)

I'll use this issue to improve the org.eclipse.sisu.plexus build to work better out-of-the-box when you haven't built the upstream org.eclipse.sisu.inject project, until then you'll need to have both projects open in your IDE.

PS. we have a developer mailing list if you have further questions about the build or code: https://dev.eclipse.org/mailman/listinfo/sisu-dev/
Comment 3 Stuart McCulloch CLA 2015-08-22 12:51:03 EDT
Fixed in https://git.eclipse.org/c/sisu/org.eclipse.sisu.plexus.git/commit/?id=1139e6aa91f3d9382d9e7c10172680151b0a83f2 by getting hudson to archive the last successful update site (in unpacked form which P2 can consume for sisu-plexus).