Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any trailing URL segment is treated as <type>. Erroneous POM dependency snippet generated. #129

Open
cedric-sun opened this issue Jun 17, 2020 · 0 comments

Comments

@cedric-sun
Copy link

cedric-sun commented Jun 17, 2020

  • What are you trying to do?
  1. Visit https://search.maven.org
  2. Search for com.fasterxml.jackson.core:jackson-core or simply jackson-core
  3. Click Latest Version of 2.11.0 (the link is https://search.maven.org/artifact/com.fasterxml.jackson.core/jackson-core/2.11.0/bundle)
  4. This leads me to the result page. And it seems that the backend treats any trailing string as the <type> of the dependency (which is confusing enough), and generates the following POM snippet:
<dependency>
  <groupId>com.fasterxml.jackson.core</groupId>
  <artifactId>jackson-core</artifactId>
  <version>2.11.0</version>
  <type>bundle</type>
</dependency>

Use this snippet in any pom.xml, and mvn compile complains:

Could not resolve dependencies for project xxx:
Failure to find com.fasterxml.jackson.core:jackson-core:bundle:2.11.0 in 
https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be 
reattempted until the update interval of central has elapsed or updates are forced
  • What feature or behavior is this required for?

  • How could we solve this issue? (Not knowing is okay!)

  • Anything else?

You can literally generate

<dependency>
  <groupId>com.fasterxml.jackson.core</groupId>
  <artifactId>jackson-core</artifactId>
  <version>2.11.0</version>
  <type>WHAT-EVER-TYPE-YOU-WANT</type>
</dependency>

by visiting https://search.maven.org/artifact/com.fasterxml.jackson.core/jackson-core/2.11.0/WHAT-EVER-TYPE-YOU-WANT

@cedric-sun cedric-sun changed the title Strange <type>bundle</type> listed in POM dependency descriptor Any trailing URL segment is treated as <type>. Erroneous POM dependency snippet generated. Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant