Here is what I see in the maven console after a clean project :

7/11/08 9:40:34 AM CEST: [INFO] Searching repository for plugin with
prefix: 'resources'.
7/11/08 9:40:34 AM CEST: [INFO] Attempting to resolve a version for
plugin: org.apache.maven.plugins:maven-resources-plugin using
meta-version: LATEST
7/11/08 9:40:34 AM CEST: [INFO] Using version: 2.2 of plugin:
org.apache.maven.plugins:maven-resources-plugin
7/11/08 9:40:34 AM CEST: [INFO] Scanning for projects...
7/11/08 9:40:34 AM CEST: [INFO]
------------------------------------------------------------------------
7/11/08 9:40:34 AM CEST: [INFO] Building slib-er-alerts
7/11/08 9:40:34 AM CEST: [INFO]
7/11/08 9:40:34 AM CEST: [INFO] Id: fr.slib.er:slib-er-alerts:jar:2.1.0-SNAPSHOT
7/11/08 9:40:34 AM CEST: [INFO] task-segment: [process-resources,
resources:testResources]
7/11/08 9:40:34 AM CEST: [INFO]
------------------------------------------------------------------------
7/11/08 9:40:34 AM CEST: [INFO] [antrun:run]
7/11/08 9:40:34 AM CEST: [INFO] Executing tasks
7/11/08 9:40:34 AM CEST: [INFO] Executed tasks
7/11/08 9:40:34 AM CEST: [INFO] [resources:resources]
7/11/08 9:40:34 AM CEST: [INFO] Using default encoding to copy
filtered resources.
7/11/08 9:40:34 AM CEST: [INFO] [resources:testResources]
7/11/08 9:40:34 AM CEST: [INFO] Using default encoding to copy
filtered resources.

Here is what I see with  mvn process-resources :

[INFO] Scanning for projects...
WAGON_VERSION: 1.0-beta-2
[INFO] ------------------------------------------------------------------------
[INFO] Building slib-er-alerts
[INFO]    task-segment: [process-resources]
[INFO] ------------------------------------------------------------------------
[INFO] snapshot fr.slib:slib-canopee:1.1-SNAPSHOT: checking for
updates from snapshots
[INFO] snapshot fr.slib.er:slib-er-mkt:2.1.0-SNAPSHOT: checking for
updates from snapshots
[INFO] snapshot fr.slib.er:slib-er-core:2.1.0-SNAPSHOT: checking for
updates from snapshots
[INFO] [antrun:run {execution: grab-system-infos}]
[INFO] Executing tasks
    [mkdir] Created dir: C:\workspace\slib-er-alerts\target
     [echo] help me
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Jul 11 09:43:49 CEST 2008
[INFO] Final Memory: 7M/127M
[INFO] ------------------------------------------------------------------------

As you could see the 'grab-system-infos' filtering task is not handled
in m2eclipse.

2008/7/11 Henri Gomez <[EMAIL PROTECTED]>:
> When I do a project clean, the java files are compiled and found in
> target/classes but not the resources.
>
> Even when I do an update of any resources.
>
> How can I locate what could be wrong in the process inside Eclipse ?
>
> 2008/7/10 Igor Fedorenko <[EMAIL PROTECTED]>:
>> 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


Reply via email to