yegor256 / qulice

Quality Police for Java projects: aggregator of Checkstyle and PMD
https://www.qulice.com
Other
301 stars 111 forks source link

mvn -Dci verify failed on trunk #33

Closed yegor256 closed 11 years ago

yegor256 commented 11 years ago

migrated from Trac, where originally posted by piotr.dziewonski on 26-Oct-2011 8:29pm

Command "mvn -Dci verify" failed on trunk. My environment:

Can anyone confirm it's ok and it's an issue related only to my machine/environment.

Description:

#!python
...
[INFO] Building jar: C:\development\qulice_trunk\qulice\qulice-spi\target\qulice-spi-1.0-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- qulice-maven-plugin:0.1.3:check (default) @ qulice-spi ---
[INFO] Calling org.apache.maven.plugins:maven-enforcer-plugin:1.0-beta-1:enforce...
[INFO] LICENSE found: jar:file:/C:/development/qulice_trunk/qulice/qulice-tk/target/qulice-tk-1.0-SNAPSHOT.jar!/LICENSE.txt
[ERROR] \src\main\java\com\qulice\spi\Environment.java[4]: Line does not match expected header line of ' * '. (HeaderCheck)
[ERROR] \src\main\java\com\qulice\spi\package-info.java[4]: Line does not match expected header line of ' * '. (HeaderCheck)
[ERROR] \src\main\java\com\qulice\spi\ValidationException.java[4]: Line does not match expected header line of ' * '. (HeaderCheck)
[ERROR] \src\main\java\com\qulice\spi\Validator.java[4]: Line does not match expected header line of ' * '. (HeaderCheck)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] qulice-tk ......................................... SUCCESS [20.769s]
[INFO] qulice ............................................ SUCCESS [14.231s]
[INFO] qulice-spi ........................................ FAILURE [14.190s]
[INFO] qulice-checkstyle ................................. SKIPPED
[INFO] qulice-pmd ........................................ SKIPPED
[INFO] qulice-findbugs ................................... SKIPPED
[INFO] qulice-maven-plugin ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55.720s
[INFO] Finished at: Wed Oct 26 22:14:55 CEST 2011
[INFO] Final Memory: 21M/247M
...
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 26-Oct-2011 9:25pm

