If you use the commands described on the QuickStart Guide, it should work.

http://appfuse.org/display/APF/AppFuse+QuickStart

The command you're using pulls the 2.0 version of AppFuse, which is almost 1
year old.

Matt

On Thu, Jul 24, 2008 at 12:51 AM, Laurent Trillaud <[EMAIL PROTECTED]>
wrote:

>
> It's easy to repoduce
>
> Let's start with a fresh install of maven 2.0.9 with an empty repository
> and
> no setting.xml. Buildin repository will be used.
>
> the command :
> mvn archetype:generate -DgroupId=fr.jouve.dtsi -DartifactId=test
> -Dversion=0.0.1-SNAPSHOT
>
> output :
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [INFO] org.codehaus.mojo: checking for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for updates from central
> Downloading:
>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.pom
> 4K<http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-3/maven-archetype-plugin-2.0-alpha-3.pom4K>downloaded
> Downloading:
>
> http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/2.0-alpha-3/maven-archetype-2.0-alpha-3.pom
> ..........
> [INFO] Generating project in Interactive mode
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:0.0.1-SNAPSHOT)
> Choose archetype:
> 1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web
> application with Hibernate, Spring and JSF)
> 2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web
> application with Hibernate, Spring and Spring MVC)
> 3: internal -> appfuse-basic-struts (AppFuse archetype for creating a web
> application with Hibernate, Spring and Struts 2)
> choose 3
> ...........
> Downloading:
>
> http://repo1.maven.org/maven2/org/appfuse/archetypes/appfuse-basic-struts/2.0/appfuse-basic-struts-2.0.jar
> 71K<http://repo1.maven.org/maven2/org/appfuse/archetypes/appfuse-basic-struts/2.0/appfuse-basic-struts-2.0.jar71K>downloaded
> ...........
> [INFO] BUILD SUCCESSFUL
>
>
>
> Then the command :
> mvn appfuse:full-source
>
> output :
> [INFO] Searching repository for plugin with prefix: 'appfuse'.
> [INFO] org.apache.maven.plugins: checking for updates from appfuse
> [INFO] org.codehaus.mojo: checking for updates from appfuse
> [INFO] snapshot org.codehaus.mojo:appfuse-maven-plugin:2.0-SNAPSHOT:
> checking for updates from appfuse
> [INFO] snapshot org.codehaus.mojo:appfuse-maven-plugin:2.0-SNAPSHOT:
> checking for updates from central
> Downloading:
>
> http://static.appfuse.org/repository/org/codehaus/mojo/appfuse-maven-plugin/2.0-SNAPSHOT/appfuse-maven-plugin-2.0-20070918.092511-125.pom
> 10K<http://static.appfuse.org/repository/org/codehaus/mojo/appfuse-maven-plugin/2.0-SNAPSHOT/appfuse-maven-plugin-2.0-20070918.092511-125.pom10K>downloaded
> .........
> [INFO] [appfuse:full-source]
> [INFO] [AppFuse] Installing source from data modules...
> [INFO] [AppFuse] Installing source from service module...
> [INFO] [AppFuse] Installing source from web-common module...
> [INFO] [AppFuse] Installing source from struts module...
> [INFO] [AppFuse] Source successfully exported, modifying pom.xml...
> [INFO] [AppFuse] Removing maven-warpath-plugin...
> [INFO] [AppFuse] Adding dependencies from root module...
> [INFO] [AppFuse] Adding dependencies from data-common module...
> org.apache.maven.project.ProjectBuildingException: Cannot find parent:
> org.appfuse:appfuse-data for project: null:appfuse-data-common:jar:null for
> project null:appfuse-data-common:jar:null
> ..........
> Caused by: org.apache.maven.project.ProjectBuildingException: POM
> 'org.appfuse:appfuse-data' not found in repository: Unable to download the
> artifact from any repository
>
>  org.appfuse:appfuse-data:pom:2.1-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>  for project org.appfuse:appfuse-data
>        at
>
> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
>        at
>
> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
>        ... 28 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
> Unable to download the artifact from any repository
>
>  org.appfuse:appfuse-data:pom:2.1-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>
> Then if I download by hand the 3 artifacts missing, after it's
> mvn eclipse:eclipse that no longer works.
>
> Thanks
>
> Laurent
>
>
> mraible wrote:
> >
> > What version of AppFuse are you using?
> >
> > Can you send the specific commands you're using so we can try to
> reproduce
> > locally.
> >
> > Matt
> >
> > On Wed, Jul 23, 2008 at 7:46 AM, Laurent Trillaud <[EMAIL PROTECTED]>
> > wrote:
> >
> >>
> >> Hi
> >>
> >> I'am trying to use appfuse-basic-struts without success.
> >>
> >> I'am able to generate a new project with mvn artifact:generate and run
> it
> >> with mvn jetty:run-war. But after when I run mvn appfuse:full-source I
> >> got
> >> unable to download appfuse-data pom 2.1-SNAPSHOT, appfuse  pom
> >> 2.1-SNAPSHOT
> >> and appfuse-web  pom 2.1-SNAPSHOT.
> >> I don"t know why because they are on the appfuse repository.
> >>
> >> If I download it and install them in my local repository with mvn
> >> install:file i'am able to finish the full-source goal.
> >>
> >> But after it's the goal eclipse:eclipse that don't work. It request very
> >> old
> >> version that exist nowhere :
> >> - org.jmock:jmock-junit4:jar:1.1.0
> >> - org.springframework:spring-test:jar:2.0.6
> >> - org.springframework:spring-context-support:jar:2.0.6
> >>
> >> What is the way to use full-source with Eclipse?
> >>
> >> That in advance
> >>
> >> Laurent
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/appfuse-basic-struts-and-appfuse%3Afull-source-doesn%27t-work-tp18612370s2369p18612370.html
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/appfuse-basic-struts-and-appfuse%3Afull-source-doesn%27t-work-tp18612370s2369p18626980.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to