atom feed3 messages in net.java.dev.appfuse.issues[appfuse-issues] maven duplicates res...
FromSent OnAttachments
Dan_TTJul 18, 2008 11:40 am 
Matt RaibleJul 18, 2008 12:44 pm 
Dan_TTJul 18, 2008 1:45 pm 
Subject:[appfuse-issues] maven duplicates resources when building eclipse project
From:Dan_TT (bris@gmail.com)
Date:Jul 18, 2008 11:40:28 am
List:net.java.dev.appfuse.issues

Okay - here's the situation: I used the AppFuse archetype 'appfuse-basic-struts' to generate a project using Maven 2. That worked great (except that the db creation failed since I had a password on the MySQL 'root' user account).

Anyway, after working out the db issue, I tried running it using 'mvn jetty:run-war' but Jetty either wasn't running or something because no pages were being displayed at localhost:8080. So I dropped the .war file into the Tomcat webapps directory and it worked fine (except that I still can't log into the app as 'admin' or 'user' but instead had to create my own account).

ANYway, I finally decided that I was ready to start extending the app in my own way. I ran the 'mvn eclipse:eclipse' goal to get it setup for eclipse, and I noticed that it was downloading a bucketload of jar files that seemed to be very similar. In fact, it was downloading (almost) everything twice: once from 'repo1.maven.org' and once from 'static.appfuse.org'. Here is a sample of the maven output:

Downloading: http://repo1.maven.org/maven2/opensymphony/ognl/2.6.11/ognl-2.6.11-javadoc.jar Downloading: http://static.appfuse.org/repository/opensymphony/ognl/2.6.11/ognl-2.6.11-javadoc.jar

I think the only reason why it didn't have to download every single one twice is that I already ran the eclipse goal on another basic project.

Is this the expected behavior? Why would it have to get everything twice - are the AppFuse versions somehow different from the ones hosted at maven.org?

Any insight appreciated, Dan