[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-dev
Subject:    Re: Building the beast
From:       Ralph Goers <ralph.goers () dslextreme ! com>
Date:       2012-09-27 15:44:55
Message-ID: 06834F89-AF7C-4BBD-A976-E367A8733D5C () dslextreme ! com
[Download RAW message or body]

Great - I am expecting patches soon!

Ralph

On Sep 27, 2012, at 6:52 AM, Gary Gregory wrote:

> Ah! I finally got the build to run all the way through with "mvn clean install".
> 
> Gary
> 
> On Thu, Sep 27, 2012 at 1:25 AM, Ralph Goers <ralph.goers@dslextreme.com> wrote:
> I've now fixed the other unit test that was failing and was able to build \
> successfully in my Windows VM. 
> Ralph
> 
> On Sep 26, 2012, at 8:26 AM, Ralph Goers wrote:
> 
> > I've fixed PatternParserTest but I still have to fix the other one. It has \
> > something to do with File.setLastModified.  In the meantime, to run mvn \
> > eclipse:eclipse first do "mvn clean install -Dmaven.test.skip" 
> > Ralph
> > 
> > 
> > On Sep 26, 2012, at 6:31 AM, Ralph Goers wrote:
> > 
> > > I ran the build in my Windows VM and I see those 2 failures. I will take a \
> > > look. 
> > > Ralph
> > > 
> > > On Sep 26, 2012, at 6:03 AM, Ralph Goers wrote:
> > > 
> > > > The corresponding txt files in target/surefire-reports should tell you what \
> > > > the problems are with the tests. I can't tell anything just from the fact \
> > > > that they failed. 
> > > > An NPE at line 129 of LogManager indicates it either couldn't set up the \
> > > > factory or the LoggerContext.  I can't tell which just from the NPE. 
> > > > If you ran mvn eclipse:eclipse it has to download the artifacts because it \
> > > > isn't building them, it is just building the eclipse project files. 
> > > > Ralph
> > > > 
> > > > On Sep 26, 2012, at 5:20 AM, Gary Gregory wrote:
> > > > 
> > > > > Hi All:
> > > > > 
> > > > > When I run the v2 trunk build from the command line, I get failures:
> > > > > 
> > > > > Running org.apache.logging.log4j.core.config.TestConfigurator
> > > > > Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.032 sec \
> > > > > <<< FAILURE! 
> > > > > Running org.apache.logging.log4j.core.pattern.PatternParserTest
> > > > > Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec \
> > > > >                 <<< FAILURE!
> > > > > . Actual: [20120926 07:56:11,095] INFO  [PatternParserTest        :95  ] - \
> > > > > Hello, world 
> > > > > If I try to run TestConfigurator from Eclipse, I get NPEs for all 4 methods \
> > > > > like: 
> > > > > java.lang.NullPointerException
> > > > > at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:129)
> > > > > at org.apache.logging.log4j.core.config.TestConfigurator.testByName(TestConfigurator.java:79)
> > > > >  
> > > > > If I try to run "mvn eclipse:eclipse" to redo my project configs, I get an \
> > > > > error: 
> > > > > [INFO] ------------------------------------------------------------------------
> > > > >  [INFO] Building Log4J Core 2.0-beta2-SNAPSHOT
> > > > > [INFO] ------------------------------------------------------------------------
> > > > >  [INFO]
> > > > > [INFO] >>> maven-eclipse-plugin:2.8:eclipse (default-cli) @ log4j-core >>>
> > > > > [INFO]
> > > > > [INFO] --- maven-remote-resources-plugin:1.1:process (default) @ log4j-core \
> > > > > --- [INFO] \
> > > > > ------------------------------------------------------------------------ \
> > > > > [INFO] Reactor Summary: [INFO]
> > > > > [INFO] Apache Log4j 2 .................................... SUCCESS [1.030s]
> > > > > [INFO] Log4J API ......................................... SUCCESS [0.145s]
> > > > > [INFO] Log4J Core ........................................ FAILURE [0.163s]
> > > > > [INFO] Log4J Compatibility API ........................... SKIPPED
> > > > > [INFO] SLF4J Binding ..................................... SKIPPED
> > > > > [INFO] Log4J Commons Logging ............................. SKIPPED
> > > > > [INFO] Log4J Flume NG .................................... SKIPPED
> > > > > [INFO] Log4j Web Adapters ................................ SKIPPED
> > > > > [INFO] ------------------------------------------------------------------------
> > > > >  [INFO] BUILD FAILURE
> > > > > [INFO] ------------------------------------------------------------------------
> > > > >  [INFO] Total time: 3.850s
> > > > > [INFO] Finished at: Wed Sep 26 08:19:24 EDT 2012
> > > > > [INFO] Final Memory: 18M/219M
> > > > > [INFO] ------------------------------------------------------------------------
> > > > >  [ERROR] Failed to execute goal \
> > > > > org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process \
> > > > > (default) on project log4j-core: Failed to resolve dependencie s for one or \
> > > > > more projects in the reactor. Reason: Missing: [ERROR] ----------
> > > > > [ERROR] 1) org.apache.logging.log4j:log4j-api:jar:2.0-beta2-SNAPSHOT
> > > > > [ERROR]
> > > > > [ERROR] Try downloading the file manually from the project website.
> > > > > [ERROR]
> > > > > [ERROR] Then, install it using the command:
> > > > > [ERROR] mvn install:install-file -DgroupId=org.apache.logging.log4j \
> > > > > -DartifactId=log4j-api -Dversion=2.0-beta2-SNAPSHOT -Dpackaging=jar \
> > > > > -Dfile=/path/to/file [ERROR]
> > > > > [ERROR] Alternatively, if you host your own repository you can deploy the \
> > > > > file there: [ERROR] mvn deploy:deploy-file \
> > > > > -DgroupId=org.apache.logging.log4j -DartifactId=log4j-api \
> > > > > -Dversion=2.0-beta2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl \
> > > > > =[url] -DrepositoryId=[id] [ERROR]
> > > > > [ERROR] Path to dependency:
> > > > > [ERROR] 1) org.apache.logging.log4j:log4j-core:jar:2.0-beta2-SNAPSHOT
> > > > > [ERROR] 2) org.apache.logging.log4j:log4j-api:jar:2.0-beta2-SNAPSHOT
> > > > > [ERROR]
> > > > > [ERROR] ----------
> > > > > [ERROR] 1 required artifact is missing.
> > > > > [ERROR]
> > > > > [ERROR] for artifact:
> > > > > [ERROR] org.apache.logging.log4j:log4j-core:jar:2.0-beta2-SNAPSHOT
> > > > > [ERROR]
> > > > > [ERROR] from the specified remote repositories:
> > > > > [ERROR] apache.snapshots (http://repository.apache.org/snapshots, \
> > > > > releases=false, snapshots=true), [ERROR] central \
> > > > > (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) \
> > > > > [ERROR] -> [Help 1] [ERROR]
> > > > > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e \
> > > > > switch. [ERROR] Re-run Maven using the -X switch to enable full debug \
> > > > > logging. [ERROR]
> > > > > [ERROR] For more information about the errors and possible solutions, \
> > > > > please read the following articles: [ERROR] [Help 1] \
> > > > > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException \
> > > > > [ERROR] [ERROR] After correcting the problems, you can resume the build \
> > > > > with the command [ERROR]   mvn <goals> -rf :log4j-core
> > > > > 
> > > > > Why is it trying to download something it is trying to build?
> > > > > 
> > > > > Thank you,
> > > > > Gary
> > > > > 
> > > > > -- 
> > > > > E-Mail: garydgregory@gmail.com | ggregory@apache.org 
> > > > > JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
> > > > > Spring Batch in Action: http://bit.ly/bqpbCK
> > > > > Blog: http://garygregory.wordpress.com 
> > > > > Home: http://garygregory.com/
> > > > > Tweet! http://twitter.com/GaryGregory
> > > > 
> > > 
> > 
> 
> 
> 
> 
> -- 
> E-Mail: garydgregory@gmail.com | ggregory@apache.org 
> JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
> Spring Batch in Action: http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com 
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory


