Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Using PDE and Maven2 to create OSGi bundle
Using PDE and Maven2 to create OSGi bundle [message #13832] Fri, 25 July 2008 07:45 Go to next message
Eclipse UserFriend
Originally posted by: no-spam.martin.ahrer.mailinator.com

I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
layout is following the recommendations as defined by Maven2.
As such sources are located in src/main/resources and resources are in
src/main/resources.

As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
by maven-bundle-plugin at this location.

When running the bundle inside the IDE (using a custom Target Platform,
namely Spring-DM) for debugging no resources from src/main/resources
(e.g. log4j.properties or spring context files) are picked up (i.e. loaded).

As these resources are moved to the plugin project's root folder things
work fine!
Is there any chance to configure the project such that PDE is aware of
this non eclipse like directory layout?

Thanks
Martin
Best approach to build Eclipse RCP with Maven 2 [message #19338 is a reply to message #13832] Thu, 04 September 2008 17:19 Go to previous messageGo to next message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
Hi,

What is the current best approach to build eclipse rcp plugins/product in
Maven 2?

Thanks to all.

Marcelo

"Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
news:g6c0bi$3l4$1@build.eclipse.org...
> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
> layout is following the recommendations as defined by Maven2.
> As such sources are located in src/main/resources and resources are in
> src/main/resources.
>
> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
> by maven-bundle-plugin at this location.
>
> When running the bundle inside the IDE (using a custom Target Platform,
> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
> log4j.properties or spring context files) are picked up (i.e. loaded).
>
> As these resources are moved to the plugin project's root folder things
> work fine!
> Is there any chance to configure the project such that PDE is aware of
> this non eclipse like directory layout?
>
> Thanks
> Martin
Re: Best approach to build Eclipse RCP with Maven 2 [message #20108 is a reply to message #19338] Mon, 08 September 2008 06:48 Go to previous message
Eclipse UserFriend
Originally posted by: yeronimuz.aol.com

You probably need to follow the blog of Immo Huneke, see
http://aspsp.blogspot.com/2008_01_01_archive.html
With his excellent notes and help, I managed to get most of the work done.

Regards,
Jeroen.

Marcelo Alcantara wrote:
> Hi,
>
> What is the current best approach to build eclipse rcp plugins/product in
> Maven 2?
>
> Thanks to all.
>
> Marcelo
>
> "Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
> news:g6c0bi$3l4$1@build.eclipse.org...
>> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
>> layout is following the recommendations as defined by Maven2.
>> As such sources are located in src/main/resources and resources are in
>> src/main/resources.
>>
>> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
>> by maven-bundle-plugin at this location.
>>
>> When running the bundle inside the IDE (using a custom Target Platform,
>> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
>> log4j.properties or spring context files) are picked up (i.e. loaded).
>>
>> As these resources are moved to the plugin project's root folder things
>> work fine!
>> Is there any chance to configure the project such that PDE is aware of
>> this non eclipse like directory layout?
>>
>> Thanks
>> Martin
>
>
Best approach to build Eclipse RCP with Maven 2 [message #578491 is a reply to message #13832] Thu, 04 September 2008 17:19 Go to previous message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
Hi,

What is the current best approach to build eclipse rcp plugins/product in
Maven 2?

Thanks to all.

Marcelo

"Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
news:g6c0bi$3l4$1@build.eclipse.org...
> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
> layout is following the recommendations as defined by Maven2.
> As such sources are located in src/main/resources and resources are in
> src/main/resources.
>
> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
> by maven-bundle-plugin at this location.
>
> When running the bundle inside the IDE (using a custom Target Platform,
> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
> log4j.properties or spring context files) are picked up (i.e. loaded).
>
> As these resources are moved to the plugin project's root folder things
> work fine!
> Is there any chance to configure the project such that PDE is aware of
> this non eclipse like directory layout?
>
> Thanks
> Martin
Re: Best approach to build Eclipse RCP with Maven 2 [message #579069 is a reply to message #19338] Mon, 08 September 2008 06:48 Go to previous message
Jeroen Lankheet is currently offline Jeroen LankheetFriend
Messages: 31
Registered: July 2009
Member
You probably need to follow the blog of Immo Huneke, see
http://aspsp.blogspot.com/2008_01_01_archive.html
With his excellent notes and help, I managed to get most of the work done.

Regards,
Jeroen.

Marcelo Alcantara wrote:
> Hi,
>
> What is the current best approach to build eclipse rcp plugins/product in
> Maven 2?
>
> Thanks to all.
>
> Marcelo
>
> "Martin Ahrer" <no-spam.martin.ahrer@mailinator.com> escreveu na mensagem
> news:g6c0bi$3l4$1@build.eclipse.org...
>> I'm trying to use PDE and Maven2 to create an OSGi bundle. The project
>> layout is following the recommendations as defined by Maven2.
>> As such sources are located in src/main/resources and resources are in
>> src/main/resources.
>>
>> As PDE expects the MANIFEST.MF in <project-dir>/META-INF it is generated
>> by maven-bundle-plugin at this location.
>>
>> When running the bundle inside the IDE (using a custom Target Platform,
>> namely Spring-DM) for debugging no resources from src/main/resources (e.g.
>> log4j.properties or spring context files) are picked up (i.e. loaded).
>>
>> As these resources are moved to the plugin project's root folder things
>> work fine!
>> Is there any chance to configure the project such that PDE is aware of
>> this non eclipse like directory layout?
>>
>> Thanks
>> Martin
>
>
Previous Topic:Problem with p2 and version qualifiers
Next Topic:How to specify <launcherIcons> in product.properties file
Goto Forum:
  


Current Time: Fri Apr 26 22:59:13 GMT 2024

Powered by FUDForum. Page generated in 0.03411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top