You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2023/05/16 13:00:00 UTC

[jira] [Comment Edited] (RAT-315) RAT build fails with most current Maven 4-alpha3 build

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

Guillaume Nodet edited comment on RAT-315 at 5/16/23 12:59 PM:
---------------------------------------------------------------

The rat build fails because maven 3.9.x displays warnings when using maven 2.x deprecated stuff.  This has been done in preparation of the future maven 4.x release.

There are multiple ways out:

 * refine the test to support the fact that there's a new warning with recent maven versions

 * remove the test 

 * fix the plugin to remove the warning

 

The last option would be the best choice imho, but it will require substantial updates and will remove support for maven 2.x.  

Which way you'd prefer [~pottlinger] ?


was (Author: gnt):
The rat build fails because maven 3.9.x displays warnings when using maven 2.x deprecated stuff.  This has been done in preparation of the future maven 4.x release.

There are multiple ways out:

 * refine the test to support the fact that there's a new warning with recent maven versions

 * remove the test 

 * fix the plugin to remove the warning

 

The last option would be the best choice imho, but it will require substantial updates and will remove support for maven 2.x.  

Which way you'd prefer ?

> RAT build fails with most current Maven 4-alpha3 build
> ------------------------------------------------------
>
>                 Key: RAT-315
>                 URL: https://issues.apache.org/jira/browse/RAT-315
>             Project: Apache Rat
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.16
>            Reporter: Philipp Ottlinger
>            Priority: Major
>
> The build fails within an integration test with the most current Mvn4:
> {{$ mvn --version
> Apache Maven 4.0.0-alpha-3 (2ccf57baa5191468f9911fe85fd99672ac3bacb9)
> Maven home: /home/user/software/maven
> Java version: 18.0.2.1, vendor: Oracle Corporation, runtime: /home/user/jdk-18.0.2.1
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "5.15.0-58-generic", arch: "amd64", family: "unix"
> }}
> Running on RAT itself yields:
> {{
> [INFO] Building: it4_RAT-168/pom.xml
> [DEBUG] Build log initialized in: /home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/it4_RAT-168
> [DEBUG] Using invoker properties:
> [DEBUG] invoker.goals = clean apache-rat:rat
> [DEBUG] selector script : no script 'selector' found in directory /home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/it4_RAT-168
> [DEBUG] pre-build script : no script 'prebuild' found in directory /home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/it4_RAT-168
> [DEBUG] Using MAVEN_OPTS: null
> [DEBUG] Executing: /bin/sh -c cd '/home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/it4_RAT-168' && '/home/user/software/apache-maven-4.0.0-alpha-3/bin/mvn' '-B' '-D' 'maven.repo.local=/home/user/ws/creadur-rat/apache-rat-plugin/target/local-repo' '-s' '/home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/interpolated-settings.xml' 'clean' 'apache-rat:rat'
> [INFO] run post-build script verify.groovy
> [DEBUG] Running script with GroovyScriptInterpreter :/home/user/ws/creadur-rat/apache-rat-plugin/target/invoker/it4_RAT-168/verify.groovy
> [INFO] Assertion Error
> [INFO] it4_RAT-168/pom.xml .............................. FAILED (2.0 s)
> }}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)