Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] M2Eclipse 1.0: HowTo Dependency Plugin for generate-sources

Title: M2Eclipse 1.0: HowTo Dependency Plugin for generate-sources

Hi all,

we hav a dependency on dojo and use the dependency-plugin:unpack in phase generate-sources.

After upgrading to M2Eclipse 1.0 we have the problem that there is no built-in-support for that.

My question now is: what is the preferred/best-way for plugins which are bound to the generare-sources-phase.

I could add a lifecycle-mapping via org.eclipse.m2e:lifecycle-mapping but there I woould have to define the "unpack"-goal to execute.

If I would do this in a parent pom I see the danger of executing this goal in situations where it should not be…


Here is the part from our pom:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>unpack dojo</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.dojotoolkit</groupId>
                  <artifactId>dojo</artifactId>
                  <version>1.4.2</version>
                  <type>zip</type>
                </artifactItem>
              </artifactItems>
              <outputDirectory>${project.build.directory}/dojo</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>


Thanks!

Regards

Michael

*******************************************************************************
Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.

This email may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this email
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this email is strictly forbidden.
*******************************************************************************

Back to the top