I wrote a few days ago about trouble building features and that is working now. I'm on to the next task of trying to get my RCP product constructed from those features. It looks like Maven is saying it can't find the product. I don't understand how Maven/Tycho can put the project name defined by the artifactId in the pom to the product definition file (called core.project) file. I kept waiting for somewhere in the tutorial or other tutorials for a place to identify the product definition file, but it never came.
Any help in debugging this problem would be greatly appreciated. Here is the pom from the product project:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>edu.illinois.mobius</groupId>
<artifactId>edu.illinois.mobius.releng</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<groupId>edu.illinois.mobius</groupId>
<artifactId>edu.illinois.mobius.product.core</artifactId>
<packaging>eclipse-repository</packaging>
<version>1.0.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
<execution>
<id>archive-products</id>
<goals>
<goal>archive-products</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
[INFO] edu.illinois.mobius.product.core ................... FAILURE [ 0.262 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38.834 s
[INFO] Finished at: 2016-10-06T13:21:59-05:00
[INFO] Final Memory: 286M/1288M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) on project edu.illinois.mobius.product.core: Execution default-assemble-repository of goal org.eclipse.tycho:tycho-p2-repository-plugin:0.25.0:assemble-repository failed: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.product.core:1.0.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.product.core/pom.xml: See log for details -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-p2-repository-plugin:0.25.0:assemble-repository (default-assemble-repository) on project edu.illinois.mobius.product.core: Execution default-assemble-repository of goal org.eclipse.tycho:tycho-p2-repository-plugin:0.25.0:assemble-repository failed: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.product.core:1.0.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.product.core/pom.xml
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
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.apache.maven.plugin.PluginExecutionException: Execution default-assemble-repository of goal org.eclipse.tycho:tycho-p2-repository-plugin:0.25.0:assemble-repository failed: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.product.core:1.0.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.product.core/pom.xml
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 20 more
Caused by: org.eclipse.tycho.artifacts.DependencyResolutionException: Cannot resolve dependencies of MavenProject: edu.illinois.mobius:edu.illinois.mobius.product.core:1.0.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.product.core/pom.xml
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.p2.facade.RepositoryReferenceTool.addTargetPlatformRepository(RepositoryReferenceTool.java:124)
at org.eclipse.tycho.p2.facade.RepositoryReferenceTool.getVisibleRepositories(RepositoryReferenceTool.java:96)
at org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo.getVisibleRepositories(AssembleRepositoryMojo.java:165)
at org.eclipse.tycho.plugins.p2.repository.AssembleRepositoryMojo.execute(AssembleRepositoryMojo.java:137)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 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)
... 29 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :edu.illinois.mobius.product.core