It's already in the pom: https://github.com/apache/logging-log4j2/blob/master/log4j-1.2-api/pom.xml#L74
I don't think it's scope=test, but type=test-jar. On 7 April 2017 at 15:41, Gary Gregory <garydgreg...@gmail.com> wrote: > I added to log4j-1.2-api: > > <dependency> > <groupId>org.apache.logging.log4j</groupId> > <artifactId>log4j-core</artifactId> > <type>test</type> > <scope>test</scope> > </dependency> > > but that blows up Maven 3.3.9: > > [ERROR] [ERROR] Some problems were encountered while processing the POMs: > [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' > must be unique: org.apache.logging.log4j:log4j-core:jar -> duplicate > declaration of version (?) @ org.apache.logging.log4j: > log4j-core-its:[unknown-version], C:\vcs\git\apache\logging\ > logging-log4j2\log4j-core-its\pom.xml, line 50, column 17 > [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' > must be unique: org.apache.logging.log4j:log4j-api:test-jar -> duplicate > declaration of version (?) @ org.apache.logging.log4j: > log4j-core-its:[unknown-version], C:\vcs\git\apache\logging\ > logging-log4j2\log4j-core-its\pom.xml, line 114, column 17 > [ERROR] 'dependencies.dependency.version' for > org.apache.logging.log4j:log4j-core:test > is missing. @ org.apache.logging.log4j:log4j-1.2-api:[unknown-version], > C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\pom.xml, line 47, > column 17 > [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' > must be unique: org.apache.logging.log4j:log4j-core:jar -> duplicate > declaration of version (?) @ org.apache.logging.log4j: > log4j-slf4j-impl:[unknown-version], C:\vcs\git\apache\logging\ > logging-log4j2\log4j-slf4j-impl\pom.xml, line 70, column 17 > [WARNING] 'parent.relativePath' of POM > org.apache.logging.log4j:log4j-bom:2.8.3-SNAPSHOT > (C:\vcs\git\apache\logging\logging-log4j2\log4j-bom\pom.xml) points at > org.apache.logging.log4j:log4j instead of org.apache.logging:logging-parent, > please verify your project structure @ line 19, column 11 > @ > > > Gary > > On Fri, Apr 7, 2017 at 1:34 PM, Gary Gregory <garydgreg...@gmail.com> > wrote: > >> This is with Maven 3.3.9 though. >> >> Gary >> >> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker <boa...@gmail.com> wrote: >> >>> Does it have a dependency on log4j-core:test? It should. Could be a bug >>> in your beta version of Maven ;) >>> >>> On 7 April 2017 at 14:46, Gary Gregory <garydgreg...@gmail.com> wrote: >>> >>>> Hi All: >>>> >>>> I'm seeing this in master: >>>> >>>> [INFO] --- maven-bundle-plugin:3.2.0:manifest (default) @ >>>> log4j-1.2-api --- >>>> [INFO] >>>> [INFO] --- maven-resources-plugin:3.0.1:testResources >>>> (default-testResources) @ log4j-1.2-api --- >>>> [INFO] Using 'UTF-8' encoding to copy filtered resources. >>>> [INFO] Copying 71 resources >>>> [INFO] Copying 3 resources >>>> [INFO] Copying 3 resources >>>> [INFO] >>>> [INFO] --- maven-compiler-plugin:3.6.0:testCompile >>>> (default-testCompile) @ log4j-1.2-api --- >>>> [INFO] Changes detected - recompiling the module! >>>> [INFO] Compiling 20 source files to C:\vcs\git\apache\logging\logg >>>> ing-log4j2\log4j-1.2-api\target\test-classes >>>> [INFO] ------------------------------------------------------------- >>>> [WARN] COMPILATION WARNING : >>>> [INFO] ------------------------------------------------------------- >>>> [WARN] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\t >>>> est\java\org\apache\log4j\layout\Log4j1XmlLayoutTest.java:[66,16] >>>> [deprecation] setContextMap(Map<String,String>) in Builder has been >>>> deprecated >>>> [WARN] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\t >>>> est\java\org\apache\log4j\pattern\Log4j1MdcPatternConverterTest.java:[70,16] >>>> [deprecation] setContextMap(Map<String,String>) in Builder has been >>>> deprecated >>>> [INFO] 2 warnings >>>> [INFO] ------------------------------------------------------------- >>>> [INFO] ------------------------------------------------------------- >>>> [ERROR] COMPILATION ERROR : >>>> [INFO] ------------------------------------------------------------- >>>> [ERROR] warning: No processor claimed any of these annotations: >>>> org.junit.AfterClass,org.junit.Before,org.junit.runners.Para >>>> meterized.Parameters,org.junit.Rule,org.junit.ClassRule,org. >>>> junit.After,org.junit.runner.RunWith,org.junit.BeforeClass,o >>>> rg.junit.Test >>>> C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\t >>>> est\java\org\apache\log4j\LogWithMDCTest.java:[19,37] error: cannot >>>> find symbol >>>> symbol: class LoggerContextRule >>>> location: package org.apache.logging.log4j.junit >>>> [ERROR] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\t >>>> est\java\org\apache\log4j\LogWithMDCTest.java:[20,45] error: package >>>> org.apache.logging.log4j.test.appender does not exist >>>> [ERROR] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\t >>>> est\java\org\apache\log4j\LogWithMDCTest.java:[36,24] error: cannot >>>> find symbol >>>> symbol: class LoggerContextRule >>>> location: class LogWithMDCTest >>>> >>>> Any thoughts? >>>> >>>> Gary >>>> >>>> -- >>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>> Java Persistence with Hibernate, Second Edition >>>> <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >>>> >>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> >>>> JUnit in Action, Second Edition >>>> <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> >>>> >>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> >>>> Spring Batch in Action >>>> <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >>>> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> >>>> Blog: http://garygregory.wordpress.com >>>> Home: http://garygregory.com/ >>>> Tweet! http://twitter.com/GaryGregory >>>> >>> >>> >>> >>> -- >>> Matt Sicker <boa...@gmail.com> >>> >> >> >> >> -- >> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >> Java Persistence with Hibernate, Second Edition >> <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> >> >> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> >> JUnit in Action, Second Edition >> <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> >> >> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> >> Spring Batch in Action >> <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> >> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> > > > > -- > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > Java Persistence with Hibernate, Second Edition > <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> > > <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> > JUnit in Action, Second Edition > <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> > > <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> > Spring Batch in Action > <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> > <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker <boa...@gmail.com>