Works fine for me (Mac OS, svn 1.6):

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] qulice-tk ......................................... SUCCESS [8.177s]
[INFO] qulice ............................................ SUCCESS [5.808s]
[INFO] qulice-spi ........................................ SUCCESS [11.129s]
[INFO] qulice-checkstyle ................................. SUCCESS [19.425s]
[INFO] qulice-pmd ........................................ SUCCESS [6.474s]
[INFO] qulice-findbugs ................................... SUCCESS [9.885s]
[INFO] qulice-maven-plugin ............................... SUCCESS [46.410s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:49.281s
[INFO] Finished at: Wed Oct 26 23:14:06 CEST 2011
[INFO] Final Memory: 28M/1531M
[INFO] ------------------------------------------------------------------------
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 26-Oct-2011 9:25pm

I think I know what the problem could be. Let me check...

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:23am

I confirm that the problem exists on Windows platform. Will check soon.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:30am

In [154/qulice]:

#CommitTicketReference repository="qulice" revision="154"
refs #33 - new branch
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:36am

In [155/qulice]:

#CommitTicketReference repository="qulice" revision="155"
refs #33 - EOL instead of explicit \n
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:38am

In [156/qulice]:

#CommitTicketReference repository="qulice" revision="156"
refs #33 - switch to snapshot
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:38am

let's try to merge.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:51am

failed

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:52am

In [157/qulice]:

#CommitTicketReference repository="qulice" revision="157"
refs #33 - typo
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 9:56am

let's try again

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 10:00am

failed again

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 10:01am

In [158/qulice]:

#CommitTicketReference repository="qulice" revision="158"
refs #33 - reverse back
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 10:16am

In [159/qulice]:

#CommitTicketReference repository="qulice" revision="159"
refs #33 - reverse back
yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 27-Oct-2011 10:26am

In [160/qulice]:

#CommitTicketReference repository="qulice" revision="160"
refs #33 - /branches/ticket33 merged into /trunk, 1 hours spent
yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 27-Oct-2011 10:26am

In [161/qulice]:

#CommitTicketReference repository="qulice" revision="161"
refs #33 - /branches/ticket33 successfully closed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 11:03am

Will release new version in #34 and then test again here.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 4:28pm

In [170/qulice]:

#CommitTicketReference repository="qulice" revision="170"
refs #33 - new branch
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 4:30pm

In [171/qulice]:

#CommitTicketReference repository="qulice" revision="171"
refs #33 - switch 0.1.4
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 4:30pm

let's merge to trunk

yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 27-Oct-2011 4:36pm

In [172/qulice]:

#CommitTicketReference repository="qulice" revision="172"
refs #33 - /branches/ticket33 merged into /trunk, 2 hours spent
yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 27-Oct-2011 4:36pm

In [173/qulice]:

#CommitTicketReference repository="qulice" revision="173"
refs #33 - /branches/ticket33 successfully closed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 5:06pm

This didn't help. Will try to reproduce the problem with a test and fix.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 7:12pm

In [178/qulice]:

#CommitTicketReference repository="qulice" revision="178"
refs #33 - added two tests, but still can't reproduce the problem
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 7:13pm

In [179/qulice]:

#CommitTicketReference repository="qulice" revision="179"
refs #33 - codenarc fixes
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 7:14pm

In [180/qulice]:

#CommitTicketReference repository="qulice" revision="180"
refs #33 - codenarc renamed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 7:38pm

In [181/qulice]:

#CommitTicketReference repository="qulice" revision="181"
refs #33 - codenarc works with invoker
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 7:58pm

In [182/qulice]:

#CommitTicketReference repository="qulice" revision="182"
refs #33 - typo
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 27-Oct-2011 8:09pm

In [183/qulice]:

#CommitTicketReference repository="qulice" revision="183"
refs #33 - polished, all tests work
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 9:59am

In [184/qulice]:

#CommitTicketReference repository="qulice" revision="184"
refs #33 - test reproduces the problem
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 10:32am

In [185/qulice]:

#CommitTicketReference repository="qulice" revision="185"
refs #33 - reproduced in tests and fixed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 4:10pm

In [186/qulice]:

#CommitTicketReference repository="qulice" revision="186"
refs #33 - ready to merge
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 4:33pm

In [187/qulice]:

#CommitTicketReference repository="qulice" revision="187"
refs #33 - dependencies fix
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 4:34pm

merge..

yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 28-Oct-2011 4:40pm

In [188/qulice]:

#CommitTicketReference repository="qulice" revision="188"
refs #33 - /branches/ticket33 merged into /trunk, 3 hours spent
yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 28-Oct-2011 4:40pm

In [189/qulice]:

#CommitTicketReference repository="qulice" revision="189"
refs #33 - /branches/ticket33 successfully closed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 28-Oct-2011 8:43pm

It's almost done. We will switch to 0.1.5 in #38 and the problem will disappear.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 11:46am

I just tested trunk in Windows 7, works fine. Piotr, could you please try again and let me know whether the problem is solved.

yegor256 commented 11 years ago

migrated from Trac, where originally posted by piotr.dziewonski on 30-Oct-2011 1:31pm

Almost done:

#!python
[ERROR] com.qulice.checkstyle.CheckstyleValidator$Listener: \src\main\java\com\qulice\foo\Main.java[0]: File does not end with a newline. (NewlineAtEn
dOfFileCheck)
[ERROR] com.qulice.checkstyle.CheckstyleValidator$Listener: \src\main\java\com\qulice\foo\Main.java[1]: Missing '@author' tag in class/interface comme
nt (JavadocTagsCheck)
[ERROR] com.qulice.checkstyle.CheckstyleValidator$Listener: \src\main\java\com\qulice\foo\Main.java[1]: Missing '@version' tag in class/interface comm
ent (JavadocTagsCheck)
[ERROR] com.qulice.checkstyle.CheckstyleValidator$Listener: \src\main\java\com\qulice\foo\package-info.java[0]: File does not end with a newline. (New
lineAtEndOfFileCheck)
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.09 sec <<< FAILURE!
testWindowsEndsOfLineWithLinuxSources(com.qulice.checkstyle.CheckstyleValidatorTest)  Time elapsed: 3.405 sec  <<< ERROR!
com.qulice.spi.ValidationException: 1 Checkstyle violations (see log above)
        at com.qulice.checkstyle.CheckstyleValidator.validate(CheckstyleValidator.java:95)
        at com.qulice.checkstyle.CheckstyleValidatorTest.testWindowsEndsOfLineWithLinuxSources(CheckstyleValidatorTest.java:172)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)
        at org.junit.rules.RunRules.evaluate(RunRules.java:18)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
        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:292)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 3:31pm

