chonton / exists-maven-plugin

Check if artifact exists in remote maven repository
Apache License 2.0
47 stars 18 forks source link

Wrong artifact ID output when looking for a remote artifact #17

Closed jhonny-oliveira closed 5 years ago

jhonny-oliveira commented 5 years ago

Hi!

Assuming we are on project "mypoc" and we check if a remote artifact ("app-rs-web" in this scenario) the output line will mention "@ mypoc" as opposed to "@ app-rs-web". Having the correct value is convenient for scripting purposes.

Please check the attachment for further details.

misleadingOutput.txt

Cheers, Jhonny Oliveira

chonton commented 5 years ago

The text --- exists-maven-plugin:0.1.0:remote (default-cli) @ mypoc --- is output by maven. The value before the parenthesis is the plugin being executed. Inside the parenthesis is the execution id. The id default-cli indicates you executed the plugin from the command line. The value after the @ is the artifactId from the pom.