Hi,
I had the same problem working with a JSF Modular acrchetype. I resolved
this problem uncomment one line of configuration os cargo plugin in pom.xml
belonging to the web module:
profiles | profile | build | plugins | plugin | configuration | container |
home
<profiles>
<profile>
<id>integration-test</id>
<activation>
<property>
<name>!maven.test.skip</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>0.3</version>
<configuration>
<wait>${cargo.wait}</wait>
<container>
<containerId>${cargo.container}</containerId>
<home>${cargo.container.home}</home>
<zipUrlInstaller>
<url>${cargo.container.url}</url>
<installDir>${installDir}</installDir>
</zipUrlInstaller>
</container>
<configuration>
<home>${project.build.directory}/${cargo.container}/container</home>
<properties>
<cargo.hostname>${cargo.host}</cargo.hostname>
<cargo.servlet.port>${cargo.port}</cargo.servlet.port>
</properties>
</configuration>
</configuration>
After this, yo can execute:
$mvnproject/web> mvn install
Greetings.
raniwala wrote:
>
> Hi Guys,
>
> I am back to Appfuse after 2 yrs. Getting little trouble in installing it
> properly. I am using JSF modular archetype. Project gets created fine and
> I can even run it with jetty.
>
> Problem is in running “mvn” from project directory. I am getting this
> exception. Please help.
>
> [INFO] [cargo:start {execution: start-container}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to get container installation home as the container has not
> yet be
> en installed. Please call install() first.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.codehaus.cargo.container.ContainerException: Failed to get container
> install
> ation home as the container has not yet been installed. Please call
> install() fi
> rst.
> at
> org.codehaus.cargo.container.installer.ZipURLInstaller.getHome(ZipURL
> Installer.java:195)
> at
> org.codehaus.cargo.maven2.configuration.Container.setupHome(Container
> .java:338)
> at
> org.codehaus.cargo.maven2.configuration.Container.createContainer(Con
> tainer.java:221)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(Abstra
> ctCargoMojo.java:380)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(AbstractC
> argoMojo.java:320)
> at
> org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(ContainerStart
> Mojo.java:52)
> at
> org.codehaus.cargo.maven2.AbstractCargoMojo.execute(AbstractCargoMojo
> .java:243)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:451)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:558)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>
>
> Thanks,
> Ashish
>
>
--
View this message in context:
http://www.nabble.com/Exception-in-running-mvn-tp17452827s2369p17466613.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]