Skip to content

Instantly share code, notes, and snippets.

@kyanny
Created September 3, 2021 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyanny/fe3c3330c91593ec16f7d1b371f59db7 to your computer and use it in GitHub Desktop.
Save kyanny/fe3c3330c91593ec16f7d1b371f59db7 to your computer and use it in GitHub Desktop.
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.mycompany.app:myApp >-----------------------
[INFO] Building myApp 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ myApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/vagrant/myApp/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ myApp ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ myApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/vagrant/myApp/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ myApp ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ myApp ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.mycompany.app.AppTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.054 s - in com.mycompany.app.AppTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ myApp ---
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ myApp ---
[INFO] Installing /home/vagrant/myApp/target/myApp-1.0-SNAPSHOT.jar to /home/vagrant/.m2/repository/com/mycompany/app/myApp/1.0-SNAPSHOT/myApp-1.0-SNAPSHOT.jar
[INFO] Installing /home/vagrant/myApp/pom.xml to /home/vagrant/.m2/repository/com/mycompany/app/myApp/1.0-SNAPSHOT/myApp-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ myApp ---
[INFO] Using alternate deployment repository github::default::https://github.com/kyanny/hello
[INFO] Downloading from github: https://github.com/kyanny/hello/com/mycompany/app/myApp/1.0-SNAPSHOT/maven-metadata.xml
[INFO] Uploading to github: https://github.com/kyanny/hello/com/mycompany/app/myApp/1.0-SNAPSHOT/myApp-1.0-20210903.175557-1.jar
[INFO] Uploading to github: https://github.com/kyanny/hello/com/mycompany/app/myApp/1.0-SNAPSHOT/myApp-1.0-20210903.175557-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.273 s
[INFO] Finished at: 2021-09-03T17:55:59Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project myApp: Failed to deploy artifacts: Could not transfer artifact com.mycompany.app:myApp:jar:1.0-20210903.175557-1 from/to github (https://github.com/kyanny/hello): Transfer failed for https://github.com/kyanny/hello/com/mycompany/app/myApp/1.0-SNAPSHOT/myApp-1.0-20210903.175557-1.jar 422 Unprocessable Entity -> [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment