mvn Commands Not Working with containerId and containerUrl

Description

Maven commands are not working with containerId and containerUrl. For Command Below its always downloading Jetty 8 Server:

Activity

Show:
Ankur Pathak
February 27, 2021, 6:32 PM

Yes thanks. It's clear now.

S. Ali Tokmen
February 27, 2021, 6:26 PM

The core change with Codehaus Cargo 1.9.x is that the Maven plugin has moved form a Maven 2 plugin compatible with Maven 3 towards a Maven 3 only plugin, which under the hood implies that the way the plugin works is different.

In particular, in Maven 2 one would create the MOJO’s attributes as follows (as Javadoc):

ın Maven 3, these became annotations:

There is nothing you have done wrong - This is a bug on Codehaus Cargo, which will be fixed with version 1.9.2. You can see the code changes on https://github.com/codehaus-cargo/cargo/commit/2553d1351b19225b19e80916001e4c61e49193eb

Does this help?

Ankur Pathak
February 27, 2021, 6:21 PM

I didn't get u. What do u mean by Maven 2 Style and Maven 3 Style. Is their any other way in Maven 3 plugin to make it working.

S. Ali Tokmen
February 27, 2021, 4:56 PM

Good catch - It seems indeed these parameters were still in the Maven2-style (i.e., put as Javadoc comments) instead of the Maven3 style (annotations).

This will be fixed with version 1.9.2.

Fixed

Assignee

S. Ali Tokmen

Reporter

Ankur Pathak

Components

Fix versions

Affects versions

Priority

Major