Re: Weird compilation error

2017-04-07 Thread Gary Gregory
Could be I'm going to run the build with each ActiveMQ release since what
we have and see what happens. I'll nuke the latest one I have just in case
it's junked.

Gary

On Fri, Apr 7, 2017 at 1:49 PM, Matt Sicker  wrote:

> Corrupted downloads perhaps? That's very odd!
>
> On 7 April 2017 at 15:48, Gary Gregory  wrote:
>
>> Hm,
>>
>> I had changed active mq testing from 5.14.1 to 5.14.4 and that yields:
>>
>> [ERROR] error: error reading C:\Users\ggregory\.m2\reposito
>> ry\org\apache\activemq\activemq-broker\5.14.4\activemq-broker-5.14.4.jar;
>> invalid LOC header (bad signature)
>> [ERROR] error: error reading C:\Users\ggregory\.m2\reposito
>> ry\org\apache\activemq\activemq-client\5.14.4\activemq-client-5.14.4.jar;
>> invalid LOC header (bad signature)
>>
>> and later the problems I initially showed.
>>
>> Odd!
>>
>> Gary
>>
>>
>> On Fri, Apr 7, 2017 at 1:41 PM, Gary Gregory 
>> wrote:
>>
>>> I added to log4j-1.2-api:
>>>
>>> 
>>>   org.apache.logging.log4j
>>>   log4j-core
>>>   test
>>>   test
>>> 
>>>
>>> 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 
>>> wrote:
>>>
 This is with Maven 3.3.9 though.

 Gary

 On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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
>> 

Re: Weird compilation error

2017-04-07 Thread Matt Sicker
Corrupted downloads perhaps? That's very odd!

On 7 April 2017 at 15:48, Gary Gregory  wrote:

> Hm,
>
> I had changed active mq testing from 5.14.1 to 5.14.4 and that yields:
>
> [ERROR] error: error reading C:\Users\ggregory\.m2\repository\org\apache\
> activemq\activemq-broker\5.14.4\activemq-broker-5.14.4.jar; invalid LOC
> header (bad signature)
> [ERROR] error: error reading C:\Users\ggregory\.m2\repository\org\apache\
> activemq\activemq-client\5.14.4\activemq-client-5.14.4.jar; invalid LOC
> header (bad signature)
>
> and later the problems I initially showed.
>
> Odd!
>
> Gary
>
>
> On Fri, Apr 7, 2017 at 1:41 PM, Gary Gregory 
> wrote:
>
>> I added to log4j-1.2-api:
>>
>> 
>>   org.apache.logging.log4j
>>   log4j-core
>>   test
>>   test
>> 
>>
>> 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 
>> wrote:
>>
>>> This is with Maven 3.3.9 though.
>>>
>>> Gary
>>>
>>> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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 LoggerContextRu

Re: Weird compilation error

2017-04-07 Thread Gary Gregory
Hm,

I had changed active mq testing from 5.14.1 to 5.14.4 and that yields:

[ERROR] error: error reading
C:\Users\ggregory\.m2\repository\org\apache\activemq\activemq-broker\5.14.4\activemq-broker-5.14.4.jar;
invalid LOC header (bad signature)
[ERROR] error: error reading
C:\Users\ggregory\.m2\repository\org\apache\activemq\activemq-client\5.14.4\activemq-client-5.14.4.jar;
invalid LOC header (bad signature)

and later the problems I initially showed.

Odd!

Gary


On Fri, Apr 7, 2017 at 1:41 PM, Gary Gregory  wrote:

> I added to log4j-1.2-api:
>
> 
>   org.apache.logging.log4j
>   log4j-core
>   test
>   test
> 
>
> 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 
> wrote:
>
>> This is with Maven 3.3.9 though.
>>
>> Gary
>>
>> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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

Re: Weird compilation error

2017-04-07 Thread Matt Sicker
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  wrote:

> I added to log4j-1.2-api:
>
> 
>   org.apache.logging.log4j
>   log4j-core
>   test
>   test
> 
>
> 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 
> wrote:
>
>> This is with Maven 3.3.9 though.
>>
>> Gary
>>
>> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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


Re: Weird compilation error

