maven generate eclipse project for custom packaging

Posted by Riduidel on Stack Overflow See other posts from Stack Overflow or by Riduidel
Published on 2010-03-16T13:35:44Z Indexed on 2010/03/25 5:33 UTC
Read the original article Hit count: 628

Filed under:
|
|

Hi,for a project I'm working on, I've defined a custom maven packaging, and the associated lifecycle (through the definition of a components.xml and the definition of a LifecycleMapping).

Obviously, this packaging corresponds to a specific development, for which a plugin has been created in Eclipse. What I would like to do is configure Eclipse according to my pom.xml content.

I've obviously looked at Customizable build lifecycle, but I'm more than confused by provided information.

From what I understand, I must define in my target project a build plugin, in which i'll add configuration elements specific to my project. As an example, having a configurator called mycompany.mydev.MyEclipseConfigurator, I'll have to write

  <build>
    <plugins>
      <plugin>
        <groupId>org.maven.ide.eclipse</groupId>
        <artifactId>lifecycle-mapping</artifactId>
        <version>0.9.9-SNAPSHOT</version>
        <configuration>
          <mappingId>customizable</mappingId>
          <configurators>
            <configurator id='mycompany.mydev.MyEclipseConfigurator'/>
          </configurators>
        </configuration>
      </plugin>
    </plugins>
  </build>

Am I right ?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about maven-2