You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "JoggerJoel (Jira)" <ji...@apache.org> on 2020/05/12 15:24:00 UTC
[jira] [Updated] (LOG4J2-2842) Ubuntu18.04 maven doesn't load
log4j2
[ https://issues.apache.org/jira/browse/LOG4J2-2842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
JoggerJoel updated LOG4J2-2842:
-------------------------------
Description:
{{pom.xml}}
\{{ <dependencies>}}
{{ <!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] api -->}}
\{{ <dependency>}}
\{{ <groupId>org.apache.logging.log4j</groupId>}}
\{{ <artifactId>log4j-api</artifactId>}}
\{{ <version>2.13.2</version>}}
\{{ </dependency>}}{{<!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] core -->}}
\{{ <dependency>}}
\{{ <groupId>org.apache.logging.log4j</groupId>}}
\{{ <artifactId>log4j-core</artifactId>}}
\{{ <version>2.13.2</version>}}
\{{ </dependency>}}
>mvn clean package (this works fine on my MacOS)
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] PersistenceVerticle.java:[13,32] package org.apache.logging.log4j does not exist
[ERROR] PersistenceVerticle.java:[14,32] package org.apache.logging.log4j does not exist
[ERROR] PersistenceVerticle.java:[17,26] cannot find symbol
symbol: class Logger
location: class io.vertx.codeone.conduit.models.PersistenceVerticle
[ERROR] HttpVerticle.java:[121,5] cannot find symbol
symbol: variable logger
location: class io.vertx.codeone.conduit.HttpVerticle
[ERROR] PersistenceVerticle.java:[17,42] cannot find symbol
symbol: variable LogManager
Here's a few things I noticed:
MacOS
----
ls ~/.m2/repository/org/apache/
abdera geronimo lucene sis ws
ant httpcomponents maven sling xbean
apache ignite opennlp sshd xmlbeans
camel ivy pdfbox struts yetus
commons jackrabbit poi tika zookeeper
curator james qpid tinkerpop
cxf johnzon rat tomcat
derby kafka servicemix uima
felix logging shiro velocity
Ubuntu18.04
----
joggerjoel> ls ~/.m2/repository/org/apache/
ant apache commons ivy maven velocity xbean
I had to zip the .m2/repository/org/apache/ on my mac and then unzip into ubuntu and this worked.
This is a big hack so, curious why this breaks for me on ubuntu, I tried on two machines.
Thanks.
was:
{{pom.xml}}
\{{ <dependencies>}}
{{ <!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] api -->}}
\{{ <dependency>}}
\{{ <groupId>org.apache.logging.log4j</groupId>}}
\{{ <artifactId>log4j-api</artifactId>}}
\{{ <version>2.13.2</version>}}
\{{ </dependency>}}{{<!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] core -->}}
\{{ <dependency>}}
\{{ <groupId>org.apache.logging.log4j</groupId>}}
\{{ <artifactId>log4j-core</artifactId>}}
\{{ <version>2.13.2</version>}}
\{{ </dependency>}}
>mvn clean package (this works fine on my MacOS)
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] PersistenceVerticle.java:[13,32] package org.apache.logging.log4j does not exist
[ERROR] PersistenceVerticle.java:[14,32] package org.apache.logging.log4j does not exist
[ERROR] PersistenceVerticle.java:[17,26] cannot find symbol
symbol: class Logger
location: class io.vertx.codeone.conduit.models.PersistenceVerticle
[ERROR] HttpVerticle.java:[121,5] cannot find symbol
symbol: variable logger
location: class io.vertx.codeone.conduit.HttpVerticle
[ERROR] PersistenceVerticle.java:[17,42] cannot find symbol
symbol: variable LogManager
Here's a few things I noticed:
MacOS
----
ls ~/.m2/repository/org/apache/
abdera geronimo lucene sis ws
ant httpcomponents maven sling xbean
apache ignite opennlp sshd xmlbeans
camel ivy pdfbox struts yetus
commons jackrabbit poi tika zookeeper
curator james qpid tinkerpop
cxf johnzon rat tomcat
derby kafka servicemix uima
felix logging shiro velocity
Ubuntu18.04
----
joggerjoel> ls ~/.m2/repository/org/apache/
ant apache commons ivy maven velocity xbean
I had to zip the .m2/repository/org/apache/ on my mac and then unzip into ubuntu.
This is a big hack so, curious why this breaks for me on ubuntu, I tried on two machines.
Thanks.
> Ubuntu18.04 maven doesn't load log4j2
> -------------------------------------
>
> Key: LOG4J2-2842
> URL: https://issues.apache.org/jira/browse/LOG4J2-2842
> Project: Log4j 2
> Issue Type: Bug
> Components: Build
> Environment: |uname -a|Linux ventech 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux|
> |lsb_release -a|Ubuntu 18.04.4 LTS bionic|
> mvn -v
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /usr/share/maven
> Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.15.0-74-generic", arch: "amd64", family: "unix"
> Reporter: JoggerJoel
> Priority: Major
>
> {{pom.xml}}
> \{{ <dependencies>}}
> {{ <!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] api -->}}
> \{{ <dependency>}}
> \{{ <groupId>org.apache.logging.log4j</groupId>}}
> \{{ <artifactId>log4j-api</artifactId>}}
> \{{ <version>2.13.2</version>}}
> \{{ </dependency>}}{{<!-- [https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-] core -->}}
> \{{ <dependency>}}
> \{{ <groupId>org.apache.logging.log4j</groupId>}}
> \{{ <artifactId>log4j-core</artifactId>}}
> \{{ <version>2.13.2</version>}}
> \{{ </dependency>}}
> >mvn clean package (this works fine on my MacOS)
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] PersistenceVerticle.java:[13,32] package org.apache.logging.log4j does not exist
> [ERROR] PersistenceVerticle.java:[14,32] package org.apache.logging.log4j does not exist
> [ERROR] PersistenceVerticle.java:[17,26] cannot find symbol
> symbol: class Logger
> location: class io.vertx.codeone.conduit.models.PersistenceVerticle
> [ERROR] HttpVerticle.java:[121,5] cannot find symbol
> symbol: variable logger
> location: class io.vertx.codeone.conduit.HttpVerticle
> [ERROR] PersistenceVerticle.java:[17,42] cannot find symbol
> symbol: variable LogManager
> Here's a few things I noticed:
> MacOS
> ----
> ls ~/.m2/repository/org/apache/
> abdera geronimo lucene sis ws
> ant httpcomponents maven sling xbean
> apache ignite opennlp sshd xmlbeans
> camel ivy pdfbox struts yetus
> commons jackrabbit poi tika zookeeper
> curator james qpid tinkerpop
> cxf johnzon rat tomcat
> derby kafka servicemix uima
> felix logging shiro velocity
> Ubuntu18.04
> ----
> joggerjoel> ls ~/.m2/repository/org/apache/
> ant apache commons ivy maven velocity xbean
>
> I had to zip the .m2/repository/org/apache/ on my mac and then unzip into ubuntu and this worked.
> This is a big hack so, curious why this breaks for me on ubuntu, I tried on two machines.
>
> Thanks.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)