Hi all,

I have a POM containing a number of custom execution configurations for
the `antrun` and `dependency` plugins. The project is configured to exec the `process-test-resources` goal after clean and `process-resources resources:testResources war:war` goals on resource changes. When I manually initiate a project clean/rebuild the custom execution configurations seem to go unhonored.

For instance, the `antrun:run` goal is executed but without any `tasks` configuration, so does nothing. The `dependency:unpack-dependencies` goal is executed, but attempts to unpack all dependencies (not just those specified in execution configuration) including artifacts with type `pom`, so fails visibly within Eclipse. The following previous post is highly relevant:

http://archive.hausfoundation.org/lists/org.codehaus.m2eclipse.user/msg/[EMAIL 
PROTECTED]

Also, note that if I run m2eclipse `Update Project Configuration` the execution configurations are executed properly..

The relevant custom executions look like this:

<plugin>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.3</version>
  <executions>
    <execution>
      <id>create-build-properties</id>
      <phase>initialize</phase>
      <goals>
        <goal>run</goal>
      </goals>
      <configuration>
        <tasks>
          <ant antfile="${basedir}/src/scripts/ant/build.xml"
               target="create-build-properties" />
        </tasks>
      </configuration>
    </execution>
  </executions>
</plugin>
<plugin>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>2.0</version>
  <executions>
    <execution>
      <id>unpack-config</id>
      <phase>process-resources</phase>
      <goals>
        <goal>unpack-dependencies</goal>
      </goals>
      <configuration>
        <outputDirectory>
${project.build.directory}/${project.build.finalName}/WEB-INF/flex
        </outputDirectory>
        <includeGroupIds>${project.groupId}</includeGroupIds>
        <includeArtifacIds>config</includeArtifacIds>
        <includeClassifiers>resources</includeClassifiers>
        <includeTypes>zip</includeTypes>
        <excludeTransitive>true</excludeTransitive>
      </configuration>
    </execution>
    <execution>
      <id>copy-swf</id>
      <phase>process-resources</phase>
      <goals>
        <goal>copy-dependencies</goal>
      </goals>
      <configuration>
        <outputDirectory>
          ${project.build.directory}/${project.build.finalName}
        </outputDirectory>
        <includeGroupIds>${project.groupId}
        </includeGroupIds>
        <includeArtifacIds>client</includeArtifacIds>
        <includeTypes>swf</includeTypes>
        <excludeTransitive>true</excludeTransitive>
        <stripVersion>true</stripVersion>
      </configuration>
    </execution>
  </executions>
</plugin>

Any thoughts?

Thanks,
Andy


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to