Igor,

Thanks for the reply.

I believe I was using the SNAPSHOT from the pom.xml. It is actually referenced from the downloadable HelloWorld.zip that is available from the Product Export page.

I tried changing the tycho.version to 0.3.0-DEV-1819. I run the following command:

mvn -X package -Dtycho.version=0.3.0-DEV-1819 -Dtycho.targetPlatform=/ usr/local/eclipse-3.4.1/eclipse

I now get a different error related to some missing plugin: 'org.eclipse.equinox.launcher.carbon.macosx.x86_highest version'

My pom.xml is below:
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd ">
  <modelVersion>4.0.0</modelVersion>
  <groupId>tycho.demo</groupId>
  <artifactId>HelloWorld</artifactId>
  <version>1.0.0</version>
  <packaging>eclipse-plugin</packaging>

  <pluginRepositories>
    <pluginRepository>
      <id>tycho</id>
<url>http://repository.sonatype.org/content/repositories/tycho-pseudo-releases/ </url>
    </pluginRepository>
  </pluginRepositories>

  <build>
    <finalName>${pom.artifactId}_${pom.version}</finalName>
    <plugins>
      <plugin>
        <groupId>org.codehaus.tycho</groupId>
        <artifactId>maven-osgi-packaging-plugin</artifactId>
        <version>${tycho.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>product-export</goal>
            </goals>
            <configuration>
<productConfigurationFile>HelloWorld.product</ productConfigurationFile>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>

I'll post the tail of the stacktrace below here.

Regards,
Mattias

for plugin: /plugins/org.codehaus.tycho:maven-osgi-packaging-plugin: 0.3.0-dev-1...@48/thread:main [DEBUG] Looking up mojo org.codehaus.tycho:maven-osgi-packaging-plugin: 0.3.0-DEV-1819:product-export in realm /plugins/ org.codehaus.tycho:maven-osgi-packaging-plugin:0.3.0-dev-1...@48/ thread:main - descRealmId=/plugins/org.codehaus.tycho:maven-osgi- packaging-plugin:0.3.0-dev-1...@48/thread:main [DEBUG] Looked up - org.codehaus.tycho.eclipsepackaging.productexportm...@93596c - ClassRealm[/plugins/org.codehaus.tycho:maven-osgi-packaging-plugin: 0.3.0-dev-1...@48/thread:main, parent: ClassRealm[plexus.core, parent: null]] [DEBUG] Configuring mojo 'org.codehaus.tycho:maven-osgi-packaging- plugin:0.3.0-DEV-1819:product-export' with basic configurator --> [DEBUG] (f) featuresFolder = /Users/mattias/dev/java/workspaces/ knivby.nu/HelloWorld/target/product/features [DEBUG] (f) pluginsFolder = /Users/mattias/dev/java/workspaces/ knivby.nu/HelloWorld/target/product/plugins [DEBUG] (f) productConfigurationFile = /Users/mattias/dev/java/ workspaces/knivby.nu/HelloWorld/HelloWorld.product [DEBUG] (f) project = MavenProject: tycho.demo:HelloWorld:1.0.0 @ / Users/mattias/dev/java/workspaces/knivby.nu/HelloWorld/pom.xml [DEBUG] (f) target = /Users/mattias/dev/java/workspaces/knivby.nu/ HelloWorld/target/product
[DEBUG] -- end configuration --
[INFO] [osgi-packaging:product-export]
[DEBUG] Setting context classloader for plugin to: /plugins/ org.codehaus.tycho:maven-osgi-packaging-plugin:0.3.0-dev-1...@48/ thread:main (instance is: ClassRealm[/plugins/org.codehaus.tycho:maven- osgi-packaging-plugin:0.3.0-dev-1...@48/thread:main, parent: ClassRealm[plexus.core, parent: null]])
[DEBUG] Parsing productConfiguration
[DEBUG] Generating .eclipseproduct
[DEBUG] Generating config.ini
[DEBUG] copying 22 plugins
[DEBUG] Copying plugin HelloWorld_null
[DEBUG] Copying plugin com.ibm.icu_null
[DEBUG] Copying plugin org.eclipse.core.commands_null
[DEBUG] Copying plugin org.eclipse.core.contenttype_null
[DEBUG] Copying plugin org.eclipse.core.databinding_null
[DEBUG] Copying plugin org.eclipse.core.expressions_null
[DEBUG] Copying plugin org.eclipse.core.jobs_null
[DEBUG] Copying plugin org.eclipse.core.runtime_null
[DEBUG] Copying plugin org.eclipse.core.runtime.compatibility.registry_null
[DEBUG] Copying plugin org.eclipse.equinox.app_null
[DEBUG] Copying plugin org.eclipse.equinox.common_null
[DEBUG] Copying plugin org.eclipse.equinox.preferences_null
[DEBUG] Copying plugin org.eclipse.equinox.registry_null
[DEBUG] Copying plugin org.eclipse.help_null
[DEBUG] Copying plugin org.eclipse.jface_null
[DEBUG] Copying plugin org.eclipse.jface.databinding_null
[DEBUG] Copying plugin org.eclipse.osgi_null
[DEBUG] Copying plugin org.eclipse.swt_null
[DEBUG] Copying plugin org.eclipse.swt.carbon.macosx_null
[DEBUG] Copying plugin org.eclipse.ui_null
[DEBUG] Copying plugin org.eclipse.ui.carbon_null
[DEBUG] Copying plugin org.eclipse.ui.workbench_null
[DEBUG] Copying plugin org.eclipse.equinox.launcher_null
[DEBUG] Copying plugin org.eclipse.equinox.launcher.carbon.macosx.x86_null
[ERROR]
Internal error in the plugin manager executing goal 'org.codehaus.tycho:maven-osgi-packaging-plugin:0.3.0-DEV-1819:product- export': Mojo execution failed.

While building project with id: tycho.demo:HelloWorld:eclipse-plugin: 1.0.0 Project File: /Users/mattias/dev/java/workspaces/knivby.nu/HelloWorld/ pom.xml

Error stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.codehaus.tycho:maven-osgi- packaging-plugin:0.3.0-DEV-1819:product-export': Mojo execution failed. at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:528) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegmentForProject(DefaultLifecycleExecutor.java:288) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:214) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:172)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:218)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java: 899)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
        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:585)
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: 408) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 351) Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution failed. at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:645) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:521)
        ... 15 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Plugin 'org.eclipse.equinox.launcher.carbon.macosx.x86_highest version' not found! at org .codehaus .tycho .eclipsepackaging.ProductExportMojo.copyPlugin(ProductExportMojo.java: 364) at org .codehaus .tycho .eclipsepackaging.ProductExportMojo.copyPlugins(ProductExportMojo.java: 348) at org .codehaus .tycho .eclipsepackaging.ProductExportMojo.execute(ProductExportMojo.java:118) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:623)
        ... 16 more

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat Dec 13 11:27:24 CET 2008
[INFO] Final Memory: 13M/23M
[INFO] ------------------------------------------------------------------------



