[ 
https://issues.apache.org/jira/browse/MNG-6298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16267202#comment-16267202
 ] 

ASF GitHub Bot commented on MNG-6298:
-------------------------------------

GitHub user bengtsod opened a pull request:

    https://github.com/apache/maven/pull/139

    [MNG-6298] 3.5.2: ClassNotFoundException

    Adding exportedPackage to find class:
    javax.annotation.security.RolesAllowed
    
    First maven commit :) Works but might be deeper issue

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bengtsod/maven master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/maven/pull/139.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #139
    
----
commit 45b75ad29074823850c3eda3017cf73fe19b1e8c
Author: Bengt Söderberg <bengt.soderb...@purplescout.se>
Date:   2017-11-27T18:19:48Z

    [MNG-6298] 3.5.2: ClassNotFoundException
    
    Adding exportedPackage to find class:
    javax.annotation.security.RolesAllowed
    
    First maven commit :) Works but might be deeper issue

----


> 3.5.2: ClassNotFoundException: javax.annotation.security.RolesAllowed
> ---------------------------------------------------------------------
>
>                 Key: MNG-6298
>                 URL: https://issues.apache.org/jira/browse/MNG-6298
>             Project: Maven
>          Issue Type: Bug
>          Components: Class Loading
>    Affects Versions: 3.5.2
>         Environment: Mac OS X 10.12.6, Ubuntu 15.10 64 bit, and Windows is 
> presumed.
>            Reporter: Ryan Heaton
>            Priority: Critical
>             Fix For: 3.5.3-candidate
>
>
> Maven 3.5.2 appears to have introduces some kind of a class loading error, 
> manifesting itself like this:
> {noformat}
> Caused by: java.lang.ClassNotFoundException: 
> javax.annotation.security.RolesAllowed
>       at 
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
>       at 
> org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
>       at 
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
>       at 
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
>       ... 184 more
> {noformat}
> Previous versions of Maven do not manifest this.
> To reproduce this:
> * Clone [the Enunciate sample 
> project|https://github.com/stoicflame/enunciate-sample].
> * Build the project (mvn clean package) with 3.5.0 and note the success.
> * Build the project with 3.5.2 and note the failure.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to