You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/05/13 15:27:00 UTC

[jira] [Commented] (MNG-6905) Ubuntu18.04 maven doesn't load log4j2

    [ https://issues.apache.org/jira/browse/MNG-6905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17106396#comment-17106396 ] 

Ralph Goers commented on MNG-6905:
----------------------------------

I moved this from Log4j 2 to Maven since this has nothing to do with Log4j.

> Ubuntu18.04 maven doesn't load log4j2
> -------------------------------------
>
>                 Key: MNG-6905
>                 URL: https://issues.apache.org/jira/browse/MNG-6905
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>         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)