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 [ í ]

Reply via email to