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

Bug 355793

Summary: [modeling] create poms to run build and tests
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Miles Parker <milesparker>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: b.muskalla
Version: unspecified   
Target Milestone: 0.9   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 355025, 356107    
Attachments:
Description Flags
fix
none
updated fix none

Description Steffen Pingel CLA 2011-08-25 02:32:17 EDT
Every plug-in and feature should have a pom.xml to integrate it with the build and automated tests.
Comment 1 Miles Parker CLA 2011-08-29 13:00:13 EDT
OK, naturally all of my build experience is with buckminster, so I don't have the first clue how to set this up. Can someone send me a reference for how to get started or should I just hand-copy form other projects?
Comment 2 Steffen Pingel CLA 2011-08-29 13:27:03 EDT
You need one pom.xml per project which you can copy from other incubator projects. All you need to change is the artifact id which needs to match the bundle id. Additionally, each module (project) needs to be listed in the parent pom and all features should be added to the site.xml in org.eclipse.mylyn.incubator-site. 

You can run "mvn clean verify" in the top-level directory to run tests and create the site.
Comment 3 Miles Parker CLA 2011-08-29 14:55:32 EDT
And of course, given my luck with builds, it croaks even without my changes to site.xml. :(

[INFO] Resolving target platform for project MavenProject: org.eclipse.mylyn.incubator:org.eclipse.mylyn.monitor.study:1.0.0 @ /Users/milesparker/git/org.eclipse.mylyn.incubator/org.eclipse.mylyn.examples.monitor.study/pom.xml
[WARNING] Could not parse repository URL
java.net.MalformedURLException: no protocol: ${platform-repository-url}
	at java.net.URL.<init>(URL.java:567)
	at java.net.URL.<init>(URL.java:464)
	at java.net.URL.<init>(URL.java:413)
	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:248)
	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)
	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: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)
[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] Fetching p2.index (0B of 126B at 0B/s) from http://download.eclipse.org/mylyn/snapshots/weekly/
[INFO] Fetching p2.index (126B of 126B at 0B/s) from http://download.eclipse.org/mylyn/snapshots/weekly/
[INFO] Adding repository http://download.eclipse.org/mylyn/snapshots/weekly/
[INFO] Fetching p2.index (0B of 126B at 0B/s) from http://download.eclipse.org/mylyn/snapshots/weekly/
[INFO] Fetching p2.index (126B of 126B at 0B/s) from http://download.eclipse.org/mylyn/snapshots/weekly/
[INFO] 1 operation remaining.
[INFO] Adding repository http://download.eclipse.org/mylyn/snapshots/weekly/
[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=win32, osgi.arch=x86, osgi.os=win32, org.eclipse.update.install.features=true, org.osgi.framework.system.packages=}
[INFO] [Software being installed: org.eclipse.mylyn.monitor.study 1.0.0, Missing requirement: org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 requires 'bundle org.eclipse.ui 0.0.0' but it could not be found, Cannot satisfy dependency: org.eclipse.mylyn.monitor.study 1.0.0 depends on: bundle org.eclipse.mylyn.monitor.ui 0.0.0]
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from javax.activation 1.1.0.v201105071233 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from javax.xml 1.3.4.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xerces 2.8.0.v200803070308 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.1.0.v200806030311 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.2.0.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.net 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.jface 3.3.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.expressions 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.context.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.pde.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.core 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.filesystem 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.ide 0.0.0.", "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 javax.activation 1.1.0.v201105071233 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from javax.xml 1.3.4.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xerces 2.8.0.v200803070308 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.1.0.v200806030311 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.2.0.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.net 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.jface 3.3.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.expressions 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.context.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.pde.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.core 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.filesystem 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.ide 0.0.0.", "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: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)
Caused by: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from javax.activation 1.1.0.v201105071233 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from javax.xml 1.3.4.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xerces 2.8.0.v200803070308 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.1.0.v200806030311 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.apache.xml.resolver 1.2.0.v201005080400 to bundle org.eclipse.osgi 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.net 3.7.0.I20110828-2032 to bundle org.eclipse.core.net 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.screenshots 3.7.0.I20110828-2032 to bundle org.eclipse.jface 3.3.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.expressions 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.commons.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.context.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.core 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.pde.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jdt.core 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.study 1.0.0 to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.ui 3.7.0.I20110828-2032 to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.runtime 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.resources 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.jface.text 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.browser 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.editors 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.workbench.texteditor 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.forms 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.core.filesystem 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.monitor.usage 3.7.0.qualifier to bundle org.eclipse.ui.ide 0.0.0.", "No solution found because the problem is unsatisfiable."]
	at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:101)
	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:343)
	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]
