0
点赞
收藏
分享

微信扫一扫

【Dubbo】mvn clean package失败


mvn clean package失败

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.dubbo:protobuf-provider:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ org.apache.dubbo:dubbo-samples-protobuf:1.0-SNAPSHOT, /opt/www/spring-cloud-alibaba/dubbo-samples/dubbo-samples-protobuf/pom.xml, line 140, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.dubbo:protobuf-consumer:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ org.apache.dubbo:dubbo-samples-protobuf:1.0-SNAPSHOT, /opt/www/spring-cloud-alibaba/dubbo-samples/dubbo-samples-protobuf/pom.xml, line 140, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.apache.dubbo:dubbo-samples-protobuf:pom:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 140, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: osx
[INFO] os.detected.arch: aarch_64
[INFO] os.detected.version: 11.4
[INFO] os.detected.version.major: 11
[INFO] os.detected.version.minor: 4
[INFO] os.detected.classifier: osx-aarch_64
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] dubbo-samples-protobuf [pom]
[INFO] protobuf-provider [jar]
[INFO] protobuf-consumer [jar]
[INFO]
[INFO] --------------< org.apache.dubbo:dubbo-samples-protobuf >---------------
[INFO] Building dubbo-samples-protobuf 1.0-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dubbo-samples-protobuf ---
[INFO]
[INFO] --- protobuf-maven-plugin:0.5.1:compile (default) @ dubbo-samples-protobuf ---
[INFO] Skipping mojo execution for project with packaging type 'pom'
[INFO]
[INFO] --- build-helper-maven-plugin:3.2.0:add-source (default) @ dubbo-samples-protobuf ---
[INFO] Source directory: /opt/www/spring-cloud-alibaba/dubbo-samples/dubbo-samples-protobuf/build/generated/source/proto/main/java added.
[INFO]
[INFO] --- protobuf-maven-plugin:0.5.1:test-compile (default) @ dubbo-samples-protobuf ---
[INFO] Skipping mojo execution for project with packaging type 'pom'
[INFO]
[INFO] -----------------< org.apache.dubbo:protobuf-provider >-----------------
[INFO] Building protobuf-provider 1.0-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ protobuf-provider ---
[INFO] Deleting /opt/www/spring-cloud-alibaba/dubbo-samples/dubbo-samples-protobuf/protobuf-provider/target
[INFO]
[INFO] --- protobuf-maven-plugin:0.5.1:compile (default) @ protobuf-provider ---
[INFO] Building protoc plugin: dubbo
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for dubbo-samples-protobuf 1.0-SNAPSHOT:
[INFO]
[INFO] dubbo-samples-protobuf ............................. SUCCESS [ 0.192 s]
[INFO] protobuf-provider .................................. FAILURE [ 0.183 s]
[INFO] protobuf-consumer .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.503 s
[INFO] Finished at: 2021-08-26T23:01:40+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project protobuf-provider: Missing:
[ERROR] ----------
[ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=3.7.1 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR] Path to dependency:
[ERROR] 1) org.apache.dubbo:protobuf-provider:jar:1.0-SNAPSHOT
[ERROR] 2) com.google.protobuf:protoc:exe:osx-aarch_64:3.7.1
[ERROR]
[ERROR] ----------
[ERROR] 1 required artifact is missing.
[ERROR]
[ERROR] for artifact:
[ERROR] org.apache.dubbo:protobuf-provider:jar:1.0-SNAPSHOT
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots, releases=false, snapshots=true),
[ERROR] sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots, releases=false, snapshots=true),
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :protobuf-provider

举报

相关推荐

0 条评论