Changing your pom.xml to use the maven-eclipse-plugin version 2.5.1 should
solve this problem. Also, it looks like you have your JAVA_HOME pointing to
a JRE rather than a JDK. You should point it at a JDK.

Matt

On Mon, Nov 30, 2009 at 9:52 PM, johnydz <yanda...@msn.com> wrote:

>
> when i use "mvn" or "mvn jetty:run-war" ,it always shows "BUILD SUCCESSFUL"
>
> but run "mvn eclipse:eclipse" it shows "BUILD ERROR"
>
> i want to use eclipse to develop my project, so I want to know what's it
> wrong...
>
> thanks!
>
> C:\Users\Yen\workspace\empi>mvn eclipse:eclipse -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building AppFuse Struts 2 Application
> [INFO]    task-segment: [eclipse:eclipse]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing eclipse:eclipse
> [INFO] [aspectj:compile {execution: default}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> [INFO] [eclipse:eclipse {execution: default-cli}]
> [INFO] Adding support for WTP version 1.5.
> [INFO] Using Eclipse Workspace: C:\Users\Yen\workspace
> [WARNING] Workspace defines a VM that does not contain a valid
> jre/lib/rt.jar: C
> :\Program Files\Java\jre6
> [INFO] Adding default classpath container:
> org.eclipse.jdt.launching.JRE_CONTAIN
> ER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5
> [INFO] Resource directory's path matches an existing source directory.
> Resources
>  will be merged with the source directory src/main/resources
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Request to merge when 'filtering' is not identical.
> Original=resource
> src
> /main/resources: output=target/classes, include=[],
> exclude=[ApplicationResource
>
> s_de.properties|ApplicationResources_fr.properties|ApplicationResources_ko.prope
>
> rties|ApplicationResources_nl.properties|ApplicationResources_no.properties|Appl
>
> icationResources_pt*.properties|ApplicationResources_tr.properties|ApplicationRe
>
> sources_zh*.properties|applicationContext-resources.xml|struts.xml|**/*.java],
> t
> est=false, filtering=true, merging with=resource src/main/resources:
> output=targ
> et/classes, include=[applicationContext-resources.xml|struts.xml],
> exclude=[**/*
> .java], test=false, filtering=false
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Request to merge
> when 'f
> iltering' is not identical. Original=resource src/main/resources:
> output=target/
> classes, include=[],
> exclude=[ApplicationResources_de.properties|ApplicationReso
>
> urces_fr.properties|ApplicationResources_ko.properties|ApplicationResources_nl.p
>
> roperties|ApplicationResources_no.properties|ApplicationResources_pt*.properties
>
> |ApplicationResources_tr.properties|ApplicationResources_zh*.properties|applicat
> ionContext-resources.xml|struts.xml|**/*.java], test=false, filtering=true,
> merg
> ing with=resource src/main/resources: output=target/classes,
> include=[applicatio
> nContext-resources.xml|struts.xml], exclude=[**/*.java], test=false,
> filtering=f
> alse
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:719)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:569)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:539)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:387)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:348)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:180)
>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>        at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
> 0)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>        at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Request to merge
> when
>  'filtering' is not identical. Original=resource src/main/resources:
> output=targ
> et/classes, include=[],
> exclude=[ApplicationResources_de.properties|ApplicationR
>
> esources_fr.properties|ApplicationResources_ko.properties|ApplicationResources_n
>
> l.properties|ApplicationResources_no.properties|ApplicationResources_pt*.propert
>
> ies|ApplicationResources_tr.properties|ApplicationResources_zh*.properties|appli
> cationContext-resources.xml|struts.xml|**/*.java], test=false,
> filtering=true, m
> erging with=resource src/main/resources: output=target/classes,
> include=[applica
> tionContext-resources.xml|struts.xml], exclude=[**/*.java], test=false,
> filterin
> g=false
>        at
> org.apache.maven.plugin.eclipse.EclipseSourceDir.merge(EclipseSourceD
> ir.java:302)
>        at
> org.apache.maven.plugin.eclipse.EclipsePlugin.extractResourceDirs(Ecl
> ipsePlugin.java:1605)
>        at
> org.apache.maven.plugin.eclipse.EclipsePlugin.buildDirectoryList(Ecli
> psePlugin.java:1490)
>        at
> org.apache.maven.plugin.eclipse.EclipsePlugin.createEclipseWriterConf
> ig(EclipsePlugin.java:1180)
>        at
> org.apache.maven.plugin.eclipse.EclipsePlugin.writeConfiguration(Ecli
> psePlugin.java:1043)
>        at
> org.apache.maven.plugin.ide.AbstractIdeSupportMojo.execute(AbstractId
> eSupportMojo.java:511)
>        at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:490)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:694)
>        ... 17 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Tue Dec 01 12:38:21 CST 2009
> [INFO] Final Memory: 28M/50M
> [INFO]
> ------------------------------------------------------------------------
> C:\Users\Yen\workspace\empi>
> --
> View this message in context:
> http://n4.nabble.com/mvn-eclipse-s-question-tp931876p931876.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to