Yes, I finally discovered a parent pom.xml with this setting:
<plugin>
<groupId>org.ops4j</groupId>
<artifactId>maven-pax-plugin</artifactId>
<!--
| enable improved OSGi compilation support for the bundle
life-cycle.
| to switch back to the standard bundle life-cycle, move this
setting
| down to the maven-bundle-plugin section
-->
<extensions>true</extensions>
</plugin>
I moved the extensions setting down to maven-bundle-plugin and everything
is fine.
Thanks for your help.
Regards,
Dencel
2011/12/4 Igor Fedorenko <[email protected]>
> maven-bundle-plugin with extensions=true is required to use
> package=bundle on command line. This is not m2e specific
>
> http://felix.apache.org/site/**apache-felix-maven-bundle-**plugin-bnd.html<http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html>
>
> --
> Regards,
> Igor
>
>
> On 11-12-04 10:12 AM, Code wrote:
>
>> Hello Igor,
>>
>> I think I finally discovered the problem. The pax-construct scripts do
>> create pom files which use the maven-bundle-plugin, but these don't get
>> recognized by m2e.
>> When I create a project from scratch using the maven project wizard and
>> try to import this pom everything works fine.
>> The only difference between the 2 pom files is that the working pom file
>> has <extensions>true</extensions> on the maven-bundle-plugin.
>> Default this value is false, after enabling it on the pax created pom
>> file, import works fine (even without the tycho project configurator) .
>>
>> I am fairly new to maven and m2e, this setting is required? And if so,
>> is this documented?
>>
>> Thanks for your pointers.
>>
>> 2011/12/4 Igor Fedorenko <[email protected] <mailto:[email protected]
>> >>
>>
>>
>> What m2e version do you use? You need to have 1.0 or 1.1M3 to work on
>> bundle projects.
>>
>> Do you have "Tycho Project Configurator" installed? It is supposed to
>> be
>> installed when you import projects that use maven-bundle-plugin, but
>> can
>> be installed manually from m2e discovery catalog
>> Preferences->Maven->Discovery.
>>
>> Are there any error markers on the project after import? Currently m2e
>> only supports maven-compiler-plugin. For projects that use
>> maven-pax-plugin, m2e is expected to display error message during
>> project import and also create error markers for projects after import.
>> As a workaround, switch your project to use maven-compiler-plugin, at
>> least when importing them in Eclipse workspace.
>>
>> If none of the above helps identify the problem, please provide a
>> standalone project and steps to reproduce the problem and we'll have
>> a look.
>>
>> --
>> Regards,
>> Igor
>>
>>
>> On 11-12-04 6:37 AM, Code wrote:
>>
>> Hello,
>>
>> I am fairly new to m2eclipse. As I understand m2eclipse uses
>> project
>> configurations to configure eclipse project natures. I am having a
>> problem when importing an existing pom which has packaging
>> bundle in the
>> pom.xml. The javanature is not added to the project file. My pom
>> is auto
>> generated by the pax-construct scripts (pax-create-bundle).
>>
>> Is it possible to hint m2eclipse (preferable in the pom.xml) which
>> configuration to use? I like to have the same behaviour for
>> <packaging>bundle</packaging> as for <packaging>jar</packaging>.
>>
>> Greetings,
>>
>> Dencel
>>
>>
>> ______________________________**___________________
>> m2e-users mailing list
>> [email protected] <mailto:[email protected]>
>>
>> https://dev.eclipse.org/__**mailman/listinfo/m2e-users<https://dev.eclipse.org/__mailman/listinfo/m2e-users>
>>
>> <https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>> >
>>
>> ______________________________**___________________
>> m2e-users mailing list
>> [email protected] <mailto:[email protected]>
>>
>> https://dev.eclipse.org/__**mailman/listinfo/m2e-users<https://dev.eclipse.org/__mailman/listinfo/m2e-users>
>>
>>
>> <https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>> >
>>
>>
>>
>>
>> ______________________________**_________________
>> m2e-users mailing list
>> [email protected]
>> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>>
> ______________________________**_________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/**mailman/listinfo/m2e-users<https://dev.eclipse.org/mailman/listinfo/m2e-users>
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users