Comment 4 Steffen Pingel CLA 2011-08-29 15:16:40 EDT
Can you rebase/merge your changes against the latest master from Eclipse.org? The errors looks like it's caused by an older build configuration that expects activation of a profile (-Pindigo might do the trick).
Comment 5 Steffen Pingel CLA 2011-08-29 15:25:15 EDT
BTW, you will need to rename plug-ins to avoid conflicts with feature ids (bug bug 356009). I suggest that append .ui following the standard convenction that we have used for bridges:

pre. 
 org.eclipse.mylyn.modeling.emf.ui    (was: org.eclipse.mylyn.modeling.emf)
 org.eclipse.mylyn.modeling.gmf.ui    (was: org.eclipse.mylyn.modeling.gmf)
 org.eclipse.mylyn.modeling.ecoretools.ui    (was: org.eclipse.mylyn.ecoretools)
 org.eclipse.mylyn.modeling.papyrus.ui    (was: org.eclipse.mylyn.papyrus)

I'm unsure about org.eclipse.mylyn.modeling.core/ui. Where do these fit in component wise? If they are logically part of the EMF component they should be in that namespace:

pre. 
 org.eclipse.mylyn.modeling.emf.core/bridge/ui
Comment 6 Miles Parker CLA 2011-08-29 15:47:09 EDT
(In reply to comment #5)
> 
> pre.
> org.eclipse.mylyn.modeling.emf.ui    (was: org.eclipse.mylyn.modeling.emf)
> org.eclipse.mylyn.modeling.gmf.ui    (was: org.eclipse.mylyn.modeling.gmf)
> org.eclipse.mylyn.modeling.ecoretools.ui    (was: org.eclipse.mylyn.ecoretools)
> org.eclipse.mylyn.modeling.papyrus.ui    (was: org.eclipse.mylyn.papyrus)

Those don't really fit well here. emf includes non ui components and ecoretools gmf and papyrus aren't ui plugins per se except in the sense that all modeling tools are ui. They all include nominally core stuff, but it would be silly to pull that out as the projects are already really granular as it is.

My inclination given this limitation would be to just rename the features using some kind of standard qualifier, i.e. "_feature".

> I'm unsure about org.eclipse.mylyn.modeling.core/ui. Where do these fit in
> component wise? If they are logically part of the EMF component they should be
> in that namespace:
> 
> org.eclipse.mylyn.modeling.emf.core/bridge/ui

I'm not sure I understand the question..but the idea of core is that it really is exclusive of any ui dependencies. It basically supports semantics for mapping from domain models to the (implicit) mylyn model.
Comment 7 Steffen Pingel CLA 2011-08-29 16:02:46 EDT
(In reply to comment #6)
> Those don't really fit well here. emf includes non ui components and ecoretools
> gmf and papyrus aren't ui plugins per se except in the sense that all modeling
> tools are ui. They all include nominally core stuff, but it would be silly to
> pull that out as the projects are already really granular as it is.

Don't all of these have ui dependencies (concerning emf see below)? If so, the standard convention is to call them .ui.

We generally use a separate namespace per component and plug-ins always have one qualifying segment (org.eclipse.mylyn being the only exception). That way we can consistently split out core or doc bundles later if we decide to modularize further.

> My inclination given this limitation would be to just rename the features using
> some kind of standard qualifier, i.e. "_feature".

We have deprecated the use of "_feature".

> > I'm unsure about org.eclipse.mylyn.modeling.core/ui. Where do these fit in
> > component wise? If they are logically part of the EMF component they should be
> > in that namespace:
> >
> > org.eclipse.mylyn.modeling.emf.core/bridge/ui
> 
> I'm not sure I understand the question..but the idea of core is that it really
> is exclusive of any ui dependencies. It basically supports semantics for mapping
> from domain models to the (implicit) mylyn model.

Okay, can we then rename org.eclipse.mylyn.modeling.core to org.eclipse.mylyn.modeling.emf.core and merge it with org.eclipse.mylyn.modeling.emf? Even though core does not have an EMF dependency all components depend on the EMF component so this dependency exists anyways. I don't see any need to provide bundles for non-EMF modeling bundles or did that come up already?

Likewise, org.eclipse.mylyn.modeling.ui would become org.eclipse.mylyn.modeling.emf.ui since it's part of the EMF component. There is one dependency requirement on org.eclipse.emf.ecoretools.diagram in org.eclipse.mylyn.modeling.emf.ui though that does not look quite in the right place?
Comment 8 Steffen Pingel CLA 2011-08-29 16:05:35 EDT
If you don't think it's worth creating a separate namespace for emf we can alternatively keep org.eclipse.modeling.core and org.eclipse.modeling.ui and rename the EMF feature to org.eclipse.modeling.
Comment 9 Miles Parker CLA 2011-08-29 19:40:21 EDT
[Namespace issues continued in bug 355068.]
Comment 10 Miles Parker CLA 2011-08-31 12:23:33 EDT
Just curious, would putting features and plugins into separate directories as some other projects do resolve any of the Tycho related issues?
Comment 11 Miles Parker CLA 2011-08-31 12:42:35 EDT
(In reply to comment #5)
> BTW, you will need to rename plug-ins to avoid conflicts with feature ids (bug
> bug 356009).

Steffen, will you take a quick pass at the latest and see if the ids makes sense?
Comment 12 Miles Parker CLA 2011-08-31 12:53:21 EDT
OK it looks like -Pindigo got me past that one. Now I'm getting some kind of resolution error with the site setup -- for simplicity I've reduced it to just build one feature like so:

<?xml version="1.0" encoding="UTF-8"?>
<site>
   <description url="http://download.eclipse.org/mylyn/incubator">
      Mylyn Incubator
   </description>
   <feature url="features/org.eclipse.mylyn.modeling.emf_0.0.0.jar" id="org.eclipse.mylyn.modeling.emf" version="0.0.0">
      <category name="Modeling"/>
   </feature>
   <category-def name="Modeling" label="Modeling">
      <description>
         Mylyn Modeling Integration
      </description>
   </category-def>
</site>

But regardless tycho can't resolve my local stuff:

[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from incubator-site raw:3.7.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):3.7.0-SNAPSHOT to org.eclipse.mylyn.modeling.emf.feature.group 0.0.0.", "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 incubator-site raw:3.7.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):3.7.0-SNAPSHOT to org.eclipse.mylyn.modeling.emf.feature.group 0.0.0.", "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: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)
Caused by: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from incubator-site raw:3.7.0.'SNAPSHOT'/format(n[.n=0;[.n=0;[-S]]]):3.7.0-SNAPSHOT to org.eclipse.mylyn.modeling.emf.feature.group 0.0.0.", "No solution found because the problem is unsatisfiable."]
	at org.eclipse.tycho.p2.impl.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:101)
	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:343)
	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
	
	Again caveat, I have no clue about tycho so I may be missing something obvious.
