Skip to content

[MNG-8383] Fix unsupported type dependencies put on classpath#1921

Merged
gnodet merged 7 commits intoapache:masterfrom
gnodet:MNG-8383
Nov 18, 2024
Merged

[MNG-8383] Fix unsupported type dependencies put on classpath#1921
gnodet merged 7 commits intoapache:masterfrom
gnodet:MNG-8383

Conversation

@gnodet
Copy link
Contributor

@gnodet gnodet commented Nov 18, 2024

  • [MNG-8383] Fix dependencies of unknown type being added to classpath
  • Add IT

@gnodet gnodet added this to the 4.0.0-rc-1 milestone Nov 18, 2024
@gnodet gnodet merged commit bbf57bc into apache:master Nov 18, 2024
@gnodet gnodet deleted the MNG-8383 branch December 13, 2024 15:47
@jira-importer
Copy link

Resolve #9470

@michael-o
Copy link
Member

The IT it not really portable because it only succeeds where the classified artifact exists, otherwise it fails:

[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (compile) on project root: Unable to resolve artifact: Missing:
----------
1) com.google.protobuf:protoc:exe:freebsd-x86_64:3.25.5

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.25.5 -Dclassifier=freebsd-x86_64 -Dpackaging=exe -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.25.5 -Dclassifier=freebsd-x86_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.apache.maven.its.mng8383:root:jar:1.0.0-SNAPSHOT
        2) com.google.protobuf:protoc:exe:freebsd-x86_64:3.25.5

----------

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

Successfully merging this pull request may close these issues.

4 participants