Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Eclipse 3.7 with m2 Feedback

Hi Igor,

> I realize that lack of out-of-the-box support for many popular maven
> plugins appears to be a significant regression compared to 0.12, but I
> am hopeful that we, as a community, will be able to quickly populate m2e
> extensions discovery catalog and effectively solve this problem. For
> everyone interested to help [2] provides some pointers where to start
> and m2e developers will be happy to help on m2e-dev mailing list.
>
> [1]
http://wiki.eclipse.org/M2E_plugin_execution_not_covered
> [2]
http://wiki.eclipse.org/M2E_Extension_Development

Great, that was exactly what I was looking for.
When I have the time, I'm trying to write a m2e extension for the axistools-maven-plugin (http://mojo.codehaus.org/axistools-maven-plugin/) that I'm using more or less frequently...


Just for the record, if anyone is interested what I did to work around the new behaviour introduced with m2e-1.0: I'm using a combination of axistools and build-helper plugin:


<build>
        <plugins>
                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>axistools-maven-plugin</artifactId>
                        <version>1.4</version>
                        <executions>
                                <execution>
                                        <id>create-java-sources</id>
                                        <phase>generate-sources</phase>
                                        <goals>
                                                <goal>wsdl2java</goal>
                                        </goals>
                                        <configuration>
                                                <wrapArrays>false</wrapArrays>
                                                <typeMappingVersion>1.2</typeMappingVersion>
                                        </configuration>
                                </execution>
                        </executions>
                </plugin>

                <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <version>1.5</version>
                        <executions>
                                <execution>
                                        <id>add-source</id>
                                        <phase>generate-sources</phase>
                                        <goals>
                                                <goal>add-source</goal>
                                        </goals>
                                        <configuration>
                                                <sources>
                                                        <source>${project.build.directory}/generated-sources/axistools/wsdl2java</source>
                                                </sources>
                                        </configuration>
                                </execution>
                        </executions>
                </plugin>
        </plugins>

        <pluginManagement>
                <plugins>
                        <plugin>
                                <groupId>org.eclipse.m2e</groupId>
                                <artifactId>lifecycle-mapping</artifactId>
                                <version>1.0.0</version>
                                <configuration>
                                        <lifecycleMappingMetadata>
                                                <pluginExecutions>
                                                        <pluginExecution>
                                                                <pluginExecutionFilter>
                                                                        <groupId>org.codehaus.mojo</groupId>
                                                                        <artifactId>axistools-maven-plugin</artifactId>
                                                                        <versionRange>[1.4,)</versionRange>
                                                                        <goals>
                                                                                <goal>wsdl2java</goal>
                                                                        </goals>
                                                                </pluginExecutionFilter>
                                                                <action>
                                                                        <ignore />
                                                                </action>
                                                        </pluginExecution>
                                                </pluginExecutions>
                                        </lifecycleMappingMetadata>
                                </configuration>
                        </plugin>
                </plugins>
        </pluginManagement>
</build>


Regards

Thorsten

Back to the top