You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2021/07/22 11:27:00 UTC

[jira] [Commented] (SLING-10010) Make testing compliant with Java 9 and higher

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

Joerg Hoh commented on SLING-10010:
-----------------------------------

Merged PR https://github.com/apache/sling-org-apache-sling-jcr-resource/pull/12 with update to parent 43 (including support a Java11 build).

> Make testing compliant with Java 9 and higher
> ---------------------------------------------
>
>                 Key: SLING-10010
>                 URL: https://issues.apache.org/jira/browse/SLING-10010
>             Project: Sling
>          Issue Type: Task
>          Components: JCR
>    Affects Versions: JCR Resource 3.0.22
>            Reporter: miroslav#1
>            Assignee: Joerg Hoh
>            Priority: Major
>             Fix For: JCR Resource 3.0.24
>
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> Building module org-apache-sling-jcr-resource fails, and during test phase this is the error:
>   
>  _Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException_ 
>   
>  java version "11.0.6" 2020-01-14 LTS
>  Apache Maven 3.6.3 
>   
>  I tried to change parent to org.apache.sling:sling-bundle-parent:pom:40 but then building fails because of the errors reported by maven-enforcer-plugin.
> {noformat}
> [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (ban-felix-scr-annotations) @ org.apache.sling.jcr.resource ---
> [WARNING] The artifact org.apache.sling:org.apache.sling.testing.sling-mock:jar:2.6.2 has been relocated to org.apache.sling:org.apache.sling.testing.sling-mock.junit4:jar:2.6.2
> [INFO] 
> [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (ban-maven-bundle-plugin) @ org.apache.sling.jcr.resource ---
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedPlugins failed with message:
> The maven-bundle-plugin is no longer supported - please migrate to bnd-maven-plugin or stick
>                                         with Sling Parent 34.
> Found Banned Plugin: org.apache.felix:maven-bundle-plugin:maven-plugin:4.2.1
> Use 'mvn dependency:tree' to locate the source of the banned dependencies.
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time:  1.647 s
> [INFO] Finished at: 2020-12-18T13:46:04+01:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (ban-maven-bundle-plugin) on project org.apache.sling.jcr.resource: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]
> {noformat}



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