Hi everyone,

Vincent asked me to ask this question on the list, so here I am:

I followed the "Starting and stopping a container" tutorial, but it does not work. "mvn cargo:deploy" deploys as expected (copies my EJB artifact to the deploy directory), but "mvn cargo:start" deletes the artifact again, then starts the container.

What is wrong with my POM?

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>

        <groupId>ejbGroupId</groupId>
        <artifactId>ejbArtifactId</artifactId>
        <packaging>ejb</packaging>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-ejb-plugin</artifactId>
                                <configuration>
                                        <archive>
                                                <manifest>
                                                        
<addClasspath>true</addClasspath>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.cargo</groupId>
                                <artifactId>cargo-maven2-plugin</artifactId>
                                <configuration>
                                        <container>
                                                
<containerId>jboss3x</containerId>
                                                <home>${jboss3x.dir}</home>
                                                
<output>target/jboss-output.log</output>
                                        </container>
                                        <configuration>
                                                <home>target/jboss-config</home>
                                                <properties>
                                                        
<cargo.rmi.port>1100</cargo.rmi.port>
                                                        
<cargo.servlet.port>8081</cargo.servlet.port>
                                                        
<cargo.logging>high</cargo.logging>
                                                </properties>
                                                <deployables>
                                                        <deployable>
                                                                
<groupId>ejbGroupId</groupId>
                                                                
<artifactId>ejbArtifactId</artifactId>
                                                                <type>ejb</type>
                                                        </deployable>
                                                </deployables>
                                        </configuration>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                [...]
        </dependencies>

</project>

See also:

http://jira.codehaus.org/browse/CARGO-344?page=comments#action_67926

Regards,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to