Giter Club home page Giter Club logo

simple-java8-validator's People

Contributors

bdelion avatar

Stargazers

 avatar

Watchers

 avatar

simple-java8-validator's Issues

Pb de déploiement des versions SNAPSHOTs

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

Fix Cache Maven in Github Actions

      - 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-.

Fix Could not deploy artifact

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]

Fix Could not find artifact fr.fifiz.socle.java:java-parent:pom:8.0.0-SNAPSHOT

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
 @

Reprendre le README.md

Purge du pom.xml

Les seules déclarations pour un traitement en local :

  • pom parent

  • scm

[CI] Bugs avec les traitements SonarCloud

  • [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

Reprise nom classe

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.