[Attachment #3 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">Great - I am expecting patches \
soon!<div><br></div><div>Ralph</div><div><br><div><div>On Sep 27, 2012, at 6:52 AM, \
Gary Gregory wrote:</div><br class="Apple-interchange-newline"><blockquote \
type="cite">Ah! I finally got the build to run all the way through with "mvn clean \
install".<br><br>Gary<br><br><div class="gmail_quote">On Thu, Sep 27, 2012 at 1:25 \
AM, Ralph Goers <span dir="ltr">&lt;<a href="mailto:ralph.goers@dslextreme.com" \
target="_blank">ralph.goers@dslextreme.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word"><div>I've now fixed the \
other unit test that was failing and was able to build successfully in my Windows \
VM.</div> <span class="HOEnZb"><font \
color="#888888"><div><br></div><div>Ralph</div></font></span><div><div \
class="h5"><br><div><div>On Sep 26, 2012, at 8:26 AM, Ralph Goers \
wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word"> I've fixed \
PatternParserTest but I still have to fix the other one. It has something to do with \
File.setLastModified. &nbsp;In the meantime, to run mvn eclipse:eclipse first do "mvn \
clean install -Dmaven.test.skip"<div> \
<br></div><div>Ralph<br><div><br></div><div><br><div><div>On Sep 26, 2012, at 6:31 \
AM, Ralph Goers wrote:</div><br><blockquote type="cite"><div \
style="word-wrap:break-word">I ran the build in my Windows VM and I see those 2 \
failures. I will take a look.<div> <br></div><div>Ralph</div><div><br><div><div>On \
Sep 26, 2012, at 6:03 AM, Ralph Goers wrote:</div><br><blockquote type="cite"><div \
style="word-wrap:break-word"><div>The corresponding txt files in \
target/surefire-reports should tell you what the problems are with the tests. I can't \
tell anything just from the fact that they failed.</div> <div><br></div><div>An NPE \
at line 129 of LogManager indicates it either couldn't set up the factory or the \
LoggerContext. &nbsp;I can't tell which just from the \
NPE.</div><div><br></div><div>If you ran mvn eclipse:eclipse it has to download the \
artifacts because it isn't building them, it is just building the eclipse project \
files.</div> <div><br></div><div>Ralph</div><br><div><div>On Sep 26, 2012, at 5:20 \
AM, Gary Gregory wrote:</div><br><blockquote type="cite">Hi All:<br><br>When I run \
the v2 trunk build from the command line, I get failures:<br><br><font size="1"><span \
style="font-family:courier new,monospace">Running \
org.apache.logging.log4j.core.config.TestConfigurator<br> Tests run: 4, Failures: 1, \
Errors: 0, Skipped: 0, Time elapsed: 1.032 sec &lt;&lt;&lt; FAILURE!<br> <br>Running \
org.apache.logging.log4j.core.pattern.PatternParserTest<br>Tests run: 2, Failures: 1, \
Errors: 0, Skipped: 0, Time elapsed: 0.362 sec &lt;&lt;&lt; FAILURE!<br>. Actual: \
[20120926 07:56:11,095] INFO&nbsp; \
[PatternParserTest&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :95&nbsp; ] - Hello, \
world</span></font><br>

<br>If I try to run TestConfigurator from Eclipse, I get NPEs for all 4 methods \
like:<br><br><font size="1"><span style="font-family:courier \
new,monospace">java.lang.NullPointerException<br>&nbsp;&nbsp;&nbsp; at \
org.apache.logging.log4j.LogManager.getLogger(LogManager.java:129)<br>

&nbsp;&nbsp;&nbsp; at \
org.apache.logging.log4j.core.config.TestConfigurator.testByName(TestConfigurator.java:79)</span></font><br><br \
clear="all">If I try to run "mvn eclipse:eclipse" to redo my project configs, I get \
an error:<br>

<br><font size="1"><span style="font-family:courier new,monospace">[INFO] \
------------------------------------------------------------------------<br>[INFO] \
Building Log4J Core 2.0-beta2-SNAPSHOT<br>[INFO] \
------------------------------------------------------------------------<br>

[INFO]<br>[INFO] &gt;&gt;&gt; maven-eclipse-plugin:2.8:eclipse (default-cli) @ \
log4j-core &gt;&gt;&gt;<br>[INFO]<br>[INFO] --- \
maven-remote-resources-plugin:1.1:process (default) @ log4j-core ---<br>[INFO] \
------------------------------------------------------------------------<br>

[INFO] Reactor Summary:<br>[INFO]<br>[INFO] Apache Log4j 2 \
.................................... SUCCESS [1.030s]<br>[INFO] Log4J API \
......................................... SUCCESS [0.145s]<br>[INFO] Log4J Core \
........................................ FAILURE [0.163s]<br>

[INFO] Log4J Compatibility API ........................... SKIPPED<br>[INFO] SLF4J \
Binding ..................................... SKIPPED<br>[INFO] Log4J Commons Logging \
............................. SKIPPED<br>[INFO] Log4J Flume NG \
.................................... SKIPPED<br>

[INFO] Log4j Web Adapters ................................ SKIPPED<br>[INFO] \
------------------------------------------------------------------------<br>[INFO] \
BUILD FAILURE<br>[INFO] \
------------------------------------------------------------------------<br>

[INFO] Total time: 3.850s<br>[INFO] Finished at: Wed Sep 26 08:19:24 EDT \
2012<br>[INFO] Final Memory: 18M/219M<br>[INFO] \
------------------------------------------------------------------------<br>[ERROR] \
Failed to execute goal \
org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process (default) on \
project log4j-core: Failed to resolve dependencie<br>

s for one or more projects in the reactor. Reason: Missing:<br>[ERROR] \
----------<br>[ERROR] 1) \
org.apache.logging.log4j:log4j-api:jar:2.0-beta2-SNAPSHOT<br>[ERROR]<br>[ERROR] Try \
downloading the file manually from the project website.<br>

[ERROR]<br>[ERROR] Then, install it using the command:<br>[ERROR] mvn \
install:install-file -DgroupId=org.apache.logging.log4j -DartifactId=log4j-api \
-Dversion=2.0-beta2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file<br>[ERROR]<br>

[ERROR] Alternatively, if you host your own repository you can deploy the file \
there:<br>[ERROR] mvn deploy:deploy-file -DgroupId=org.apache.logging.log4j \
-DartifactId=log4j-api -Dversion=2.0-beta2-SNAPSHOT -Dpackaging=jar \
-Dfile=/path/to/file -Durl<br>

=[url] -DrepositoryId=[id]<br>[ERROR]<br>[ERROR] Path to dependency:<br>[ERROR] 1) \
org.apache.logging.log4j:log4j-core:jar:2.0-beta2-SNAPSHOT<br>[ERROR] 2) \
org.apache.logging.log4j:log4j-api:jar:2.0-beta2-SNAPSHOT<br>[ERROR]<br>

[ERROR] ----------<br>[ERROR] 1 required artifact is missing.<br>[ERROR]<br>[ERROR] \
for artifact:<br>[ERROR] \
org.apache.logging.log4j:log4j-core:jar:2.0-beta2-SNAPSHOT<br>[ERROR]<br>[ERROR] from \
the specified remote repositories:<br>

