Do you have a settings.xml file defined with a local repository explicitly
set? It may be that the AppFuse plugin does not work with the default
settings (i.e. no settings.xml in the user's home directory)?

Mike

On 10/11/07, Matt Raible <[EMAIL PROTECTED]> wrote:
>
> I don't know what to say - if I can't reproduce the problem I can't
> fix it. I just tried with JDK 5 on OS X and it worked fine:
>
> mraible-mn:~/myproject mraible$ mvn appfuse:full-source
> [INFO] Scanning for projects...
> [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]
> ----------------------------------------------------------------------------
> [INFO] Building AppFuse JSF Application
> [INFO]    task-segment: [appfuse:full-source]
> [INFO]
> ----------------------------------------------------------------------------
> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> invalid. It will be ignored for artifact resolution. Reason: Parse
> error reading POM. Reason: TEXT must be immediately followed by
> END_TAG and not START_TAG (position: START_TAG seen
> ...<licenses>\n\t\t\t<license>... @12:13)  for project
> org.hibernate:jtidy at
> /Users/mraible/.m2/repository/org/hibernate/jtidy/r8-20060801/jtidy-
> r8-20060801.pom
> [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 jsf 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...
> [INFO] [AppFuse] Adding dependencies from hibernate module...
> [INFO] [AppFuse] Adding dependencies from service module...
> [INFO] [AppFuse] Adding dependencies from web-common module...
> [INFO] [AppFuse] Adding dependencies from jsf module...
> [INFO] [AppFuse] Removing maven-warpath-plugin...
> [INFO] [AppFuse] Updated dependencies in pom.xml...
> [INFO] [AppFuse] Renaming packages to 'com.mycompany.app'...
> [info] [AppFuse] Refactored all 'org.appfuse' packages and paths to
> 'com.mycompany.app'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 23 seconds
> [INFO] Finished at: Thu Oct 11 10:26:15 MDT 2007
> [INFO] Final Memory: 7M/508M
> [INFO]
> ------------------------------------------------------------------------
>
> You might want to try it from the cmd prompt rather than Cygwin.
>
> Matt
>
> On 10/11/07, SamImari <[EMAIL PROTECTED]> wrote:
> >
> > Same with JDK 1.5.0_06
> >
> > Regards,
> >
> > SAM
> >
> >
> > mraible wrote:
> > >
> > > Can you see if this error happens with JDK 5?
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > > On 10/11/07, SamImari <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Hi Matt,
> > >>
> > >> I tried the sequence (create project, integration-test, full-source)
> > >> again
> > >> and same error.
> > >>
> > >> Im not behind a firewall.
> > >>
> > >> Regards,
> > >>
> > >> SAM
> > >>
> > >>
> > >>
> > >> mraible wrote:
> > >> >
> > >> > Are you behind a proxy? It doesn't appear so. Can you try running
> > >> > full-source again?
> > >> >
> > >> > Matt
> > >> >
> > >> >
> > >> > On 10/11/07, SamImari <[EMAIL PROTECTED]> wrote:
> > >> >>
> > >> >> Hello,
> > >> >>
> > >> >> I want to add the appfuse source to my JSF-Basic project but
> failed
> > >> with
> > >> >> java.lang.IllegalArgumentException: When not aligning with a user
> > >> install
> > >> >> you must specify a local repository location using the
> > >> >> setLocalRepositoryDirectory( File ) method.
> > >> >>
> > >> >> After the exception occurs the project seems to be corrupted. mvn
> > >> >> integration-test failed immediately (see second mvn trace)
> > >> >>
> > >> >> What I have done:
> > >> >> 1. create project with:
> > >> >> $ mvn -e archetype:create -DarchetypeGroupId=
> org.appfuse.archetypes
> > >> >> -DarchetypeArtifactId=appfuse-basic-jsf
> > >> >> -DremoteRepositories=http://static.appfus
> > >> >> e.org/releases -DarchetypeVersion=2.0 -DgroupId=com.mycompany.app
> > >> >> -DartifactId=myproject
> > >> >>
> > >> >> 2. cd into project directory
> > >> >>
> > >> >> 3. mvn -e integration-test -> everything is fine
> > >> >>
> > >> >> 4. mvn -e appfuse:full-source -> Exception
> > >> >>
> > >> >> Environment:
> > >> >> Windows 2000
> > >> >> cygwin
> > >> >> JDK 1.6.0_03
> > >> >> Maven 2.0.7
> > >> >> fresh maven repository
> > >> >>
> > >> >> Regards,
> > >> >>
> > >> >> SAM
> > >> >>
> > >> >> --- 1. trace:
> > >> >>
> > >> >> $ mvn -e appfuse:full-source
> > >> >> Listening for transport dt_socket at address: 4000
> > >> >> + Error stacktraces are turned on.
> > >> >> [INFO] Scanning for projects...
> > >> >> [INFO] Searching repository for plugin with prefix: 'appfuse'.
> > >> >> [INFO]
> > >> >>
> > >>
> ----------------------------------------------------------------------------
> > >> >> [INFO] Building AppFuse JSF Application
> > >> >> [INFO]    task-segment: [appfuse:full-source]
> > >> >> [INFO]
> > >> >>
> > >>
> ----------------------------------------------------------------------------
> > >> >> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> > >> >> invalid.
> > >> >> It will be ignored for artifact resolution. Reason: Parse error
> > >> reading
> > >> >> PO
> > >> >> M. Reason: TEXT must be immediately followed by END_TAG and not
> > >> START_TAG
> > >> >> (position: START_TAG seen ...<licenses>\n\t\t\t<license>...
> @12:13)
> > >> for
> > >> >> pro
> > >> >> ject org.hibernate:jtidy at
> > >> >>
> > >> E:\java\maven_repository\org\hibernate\jtidy\r8-20060801\jtidy-
> r8-20060801.pom
> > >> >> [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 jsf module...
> > >> >> [INFO] [AppFuse] Source successfully exported, modifying pom.xml..
> .
> > >> >> [INFO] [AppFuse] Removing maven-warpath-plugin...
> > >> >> [INFO] [AppFuse] Adding dependencies from root module...
> > >> >> java.lang.IllegalArgumentException: When not aligning with a user
> > >> install
> > >> >> you must specify a local repository location using the
> > >> >> setLocalRepositoryDir
> > >> >> ectory( File ) method.
> > >> >>         at
> > >> >>
> > >> org.apache.maven.embedder.MavenEmbedder.createMavenSettings(
> MavenEmbedder.java:699)
> > >> >>         at
> > >> >> org.apache.maven.embedder.MavenEmbedder.start(MavenEmbedder.java
> :628)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.createProjectFromPom(
> InstallSourceMojo.java:706)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(
> InstallSourceMojo.java:662)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(
> InstallSourceMojo.java:629)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.execute(
> InstallSourceMojo.java:225)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
> DefaultLifecycleExecutor.java:493)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:463)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > >> >>         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)
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [ERROR] FATAL ERROR
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] null
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] Trace
> > >> >> java.lang.NullPointerException
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(
> InstallSourceMojo.java:664)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies(
> InstallSourceMojo.java:629)
> > >> >>         at
> > >> >>
> > >> org.appfuse.mojo.installer.InstallSourceMojo.execute(
> InstallSourceMojo.java:225)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
> DefaultLifecycleExecutor.java:493)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:463)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > >> >>         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)
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] Total time: 44 seconds
> > >> >> [INFO] Finished at: Thu Oct 11 13:27:32 CEST 2007
> > >> >> [INFO] Final Memory: 9M/63M
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >>
> > >> >> --- 2. Trace
> > >> >> $ mvn -e integration-test
> > >> >> Listening for transport dt_socket at address: 4000
> > >> >> + Error stacktraces are turned on.
> > >> >> [INFO] Scanning for projects...
> > >> >> [INFO]
> > >> >>
> > >>
> ----------------------------------------------------------------------------
> > >> >> [INFO] Building AppFuse JSF Application
> > >> >> [INFO]    task-segment: [integration-test]
> > >> >> [INFO]
> > >> >>
> > >>
> ----------------------------------------------------------------------------
> > >> >> [INFO] [aspectj:compile {execution: default}]
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [ERROR] BUILD ERROR
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] The artifact org.springframework:spring-aspects referenced
> in
> > >> >> aspectj
> > >> >> plugin as an aspect library, is not found the project dependencies
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] Trace
> > >> >> org.apache.maven.lifecycle.LifecycleExecutionException: The
> artifact
> > >> >> org.springframework:spring-aspects referenced in aspectj plugin as
> an
> > >> >> aspect
> > >> >> lib
> > >> >> ary, is not found the project dependencies
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:564)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:480)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:459)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:311)
> > >> >>         at
> > >> >>
> > >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:143)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > >> >>         at
> > >> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >> >>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> > >> >>         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: The
> > >> artifact
> > >> >> org.springframework:spring-aspects referenced in aspectj plugin as
> an
> > >> >> aspect
> > >> >> ibrary, is not found the project dependencies
> > >> >>         at
> > >> >>
> > >> org.codehaus.mojo.aspectj.AbstractAjcCompiler.addModulesArgument(
> AbstractAjcCompiler.java:435)
> > >> >>         at
> > >> >>
> > >> org.codehaus.mojo.aspectj.AbstractAjcCompiler.assembleArguments(
> AbstractAjcCompiler.java:384)
> > >> >>         at
> > >> >>
> > >> org.codehaus.mojo.aspectj.AbstractAjcCompiler.execute(
> AbstractAjcCompiler.java:314)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:443)
> > >> >>         at
> > >> >>
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:539)
> > >> >>         ... 16 more
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >> [INFO] Total time: 3 seconds
> > >> >> [INFO] Finished at: Thu Oct 11 13:32:33 CEST 2007
> > >> >> [INFO] Final Memory: 12M/63M
> > >> >> [INFO]
> > >> >>
> > >>
> ------------------------------------------------------------------------
> > >> >>
> > >> >> --
> > >> >> View this message in context:
> > >> >>
> > >>
> http://www.nabble.com/appfuse-basic-jsf%3A-mvn-appfuse%3Afull-source--%3E-IllegalArgumentException-tf4606657s2369.html#a13153984
> > >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> > >> >>
> > >> >>
> ---------------------------------------------------------------------
> > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> > --
> > >> > http://raibledesigns.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-jsf%3A-mvn-appfuse%3Afull-source--%3E-IllegalArgumentException-tf4606657s2369.html#a13158418
> > >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> > > --
> > > http://raibledesigns.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-jsf%3A-mvn-appfuse%3Afull-source--%3E-IllegalArgumentException-tf4606657s2369.html#a13159219
> > Sent from the AppFuse - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to