Re: apache/archiva master branch fails to install

2018-12-14 Thread Martin Stockhammer
Hi,

could you please check, if there is a $HOME/.m2/archiva.xml 
If so, move it away before running mvn clean install

Regards

Martin


Am 14. Dezember 2018 01:49:17 MEZ schrieb Alexandru Zbarcea 
:
>Thank you Martin.
>
>I see what you mean in
>https://builds.apache.org/job/archiva-master-build:
>./src/ci/scripts/prepareWorkspace.sh
>
>I get the same test failure even with mvn clean install. I wonder if it
>is
>an Archlinux thing (newer mvn or something, or even something different
>in
>.m2/settings.xml). Will debug and let you know. I see indeed that
>Jenkins
>master is successful.
>
>Much appreciated for your help,
>- Alex
>
>
>On Mon, Dec 10, 2018 at 5:13 AM Martin Stockhammer
>
>wrote:
>
>> Hi,
>>
>> did you run mvn clean before?
>> Sometimes there are files not cleaned up correctly. You can use the
>script
>> src/main/ci/cleanupWorkspace.sh which is used by our build on the ci
>server.
>>
>> Regards
>>
>> Martin
>>
>>
>>
>>
>> Am 10. Dezember 2018 01:26:22 MEZ schrieb Alexandru Zbarcea <
>> zbarce...@gmail.com>:
>> >Hi,
>> >
>> >Any advice for the following mvn install failure? The archiva master
>> >build
>> >fails with the following stack:
>> >
>> >more:
>> >[INFO] --< org.apache.archiva:archiva-scheduler-repository
>> > >---
>> >[INFO] Building Archiva Scheduler :: Repository Scanning
>3.0.0-SNAPSHOT
>> >[44/72]
>> >[INFO] ---[ bundle
>> >]---
>> >[INFO]
>> >[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ archiva
>> >-scheduler-repository ---
>> >[INFO] Deleting
>> >/home/alex/projects/apache/archiva/archiva-modules/archiva
>> >-scheduler/archiva-scheduler-repository/target
>> >[INFO]
>> >[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-java) @
>> >archiva
>> >-scheduler-repository ---
>> >[INFO]
>> >[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (default) @
>archiva
>> >-scheduler-repository ---
>> >[INFO]
>> >[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>> >archiva
>> >-scheduler-repository ---
>> >[INFO]
>> >[INFO] --- maven-resources-plugin:2.7:resources (default-resources)
>@
>> >archiva-scheduler-repository ---
>> >[INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >[INFO] Copying 1 resource
>> >[INFO] Copying 2 resources
>> >[INFO]
>> >[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
>> >archiva
>> >-scheduler-repository ---
>> >[INFO] Changes detected - recompiling the module!
>> >[INFO] Compiling 3 source files to
>/home/alex/projects/apache/archiva/
>> >archiva-modules/archiva-scheduler/archiva
>> >-scheduler-repository/target/classes
>> >[INFO]
>> >[INFO] --- maven-resources-plugin:2.7:testResources
>> >(default-testResources)
>> > @ archiva-scheduler-repository ---
>> >[INFO] Using 'UTF-8' encoding to copy filtered resources.
>> >[INFO] Copying 6 resources
>> >[INFO] Copying 2 resources
>> >[INFO]
>> >[INFO] --- maven-compiler-plugin:3.7.0:testCompile
>> >(default-testCompile) @
>> >archiva-scheduler-repository ---
>> >[INFO] Changes detected - recompiling the module!
>> >[INFO] Compiling 8 source files to
>/home/alex/projects/apache/archiva/
>> >archiva-modules/archiva-scheduler/archiva
>> >-scheduler-repository/target/test-classes
>> >[INFO]
>> >[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @
>archiva
>> >-scheduler-repository ---
>> >[INFO]
>> >[INFO] ---
>> >[INFO]  T E S T S
>> >[INFO] ---
>> >[INFO] Running org.apache.archiva.scheduler.repository.
>> >ArchivaRepositoryScanningTaskExecutorPhase1Test
>> >[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
>elapsed:
>> >5.61
>> >s - in org.apache.archiva.scheduler.repository.
>> >ArchivaRepositoryScanningTaskExecutorPhase1Test
>> >[INFO] Running org.apache.archiva.scheduler.repository.
>> >ArchivaRepositoryScanningTaskExecutorPhase2Test
>> >[ERROR] Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time
>elapsed:
>> >12.787 s <<< FAILURE! - in org.apache.archiva.scheduler.repository.
>> >ArchivaRepositoryScanningTaskExecutorPhase2Test
>> >[ERROR]
>>
>>
>>testExecutorScanOnlyNewArtifacts(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
>> > Time elapsed: 0.131 s  <<< FAILURE!
>> >junit.framework.AssertionFailedError: expected:<2> but was:<3>
>> >   at org.apache.archiva
>>
>>
>>.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifacts(ArchivaRepositoryScanningTaskExecutorPhase2Test.java:103)
>> >
>> >[ERROR]
>>
>>
>>testExecutorScanOnlyNewArtifactsChangeTimes(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
>> > Time elapsed: 0.045 s  <<< FAILURE!
>> >junit.framework.AssertionFailedError: expected:<2> but was:<3>
>> >   at org.apache.archiva
>>
>>
>>.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanO

Re: apache/archiva master branch fails to install

2018-12-13 Thread Alexandru Zbarcea
Thank you Martin.

I see what you mean in https://builds.apache.org/job/archiva-master-build:
./src/ci/scripts/prepareWorkspace.sh

I get the same test failure even with mvn clean install. I wonder if it is
an Archlinux thing (newer mvn or something, or even something different in
.m2/settings.xml). Will debug and let you know. I see indeed that Jenkins
master is successful.

Much appreciated for your help,
- Alex


On Mon, Dec 10, 2018 at 5:13 AM Martin Stockhammer 
wrote:

> Hi,
>
> did you run mvn clean before?
> Sometimes there are files not cleaned up correctly. You can use the script
> src/main/ci/cleanupWorkspace.sh which is used by our build on the ci server.
>
> Regards
>
> Martin
>
>
>
>
> Am 10. Dezember 2018 01:26:22 MEZ schrieb Alexandru Zbarcea <
> zbarce...@gmail.com>:
> >Hi,
> >
> >Any advice for the following mvn install failure? The archiva master
> >build
> >fails with the following stack:
> >
> >more:
> >[INFO] --< org.apache.archiva:archiva-scheduler-repository
> > >---
> >[INFO] Building Archiva Scheduler :: Repository Scanning 3.0.0-SNAPSHOT
> >[44/72]
> >[INFO] ---[ bundle
> >]---
> >[INFO]
> >[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ archiva
> >-scheduler-repository ---
> >[INFO] Deleting
> >/home/alex/projects/apache/archiva/archiva-modules/archiva
> >-scheduler/archiva-scheduler-repository/target
> >[INFO]
> >[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-java) @
> >archiva
> >-scheduler-repository ---
> >[INFO]
> >[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (default) @ archiva
> >-scheduler-repository ---
> >[INFO]
> >[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
> >archiva
> >-scheduler-repository ---
> >[INFO]
> >[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> >archiva-scheduler-repository ---
> >[INFO] Using 'UTF-8' encoding to copy filtered resources.
> >[INFO] Copying 1 resource
> >[INFO] Copying 2 resources
> >[INFO]
> >[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
> >archiva
> >-scheduler-repository ---
> >[INFO] Changes detected - recompiling the module!
> >[INFO] Compiling 3 source files to /home/alex/projects/apache/archiva/
> >archiva-modules/archiva-scheduler/archiva
> >-scheduler-repository/target/classes
> >[INFO]
> >[INFO] --- maven-resources-plugin:2.7:testResources
> >(default-testResources)
> > @ archiva-scheduler-repository ---
> >[INFO] Using 'UTF-8' encoding to copy filtered resources.
> >[INFO] Copying 6 resources
> >[INFO] Copying 2 resources
> >[INFO]
> >[INFO] --- maven-compiler-plugin:3.7.0:testCompile
> >(default-testCompile) @
> >archiva-scheduler-repository ---
> >[INFO] Changes detected - recompiling the module!
> >[INFO] Compiling 8 source files to /home/alex/projects/apache/archiva/
> >archiva-modules/archiva-scheduler/archiva
> >-scheduler-repository/target/test-classes
> >[INFO]
> >[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ archiva
> >-scheduler-repository ---
> >[INFO]
> >[INFO] ---
> >[INFO]  T E S T S
> >[INFO] ---
> >[INFO] Running org.apache.archiva.scheduler.repository.
> >ArchivaRepositoryScanningTaskExecutorPhase1Test
> >[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >5.61
> >s - in org.apache.archiva.scheduler.repository.
> >ArchivaRepositoryScanningTaskExecutorPhase1Test
> >[INFO] Running org.apache.archiva.scheduler.repository.
> >ArchivaRepositoryScanningTaskExecutorPhase2Test
> >[ERROR] Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed:
> >12.787 s <<< FAILURE! - in org.apache.archiva.scheduler.repository.
> >ArchivaRepositoryScanningTaskExecutorPhase2Test
> >[ERROR]
>
> >testExecutorScanOnlyNewArtifacts(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> > Time elapsed: 0.131 s  <<< FAILURE!
> >junit.framework.AssertionFailedError: expected:<2> but was:<3>
> >   at org.apache.archiva
>
> >.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifacts(ArchivaRepositoryScanningTaskExecutorPhase2Test.java:103)
> >
> >[ERROR]
>
> >testExecutorScanOnlyNewArtifactsChangeTimes(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> > Time elapsed: 0.045 s  <<< FAILURE!
> >junit.framework.AssertionFailedError: expected:<2> but was:<3>
> >   at org.apache.archiva
>
> >.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifactsChangeTimes(ArchivaRepositoryScanningTaskExecutorPhase2Test.jav
> >a:150)
> >
> >[ERROR]
>
> >testExecutorScanOnlyNewArtifactsMidScan(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> > Time elapsed: 0.074 s  <<< FAILURE!
> >junit.framework.AssertionFailedError: expected:<2> but was:<3>
> 

Re: apache/archiva master branch fails to install

2018-12-10 Thread Martin Stockhammer
Hi, 

did you run mvn clean before?
Sometimes there are files not cleaned up correctly. You can use the script 
src/main/ci/cleanupWorkspace.sh which is used by our build on the ci server.

Regards

Martin




Am 10. Dezember 2018 01:26:22 MEZ schrieb Alexandru Zbarcea 
:
>Hi,
>
>Any advice for the following mvn install failure? The archiva master
>build
>fails with the following stack:
>
>more:
>[INFO] --< org.apache.archiva:archiva-scheduler-repository
> >---
>[INFO] Building Archiva Scheduler :: Repository Scanning 3.0.0-SNAPSHOT
>[44/72]
>[INFO] ---[ bundle
>]---
>[INFO]
>[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ archiva
>-scheduler-repository ---
>[INFO] Deleting
>/home/alex/projects/apache/archiva/archiva-modules/archiva
>-scheduler/archiva-scheduler-repository/target
>[INFO]
>[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-java) @
>archiva
>-scheduler-repository ---
>[INFO]
>[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (default) @ archiva
>-scheduler-repository ---
>[INFO]
>[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
>archiva
>-scheduler-repository ---
>[INFO]
>[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
>archiva-scheduler-repository ---
>[INFO] Using 'UTF-8' encoding to copy filtered resources.
>[INFO] Copying 1 resource
>[INFO] Copying 2 resources
>[INFO]
>[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @
>archiva
>-scheduler-repository ---
>[INFO] Changes detected - recompiling the module!
>[INFO] Compiling 3 source files to /home/alex/projects/apache/archiva/
>archiva-modules/archiva-scheduler/archiva
>-scheduler-repository/target/classes
>[INFO]
>[INFO] --- maven-resources-plugin:2.7:testResources
>(default-testResources)
> @ archiva-scheduler-repository ---
>[INFO] Using 'UTF-8' encoding to copy filtered resources.
>[INFO] Copying 6 resources
>[INFO] Copying 2 resources
>[INFO]
>[INFO] --- maven-compiler-plugin:3.7.0:testCompile
>(default-testCompile) @
>archiva-scheduler-repository ---
>[INFO] Changes detected - recompiling the module!
>[INFO] Compiling 8 source files to /home/alex/projects/apache/archiva/
>archiva-modules/archiva-scheduler/archiva
>-scheduler-repository/target/test-classes
>[INFO]
>[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ archiva
>-scheduler-repository ---
>[INFO]
>[INFO] ---
>[INFO]  T E S T S
>[INFO] ---
>[INFO] Running org.apache.archiva.scheduler.repository.
>ArchivaRepositoryScanningTaskExecutorPhase1Test
>[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>5.61
>s - in org.apache.archiva.scheduler.repository.
>ArchivaRepositoryScanningTaskExecutorPhase1Test
>[INFO] Running org.apache.archiva.scheduler.repository.
>ArchivaRepositoryScanningTaskExecutorPhase2Test
>[ERROR] Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed:
>12.787 s <<< FAILURE! - in org.apache.archiva.scheduler.repository.
>ArchivaRepositoryScanningTaskExecutorPhase2Test
>[ERROR]
>testExecutorScanOnlyNewArtifacts(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> Time elapsed: 0.131 s  <<< FAILURE!
>junit.framework.AssertionFailedError: expected:<2> but was:<3>
>   at org.apache.archiva
>.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifacts(ArchivaRepositoryScanningTaskExecutorPhase2Test.java:103)
>
>[ERROR]
>testExecutorScanOnlyNewArtifactsChangeTimes(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> Time elapsed: 0.045 s  <<< FAILURE!
>junit.framework.AssertionFailedError: expected:<2> but was:<3>
>   at org.apache.archiva
>.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifactsChangeTimes(ArchivaRepositoryScanningTaskExecutorPhase2Test.jav
>a:150)
>
>[ERROR]
>testExecutorScanOnlyNewArtifactsMidScan(org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test)
> Time elapsed: 0.074 s  <<< FAILURE!
>junit.framework.AssertionFailedError: expected:<2> but was:<3>
>   at org.apache.archiva
>.scheduler.repository.ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifactsMidScan(ArchivaRepositoryScanningTaskExecutorPhase2Test.java:19
>7)
>
>[INFO]
>[INFO] Results:
>[INFO]
>[ERROR] Failures:
>[ERROR]  
>ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifacts:103
>expected:<2> but was:<3>
>[ERROR]  
>ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifactsChangeTimes:150
>expected:<2> but was:<3>
>[ERROR]  
>ArchivaRepositoryScanningTaskExecutorPhase2Test.testExecutorScanOnlyNewArtifactsMidScan:197
>expected:<2> but was:<3>
>[INFO]
>[ERROR] Tests run: 5, Failures: 3, Errors: 0, Skipped: 0
>
>Following are s