Hi all,

I checked AppFuse 2.1-SNAPSHOT source code out and tried to build it. When I
run "mvn install -Dmaven.test.skip=true" on Windows, it always gives me the
following error:

[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Core Archetype
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to
D:\USR\appfuse\archetypes\appfuse-core\target\classes
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar:
D:\USR\appfuse\archetypes\appfuse-core\target\appfuse-core-2.1-SNAPSHOT.jar
[INFO] [antrun:run {execution: build-archetype}]
[INFO] Executing tasks

install-core:
    [mkdir] Created dir:
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype
     [copy] Copying 28 files to
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
executing this line:
D:\USR\appfuse\archetypes\build.xml:40: Replace: source file
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.xml
doesn't exist

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant
BuildException has occured: The following error occurred while executing
this line:
D:\USR\appfuse\archetypes\build.xml:40: Replace: source file
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.xml
doesn't exist
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        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: The following error occurred while executing this line:
D:\USR\appfuse\archetypes\build.xml:40: Replace: source file
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\pom.xml
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)
        ... 19 more
Caused by: D:\USR\appfuse\archetypes\build.xml:40: Replace: source file
D:\USR\appfuse\archetypes\appfuse-core\target\core-archetype\target\generated-sources\archetype\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.GeneratedMethodAccessor40.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)
        ... 28 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 44 seconds
[INFO] Finished at: Tue May 05 07:55:54 CST 2009
[INFO] Final Memory: 33M/63M
[INFO]
------------------------------------------------------------------------

What's the problem? How can I fix/avoid this error? Thanks for any clues.

Regards,
George
-- 
View this message in context: 
http://www.nabble.com/Failed-to-build-AppFuse-2.1-SNAPSHOT-tp23378894s2369p23378894.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