[
https://issues.apache.org/jira/browse/MNG-6430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613796#comment-16613796
]
Tibor Digana commented on MNG-6430:
-----------------------------------
Remove the dependency {{surefire-junit4}} from the POM {{sysadmin}}.
It MUST NOT be in dependencies of project. Our documentation say that the
providers should present in dependencies of particular plugin. Use IntelliJ
IDEA and autocompletion shows you that there is <dependencies> within <plugin>.
But do not put it there because Surefire automatically activates
{{surefire-junit4}} internally unless another provider is specified.
Personally I use {{surefire-junit47} because it is a bit faster.
As a summary, all to do is to remove dependency {{surefire-junit4}} from the
POM {{sysadmin}} and it should be fine then.
> UnsatisfiedLinkError:Native Library jdk1.8.0_121\jre\bin\glass.dll already
> loaded in another classloader
> --------------------------------------------------------------------------------------------------------
>
> Key: MNG-6430
> URL: https://issues.apache.org/jira/browse/MNG-6430
> Project: Maven
> Issue Type: Bug
> Components: Class Loading
> Reporter: Burcu
> Assignee: Tibor Digana
> Priority: Major
> Labels: ClassLoader, Classloader, classloader, glass,
> unsatisfiedLinkError
> Attachments: 2018-09-11T16-32-01_814-jvmRun1.dump,
> 2018-09-11T16-32-01_814-jvmRun2.dump, 2018-09-12T13-28-04_278-jvmRun1.dump,
> glassdll.jpg, mvnTest.jpg, plugin.jpg, pom.xml, pom.xml, runAllTest.jpg
>
>
> Although I made the linkte and tried other solutions, I could not resolve the
> glass.dll not found error. I'm looking for a solution to this issue that is
> long-lasting. I'm using Powermock and TestFx. I have encountered this problem
> since I started working with both. I would like to try if you offer a
> solution in this regard. Below you will find some images of the fault.
> [https://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)