[logback-dev] running mvn eclipse:eclipse from master yields error

Broc Seib broc.seib at gmail.com
Thu Apr 4 03:46:56 CEST 2013


I still cannot get it to build from master branch. I'm just trying to get a
basic build working so I can work on issue #813. Should I be starting from
a different branch other than master?

What I did:
1) git clone https://github.com/qos-ch/logback.git
2) cd logback
3) mvn install

And I get the following failure:

Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.584 sec
<<< FA
ILURE!
withZipCompression_FileSet_NoRestart_7(ch.qos.logback.core.rolling.SizeAndTimeBa
sedFNATP_Test)  Time elapsed: 0.185 sec
withGZCompression_FileBlank_NoRestart_6(ch.qos.logback.core.rolling.SizeAndTimeB
asedFNATP_Test)  Time elapsed: 0.063 sec
withGZCompression_FileSet_NoRestart_5(ch.qos.logback.core.rolling.SizeAndTimeBas
edFNATP_Test)  Time elapsed: 0.007 sec  <<< ERROR!
java.io.FileNotFoundException:
target\test-output\890351695\toto.log168270736165
2785.tmp (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at
ch.qos.logback.core.testUtil.FileToBufferUtil.regularReadIntoList(Fil
eToBufferUtil.java:60)
        at
ch.qos.logback.core.testUtil.FileToBufferUtil.readIntoList(FileToBuff
erUtil.java:38)
        at
ch.qos.logback.core.rolling.ScaffoldingForRollingTests.fileContentChe
ck(ScaffoldingForRollingTests.java:84)
        at
ch.qos.logback.core.rolling.ScaffoldingForRollingTests.sortedContentC
heck(ScaffoldingForRollingTests.java:99)
        at
ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP_Test.generic(SizeAn
dTimeBasedFNATP_Test.java:130)
        at
ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP_Test.withGZCompress
ion_FileSet_NoRestart_5(SizeAndTimeBasedFNATP_Test.java:184)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework
Method.java:45)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal
lable.java:15)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe
thod.java:42)
        at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet
hod.java:20)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.
java:28)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:68)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun
ner.java:47)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603)
        at java.lang.Thread.run(Thread.java:722)

noCompression_FileSet_WithStopStart_4(ch.qos.logback.core.rolling.SizeAndTimeBas
edFNATP_Test)  Time elapsed: 0.069 sec
noCompression_FileBlank_WithStopStart_3(ch.qos.logback.core.rolling.SizeAndTimeB
asedFNATP_Test)  Time elapsed: 0.08 sec
noCompression_FileBlank_NoRestart_2(ch.qos.logback.core.rolling.SizeAndTimeBased
FNATP_Test)  Time elapsed: 0.062 sec
noCompression_FileSet_NoRestart_1(ch.qos.logback.core.rolling.SizeAndTimeBasedFN
ATP_Test)  Time elapsed: 0.07 sec
Running ch.qos.logback.core.recovery.ResilientOutputStreamTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.259 sec
verifyRecuperationAfterFailure(ch.qos.logback.core.recovery.ResilientOutputStrea
mTest)  Time elapsed: 0.259 sec
Running ch.qos.logback.core.net.SSLSocketAppenderBaseTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.262 sec
testUsingDefaultConfig(ch.qos.logback.core.net.SSLSocketAppenderBaseTest)
 Time
elapsed: 0.262 sec

Results :

Failed tests:
testConnectionFails(ch.qos.logback.core.net.SocketConnectorBaseT
est)
  testConnectEventually(ch.qos.logback.core.net.SocketConnectorBaseTest)

lossyAppenderShouldOnlyLooseCertainEvents(ch.qos.logback.core.AsyncAppenderBas
eTest): expected:<8> but was:<9>

Tests in error:

withGZCompression_FileSet_NoRestart_5(ch.qos.logback.core.rolling.SizeAndTimeB
asedFNATP_Test): target\test-output\890351695\toto.log1682707361652785.tmp
(The
system cannot find the file specified)

Tests run: 421, Failures: 3, Errors: 1, Skipped: 6

