Just curious, why are you trying to build the AppFuse project itself instead
of working with one of its archetypes?

On Thu, Aug 26, 2010 at 1:09 AM, sunny <maide...@gmail.com> wrote:

>
> I have the same problem, I found the problem is
> appfuse\archetypes\build.xml
> line 33 not working:
>        <mvn
>
> command="org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create-from-project"
> dir="${dir}"/>
> How can I fix/avoid this error? Thanks for any clues.
>
> My error log as follows:
>
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\appfuse-core>mvn install -DskipTests=true -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building AppFuse Core Archetype
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory E:\Users\sunny\my-src\eclipse
> 3.5.2 workspace\appfuse\archetypes\appfuse-core
> \src\main\resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] No sources to compile
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory E:\Users\sunny\my-src\eclipse
> 3.5.2 workspace\appfuse\archetypes\appfuse-core
> \src\test\resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] No sources to compile
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Tests are skipped.
> [INFO] [jar:jar {execution: default-jar}]
> [WARNING] JAR will be empty - no content was marked for inclusion!
> [INFO] [antrun:run {execution: build-archetype}]
> [INFO] Executing tasks
>    [delete] Deleting directory E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\appfuse-core\target\core
> -archetype
>
> install-core:
>    [mkdir] Created dir: E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\appfuse-core\target\core-arche
> type
>     [copy] Copying 15 files to E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\appfuse-core\target\cor
> e-archetype
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred
> while
> executing this line:
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\build.xml:36: Replace: source file
> E:\Users\sunny\my-sr
> c\eclipse 3.5.2
>
> workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
> ml doesn't exist
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An Ant
> BuildException has occured: The following error occurred
> while executing this line:
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\build.xml:36: Replace: source file
> E:\Users\sunny\my-sr
> c\eclipse 3.5.2
>
> workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
> ml doesn't exist
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:55
> 6)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>         at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
> a:387)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:60)
>         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.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: An Ant
> BuildException has occured: The following error occurr
> ed while executing this line:
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\build.xml:36: Replace: source file
> E:\Users\sunny\my-sr
> c\eclipse 3.5.2
>
> workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
> ml doesn't exist
>        at
>
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
>        at
> org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
>        at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>        at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>        ... 17 more
> Caused by: The following error occurred while executing this line:
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\build.xml:36: Replace: source file
> E:\Users\sunny\my-sr
> c\eclipse 3.5.2
>
> workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.x
> ml doesn't exist
>         at
>
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:508)
>        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
>        at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>        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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.Target.execute(Target.java:357)
>        at
>
> org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
>         ... 20 more
> Caused by: E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\build.xml:36: Replace: source file E:\Users\
> sunny\my-src\eclipse 3.5.2
>
> workspace\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\arch
> etype\pom.xml doesn't exist
>        at
> org.apache.tools.ant.taskdefs.Replace.processFile(Replace.java:592)
>        at org.apache.tools.ant.taskdefs.Replace.execute(Replace.java:487)
>        at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>        at org.apache.tools.ant.Task.perform(Task.java:348)
>        at org.apache.tools.ant.Target.execute(Target.java:357)
>        at org.apache.tools.ant.Target.performTasks(Target.java:385)
>        at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>        at
>
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>         ... 29 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Thu Aug 26 14:58:27 CST 2010
> [INFO] Final Memory: 17M/41M
> [INFO]
> ------------------------------------------------------------------------
> E:\Users\sunny\my-src\eclipse 3.5.2
> workspace\appfuse\archetypes\appfuse-core>
> --
> View this message in context:
> http://appfuse.547863.n4.nabble.com/Failed-to-build-AppFuse-2-1-SNAPSHOT-tp574782p2339239.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