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]> > 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] >> 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
