Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Trouble building an RCP product

mvn clean install gives me the same error.

[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.update: 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.update:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.update/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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :edu.illinois.mobius.update

Ken

On Thu, Oct 6, 2016 at 2:08 PM, Tom Bryan (tombry) <tombry@xxxxxxxxx> wrote:
Did you try to do an install instead?
mvn clean install

---Tom

From: <tycho-user-bounces@eclipse.org> on behalf of Ken Keefe <kjkeefe@xxxxxxxxxxxx>
Reply-To: Tycho user list <tycho-user@xxxxxxxxxxx>
Date: Thursday, October 6, 2016 at 4:34 PM
To: Tycho user list <tycho-user@xxxxxxxxxxx>
Subject: Re: [tycho-user] Trouble building an RCP product

I switched to trying update site part of the vogella tutorial: http://www.vogella.com/tutorials/EclipseTycho/article.html#run-the-build

I get the same sort of error saying it cannot resolve the dependencies. I decided to change the category.xml file around to see if I could narrow down the problem. I ended up removing all of my features and adding one of the features in the build target (I randomly picked org.eclipse.cvs). This builds correctly and I can see the new p2 repository with the cvs feature and its plugins looking all correct. 

When I remove that cvs feature and add just one of my features, it goes back to the same error. Is there something I need to do to tell Maven where to find my features? They are built just prior to it trying to create the update site. I'm using the directory structure that vogella suggests, so my recently constructed feature lives in features/edu.illinois.mobius.feature/target/ .

To initiate the maven build, I am using "mvn clean verify".

Thoughts?

Ken

[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.update: 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.update:2.6.0-SNAPSHOT @ /Users/kjkeefe/git/Mobius-4.6/releng/edu.illinois.mobius.update/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] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :edu.illinois.mobius.update



On Thu, Oct 6, 2016 at 12:45 PM, Paul Roubekas <paul@orthogroup.holdings> wrote:
Here is mine that has been working for months.


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <name>MyProduct - application product</name>
    <artifactId>com.myProduct.app.product</artifactId>
    <packaging>eclipse-repository</packaging>
    <parent>
        <groupId>com.myProduct</groupId>
        <artifactId>com.myProduct.releng.parent</artifactId>
        <version>0.1.0-SNAPSHOT</version>
        <relativePath>../../releng/com.myProduct.releng.parent/pom.xml</relativePath>
    </parent>
   
    <build>
          <plugins>
            <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

On 10/6/2016 2:28 PM, Ken Keefe wrote:
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>

Here is the error output from maven:

[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


_______________________________________________

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


_______________________________________________
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