You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Dan Kegel <da...@kegel.com> on 2021/12/20 22:00:21 UTC

Couldn't build release branch without reverting the 2.17.1-SNAPSHOT naming commit

I guess this is expected, but on my 2nd machine, I couldn't build the
release branch because it couldn't find 2.17.1-SNAPSHOT stuff:

[ERROR] Failed to execute goal on project log4j-1.2-api: Could not
resolve dependencies for project
org.apache.logging.log4j:log4j-1.2-api:jar:2.17.1-SNAPSHOT:
org.apache.logging.log4j:log4j-core:jar:tests:2.17.1-SNAPSHOT was not
found in https://repository.apache.org/snapshots during a previous
attempt.

After I locally reverted
https://github.com/apache/logging-log4j2/commit/461dbf25944317de2e689bf6ab2eeb932f143bd4,
it built ok.

*shrug*
- Dan

Re: Couldn't build release branch without reverting the 2.17.1-SNAPSHOT naming commit

Posted by Matt Sicker <bo...@gmail.com>.
You need to run "mvn install" to get the build to work properly
locally. This is due to some overlapping Maven hackery to bundle Java
9+ code back into the Java 8 code.

On Mon, Dec 20, 2021 at 4:00 PM Dan Kegel <da...@kegel.com> wrote:
>
> I guess this is expected, but on my 2nd machine, I couldn't build the
> release branch because it couldn't find 2.17.1-SNAPSHOT stuff:
>
> [ERROR] Failed to execute goal on project log4j-1.2-api: Could not
> resolve dependencies for project
> org.apache.logging.log4j:log4j-1.2-api:jar:2.17.1-SNAPSHOT:
> org.apache.logging.log4j:log4j-core:jar:tests:2.17.1-SNAPSHOT was not
> found in https://repository.apache.org/snapshots during a previous
> attempt.
>
> After I locally reverted
> https://github.com/apache/logging-log4j2/commit/461dbf25944317de2e689bf6ab2eeb932f143bd4,
> it built ok.
>
> *shrug*
> - Dan