Hi,

I was following the steps to create a new project,
http://appfuse.org/display/APF/AppFuse+QuickStart.

I choose:
Version: 2.1.0-M1
Web Framework: Struts 2
Multi-Module Project: true

giving the following command line:
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-modular-struts-archetype
-DarchetypeVersion=2.1.0-M1 -DgroupId=com.testsite -DartifactId=system

but when I cd into the project (step 3 in run your application) I get an
error since there are 2 modules blocks in the pom.xml file (both look the
same)
    <modules>
        <module>core</module>
        <module>web</module>
    </modules>

Deleting one of them and trying to run again I next get alot of "Failed to
resolve artifact" for spring, javax.persistence, cxf, hibernate, ehcache,
javax.mail, compass, beanutils, commons-lang, log4j and velocity.

I also tried to create a non modular project and then I did not get those
"Failed to resolve artifact" errors (but got one test error,
testSaveConflictingUser). Looking into the poms I see that repositories
and pluginRepositories are the same so to me this looks strange (but I have
a limited knowledge of maven).

I tried adding in more repositories:
<repository>
   <id>central</id>
   <url>http://repo1.maven.org/maven2</url>
</repository>
<repository>
    <id>compass-project.org</id>
    <name>Compass</name>
    <url>http://repo.compass-project.org</url>
</repository>
<repository>
     <id>commons-lang</id>
     <url>
http://mirrors.ibiblio.org/pub/mirrors/maven2/commons-lang/commons-lang/
</url>
</repository>

But that doesn't seem to change anything.

Do I really need to download and install each jar manually as is suggested
in the error message, or could there be some simple error in the pom or
something like that?

By the way I have created a new project several times before and never had
any problems like those, haven't done it for a few months now and before I
started I had to upgrade to maven 2.2.1 from 2.0.2 (if I remember correctly)

best regards,
Magnus

Reply via email to