You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2021/11/23 13:58:30 UTC

[GitHub] [logging-log4j2] david-burke-securian commented on pull request #601: LOG4J2-3193 Configuration precedence fix

david-burke-securian commented on pull request #601:
URL: https://github.com/apache/logging-log4j2/pull/601#issuecomment-976574629


   Is master the correct branch to base this PR on?
   
   When I build on a clean copy of master with `./mvnw clean install` on Java 11, I get:
   
   ```
   [INFO] Scanning for projects...
   [ERROR] [ERROR] Some problems were encountered while processing the POMs:
   [FATAL] Non-resolvable parent POM for org.apache.logging.log4j:log4j-jakarta-web:2.15.0-SNAPSHOT: Could not find artifact org.apache.logging.log4j:log4j:pom:2.15.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 20, column 11
    @
   [ERROR] The build could not read 1 project -> [Help 1]
   [ERROR]
   [ERROR]   The project org.apache.logging.log4j:log4j-jakarta-web:2.15.0-SNAPSHOT (C:\appdev\repos\public\logging-log4j2\log4j-jakarta-web\pom.xml) has 1 error
   [ERROR]     Non-resolvable parent POM for org.apache.logging.log4j:log4j-jakarta-web:2.15.0-SNAPSHOT: Could not find artifact org.apache.logging.log4j:log4j:pom:2.15.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 20, column 11 -> [Help 2]
   [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/ProjectBuildingException
   [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
   ```
   
   If I update `log4j-jakarta-web/pom.xml` like so:
   
   ```diff
        <parent>
          <artifactId>log4j</artifactId>
          <groupId>org.apache.logging.log4j</groupId>
     -    <version>2.15.0-SNAPSHOT</version>
     +    <version>3.0.0-SNAPSHOT</version>
        </parent>
   ```
   
   Then I get:
   
   ```
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1: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
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn <args> -rf :log4j-api
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org