You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Christopher Klewes <c....@creativworks.info> on 2009/01/31 21:40:42 UTC
pde build with maven
Hi, i want to setup my rcp project with a maven build. so first i want
to build succesfully the example from the pde-maven-plugin site.
i started by downloading the following eclipse sdk and delta pack:
- eclipse-3.4.1-delta-pack.zip
- eclipse-RCP-SDK-3.4.1-win32.zip
i read through the examples from pde-maven-plugin mojo and found a
tutorial that builds a product.
this tutorial can be found here:
http://snapshots.repository.codehaus.org/org/codehaus/mojo/pde-maven-plugin/
i downloaded this one:
pde-maven-plugin-1.0-20080304.235354-2-tutorials.zip (if you want an
SSCCE (http://pscode.org/sscce.html))
after i imported the project to my eclipse ide i have done som changes
to build.properties and pom.xml to ensure the paths are well formed.
(the name of the plugin is: test.pde_maven_plugin.simple_application)
now i tried the pde build to be sure its running without maven:
1) launch the application (SUCCESSFUL)
2) launch the product (SUCCESSFUL)
3) export as product and launch (SUCCESSFUL)
everything works fine! now i tried to do the maven install, but this failed:
BUILD FAILED
D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:25:
The following error occurred while executing this line:
D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:53:
Unable to find plug-in: test.pde_maven_plugin.simple_application. Please
check the error log for more details.
as you can see, the pde build (i think) can't found the application i
want to export, it seems that maven doesn't calls the pde build for the
application first, it assumes that the plugin has already be there? if i
change the maven packaging to jar, do the install, copy this jar to my
target.env into plugins change packaging back to zip, do the install
again. everything runs fine, but this isn't a great solutions or? in my
pov i think this should be done by pde build? please correct me if i am
wrong if you need more informartions just let me know -- or if you got
time have a look inside the maven-pde-plugin tutorial.
thank you
chris
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: pde build with maven
Posted by Igor Fedorenko <ig...@ifedorenko.com>.
Christopher,
Although I can't help you with pde-maven-plugin (I remember some
discussion here about retiring it, see [1]), I am working on another
maven-based tool called Tycho that should be able to build Eclipse RCP
applications. You can read more about Tycho goals and scope in [2] and
RCP specific mini-howto is here [3]. You can also find couple of sample
RCP projects we use in Tycho integration tests in [4].
[1]
http://www.nabble.com/Retiring-pde-maven-plugin%2C-any-active-alternative-out-there--td19534297.html#a19534297
[2] http://docs.codehaus.org/display/M2ECLIPSE/Tycho+project+overview
[3] http://docs.codehaus.org/display/M2ECLIPSE/Tycho+Product+Export
[4]
http://svn.sonatype.org/m2eclipse/tycho/trunk/tycho-its/projects/tycho109/
Christopher Klewes wrote:
> Hi, i want to setup my rcp project with a maven build. so first i want
> to build succesfully the example from the pde-maven-plugin site.
>
> i started by downloading the following eclipse sdk and delta pack:
> - eclipse-3.4.1-delta-pack.zip
> - eclipse-RCP-SDK-3.4.1-win32.zip
>
> i read through the examples from pde-maven-plugin mojo and found a
> tutorial that builds a product.
>
> this tutorial can be found here:
> http://snapshots.repository.codehaus.org/org/codehaus/mojo/pde-maven-plugin/
>
>
> i downloaded this one:
> pde-maven-plugin-1.0-20080304.235354-2-tutorials.zip (if you want an
> SSCCE (http://pscode.org/sscce.html))
>
> after i imported the project to my eclipse ide i have done som changes
> to build.properties and pom.xml to ensure the paths are well formed.
> (the name of the plugin is: test.pde_maven_plugin.simple_application)
>
> now i tried the pde build to be sure its running without maven:
>
> 1) launch the application (SUCCESSFUL)
> 2) launch the product (SUCCESSFUL)
> 3) export as product and launch (SUCCESSFUL)
>
> everything works fine! now i tried to do the maven install, but this
> failed:
>
> BUILD FAILED
> D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:25:
> The following error occurred while executing this line:
> D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:53:
> Unable to find plug-in: test.pde_maven_plugin.simple_application. Please
> check the error log for more details.
>
> as you can see, the pde build (i think) can't found the application i
> want to export, it seems that maven doesn't calls the pde build for the
> application first, it assumes that the plugin has already be there? if i
> change the maven packaging to jar, do the install, copy this jar to my
> target.env into plugins change packaging back to zip, do the install
> again. everything runs fine, but this isn't a great solutions or? in my
> pov i think this should be done by pde build? please correct me if i am
> wrong if you need more informartions just let me know -- or if you got
> time have a look inside the maven-pde-plugin tutorial.
>
> thank you
> chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: pde build with maven
Posted by Julien D <my...@hotmail.com>.
Maybe late but...
I had the same problem. It was because I had different entries for the
buildId in buildConfiguration/build.properties and the artifact-id in my
pom.xml.
Christopher Klewes wrote:
>
> Hi, i want to setup my rcp project with a maven build. so first i want
> to build succesfully the example from the pde-maven-plugin site.
>
> i started by downloading the following eclipse sdk and delta pack:
> - eclipse-3.4.1-delta-pack.zip
> - eclipse-RCP-SDK-3.4.1-win32.zip
>
> i read through the examples from pde-maven-plugin mojo and found a
> tutorial that builds a product.
>
> this tutorial can be found here:
> http://snapshots.repository.codehaus.org/org/codehaus/mojo/pde-maven-plugin/
>
> i downloaded this one:
> pde-maven-plugin-1.0-20080304.235354-2-tutorials.zip (if you want an
> SSCCE (http://pscode.org/sscce.html))
>
> after i imported the project to my eclipse ide i have done som changes
> to build.properties and pom.xml to ensure the paths are well formed.
> (the name of the plugin is: test.pde_maven_plugin.simple_application)
>
> now i tried the pde build to be sure its running without maven:
>
> 1) launch the application (SUCCESSFUL)
> 2) launch the product (SUCCESSFUL)
> 3) export as product and launch (SUCCESSFUL)
>
> everything works fine! now i tried to do the maven install, but this
> failed:
>
> BUILD FAILED
> D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:25:
> The following error occurred while executing this line:
> D:\Programme\EclipseGanymede\plugins\org.eclipse.pde.build_3.4.0.v20080604\scripts\productBuild\productBuild.xml:53:
> Unable to find plug-in: test.pde_maven_plugin.simple_application. Please
> check the error log for more details.
>
> as you can see, the pde build (i think) can't found the application i
> want to export, it seems that maven doesn't calls the pde build for the
> application first, it assumes that the plugin has already be there? if i
> change the maven packaging to jar, do the install, copy this jar to my
> target.env into plugins change packaging back to zip, do the install
> again. everything runs fine, but this isn't a great solutions or? in my
> pov i think this should be done by pde build? please correct me if i am
> wrong if you need more informartions just let me know -- or if you got
> time have a look inside the maven-pde-plugin tutorial.
>
> thank you
> chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/pde-build-with-maven-tp21786734p22122637.html
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org