Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<dependencies>
  [...]
  <dependency>
    <groupId>my.war.groupId</groupId>
    <artifactId>my-war</artifactId>
    <version>1.0.0</version>
    <packaging>war</packaging>
  </dependency>
  [...]
</dependencies>

[...]

<plugins>
  [...]

  <plugin>
    <groupId>org.codehaus.cargo</groupId>
    <artifactId>cargo-maven2-plugin</artifactId>
    <configuration>
      <container>
        [...]
      </container>
      <configuration>
        <type>standalone</type>
        [...]
        <deployables>
          <deployable>
            <groupId>my.war.groupId</groupId>
            <artifactId>my-war</artifactId>
            <type>war</type>
          </deployable>
        </deployables>
      </configuration>
    </configuration>
  </plugin>
</plugins>
Note
titleCareful with the <configuration> elements!

The Maven2 plugin has two <configuration> elements:

  • The first (outer) one is the plugin's configuration
  • The second (inner) one is the container's configuration

The <deployables> element should be in the inner <configuration> element.