Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348342

Summary: unable to build SDK feature separately
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: TychoAssignee: Tobias Oberlies <t-oberlies>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: t-oberlies
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Steffen Pingel CLA 2011-06-05 15:17:24 EDT
The org.eclipse.mylyn.sdk_feature includes several source plug-ins. If a build is started from the "root" pom that references these bundles the SDK feature is build properly. If I however start a build from the SDK feature pom to only build that particular feature it fails with the error below even though the source bundles are available in the local repository.

org.eclipse.mylyn/org.eclipse.mylyn.sdk-feature$ mvn package -Phelios
[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject: org.eclipse.mylyn:org.eclipse.mylyn.sdk_feature:3.6.0-SNAPSHOT @ /home/spingel/mylyn/src/org.eclipse.mylyn/org.eclipse.mylyn.sdk-feature/pom.xml
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository/
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20110523182458/repository/
[INFO] Adding repository http://download.eclipse.org/releases/helios
[INFO] Adding repository http://download.eclipse.org/releases/helios
[INFO] Adding repository http://download.eclipse.org/egit/updates
[INFO] Adding repository http://download.eclipse.org/egit/updates
[INFO] Adding repository http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
[INFO] Adding repository http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site
[INFO] Downloading org.eclipse.mylyn.help.ui.source
[INFO] Downloading org.eclipse.mylyn.source
[INFO] Downloading org.eclipse.mylyn.context.core.source
[INFO] Downloading org.eclipse.mylyn.tasks.ui.source
[INFO] Downloading org.eclipse.mylyn.tasks.search.source
[INFO] Downloading org.eclipse.mylyn.monitor.ui.source
...
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not download artifacts from any repository
   osgi.bundle,org.eclipse.mylyn.help.ui.source,3.6.0.I20110531-1542
   osgi.bundle,org.eclipse.mylyn.source,3.6.0.I20110531-1542
   osgi.bundle,org.eclipse.mylyn.context.core.source,3.6.0.I20110531-1542
   osgi.bundle,org.eclipse.mylyn.tasks.ui.source,3.6.0.I20110531-1542
   osgi.bundle,org.eclipse.mylyn.tasks.search.source,3.6.0.I20110531-1542
   osgi.bundle,org.eclipse.mylyn.monitor.ui.source,3.6.0.I20110531-1542
...
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:165)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
Comment 1 Tobias Oberlies CLA 2011-06-10 13:06:49 EDT
Just to make sure: You did build your entire project (including sources) with @install@ before, right?

Also, I am guessing that this issue has been fixed in the meanwhile, because we added an integration test (tycho-its/projects/pomDependencyConsider.p2Data.reuse.ReuseTest) in 0.13.0-SNAPSHOT which tests that locally built source artifacts can be used in a subsequent build.

Feel free to re-open if my guess was wrong :-)