2017-04-07 Thread Gary Gregory
I added to log4j-1.2-api:


  org.apache.logging.log4j
  log4j-core
  test
  test


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  wrote:

> This is with Maven 3.3.9 though.
>
> Gary
>
> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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,
>>> org.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
>>> 
>>>
>>> 

Re: Weird compilation error

2017-04-07 Thread Matt Sicker
Maybe it's because it's a new snapshot version and you need to run "mvn
install" at least once?

On 7 April 2017 at 15:40, Matt Sicker  wrote:

> This is the first I've ever seen that error, and it's not popping up in
> Jenkins or anything. I don't think the code has changed since 2.8.2, so I
> don't know why it would break.
>
> On 7 April 2017 at 15:34, Gary Gregory  wrote:
>
>> This is with Maven 3.3.9 though.
>>
>> Gary
>>
>> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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
 

 
 JUnit in Action, Second Edition
 

 
 Spring Batch in Action
 
 
 Blog: http://garygregory.wordpress.com
 Home: http://garygregory.com/
 Tweet! http://twitter.com/GaryGregory

>>>
>>>
>>>
>>> --
>>> Matt Sicker 
>>>
>>
>>
>>
>> --
>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
>> Java Persistence with Hibernate, Second Edition
>> 
>>
>> 
>> JUnit in Action, Second Edition
>> 

Re: Weird compilation error

2017-04-07 Thread Matt Sicker
This is the first I've ever seen that error, and it's not popping up in
Jenkins or anything. I don't think the code has changed since 2.8.2, so I
don't know why it would break.

On 7 April 2017 at 15:34, Gary Gregory  wrote:

> This is with Maven 3.3.9 though.
>
> Gary
>
> On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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) 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) 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,
>>> org.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
>>> 
>>>
>>> 
>>> JUnit in Action, Second Edition
>>> 
>>>
>>> 
>>> Spring Batch in Action
>>> 
>>> 
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>
>>
>>
>> --
>> Matt Sicker 
>>
>
>
>
> --
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> 
>
> 
> JUnit in Action, Second Edition
> 
>
> 

Re: Weird compilation error

2017-04-07 Thread Gary Gregory
This is with Maven 3.3.9 though.

Gary

On Fri, Apr 7, 2017 at 1:11 PM, Matt Sicker  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  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\
>> test\java\org\apache\log4j\layout\Log4j1XmlLayoutTest.java:[66,16]
>> [deprecation] setContextMap(Map) in Builder has been
>> deprecated
>> [WARN] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\
>> test\java\org\apache\log4j\pattern\Log4j1MdcPatternConverterTest.java:[70,16]
>> [deprecation] setContextMap(Map) 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.
>> Parameterized.Parameters,org.junit.Rule,org.junit.
>> ClassRule,org.junit.After,org.junit.runner.RunWith,org.
>> junit.BeforeClass,org.junit.Test
>> C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\src\
>> test\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\
>> test\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\
>> test\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
>> 
>>
>> 
>> JUnit in Action, Second Edition
>> 
>>
>> 
>> Spring Batch in Action
>> 
>> 
>> Blog: http://garygregory.wordpress.com
>> Home: http://garygregory.com/
>> Tweet! http://twitter.com/GaryGregory
>>
>
>
>
> --
> Matt Sicker 
>



-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition



JUnit in Action, Second Edition



Spring Batch in Action


Blog: h

Re: Weird compilation error

2017-04-07 Thread Matt Sicker
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  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\
> logging-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\test\java\org\apache\log4j\layout\Log4j1XmlLayoutTest.java:[66,16]
> [deprecation] setContextMap(Map) in Builder has been
> deprecated
> [WARN] C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\
> src\test\java\org\apache\log4j\pattern\Log4j1MdcPatternConverterTest.java:[70,16]
> [deprecation] setContextMap(Map) 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.Parameterized.
> Parameters,org.junit.Rule,org.junit.ClassRule,org.junit.
> After,org.junit.runner.RunWith,org.junit.BeforeClass,org.junit.Test
> C:\vcs\git\apache\logging\logging-log4j2\log4j-1.2-api\
> src\test\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\test\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\test\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
> 
>
> 
> JUnit in Action, Second Edition
> 
>
> 
> Spring Batch in Action
> 
> 
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker