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

Build on debian/ubuntu: failed to execute goal (...)maven-surefire-plugin:2.22.0 #189

Closed
dzc34 opened this issue Nov 5, 2018 · 1 comment

Comments

@dzc34
Copy link
Member

dzc34 commented Nov 5, 2018

Observed behaviour

After the latest java upgrade on at least debian and ubuntu maven surefire plugin stops working with this error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test 
               (default-test) on project contrast-finder-utils: There are test failures.

Steps to reproduce the behaviour

git clone https://github.com/Asqatasun/Contrast-Finder.git
cd Contrast-Finder
mvn clean install

Expected behaviour

Surefire team is working on a fix (after 2.22.1) but in the mean time there is a work around. We could implement it until the plugin is fixed. See: jhipster/generator-jhipster#8693

Related issues

Suggest a Fix

added this line in to the pom.xml:

<useSystemClassLoader>false</useSystemClassLoader>

like this:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
        <!-- Fixed a bug related to the surefire plugin 
             that will be solved in the next version of the plugin (after 2.22.1) 
                                       and we can then remove this patch   -->
             <useSystemClassLoader>false</useSystemClassLoader>
        </configuration>
    </plugin>

testing configuration

# Ubuntu 16.04
Apache Maven 3.3.9
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.16.04.1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
dzc34 added a commit to dzc34/Contrast-Finder that referenced this issue Nov 5, 2018
This is a temporary fix until the surefire team
have fixed this in a new version (after 2.22.1)
@dzc34
Copy link
Member Author

dzc34 commented Nov 5, 2018

fixed by 0ea0d08

@dzc34 dzc34 closed this as completed Nov 5, 2018
dzc34 added a commit that referenced this issue Nov 6, 2018
----------------------

  set version to 0.9.3
  updated changelog
  updated i18n files
  typo
  Upgrading outdated dependencies: fixed #190, fixed #191 and fixed #192
  Updated contributor doc
  Fixde #189  Failed to execute goal maven-surefire
  updated Other-contrast-tools.md
  Doc - Updated resources directory
  Doc - Added "ressources" directory
  fixed #188 - Webapp: refactor languages switcher
  Fixed #187 - Added new configuration options: available languages and default language
  updated bookmarks file
  Fixed #186, fixed #185, fixed #184 and fixed #183
  updated .gitignore
  fix ColorFinderHsv.java debug
  updated Other-contrast-tools.md (add "Link Contrast Checker" by webaim.org)
  Updated humans.txt file + fixed some external links in the documentation (Sonarwhal become Webhint)
  fixed #180, fixed #181, fixed #182
  set version to 0.9.3-SNAPSHOT
@dzc34 dzc34 changed the title Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test Build on debian/ubuntu: failed to execute goal (...)maven-surefire-plugin:2.22.0:test Nov 9, 2018
@dzc34 dzc34 changed the title Build on debian/ubuntu: failed to execute goal (...)maven-surefire-plugin:2.22.0:test Build on debian/ubuntu: failed to execute goal (...)maven-surefire-plugin:2.22.0 Nov 9, 2018
@dzc34 dzc34 added this to the v0.9.3 milestone Nov 10, 2018
dzc34 added a commit that referenced this issue Nov 15, 2018
@dzc34 dzc34 modified the milestones: v0.9.3, v0.9.4 Nov 15, 2018
dzc34 added a commit that referenced this issue Dec 30, 2018
----------------------

  set version to 0.9.4
  typo
  Fixed #202 - Splits up the current issue_template into 5 issue templates
  fixed #201, fixed #200 (Outdated dependencies)
  Fixed #193, #194, #195, #196, #197, #198 and #199 (Outdated dependencies)
  Revert "Fixde #189  Failed to execute goal maven-surefire"
  set version to 0.9.4-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant