Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Installing IUs into product using Tycho

Yeah, I've got debug on, so it gets noisy. Here's the final stacktrace of the error, though:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho.extras:tycho-eclipserun-plugin:0.17.0:eclipse-run (default) on project foo.bar.product: Error while executing platform
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	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:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:326)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while executing platform
	at org.eclipse.tycho.extras.eclipserun.EclipseRunMojo.runEclipse(EclipseRunMojo.java:242)
	at org.eclipse.tycho.extras.eclipserun.EclipseRunMojo.execute(EclipseRunMojo.java:182)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 27 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while executing platform (return code: 13)
	at org.eclipse.tycho.extras.eclipserun.EclipseRunMojo.runEclipse(EclipseRunMojo.java:239)
	... 30 more
channel stopped
Finished: FAILURE


From: "Jeff MAURY" <jeffmaury@xxxxxxxxxxxxx>
To: "Tycho user list" <tycho-user@xxxxxxxxxxx>
Sent: Monday, April 22, 2013 3:35:04 PM
Subject: Re: [tycho-user] Installing IUs into product using Tycho

Jason,


my product is using the same kind of build and it's working like a charm.
Can you show us the detailed error message ?

Regards
Jeff



On Mon, Apr 22, 2013 at 10:33 PM, Jason Litton <jason@xxxxxxxxxx> wrote:
Hi all,
I'm new to Tycho and I'm trying to replicate our build infrastructure using it, but I'm getting a little hung up and was hoping I could get some help or pointers to it.
We have feature/plugin projects that we build and then install onto a bare Eclipse platform. We then install a couple of other things (egit, svn connectors, things of that nature), and then zip or tar the resulting Eclipse product to be wrapped in our installer. I've got the plugins/features building and deploying correctly to a p2 update site, which can be consumed from Eclipse's help -> check for updates function. The problem I'm running into is running tycho tycho-eclipserun-plugin to install into our product. I'm using the example from here: http://wiki.eclipse.org/Tycho/Additional_Tools and I've changed the sites and features tags as appropriate. I've placed this in my product package pom.xml with some extra stuff to make it run. This is everything between my build tags:

<build>
    <pluginManagement>
        <plugins>
            <!--This plugin's configuration is used to store Eclipse
                m2e settings only. It has no influence on the Maven build itself. -->
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.codehaus.mojo</groupId>
                                    <artifactId>aspectj-maven-plugin</artifactId>
                                    <versionRange>[1.0,)</versionRange>
                                    <goals>
                                        <goal>test-compile</goal>
                                        <goal>compile</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute />
                                </action>
                            </pluginExecution>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>
                                        org.eclipse.tycho.extras
                                    </groupId>
                                    <artifactId>
                                        tycho-eclipserun-plugin
                                    </artifactId>
                                    <versionRange>
                                        [0.17.0,)
                                    </versionRange>
                                    <goals>
                                        <goal>eclipse-run</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <execute/>
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.eclipse.tycho.extras</groupId>
                <artifactId>tycho-eclipserun-plugin</artifactId>
                <version>${tycho-extras-version}</version>
                <configuration>
                    <argLine>-Declipse.p2.mirrors=false</argLine>
                    <appArgLine>-consoleLog -application org.eclipse.equinox.p2.director -nosplash -destination ${build.destination} -repository ${sites} -installIUs ${features}</appArgLine>
                    <dependencies>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.transport.ecf</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.repository</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.touchpoint.natives</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.touchpoint.eclipse</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.artifact.repository
                            </artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.p2.director.app</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.equinox.ds</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                        <dependency>
                            <artifactId>org.eclipse.core.net</artifactId>
                            <type>eclipse-plugin</type>
                        </dependency>
                    </dependencies>
                    <repositories>
                        <repository>
                        <id>platform-${platform-version}</id>
                        <url>${platform-site}</url>
                        <layout>p2</layout>
                    </repository>
                    <repository>
                        <id>orbit-${orbit-version}</id>
                        <url>${orbit-site}</url>
                        <layout>p2</layout>
                    </repository>
                    <repository>
                        <id>tm-${tm-version}</id>
                        <url>${tm-site}</url>
                        <layout>p2</layout>
                    </repository>
                </repositories>
               </configuration>
            <executions>
                <execution>
                       <goals>
                           <goal>eclipse-run</goal>
                       </goals>
                       <phase>compile</phase>
                   </execution>
               </executions>
        </plugin>
      </plugins>
   </build>

The problem I'm getting is that the eclipse-run-plugin is balking at build time. The failure states: "org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho.extras:tycho-eclipserun-plugin:0.17.0:eclipse-run (default) on project foo.bar.product: Error while executing platform".
My primary question is, can anyone point me to a full pom heirarchy showing this kind of build (installing built ius into eclipse)? I've googled the heck out of it, and I don't see anyone doing a lot of this. I see a lot of people including their features in their product definition, but when we were doing that, our product could not be updated, so that paradigm doesn't work for us. If no one knows of an example, would someone be willing to tell me how I should structure this. Should I put the eclipse-run-plugin into my parent pom or should it be in the pom that lives alongside the product definition?
 
Thanks in advance,
Jason Litton

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top