[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2020-03-28 Thread Hudson (Jira)


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

Hudson commented on MNG-6506:
-

Build failed in Jenkins: Maven TLP » maven-studies » maven-metrics #4

See 
https://builds.apache.org/job/maven-box/job/maven-studies/job/maven-metrics/4/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-10 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-5666 #18

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-5666/18/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-10 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MAVEN-3.6/MNG-6399 #25

See 
https://builds.apache.org/job/maven-box/job/maven/job/MAVEN-3.6%252FMNG-6399/25/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6405 #9

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-6405/9/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6552 #8

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6552/8/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6553 #8

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6553/8/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6554 #8

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6554/8/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-5567 #27

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-5567/27/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6555 #15

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6555/15/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MPOM-215 #7

See https://builds.apache.org/job/maven-box/job/maven/job/MPOM-215/7/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6294 #14

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-6294/14/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-09 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6550 #12

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6550/12/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-04 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6551 #13

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6551/13/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-04-04 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6169/MNG-6556 #12

See 
https://builds.apache.org/job/maven-box/job/maven/job/MNG-6169%252FMNG-6556/12/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-31 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build succeeded in Jenkins: Maven TLP » maven » MNG-5868 #26

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-5868/26/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-31 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build unstable in Jenkins: Maven TLP » maven » MNG-6512-build-11 #17

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-6512-build-11/17/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-29 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build failed in Jenkins: Maven TLP » maven » MNG-6071 #13

See https://builds.apache.org/job/maven-box/job/maven/job/MNG-6071/13/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-28 Thread Sylwester Lachiewicz (JIRA)


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

Sylwester Lachiewicz commented on MNG-6506:
---

Fixed with 
[5306cd010e4a7a480becb24846c3c07643f3a4bb|https://gitbox.apache.org/repos/asf?p=maven.git;a=commit;h=5306cd010e4a7a480becb24846c3c07643f3a4bb]

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-28 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build succeeded in Jenkins: Maven TLP » maven » runITsWithJavaEA #26

See https://builds.apache.org/job/maven-box/job/maven/job/runITsWithJavaEA/26/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-28 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build succeeded in Jenkins: Maven TLP » maven » master #185

See https://builds.apache.org/job/maven-box/job/maven/job/master/185/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-26 Thread Hudson (JIRA)


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

Hudson commented on MNG-6506:
-

Build succeeded in Jenkins: Maven TLP » maven » runITsWithJavaEA #25

See https://builds.apache.org/job/maven-box/job/maven/job/runITsWithJavaEA/25/

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-26 Thread Roman Grigoriadi (JIRA)


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

Roman Grigoriadi commented on MNG-6506:
---

Thanks for pointing out Andreas. 

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-25 Thread Andreas Veithen (JIRA)


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

Andreas Veithen commented on MNG-6506:
--

Oh, and actually there is already a branch with the necessary change: 
https://github.com/apache/maven/tree/MNG-6543. Just needs to be merged into 
master.

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-25 Thread Andreas Veithen (JIRA)


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

Andreas Veithen commented on MNG-6506:
--

MNG-6543 is about updating plexus-classworlds. No need to create another issue 
I think.

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-25 Thread Roman (JIRA)


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

Roman commented on MNG-6506:


Thank you Andreas. Hervé, should I create a new issue and PR for updating 
plexus-classworlds to 2.6.0 in Apache / Maven ?

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-24 Thread Andreas Veithen (JIRA)


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

Andreas Veithen commented on MNG-6506:
--

Done: https://github.com/apache/maven-integration-testing/pull/43

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-24 Thread Andreas Veithen (JIRA)


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

Andreas Veithen commented on MNG-6506:
--

I'll give it a try.

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2019-03-23 Thread JIRA


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

Hervé Boutemy commented on MNG-6506:


thank you Andreas
anybody to transform that minimal test case into a Core IT?

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Assignee: Sylwester Lachiewicz
>Priority: Major
>  Labels: up-for-grabs
> Fix For: 3.6.1
>
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/codehaus-plexus/plexus-classworlds/blob/master/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations.
> A workaround is to preload the required {{package-info}} classes using 
> {{loadClass}}; see e.g. http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (MNG-6506) Mojos are unable to load package annotations on Java >= 9

2018-11-04 Thread Andreas Veithen (JIRA)


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

Andreas Veithen commented on MNG-6506:
--

A minimal test case can be found here: [https://github.com/veithen/MNG-6506]. 
The project builds successfully on Java 8 and fails on Java 9. 

> Mojos are unable to load package annotations on Java >= 9
> -
>
> Key: MNG-6506
> URL: https://issues.apache.org/jira/browse/MNG-6506
> Project: Maven
>  Issue Type: Bug
>  Components: Class Loading
>Affects Versions: 3.6.0
>Reporter: Andreas Veithen
>Priority: Major
>
> On Java 9 and above, calls to {{java.lang.Package.getAnnotation(Class)}} from 
> within a Mojo always return {{null}} (unless the {{package-info}} class has 
> been loaded by some other means before).
> The reason appears to be an incompatibility between Java 9 and Plexus 
> Classworlds:
> * Java 9 ultimately calls {{findClass}} (instead of {{loadClass}}) to get the 
> {{package-info}} class.
> * The {{findClass}} implementation in {{ClassRealm}} always throws 
> {{ClassNotFoundException}}: 
> https://github.com/sonatype/plexus-classworlds/blob/plexus-classworlds-2.5.2/src/main/java/org/codehaus/plexus/classworlds/realm/ClassRealm.java#L275.
> This in particular affects plugins that interact with the JAXB API because it 
> relies on package annotations. A workaround is to preload the required 
> {{package-info}} classes using {{loadClass}}; see e.g. 
> http://svn.apache.org/viewvc?rev=1845026&view=rev.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)