Comment 13 Steffen Pingel CLA 2011-08-31 14:49:10 EDT
(In reply to comment #10)
> Just curious, would putting features and plugins into separate directories as
> some other projects do resolve any of the Tycho related issues?

No, directory structure does not make a difference.

(In reply to comment #12)
> OK it looks like -Pindigo got me past that one. Now I'm getting some kind of
> resolution error with the site setup -- for simplicity I've reduced it to just
> build one feature like so:

Is the site referencing the right feature ids? Are all sub-modules included in the parent pom?
Comment 14 Steffen Pingel CLA 2011-08-31 16:11:27 EDT
(In reply to comment #11)
> (In reply to comment #5)
> > BTW, you will need to rename plug-ins to avoid conflicts with feature ids (bug
> > bug 356009).
> 
> Steffen, will you take a quick pass at the latest and see if the ids makes
> sense?

Thanks for making those changes. The current structure looks great.
Comment 15 Miles Parker CLA 2011-08-31 17:52:44 EDT
(In reply to comment #13)
> Is the site referencing the right feature ids?

Yes, I can build the site manually using PDE tools. (Installing it is different matter, but all of the artifacts are there.)

> Are all sub-modules included in the parent pom?

Not exactly sure what this means. I tried with an absolutly minimal set, just the emf-feature which has no other dependencies.
Comment 16 Steffen Pingel CLA 2011-09-01 03:55:04 EDT
The parent pom at modeling-bridge/pom.xml needs to list all Maven sub-modules for Tycho to build and resolve the bundles. Currently I only see org.eclipse.mylyn.incubator-site in there.
Comment 17 Miles Parker CLA 2011-09-01 12:24:03 EDT
OK, now I'm lost. I'm just following comment 2 here. I don't know where modeling-bridge is/should be. Could you point me to a similar working build that I can copy?
Comment 18 Steffen Pingel CLA 2011-09-01 12:42:45 EDT
Created attachment 202619 [details]
fix
Comment 19 Steffen Pingel CLA 2011-09-01 12:43:17 EDT
I have attached a patch that you can apply to fix ids and modules in the poms.
Comment 20 Steffen Pingel CLA 2011-09-02 07:52:09 EDT
Created attachment 202663 [details]
updated fix
Comment 21 Steffen Pingel CLA 2011-09-02 08:42:08 EDT
I have pushed a review with the changes of the last patch: http://review.mylyn.org/#change,11

The build fails with this exception:

Caused by: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.eclipse.jdt.core 3.7.0.v_OTDT_r200_201106070730 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).", "Unable to satisfy dependency from org.eclipse.mylyn.modeling.tests 0.9.0.qualifier to bundle org.eclipse.mylyn.context.tests 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.modeling.tests 0.9.0.qualifier to bundle org.eclipse.mylyn.context.tests 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.modeling.tests 0.9.0.qualifier to bundle org.eclipse.mylyn.commons.tests 0.0.0.", "Unable to satisfy dependency from org.eclipse.mylyn.modeling.tests 0.9.0.qualifier to bundle org.eclipse.mylyn.resources.tests 0.0.0.", "No solution found because the problem is unsatisfiable."]

The test util dependencies need to be consumed from org.eclipse.mylyn.commons.sdk.util instead of org.eclipse.mylyn.commons.tests. The latter is not distributed.
Comment 22 Miles Parker CLA 2011-09-02 16:52:52 EDT
Made the change to ..tests. I still need to break that project up but hopefuly that will fix that issue for short term.
Comment 23 Steffen Pingel CLA 2011-09-02 17:53:19 EDT
I have fixed the parent pom. Looks like the build is now working! There are test failures but those are likely related to the test configuration and we can worry about that later: http://ci.mylyn.org/job/mylyn-incubator-trigger/19/console .

Thanks a lot!
Comment 24 Miles Parker CLA 2011-09-02 18:05:15 EDT
No, thank you! I'm playing around with dependencies now, and I'm going to see if I the update site is working.