assembly-examples icon indicating copy to clipboard operation
assembly-examples copied to clipboard

assemblies-with-modules-and-deps BUILD FAILURE

Open violinday opened this issue 6 years ago • 0 comments

[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Packaging Test : Distribution 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven) @ dist --- [INFO] [INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ dist --- [INFO] [INFO] --- maven-assembly-plugin:2.4:single (make-bundles) @ dist --- [INFO] Reading assembly descriptor: proj1-assembly.xml [WARNING] Missing POM for org.test.parent:module-one:jar:1.0.0-SNAPSHOT [WARNING] Missing POM for org.test.parent:module-two:jar:1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.392 s [INFO] Finished at: 2019-03-05T10:57:33+08:00 [INFO] Final Memory: 17M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-bundles) on project dist: Failed to create assembly: Unable to resolve dependencies for assembly 'bin': Failed to resolve dependencies for assembly: Missing: [ERROR] ---------- [ERROR] 1) org.test.parent:module-one:jar:1.0.0-SNAPSHOT [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=org.test.parent -DartifactId=module-one -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -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=org.test.parent -DartifactId=module-one -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.test.parent:dist:pom:1.0.0-SNAPSHOT [ERROR] 2) org.test.parent:module-one:jar:1.0.0-SNAPSHOT [ERROR] [ERROR] 2) org.test.parent:module-two:jar:1.0.0-SNAPSHOT [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=org.test.parent -DartifactId=module-two -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -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=org.test.parent -DartifactId=module-two -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] Path to dependency: [ERROR] 1) org.test.parent:dist:pom:1.0.0-SNAPSHOT [ERROR] 2) org.test.parent:module-two:jar:1.0.0-SNAPSHOT [ERROR] [ERROR] ---------- [ERROR] 2 required artifacts are missing. [ERROR] [ERROR] for artifact: [ERROR] org.test.parent:dist:pom:1.0.0-SNAPSHOT [ERROR] [ERROR] from the specified remote repositories: [ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [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

Process finished with exit code 1

violinday avatar Mar 05 '19 03:03 violinday