You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Arbol One <Ar...@hotmail.ca> on 2025/04/02 23:40:32 UTC

clirr:check errors

After downloading apache-log4j-2.24.3-bin.zip in my Debian 12, Iunzipped 
it into ~/opt and following the instructions in 
~/opt/apache-log4j-2.3.2-src/log4j-api/BUILDING.txt, first I ran the 
'mvn apache-rat:check' command, no errors there. However, when running 
'clirr:check' I get some errors :


*~/opt/apache-log4j-2.3.2-src/log4j-api$ mvn clirr:check
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective 
model for org.apache.logging.log4j:log4j-api:jar:2.3.2
[WARNING] 
'dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' 
must be unique: org.springframework:spring-test:jar -> duplicate 
declaration of version ${springVersion} @ 
org.apache.logging.log4j:log4j:2.3.2, 
/home/jamiil/opt/apache-log4j-2.3.2-src/pom.xml, line 635, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they 
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING]
[INFO]
[INFO] -----------------< org.apache.logging.log4j:log4j-api 
 >-----------------
[INFO] Building Apache Log4j API 2.3.2
[INFO] --------------------------------[ jar 
]---------------------------------
[INFO]
[INFO] >>> clirr-maven-plugin:2.6.1:check (default-cli) > compile @ 
log4j-api >>>
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @ 
log4j-api ---
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
log4j-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/home/jamiil/opt/apache-log4j-2.3.2-src/log4j-api/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ 
log4j-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 70 source files to 
/home/jamiil/opt/apache-log4j-2.3.2-src/log4j-api/target/classes
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time:  1.290 s
[INFO] Finished at: 2025-04-02T19:37:11-04:00
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.3:compile 
(default-compile) on project log4j-api: Compilation failure -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException*



Anyone knows how to eliminate these errors?

Thanks in advance.

-- 
*/ArbolOne ™/*
Using Fire Fox and Thunderbird.
ArbolOne is composed of students and volunteers dedicated to providing 
free services to charitable organizations.
ArbolOne's development on Java, PostgreSQL, HTML and Jakarta EE is in 
progress [ í ]

Re: clirr:check errors

Posted by "Piotr P. Karwasz" <pi...@mailing.copernik.eu>.
Hi Arbol,

On 3.04.2025 01:40, Arbol One wrote:
> After downloading apache-log4j-2.24.3-bin.zip in my Debian 12, 
> Iunzipped it into ~/opt and following the instructions in 
> ~/opt/apache-log4j-2.3.2-src/log4j-api/BUILDING.txt, first I ran the 
> 'mvn apache-rat:check' command, no errors there. However, when running 
> 'clirr:check' I get some errors :
Could you double-check the details? I guess you downloaded 
`apache-log4j-2.3.2-src.zip` and followed the instructions in 
`~/opt/apache-log4j-2.3.2-src/BUILDING.txt`.

Version 2.3.x was released almost 10 years ago and needs a toolchain of 
that period to compile, preferably JDK 6.

Piotr


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org