« Return to Thread: transitive cargo dependencies

transitive cargo dependencies

by Alexander Brill :: Rate this Message:

Reply to Author | View in Thread

Hi,

I have a parent pom where I have defined my cargo plugin configuration for Maven2 which several of our projects use.

However, one of our projects have an extra dependency which I don't want included into the other projects. So I'd like to append this extra dependency to the projects pom.

But trying to reconfigure the plugin overwrites all the other dependencies, so I only get mygroup:myartifact included, all other are removed. Is there a way to accomplish what I want?

      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <configuration>
          <container>
            <dependencies>
                <dependency>
                    <artifactId>myartifact</artifactId>
                    <groupId>mygroup</groupId>
                </dependency>
            </dependencies>
        </container>
        </configuration>
      </plugin>


--
Alexander Brill
http://brill.no

 « Return to Thread: transitive cargo dependencies