[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Logback-Parent .................................... SUCCESS [0.247s]
[INFO] Logback Core Module ............................... FAILURE [6.937s]
[INFO] Logback Classic Module ............................ SKIPPED
[INFO] Logback Access Module ............................. SKIPPED
[INFO] Logback Site ...................................... SKIPPED
[INFO] Logback Examples Module ........................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7.722s
[INFO] Finished at: Wed Apr 03 21:38:29 EDT 2013
[INFO] Final Memory: 10M/242M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.
12.4:test (default-test) on project logback-core: There are test failures.
[ERROR]
[ERROR] Please refer to
C:\gitrepo\logback\logback-core\target\surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn <goals> -rf :logback-core


On Wed, Mar 27, 2013 at 3:18 PM, Broc Seib <broc.seib at gmail.com> wrote:

> Whoops, I had not. Now I see that command mentioned earlier on the
> logback.qos.ch/setup.html#ide page. Running 'mvn install' would be good
> to document as step 6.5. :-)
>
> Running 'mvn install' produces an error for me. Here is a portion of the
> output:
>
> Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.777 sec
> failed_rename(ch.qos.logback.core.rolling.TimeBasedRolling_STest)  Time
> elapsed:
>  2.72 sec
>
> noCompression_FileSet_NoRestart_5(ch.qos.logback.core.rolling.TimeBasedRolling_S
> Test)  Time elapsed: 0.394 sec
>
> withCompression_FileSet_NoRestart_6(ch.qos.logback.core.rolling.TimeBasedRolling
> _STest)  Time elapsed: 0.575 sec
>
> noCompression_FileSet_StopRestart_4(ch.qos.logback.core.rolling.TimeBasedRolling
> _STest)  Time elapsed: 0.335 sec
>
> noCompression_FileBlank_StopRestart_3(ch.qos.logback.core.rolling.TimeBasedRolli
> ng_STest)  Time elapsed: 0.17 sec
>
> withCompression_FileBlank_NoRestart_2(ch.qos.logback.core.rolling.TimeBasedRolli
> ng_STest)  Time elapsed: 0.274 sec
>
> noCompression_FileBlank_NoRestart_1(ch.qos.logback.core.rolling.TimeBasedRolling
> _STest)  Time elapsed: 0.084 sec
>
> withMissingTargetDirWithCompression(ch.qos.logback.core.rolling.TimeBasedRolling
> _STest)  Time elapsed: 0.297 sec
>
> withMissingTargetDirWithZipCompression(ch.qos.logback.core.rolling.TimeBasedRoll
> ing_STest)  Time elapsed: 0.491 sec
>
> noCompression_FileSet_StopRestart_WithLongWait_4B(ch.qos.logback.core.rolling.Ti
> meBasedRolling_STest)  Time elapsed: 0.437 sec
> Running
> ch.qos.logback.core.joran.conditional.IfThenElseAndIncludeCompositionTes
> t
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.844 sec
>
> includeNestedWithinIf(ch.qos.logback.core.joran.conditional.IfThenElseAndInclude
> CompositionTest)  Time elapsed: 2.844 sec
>
> Results :
>
> Failed tests:   smoke(ch.qos.logback.core.FileAppenderResilienceTest):
> totalLine
> s=29 less than 460
>
> Tests run: 370, Failures: 1, Errors: 0, Skipped: 6
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Logback-Parent .................................... SUCCESS [1.055s]
> [INFO] Logback Core Module ............................... FAILURE
> [3:19.830s]
> [INFO] Logback Classic Module ............................ SKIPPED
> [INFO] Logback Access Module ............................. SKIPPED
> [INFO] Logback Site ...................................... SKIPPED
> [INFO] Logback Examples Module ........................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3:21.556s
> [INFO] Finished at: Wed Mar 27 15:07:36 EDT 2013
> [INFO] Final Memory: 31M/248M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.
> 12.4:test (default-test) on project logback-core: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> N:\git\logback\logback-core\target\surefire-reports for
> the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e swit
> ch.
> [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 rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
>
> [ERROR]   mvn <goals> -rf :logback-core
>
>
>
>
> On Wed, Mar 27, 2013 at 2:13 PM, ceki <ceki at qos.ch> wrote:
>
>>
>> Have you tried running 'mvn install' before 'mvn eclipse:eclipse'?
>>
>>
>>
>> On 27.03.2013 18:40, Broc Seib wrote:
>>
>>> Hi all,
>>>
>>> I have been following the steps for setting up in Eclipse
>>> (http://logback.qos.ch/setup.**html#ide<http://logback.qos.ch/setup.html#ide>),
>>> but I've run into a problem on
>>> step 7. It says it can't
>>> find ch.qos.logback:logback-core:**jar:1.0.12-SNAPSHOT. These warnings
>>> at
>>> the top look suspicious to me, but I don't know how to address them.
>>>
>>> Any help or insight would be appreciated.
>>>
>>> Broc
>>>
>>>
>>> $ mvn eclipse:eclipse
>>> [INFO] Scanning for projects...
>>> [WARNING]
>>> [WARNING] Some problems were encountered while building the effective
>>> model for
>>> ch.qos.logback:logback-core:**jar:1.0.12-SNAPSHOT
>>> [WARNING] 'build.plugins.plugin.version' for
>>> org.scala-tools:maven-scala-**plugin
>>> is missing. @ line 99, column 15
>>> [WARNING]
>>> [WARNING] It is highly recommended to fix these problems because they
>>> threaten t
>>> he stability of your build.
>>> [WARNING]
>>> [WARNING] For this reason, future Maven versions might no longer support
>>> buildin
>>> g such malformed projects.
>>> [WARNING]
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Reactor Build Order:
>>> [INFO]
>>> [INFO] Logback-Parent
>>> [INFO] Logback Core Module
>>> [INFO] Logback Classic Module
>>> [INFO] Logback Access Module
>>> [INFO] Logback Site
>>> [INFO] Logback Examples Module
>>> [INFO]
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Building Logback-Parent 1.0.12-SNAPSHOT
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO]
>>> [INFO] >>> maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-parent >>>
>>> [INFO]
>>> [INFO] --- build-helper-maven-plugin:1.7:**add-test-source
>>> (add-test-source) @ log
>>> back-parent ---
>>> [INFO] Test Source directory: n:\git\logback\src\test\scala added.
>>> [INFO]
>>> [INFO] <<< maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-parent <<<
>>> [INFO]
>>> [INFO] --- maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-parent ---
>>> [INFO] Not running eclipse plugin goal for pom project
>>> [INFO] Using Eclipse Workspace: null
>>> [INFO] Adding default classpath container:
>>> org.eclipse.jdt.launching.JRE_**CONTAIN
>>> ER
>>> [INFO]
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Building Logback Core Module 1.0.12-SNAPSHOT
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO]
>>> [INFO] >>> maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-core >>>
>>> [INFO]
>>> [INFO] --- build-helper-maven-plugin:1.7:**add-test-source
>>> (add-test-source) @ log
>>> back-core ---
>>> [INFO] Test Source directory: N:\git\logback\logback-core\**
>>> src\test\scala
>>> added.
>>> [INFO]
>>> [INFO] <<< maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-core <<<
>>> [INFO]
>>> [INFO] --- maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-core ---
>>> [INFO] Using Eclipse Workspace: null
>>> [INFO] Adding default classpath container:
>>> org.eclipse.jdt.launching.JRE_**CONTAIN
>>> ER
>>> [INFO] Wrote settings to
>>> N:\git\logback\logback-core\.**settings\org.eclipse.jdt.c
>>> ore.prefs
>>> [INFO] Wrote Eclipse project for "logback-core" to
>>> N:\git\logback\logback-core.
>>> [INFO]
>>> [INFO]
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Building Logback Classic Module 1.0.12-SNAPSHOT
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO]
>>> [INFO] >>> maven-eclipse-plugin:2.8:**eclipse (default-cli) @
>>> logback-classic >>>
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] Logback-Parent ..............................**...... SUCCESS
>>> [0.322s]
>>> [INFO] Logback Core Module ..............................**. SUCCESS
>>> [0.447s]
>>> [INFO] Logback Classic Module ............................ FAILURE
>>> [0.116s]
>>> [INFO] Logback Access Module ............................. SKIPPED
>>> [INFO] Logback Site ..............................**........ SKIPPED
>>> [INFO] Logback Examples Module ........................... SKIPPED
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [INFO] Total time: 1.610s
>>> [INFO] Finished at: Wed Mar 27 13:36:09 EDT 2013
>>> [INFO] Final Memory: 12M/242M
>>> [INFO]
>>> ------------------------------**------------------------------**
>>> ------------
>>> [ERROR] Failed to execute goal on project logback-classic: Could not
>>> resolve dep
>>> endencies for project
>>> ch.qos.logback:logback-**classic:jar:1.0.12-SNAPSHOT: Could
>>> not find artifact ch.qos.logback:logback-core:**jar:1.0.12-SNAPSHOT ->
>>> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e swit
>>> ch.
>>> [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 rea
>>> d the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/**confluence/display/MAVEN/**DependencyReso<http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso>
>>> lutionException
>>> [ERROR]
>>> [ERROR] After correcting the problems, you can resume the build with the
>>> command
>>>
>>> [ERROR]   mvn <goals> -rf :logback-classic
>>>
>>>
>>>
>>> ______________________________**_________________
>>> logback-dev mailing list
>>> logback-dev at qos.ch
>>> http://mailman.qos.ch/mailman/**listinfo/logback-dev<http://mailman.qos.ch/mailman/listinfo/logback-dev>
>>>
>>>
>>
>> --
>> Ceki
>> 65% of statistics are made up on the spot
>> ______________________________**_________________
>> logback-dev mailing list
>> logback-dev at qos.ch
>> http://mailman.qos.ch/mailman/**listinfo/logback-dev<http://mailman.qos.ch/mailman/listinfo/logback-dev>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20130403/dcec5645/attachment-0001.html>


More information about the logback-dev mailing list