bdelion / simple-java8-validator Goto Github PK
View Code? Open in Web Editor NEWApplication quickstart permettant de valider les évolutions du pom parent `fr.fifiz.socle.java:java-parent`
License: Apache License 2.0
Application quickstart permettant de valider les évolutions du pom parent `fr.fifiz.socle.java:java-parent`
License: Apache License 2.0
Lors du déploiement via GitHub Actions
, on a l'erreur suivante :
[INFO] --- maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) @ simple-java8-validator ---
Downloading from github: https://maven.pkg.github.com/bdelion/maven-packages/fr/fifiz/training/app/java/simple-java8-validator/1.0.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/bdelion/maven-packages): Transfer failed for https://maven.pkg.github.com/bdelion/maven-packages/fr/fifiz/training/app/java/simple-java8-validator/1.0.0-SNAPSHOT/maven-metadata.xml 400 Bad Request
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.677 s
[INFO] Finished at: 2020-04-14T14:54:10Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) on project simple-java8-validator: ArtifactDeployerException: Failed to retrieve remote metadata fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/bdelion/maven-packages): Transfer failed for https://maven.pkg.github.com/bdelion/maven-packages/fr/fifiz/training/app/java/simple-java8-validator/1.0.0-SNAPSHOT/maven-metadata.xml 400 Bad Request -> [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]Process completed with exit code 1.
Si j'accède à l'URL https://maven.pkg.github.com/bdelion/maven-packages/fr/fifiz/training/app/java/simple-java8-validator/1.0.0-SNAPSHOT/maven-metadata.xml via un navigateur web avec mon compte + le token qui va bien, j'ai un code retour 400
et le message suivant :
error retrieving metadata for snapshot file: simple-java8-validator-1.0.0-20200414.125957-1-jar-with-dependencies.jar
- name: Cache Maven packages
uses: actions/cache@v1
env:
cache-name: cache-maven-dependencies
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-${{ env.cache-name }}-
${{ runner.os }}-m2-
${{ runner.os }}-
retourne un message qui laisse penser qu'il ne trouve rien
Run actions/cache@v1
with:
path: ~/.m2/repository
key: Linux-m2-cache-maven-dependencies-4fecd60796a4c5e2d126cbe3b53875e0330e24c89543cc407fbb0ed8ac219c53
restore-keys: Linux-m2-cache-maven-dependencies-
Linux-m2-
Linux-
env:
JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.242/x64
JAVA_HOME_8.0.242_x64: /opt/hostedtoolcache/jdk/8.0.242/x64
cache-name: cache-maven-dependencies
Cache not found for input keys: Linux-m2-cache-maven-dependencies-4fecd60796a4c5e2d126cbe3b53875e0330e24c89543cc407fbb0ed8ac219c53, Linux-m2-cache-maven-dependencies-, Linux-m2-, Linux-.
Ajout analyse SonarCloud en lien avec ce qui a été fait bdelion/java-parent#25 :
pom.xml : rien tout est porté par le parent
GitHub Actions
Travis CI
Run mvn -U -Dmaven.main.skip -Dunit.test.skip -Dintegration.test.skip deploy --file pom.xml
mvn -U -Dmaven.main.skip -Dunit.test.skip -Dintegration.test.skip deploy --file pom.xml
shell: /bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.242/x64
JAVA_HOME_8.0.242_x64: /opt/hostedtoolcache/jdk/8.0.242/x64
GITHUB_TOKEN: ***
retourne
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project simple-java8-validator: Failed to retrieve remote metadata fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT/maven-metadata.xml: Could not transfer metadata fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT/maven-metadata.xml from/to github (https://maven.pkg.github.com/bdelion/simple-java8-validator): Transfer failed for https://maven.pkg.github.com/bdelion/simple-java8-validator/fr/fifiz/training/app/java/simple-java8-validator/1.0.0-SNAPSHOT/maven-metadata.xml 400 Bad Request -> [Help 1]
Voir les exemples ici : https://github.com/dwyl/repo-badges
Get groupId
2s
##[error]Process completed with exit code 1.
Run mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate '-Dexpression=project.groupId' -q -DforceStdout
mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate '-Dexpression=project.groupId' -q -DforceStdout
shell: /bin/bash -e {0}
env:
JAVA_HOME: /opt/hostedtoolcache/jdk/8.0.242/x64
JAVA_HOME_8.0.242_x64: /opt/hostedtoolcache/jdk/8.0.242/x64
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for fr.fifiz.training.app.java:simple-java8-validator:1.0.0-SNAPSHOT: Could not find artifact fr.fifiz.socle.java:java-parent:pom:8.0.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 11
@
Appliquer les bonnes pratiques en se basant sur les templates comme :
- [ ] https://gist.github.com/JusticeHunter/1cc6589cbf880d380a5bb574baa38811
et voir aussi d'autres sources d'informations comme :
et même des outils de générations :
Les seules déclarations pour un traitement en local :
pom parent
scm
[ERROR] SonarQube server [http://localhost:9000] can not be reached
Gestion des properties Sonar depuis le pom parent + la composition des project properties
[WARNING] Shallow clone detected, no blame information will be provided. You can convert to non-shallow with 'git fetch --unshallow'
[WARNING] Failed to check if project 'fr.fifiz.training.app.java:basic-weather-app' is bound
On a main/java/fr/fifiz/socle/java
et package fr.fifiz.socle.java;
côté dev Java.
On a fr.fifiz.socle.java
comme groupId dans le pom.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.