Thanks for your answer, Piergiorgio.

I have a workaround, so it's not a blocker. Since I upgraded Maven for only a week ago, I guess that I will get similar problems with my other Java projects as well.

Erlend

On 09.03.12 14.55, Piergiorgio Lucidi wrote:
Hi Erlend,

that problem depends on some issues about filtering of the Maven
Eclipse Plugin that are introduced with the latest versions.
Infact in the 2.6 version there is no problem.

Now I think that this plugin could be considered deprecated.
We are waiting for the new version that should have all these issues
solved but I don't know when it will be released.

There are many other projects in the world that exactly have the same problem.

I suggest to use the m2Eclipse plugin directly inside Eclipse IDE
without invoking the mvn eclipse:eclipse command.
m2Eclipse is the most updated plugin with all the these issues solved.

I don't use Maven Eclipse Plugin for a long time because I never need to use it.
Hope this helps.

Cheers,
Piergiorgio

Il 09 marzo 2012 14:45, Karl Wright<daddy...@gmail.com>  ha scritto:
Hi Erlend,

The pom which maven is unhappy with came from Alfresco.  We included
it in the project with only minor modifications.  But it does a whole
pile of stuff that I don't really understand in the process of
constructing the alfresco.war.

Piergiorgio may have a better idea what is going wrong.  Hopefully he
will chime in.

Karl


On Fri, Mar 9, 2012 at 8:37 AM, Erlend Garåsen<e.f.gara...@usit.uio.no>  wrote:

When I try to run mvn eclipse:eclipse in order to prepare the MCF project
for Eclipse, I get an error which seems to be related to the Alfresco
connector, but this might be an issue with version 2.8 of the Maven Eclipse
plugin. BTW, it works by running the following:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse

I upgraded to Maven 3 for a week ago, so I haven't seen this error (yet) i
my other Java projects.

This is the part of the error message from Maven using the -e switch:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli) on
project mcf-alfresco-war-test: Request to merge when 'filtering' is not
identical. Original=resource src/main/resources: output=target/classes,
include=[], exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java],
test=false, filtering=false, merging with=resource src/main/resources:
output=target/classes, include=[log4j.properties], exclude=[**/*.java],
test=false, filtering=true ->  [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.maven.plugins:maven-eclipse-plugin:2.8:eclipse (default-cli)
on project mcf-alfresco-war-test: Request to merge when 'filtering' is not
identical. Original=resource src/main/resources: output=target/classes,
include=[], exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java],
test=false, filtering=false, merging with=resource src/main/resources:
output=target/classes, include=[log4j.properties], exclude=[**/*.java],
test=false, filtering=true
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Request to merge
when 'filtering' is not identical. Original=resource src/main/resources:
output=target/classes, include=[],
exclude=[**/restore-context.xml|**/ldap-*.xml|**/*.java], test=false,
filtering=false, merging with=resource src/main/resources:
output=target/classes, include=[log4j.properties], exclude=[**/*.java],
test=false, filtering=true
        at
org.apache.maven.plugin.eclipse.EclipseSourceDir.merge(EclipseSourceDir.java:302)
        at
org.apache.maven.plugin.eclipse.EclipsePlugin.extractResourceDirs(EclipsePlugin.java:1652)
        at
org.apache.maven.plugin.eclipse.EclipsePlugin.buildDirectoryList(EclipsePlugin.java:1534)
        at
org.apache.maven.plugin.eclipse.EclipsePlugin.createEclipseWriterConfig(EclipsePlugin.java:1222)
        at
org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(EclipsePlugin.java:1085)
        at
org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractIdeSupportMojo.java:511)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn<goals>  -rf :mcf-alfresco-war-test

Erlend

--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050





--
Erlend Garåsen
Center for Information Technology Services
University of Oslo
P.O. Box 1086 Blindern, N-0317 OSLO, Norway
Ph: (+47) 22840193, Fax: (+47) 22852970, Mobile: (+47) 91380968, VIP: 31050

Reply via email to