Herve Boutemy created SUREFIRE-2091:
---------------------------------------

             Summary: Surefire ITs require install: verify should be sufficient
                 Key: SUREFIRE-2091
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2091
             Project: Maven Surefire
          Issue Type: Wish
    Affects Versions: 3.0.0-M7
            Reporter: Herve Boutemy


found during 3.0.0-M7 vote, when rebuilding
then tested with 3.0.0-M8-SNAPSHOT before doing any install:
{noformat}$ mvn -Prun-its clean verify
...
[INFO] --- maven-invoker-plugin:3.2.2:run (integration-test) @ 
maven-failsafe-plugin ---
[INFO] Building: jetty-war-test-passing/pom.xml
[INFO] run post-build script verify.bsh
[INFO]   The post-build script returned false.
[INFO]           jetty-war-test-passing/pom.xml ................... FAILED (5.0 
s)
[INFO] Building: multiple-summaries-failing/pom.xml
[INFO]           multiple-summaries-failing/pom.xml ............... SUCCESS 
(1.9 s)
[INFO] Building: jetty-war-test-failing/pom.xml
[INFO] run post-build script verify.bsh
[INFO]   The post-build script returned false.
[INFO]           jetty-war-test-failing/pom.xml ................... FAILED (5.0 
s)
[INFO] Building: working-directory/pom.xml
[INFO]   The build exited with code 1. See 
/home/herve/projets/maven/sources/plugins/core/surefire/maven-failsafe-plugin/target/it/working-directory/build.log
 for details.
[INFO]           working-directory/pom.xml ........................ FAILED (2.0 
s)
[INFO] Building: multiple-summaries/pom.xml
[INFO]   The build exited with code 1. See 
/home/herve/projets/maven/sources/plugins/core/surefire/maven-failsafe-plugin/target/it/multiple-summaries/build.log
 for details.
[INFO]           multiple-summaries/pom.xml ....................... FAILED (2.0 
s)
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO]   Passed: 1, Failed: 4, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] *  jetty-war-test-passing/pom.xml
[ERROR] *  jetty-war-test-failing/pom.xml
[ERROR] *  working-directory/pom.xml
[ERROR] *  multiple-summaries/pom.xml
[INFO] -------------------------------------------------
...
Caused by: 
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.apache.maven.surefire:surefire-junit3:jar:3.0.0-M8-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.maven.surefire 
-DartifactId=surefire-junit3 -Dversion=3.0.0-M8-SNAPSHOT -Dpackaging=jar 
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.apache.maven.surefire 
-DartifactId=surefire-junit3 -Dversion=3.0.0-M8-SNAPSHOT -Dpackaging=jar 
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

----------
1 required artifact is missing.

for artifact: 
  org.apache.maven.surefire:surefire-junit3:jar:3.0.0-M8-SNAPSHOT

from the specified remote repositories:
  central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to