12 dec 2008 kl. 20.50 skrev Igor Fedorenko:
What version of tycho are you using? From the logs it appears this SNAPSHOT version. Can you try the latest DEV build as shown in

http://docs.codehaus.org/display/M2ECLIPSE/Tycho+builds

--
Regards,
Igor

Mattias Holmqvist wrote:
Yes, I ran with the target platform specified:
mvn -X package -Dtycho.targetPlatform=/usr/local/eclipse-3.4.1/ eclipse/
Below is the execution log from this command:

[skipped]

/Mattias
12 dec 2008 kl. 15.24 skrev Igor Fedorenko:
Mattias,

Did you specify -Dtycho.targetPlatform=<your-eclipse-install>? Can you re-run the build with debug log enabled (i.e. -X) and post execution log here?


Also, there were couple of bugreports regarding product export on OSX recently, so I wonder if they are related to the problem that you see.

--
Regards,
Igor



Mattias Holmqvist wrote:
Hi,
I've tried to use the example in http://docs.codehaus.org/display/M2ECLIPSE/Tycho+Product+Export but failed to package the application using:
mvn clean package
The package phase is successful and the following structure is placed under /target:
/target/HelloWorld_1.0.0.jar
/target/MANIFEST.MF
/target/classes
/target/exported-pom.xml
/target/product
/target/product/.eclipseproduct
/target/product/configuration
/target/product/plugins
I can however not locate any eclipse executable under target/ product. I've tried using the article guide and also used the Helloworld.zip as a base to build on. Bpth ways compile but don't produce an executable eclipse file in target/product.
Any ideas?
/Mattias Holmqvist


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

 http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:
  http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


Reply via email to