Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fails because of using http://repo1.maven.org/maven2 instead of https://repo1.maven.org/maven2 #104

Open
sparsick opened this issue May 31, 2020 · 0 comments

Comments

@sparsick
Copy link

Running mvn clean verify in master branch produces failing tests:

Tests in error: 
  GenericDaemonGeneratorTest.testGenerationWithAllInfoInDescriptor:40->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testDefaultJSWFilesIfNoGeneratorConfigurationsIsSet:150->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerateWithAllKnownPlatforms:226->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerateWithConfigurationDirectoriesAddedFromGeneratorConfiguration:204->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerateWithCustomJSWPlatforms:98->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithAllInfoInDescriptor:43->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithBadExternalDeltaPack:376->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithChkConfig:306->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithConfigurationDirectory:423->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithEndorsedDirectory:443->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithGoodExternalDeltaPack:356->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithRepositoryName:391->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithRunAsUserEnvVar:270->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound
  JavaServiceWrapperDaemonGeneratorTest.testGenerationWithWrapperPidFile:326->AbstractDaemonGeneratorTest.runTest:84 » MultipleArtifactsNotFound

Tests run: 39, Failures: 0, Errors: 14, Skipped: 0

The failure message in all failing tests is:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.025 sec <<< FAILURE! - in org.codehaus.mojo.appassembler.daemon.generic.GenericDaemonGeneratorTest
testGenerationWithAllInfoInDescriptor(org.codehaus.mojo.appassembler.daemon.generic.GenericDaemonGeneratorTest)  Time elapsed: 0.025 sec  <<< ERROR!
org.apache.maven.artifact.resolver.MultipleArtifactsNotFoundException: Missing:
----------
1) org.codehaus.plexus:plexus-utils:jar:1.1

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-utils -Dversion=1.1 -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.codehaus.plexus -DartifactId=plexus-utils -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
        1) org.codehaus.mojo.appassembler:project-1:jar:1.0-SNAPSHOT
        2) org.codehaus.plexus:plexus-utils:jar:1.1

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

for artifact: 
  org.codehaus.mojo.appassembler:project-1:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:360)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:304)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:285)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:397)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithDependencies(DefaultMavenProjectBuilder.java:345)
        at org.codehaus.mojo.appassembler.daemon.AbstractDaemonGeneratorTest.runTest(AbstractDaemonGeneratorTest.java:84)
        at org.codehaus.mojo.appassembler.daemon.generic.GenericDaemonGeneratorTest.testGenerationWithAllInfoInDescriptor(GenericDaemonGeneratorTest.java:40)

I guess the reason for this error is, that http://repo1.maven.org/maven2 is used instead of https://repo1.maven.org/maven2 .

Used Java and Maven Version:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /home/sparsick/.sdkman/candidates/maven/current
Java version: 1.8.0_242, vendor: Azul Systems, Inc., runtime: /home/sparsick/.sdkman/candidates/java/8.0.242-zulu/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-101-generic", arch: "amd64", family: "unix"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant