Correction, m2e detects changes to files inside main/resources and test/resources folders and runs maven goals during incremental build. By default it runs "process-resources resources:testResources" but this is configurable via project properties (Maven->Goals to invoke on resource changes).

Eugene Kuleshov wrote:

 That ain't resource filtering nor copying, that is freaking Ant. :-)

Anyways, m2eclipse does not run any Maven plugins, including ones bound to the code generation phase by default during incremental build. However it does run process-test-resource during "Project... / Clean" and you can change the settings for that and for incremental build in the Maven properties for your project.

See some more details on this at http://docs.codehaus.org/display/M2ECLIPSE/Dependency+Management

 regards,
 Eugene


Henri Gomez wrote:
No news about these one ?

I've got no problem with a simple pom (resources are copied).

But If I use in the parent pom some filtering like this, no resources
are copied :

  <build>

    <plugins>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>generate-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
                <mkdir dir="${project.build.directory}" />

                <tstamp>
                  <format property="last.updated" pattern="yyyy-MM-dd
hh:mm:ss" />
                </tstamp>
                <echo file="${basedir}/target/filter.properties">

build.time=${last.updated}${line.separator}os.infos=${os.name}
${os.version}${line.separator}user.infos=${user.name}${line.separator}java.infos=JDK
${java.vendor} ${java.runtime.version}
                </echo>
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>

    </plugins>

    <filters>
      <filter>${basedir}/target/filter.properties</filter>
    </filters>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

  </build>

Did m2eclipse support ant-tasks here ?

2008/6/27 Henri Gomez <[EMAIL PROTECTED]>:
Hi to all,

I got a strange problem with m2eclipse 0.9.4

When I'm using maven 2.0.9 from command line, I got the resources
copied from src/main/resources to target-classes

When I'm using the embedded maven (ie project clean), the resources
are not copied to to target-classes.

If I do a Run Maven package, they are.

Any idea of way to track it in the console ?


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

    http://xircles.codehaus.org/manage_email




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

   http://xircles.codehaus.org/manage_email




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

   http://xircles.codehaus.org/manage_email


Reply via email to