Torsten Curdt napisał(a):

On 03.03.2007, at 19:53, Grzegorz Kossakowski wrote:

Torsten Curdt napisał(a):

Definitely! ...please use latest trunk!

No problem. Howver, root pom of commons-jci is broken, you have "jci" as artifactId but it should be "commons-jci".

Well, "broken" ;) ...as the groupId is now using the maven2 scheme the commons is already included in there.
But I will bring that up on commons dev to see how we will handle this.
I agree but now eveywhere else "commons-" prefix is used in artifact ids so you have to change it everywhere or nowhere. Now build is just broken because jci-core cannot find parent pom...

All tests work for me.

What (sub)projects are failing?
What operating system are you using?
What filesystem?
Can you send me the outputs?

I attach full Maven output so you can gather from it answers to most of your questions:
G:\asf\commons-jci>mvn clean install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Commons JCI
[INFO]   fam
[INFO]   core
[INFO]   compiler-eclipse
[INFO]   compiler-janino
[INFO]   compiler-groovy
[INFO]   compiler-javac
[INFO]   examples
[INFO] ----------------------------------------------------------------------------
[INFO] Building Commons JCI
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory G:\asf\commons-jci\target
[INFO] Deleting directory G:\asf\commons-jci\target\classes
[INFO] Deleting directory G:\asf\commons-jci\target\test-classes
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
    [copy] Copying 2 files to G:\asf\commons-jci\target\classes\META-INF
[INFO] Executed tasks
[INFO] [site:attach-descriptor]
[WARNING] Unable to load parent project from repository: Could not find the model file 'G:\asf\commons-jci\..\pom.xml'.
[INFO] [install:install]
[INFO] Installing G:\asf\commons-jci\pom.xml to C:\Documents and Settings\gReK\.m2\repository\org\apache\commons\commons-jci\1.0-SNAPSHOT\commons-jci-1.0-SNA
PSHOT.pom
[INFO] ----------------------------------------------------------------------------
[INFO] Building fam
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory G:\asf\commons-jci\fam\target
[INFO] Deleting directory G:\asf\commons-jci\fam\target\classes
[INFO] Deleting directory G:\asf\commons-jci\fam\target\test-classes
Downloading: http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 5 source files to G:\asf\commons-jci\fam\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to G:\asf\commons-jci\fam\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: G:\asf\commons-jci\fam\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.commons.jci.monitor.FilesystemAlterationMonitorTestCase
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.281 sec

Results :
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: G:\asf\commons-jci\fam\target\commons-jci-fam-1.0-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing G:\asf\commons-jci\fam\target\commons-jci-fam-1.0-SNAPSHOT.jar to C:\Documents and Settings\gReK\.m2\repository\org\apache\commons\commons-
jci-fam\1.0-SNAPSHOT\commons-jci-fam-1.0-SNAPSHOT.jar
[INFO] ----------------------------------------------------------------------------
[INFO] Building core
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory G:\asf\commons-jci\core\target
[INFO] Deleting directory G:\asf\commons-jci\core\target\classes
[INFO] Deleting directory G:\asf\commons-jci\core\target\test-classes
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 22 source files to G:\asf\commons-jci\core\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 8 source files to G:\asf\commons-jci\core\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: G:\asf\commons-jci\core\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.commons.jci.CompilingClassLoaderTestCase
Exception in thread "Thread-1" java.lang.RuntimeException: cannot handle resource jci\Extended.java at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:71) at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:84) at org.apache.commons.jci.listeners.CompilingListener.isReloadRequired(CompilingListener.java:135) at org.apache.commons.jci.listeners.ReloadingListener.onStop(ReloadingListener.java:128) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.notifyOnStop(FilesystemAlterationObserverImpl.java:265) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331) at org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:121)
       at java.lang.Thread.run(Unknown Source)
2007-03-04 18:47:16 org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener waitForSignal
SEVERE: timeout after 10s
Exception in thread "Thread-2" java.lang.RuntimeException: cannot handle resource jci\Extended.java at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:71) at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:84) at org.apache.commons.jci.listeners.CompilingListener.isReloadRequired(CompilingListener.java:135) at org.apache.commons.jci.listeners.ReloadingListener.onStop(ReloadingListener.java:128) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.notifyOnStop(FilesystemAlterationObserverImpl.java:265) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331) at org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:121)
       at java.lang.Thread.run(Unknown Source)
2007-03-04 18:47:27 org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener waitForSignal
SEVERE: timeout after 10s
Exception in thread "Thread-3" java.lang.RuntimeException: cannot handle resource jci\Extended.java at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:71) at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:84) at org.apache.commons.jci.listeners.CompilingListener.isReloadRequired(CompilingListener.java:135) at org.apache.commons.jci.listeners.ReloadingListener.onStop(ReloadingListener.java:128) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.notifyOnStop(FilesystemAlterationObserverImpl.java:265) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331) at org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:121)
       at java.lang.Thread.run(Unknown Source)
2007-03-04 18:47:38 org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener waitForSignal
SEVERE: timeout after 10s
Exception in thread "Thread-4" java.lang.RuntimeException: cannot handle resource jci\Extended.java at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:71) at org.apache.commons.jci.CompilingClassLoaderTestCase$MockJavaCompiler.compile(CompilingClassLoaderTestCase.java:84) at org.apache.commons.jci.listeners.CompilingListener.isReloadRequired(CompilingListener.java:135) at org.apache.commons.jci.listeners.ReloadingListener.onStop(ReloadingListener.java:128) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.notifyOnStop(FilesystemAlterationObserverImpl.java:265) at org.apache.commons.jci.monitor.FilesystemAlterationObserverImpl.checkAndNotify(FilesystemAlterationObserverImpl.java:331) at org.apache.commons.jci.monitor.FilesystemAlterationMonitor.run(FilesystemAlterationMonitor.java:121)
       at java.lang.Thread.run(Unknown Source)
2007-03-04 18:47:49 org.apache.commons.jci.listeners.AbstractFilesystemAlterationListener waitForSignal
SEVERE: timeout after 10s
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 44.156 sec <<< FAILURE!
Running org.apache.commons.jci.ReloadingClassLoaderTestCase
2007-03-04 18:48:13 org.apache.commons.jci.ReloadingClassLoaderTestCase testClassNotFound
INFO: bla
Tests run: 6, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 27.047 sec <<< FAILURE!
Running org.apache.commons.jci.stores.ResourceStoreTestCase
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec
Running org.apache.commons.jci.readers.ResourceReaderTestCase
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :
Tests run: 15, Failures: 0, Errors: 8, Skipped: 0




Everything tested on WinXP SP2 with Java 1.6.0 installed and ran with Maven 2.0.4. Is FilesystemAlterationMonitorTestCase supposed to take so long (about 1 minute)?

Reply via email to