In [206/qulice]:

#CommitTicketReference repository="qulice" revision="206"
refs #33 - new branch
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 3:40pm

In [207/qulice]:

#CommitTicketReference repository="qulice" revision="207"
refs #33 - extra end of line
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 3:45pm

In [208/qulice]:

#CommitTicketReference repository="qulice" revision="208"
refs #33 - dynamic eol
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 3:48pm

should work, let's merge...

yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 30-Oct-2011 3:55pm

In [209/qulice]:

#CommitTicketReference repository="qulice" revision="209"
refs #33 - /branches/ticket33 merged into /trunk, 1 hours spent
yegor256 commented 11 years ago

migrated from Trac, where originally posted by guard on 30-Oct-2011 3:55pm

In [210/qulice]:

#CommitTicketReference repository="qulice" revision="210"
refs #33 - /branches/ticket33 successfully closed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 3:56pm

Piotr, could you please check again?

yegor256 commented 11 years ago

migrated from Trac, where originally posted by piotr.dziewonski on 30-Oct-2011 4:04pm

Updated, re-tested, failed:

#!python
[ERROR] \src\main\java\com\qulice\checkstyle\BracketsStructureCheck.java[0]: File does not end with a newline. (NewlineAtEndOfFileCheck)
[ERROR] \src\main\java\com\qulice\checkstyle\SvnPropertiesCheck.java[0]: File does not end with a newline. (NewlineAtEndOfFileCheck)
[ERROR] \src\test\java\com\qulice\checkstyle\BracketsStructureCheckTest.java[0]: File does not end with a newline. (NewlineAtEndOfFileCheck)
[ERROR] \src\test\java\com\qulice\checkstyle\ChecksTest.java[0]: File does not end with a newline. (NewlineAtEndOfFileCheck)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] qulice-tk ......................................... SUCCESS [20.580s]
[INFO] qulice ............................................ SUCCESS [30.374s]
[INFO] qulice-spi ........................................ SUCCESS [19.958s]
[INFO] qulice-checkstyle ................................. FAILURE [24.636s]
[INFO] qulice-codenarc ................................... SKIPPED
[INFO] qulice-pmd ........................................ SKIPPED
[INFO] qulice-findbugs ................................... SKIPPED
[INFO] qulice-maven-plugin ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:39.383s
[INFO] Finished at: Sun Oct 30 17:00:33 CET 2011
[INFO] Final Memory: 59M/247M
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 4:25pm

In [211/qulice]:

#CommitTicketReference repository="qulice" revision="211"
refs #33 - new branch
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 4:29pm

In [212/qulice]:

#CommitTicketReference repository="qulice" revision="212"
refs #33 - propset, problem fixed
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 4:37pm

In [213/qulice]:

#CommitTicketReference repository="qulice" revision="213"
refs #33 - more propset
yegor256 commented 11 years ago

migrated from Trac, where originally posted by yegor256 on 30-Oct-2011 4:47pm

fixed, merging...