[ERROR] apache.snapshots (<a href="http://repository.apache.org/snapshots" \
target="_blank">http://repository.apache.org/snapshots</a>, releases=false, \
snapshots=true),<br>[ERROR] central (<a href="http://repo.maven.apache.org/maven2" \
target="_blank">http://repo.maven.apache.org/maven2</a>, releases=true, \
snapshots=false)<br>

[ERROR] -&gt; [Help 1]<br>[ERROR]<br>[ERROR] To see the full stack trace of the \
errors, re-run Maven with the -e switch.<br>[ERROR] Re-run Maven using the -X switch \
to enable full debug logging.<br>[ERROR]<br>[ERROR] For more information about the \
errors and possible solutions, please read the following articles:<br>

[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException" \
target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException</a><br>[ERROR]<br>[ERROR] \
After correcting the problems, you can resume the build with the command<br>

[ERROR]&nbsp;&nbsp; mvn &lt;goals&gt; -rf :log4j-core<br></span></font><br>Why is it \
trying to download something it is trying to build?<br><br>Thank \
you,<br>Gary<br><br>-- <br>E-Mail: <a href="mailto:garydgregory@gmail.com" \
target="_blank">garydgregory@gmail.com</a> | <a href="mailto:ggregory@apache.org" \
target="_blank">ggregory@apache.org </a><br>

JUnit in Action, 2nd Ed: <a href="http://goog_1249600977/" target="_blank"></a><a \
href="http://bit.ly/ECvg0" target="_blank">http://bit.ly/ECvg0</a><br>Spring Batch in \
Action: <a href="http://s.apache.org/HOq" target="_blank"></a><a \
href="http://bit.ly/bqpbCK" rel="nofollow" \
target="_blank">http://bit.ly/bqpbCK</a><br>

Blog: <a href="http://garygregory.wordpress.com/" \
target="_blank">http://garygregory.wordpress.com</a> <br>Home: <a \
href="http://garygregory.com/" target="_blank">http://garygregory.com/</a><br>Tweet! \
<a href="http://twitter.com/GaryGregory" \
target="_blank">http://twitter.com/GaryGregory</a><br>


</blockquote></div><br></div></blockquote></div><br></div></div></blockquote></div><br \
></div></div></div></blockquote></div><br></div></div></div></blockquote></div><br><br \
> clear="all"><br>-- <br>E-Mail: <a href="mailto:garydgregory@gmail.com" \
> target="_blank">garydgregory@gmail.com</a> | <a href="mailto:ggregory@apache.org" \
> target="_blank">ggregory@apache.org </a><br>
JUnit in Action, 2nd Ed: <a href="http://goog_1249600977/" target="_blank"></a><a \
href="http://bit.ly/ECvg0" target="_blank">http://bit.ly/ECvg0</a><br>Spring Batch in \
Action: <a href="http://s.apache.org/HOq" target="_blank"></a><a \
href="http://bit.ly/bqpbCK" rel="nofollow" \
                target="_blank">http://bit.ly/bqpbCK</a><br>
Blog: <a href="http://garygregory.wordpress.com/" \
target="_blank">http://garygregory.wordpress.com</a> <br>Home: <a \
href="http://garygregory.com/" target="_blank">http://garygregory.com/</a><br>Tweet! \
<a href="http://twitter.com/GaryGregory" \
target="_blank">http://twitter.com/GaryGregory</a><br>

</blockquote></div><br></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic