Versions Compared

Key

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

...

Info
title<pluginRepository> and <repository> declarations

Note that you need to declare both the pluginRepository and repository, due to the way how the Codehaus Cargo Maven 3 plugin's container artifact loading mechanism works.

When you do not do that properly, you will be getting errors such as:

Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat9x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?

In case the errors persist even after adding the SNAPSHOT repositories, you can install the associated container artifact. Example (with the Codehaus Cargo Tomcat container):

mvn dependency:get -Dartifact=org.codehaus.cargo:cargo-core-container-tomcat:1.10.1213-SNAPSHOT -DremoteRepositories=https://oss.sonatype.org/content/repositories/snapshots/

...

Code Block
xml
xml
[...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven3-plugin</artifactId>
        <version>1.10.1213-SNAPSHOT</version>
[...]
      </plugin>
[...]
    </plugins>
  </build>
[...]

...