Hi Jo,
Thanks for support. The artifact is the project itself. If I add it to
the dependencies I get an error of cyclic redundancy:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The projects in the reactor contain a cyclic reference: Edge
between 'Vertex{label='com.sinergiainc.aliasfox.commons:commons'}' and
'Vertex{label='com.sinergiainc.aliasfox.commons:commons'}' introduces
to cycle in the graph com.sinergiainc.aliasfox.commons:commons -->
com.sinergiainc.aliasfox.commons:commons
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Sun May 13 14:58:25 VET 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------
Regards,
Daniel del Castillo
--
-DdC
On 5/13/07, Jo Vandermeeren <[EMAIL PROTECTED]> wrote:
Hi Daniel,
Add the artifact that contains the respective class to your project with the
correct scope, i.c. "test".
Good luck
Jo
On 5/13/07, Daniel del Castillo <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using Maven 2.0.4 and I'm having a problem when running the test
> goal. The surefire reports say that a class
> (com.sinergiainc.aliasfox.commons.cache.CacheFactory) of the component
> I'm testing is missing. The exact report is:
>
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.062
> sec <<< FAILURE!
> warning(junit.framework.TestSuite$1) Time elapsed: 0.016 sec <<<
> FAILURE!
> junit.framework.AssertionFailedError: Exception in constructor:
> testPut (java.lang.NoClassDefFoundError: Could not initialize class
> com.sinergiainc.aliasfox.commons.cache.CacheFactory
> at com.sinergiainc.aliasfox.commons.JcsCacheTest.<init>(
> JcsCacheTest.java:65)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at junit.framework.TestSuite.createTest(TestSuite.java:58)
> at junit.framework.TestSuite.addTestMethod(TestSuite.java:280)
> at junit.framework.TestSuite.<init>(TestSuite.java:140)
> at com.sinergiainc.aliasfox.commons.JcsCacheTest.suite(
> JcsCacheTest.java:82)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.maven.surefire.junit.JUnitTestSet.createInstanceFromSuiteMethod
> (JUnitTestSet.java:180)
> at
> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(
> JUnitTestSet.java:140)
> at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.java:197)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
> )
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.TestSuite$1.runTest(TestSuite.java:90)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.java:213)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
> AbstractDirectoryTestSuite.java:138)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
> AbstractDirectoryTestSuite.java:125)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
> SurefireBooter.java:290)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
> at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.java:818)
>
>
> The pom.xml of my project is the following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <parent>
> <artifactId>aliasfox</artifactId>
> <groupId>com.sinergiainc.aliasfox</groupId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.sinergiainc.aliasfox.commons</groupId>
> <artifactId>commons</artifactId>
> <name>commons</name>
> <version>1.0-SNAPSHOT</version>
> <url>http://maven.apache.org</url>
> <build>
> <filters>
> <filter>src/test/filters/cache.properties</filter>
> </filters>
> <resources>
> <resource>
> <directory>src/test/resources</directory>
> <filtering>true</filtering>
> </resource>
> </resources>
> </build>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>3.8.2</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>jcs</groupId>
> <artifactId>jcs</artifactId>
> <version>20030822.182132</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j13</artifactId>
> <version>1.0.1</version>
> </dependency>
> <dependency>
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> <version>2.2</version>
> </dependency>
> </dependencies>
> </project>
>
> Don't care about the parent since I'm not using it by the moment. I'm
> running the compile, test, etc. using the pom that I'm showing you is
> this mail.
>
> Running this pom with -e and -X option I got the following output:
>
> + Error stacktraces are turned on.
> Maven version: 2.0.4
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
> and Settings\Daniel\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'C:\Java\maven-2.0.4\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [DEBUG] Searching for parent-POM:
> com.sinergiainc.aliasfox:aliasfox::1.0-SNAPSHOT of project:
> com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT in relative
> path: ../pom.xml
> [DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml'
> for project: com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building commons
> [INFO] task-segment: [test]
> [INFO]
> ----------------------------------------------------------------------------
> [DEBUG] maven-resources-plugin: using locally installed snapshot
> [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
> central
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.plugins:maven-plugins::1 for project:
> null:maven-resources-plugin:maven-plugin:2.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org.apache.maven.plugins:maven-plugins:pom:1 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.maven:maven-parent:pom:1 from the repository.
> [DEBUG] maven-compiler-plugin: using locally installed snapshot
> [DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository
> central
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.plugins:maven-plugins::8 for project:
> null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> project: org.apache.maven.plugins:maven-plugins:pom:8 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] maven-surefire-plugin: using locally installed snapshot
> [DEBUG] maven-surefire-plugin: resolved to version 2.3 from repository
> central
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3
> for project:
> org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3
> from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> project: org.apache.maven.surefire:surefire:pom:2.3 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] maven-eclipse-plugin: using locally installed snapshot
> [DEBUG] maven-eclipse-plugin: resolved to version 2.3 from repository
> central
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.plugins:maven-plugins::7 for project:
> org.apache.maven.plugins:maven-eclipse-plugin:maven-plugin:2.3 from
> the repository.
> [DEBUG] Retrieving parent-POM:
> org.apache.maven:maven-plugin-surrogate-parent::5 for project:
> org.apache.maven.plugins:maven-plugins:pom:7 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-plugin-surrogate-parent:pom:5 from the
> repository.
> [DEBUG]
> org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: org.apache.maven:maven-plugin-api:jar:2.0 from the
> repository.
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: null:maven-project:jar:2.0 from the repository.
> [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (selected for runtime)
> [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (selected for runtime)
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: null:maven-profile:jar:2.0 from the repository.
> [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: org.apache.maven:maven-model:jar:2.0 from the repository.
> [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for
> runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: org.apache.maven:maven-artifact-manager:jar:2.0 from the
> repository.
> [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for
> project: org.apache.maven:maven-repository-metadata:jar:2.0 from the
> repository.
> [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for
> runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
> [DEBUG] (f) filters =
> [C:\Projects\eclipse\aliasfox\commons\src\test\filters\cache.properties]
> [DEBUG] (f) outputDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\classes
> [DEBUG] (f) project = [EMAIL PROTECTED]
> [DEBUG] (f) resources = [EMAIL PROTECTED]
> [DEBUG] -- end configuration --
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT
> (selected for null)
> [DEBUG] junit:junit:jar:3.8.2:compile (selected for compile)
> [DEBUG] org.slf4j:slf4j-log4j13:jar:1.0.1:compile (selected for compile)
> [DEBUG] commons-lang:commons-lang:jar:2.2:compile (selected for compile)
> [DEBUG] jcs:jcs:jar:20030822.182132:compile (selected for compile)
> [DEBUG]
> org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.3 for project:
> null:plexus-compiler-manager:jar:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.6 for project:
> null:plexus-compiler:pom:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for
> project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the
> repository.
> [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.5.3:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (selected for runtime)
> [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (selected for runtime)
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.3 for project:
> null:plexus-compiler-api:jar:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.6 for project:
> null:plexus-compiler:pom:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for
> project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the
> repository.
> [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for runtime)
> [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
> runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compilers::1.5.3 for project:
> null:plexus-compiler-javac:jar:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-compiler::1.5.3 for project:
> org.codehaus.plexus:plexus-compilers:pom:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.6 for project:
> null:plexus-compiler:pom:1.5.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for
> project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the
> repository.
> [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.5.3:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: null:plexus-utils:jar:1.0.5 from the repository.
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime
> (removed - nearer found: 1.0.4)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' -->
> [DEBUG] (f) basedir = C:\Projects\eclipse\aliasfox\commons
> [DEBUG] (f) buildDirectory = C:\Projects\eclipse\aliasfox\commons\target
> [DEBUG] (f) classpathElements =
> [C:\Projects\eclipse\aliasfox\commons\target\classes, C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.2\commons-
> lang-2.2.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar]
> [DEBUG] (f) compileSourceRoots =
> [C:\Projects\eclipse\aliasfox\commons\src\main\java]
> [DEBUG] (f) compilerId = javac
> [DEBUG] (f) debug = true
> [DEBUG] (f) failOnError = true
> [DEBUG] (f) fork = false
> [DEBUG] (f) optimize = false
> [DEBUG] (f) outputDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\classes
> [DEBUG] (f) outputFileName = commons-1.0-SNAPSHOT
> [DEBUG] (f) projectArtifact =
> com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT
> [DEBUG] (f) showDeprecation = false
> [DEBUG] (f) showWarnings = false
> [DEBUG] (f) source = 1.6
> [DEBUG] (f) staleMillis = 0
> [DEBUG] (f) target = 1.6
> [DEBUG] (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:compile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\Projects\eclipse\aliasfox\commons\src\main\java]
> [DEBUG] Classpath: [C:\Projects\eclipse\aliasfox\commons\target\classes
> C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.2\commons-
> lang-2.2.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar]
> [DEBUG] Output directory:
> C:\Projects\eclipse\aliasfox\commons\target\classes
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-resources-plugin:2.2:testResources'
> -->
> [DEBUG] (f) filters =
> [C:\Projects\eclipse\aliasfox\commons\src\test\filters\cache.properties]
> [DEBUG] (f) outputDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\test-classes
> [DEBUG] (f) project = [EMAIL PROTECTED]
> [DEBUG] (f) resources = [EMAIL PROTECTED]
> [DEBUG] -- end configuration --
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [DEBUG] com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT
> (selected for null)
> [DEBUG] junit:junit:jar:3.8.2:compile (selected for compile)
> [DEBUG] org.slf4j:slf4j-log4j13:jar:1.0.1:compile (selected for compile)
> [DEBUG] commons-lang:commons-lang:jar:2.2:compile (selected for compile)
> [DEBUG] jcs:jcs:jar:20030822.182132:compile (selected for compile)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile' -->
> [DEBUG] (f) basedir = C:\Projects\eclipse\aliasfox\commons
> [DEBUG] (f) buildDirectory = C:\Projects\eclipse\aliasfox\commons\target
> [DEBUG] (f) classpathElements =
> [C:\Projects\eclipse\aliasfox\commons\target\classes,
> C:\Projects\eclipse\aliasfox\commons\target\test-classes, C:\Documents
> and Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-la
> ng\2.2\commons-lang-2.2.jar]
> [DEBUG] (f) compileSourceRoots =
> [C:\Projects\eclipse\aliasfox\commons\src\test\java]
> [DEBUG] (f) compilerId = javac
> [DEBUG] (f) debug = true
> [DEBUG] (f) failOnError = true
> [DEBUG] (f) fork = false
> [DEBUG] (f) optimize = false
> [DEBUG] (f) outputDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\test-classes
> [DEBUG] (f) outputFileName = commons-1.0-SNAPSHOT
> [DEBUG] (f) showDeprecation = false
> [DEBUG] (f) showWarnings = false
> [DEBUG] (f) source = 1.6
> [DEBUG] (f) staleMillis = 0
> [DEBUG] (f) target = 1.6
> [DEBUG] (f) verbose = false
> [DEBUG] -- end configuration --
> [INFO] [compiler:testCompile]
> [DEBUG] Using compiler 'javac'.
> [DEBUG] Source directories:
> [C:\Projects\eclipse\aliasfox\commons\src\test\java]
> [DEBUG] Classpath: [C:\Projects\eclipse\aliasfox\commons\target\classes
> C:\Projects\eclipse\aliasfox\commons\target\test-classes
> C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar
> C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.2\commons-
> lang-2.2.jar]
> [DEBUG] Output directory:
> C:\Projects\eclipse\aliasfox\commons\target\test-classes
> [INFO] Nothing to compile - all classes are up to date
> [DEBUG] com.sinergiainc.aliasfox.commons:commons:jar:1.0-SNAPSHOT
> (selected for null)
> [DEBUG] junit:junit:jar:3.8.2:compile (selected for compile)
> [DEBUG] org.slf4j:slf4j-log4j13:jar:1.0.1:compile (selected for compile)
> [DEBUG] commons-lang:commons-lang:jar:2.2:compile (selected for compile)
> [DEBUG] jcs:jcs:jar:20030822.182132:compile (selected for compile)
> [DEBUG]
> org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3:runtime
> (selected for runtime)
> [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for
> project: null:plexus-utils:jar:1.1 from the repository.
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
> for runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3
> for project: null:surefire-booter:jar:2.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> project: org.apache.maven.surefire:surefire:pom:2.3 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.3:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM:
> org.codehaus.plexus:plexus-components::1.1.6 for project:
> null:plexus-archiver:jar:1.0-alpha-7 from the repository.
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for
> project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the
> repository.
> [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (selected for runtime)
> [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (removed - nearer found: 1.1)
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
> (selected for runtime)
> [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for
> project: null:plexus-utils:jar:1.2 from the repository.
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime
> (removed - nearer found: 1.1)
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3
> for project: null:surefire-api:jar:2.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> project: org.apache.maven.surefire:surefire:pom:2.3 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:runtime
> (selected for runtime)
> [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for
> runtime)
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
> runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (removed - nearer found: 1.1)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-surefire-plugin:2.3:test' -->
> [DEBUG] (f) basedir = C:\Projects\eclipse\aliasfox\commons
> [DEBUG] (f) childDelegation = false
> [DEBUG] (f) classesDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\classes
> [DEBUG] (f) classpathElements =
> [C:\Projects\eclipse\aliasfox\commons\target\classes,
> C:\Projects\eclipse\aliasfox\commons\target\test-classes, C:\Documents
> and Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar,
> C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-la
> ng\2.2\commons-lang-2.2.jar]
> [DEBUG] (f) disableXmlReport = false
> [DEBUG] (f) forkMode = once
> [DEBUG] (f) localRepository = [local] -> file://C:\Documents and
> Settings\Daniel\.m2\repository
> [DEBUG] (f) parallel = false
> [DEBUG] (f) pluginArtifactMap =
> {
>
org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime
> ,
> commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:runtime,
>
>
org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.3:runtime
> ,
>
>
org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime
> ,
>
>
org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime
> ,
> org.apache.maven.surefire:surefire-booter=org.apache
> .maven.surefire:surefire-booter:jar:2.3:runtime,
>
>
org.codehaus.plexus:plexus-archiver=org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
> }
> [DEBUG] (f) printSummary = true
> [DEBUG] (f) projectArtifactMap =
> {commons-lang:commons-lang=commons-lang:commons-lang:jar:2.2:compile,
> jcs:jcs=jcs:jcs:jar:20030822.182132:compile,
> junit:junit=junit:junit:jar:3.8.2:compile,
> org.slf4j:slf4j-log4j13=org.slf4j:slf4j-log4j13:jar:1.0.1:compile}
> [DEBUG] (f) redirectTestOutputToFile = false
> [DEBUG] (f) remoteRepositories = [[central] ->
> http://repo1.maven.org/maven2]
> [DEBUG] (f) reportFormat = brief
> [DEBUG] (f) reportsDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\surefire-reports
> [DEBUG] (f) testClassesDirectory =
> C:\Projects\eclipse\aliasfox\commons\target\test-classes
> [DEBUG] (f) testSourceDirectory =
> C:\Projects\eclipse\aliasfox\commons\src\test\java
> [DEBUG] (f) threadCount = 5
> [DEBUG] (f) trimStackTrace = true
> [DEBUG] (f) useFile = true
> [DEBUG] (f) useSystemClassLoader = false
> [DEBUG] -- end configuration --
> [INFO] [surefire:test]
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.3:runtime
> (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected
> for runtime)
> [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (selected for runtime)
> [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime
> (removed - nearer found: 1.1)
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime
> (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime
> (removed - nearer found: 1.1)
> [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:runtime
> (selected for runtime)
> [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for
> runtime)
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-
> archiver-1.0-alpha-7.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-
> api-2.3.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-
> container-default-1.0-alpha-8.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
> Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-
> utils-1.1.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-booter\2.3\surefire-
> booter-2.3.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-
> 1.1-alpha-2.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.1\commons-
> lang-2.1.jar
> [DEBUG] Adding to surefire booter test classpath: C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> [DEBUG] dummy:dummy:jar:1.0 (selected for null)
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.surefire:surefire-providers::2.3 for project:
> null:surefire-junit:jar:2.3 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3
> for project: null:surefire-providers:pom:null from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for
> project: org.apache.maven.surefire:surefire:pom:2.3 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
> org.apache.maven:maven-parent:pom:5 from the repository.
> [DEBUG] org.apache.maven.surefire:surefire-junit:jar:2.3 (selected for
> null)
> [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
> [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:compile
> (selected for compile)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:compile
> (selected for compile)
> [DEBUG] commons-lang:commons-lang:jar:2.1:compile (selected for
> compile)
> [DEBUG] Adding to surefire test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-junit\2.3\surefire-
> junit-2.3.jar
> [DEBUG] Adding to surefire test classpath: C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-
> api-2.3.jar
> [DEBUG] Adding to surefire test classpath: C:\Documents and
>
> Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-utils\1.1\plexus-
> utils-1.1.jar
> [DEBUG] Adding to surefire test classpath: C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.1\commons-
> lang-2.1.jar
> [DEBUG] Adding to surefire test classpath: C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar
> [DEBUG] Test Classpath :
> [DEBUG] C:\Projects\eclipse\aliasfox\commons\target\classes
> [DEBUG] C:\Projects\eclipse\aliasfox\commons\target\test-classes
> [DEBUG] C:\Documents and
> Settings\Daniel\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar
> [DEBUG] C:\Documents and
> Settings\Daniel\.m2\repository\org\slf4j\slf4j-log4j13\1.0.1\slf4j-
> log4j13-1.0.1.jar
> [DEBUG] C:\Documents and
> Settings\Daniel\.m2\repository\jcs\jcs\20030822.182132\jcs-
> 20030822.182132.jar
> [DEBUG] C:\Documents and
> Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.2\commons-
> lang-2.2.jar
> [DEBUG] Setting system property [localRepository]=[C:\Documents and
> Settings\Daniel\.m2\repository]
> [DEBUG] Setting system property
> [basedir]=[C:\Projects\eclipse\aliasfox\commons]
> [DEBUG] Using JVM: C:\Java\jdk1.6.0_01\jre\bin\java
> [INFO] Surefire report directory:
> C:\Projects\eclipse\aliasfox\commons\target\surefire-reports
> Forking command line: C:\Java\jdk1.6.0_01\jre\bin\java -classpath
> "C:\Documents and
>
>
Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-
> archiver-1.0-alpha-7.jar;C:\Documents
> and
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-api\2.3\surefire-
> api-2.3.jar;C:\Documents
> and
>
Settings\Daniel\.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-
> container-default-1.0-alpha-8.jar;C:\Documents
> and Settings\Daniel\.m2\repository
> \org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\Documents
> and
>
Settings\Daniel\.m2\repository\org\apache\maven\surefire\surefire-booter\2.3\surefire-
> booter-2.3.jar;C:\Documents
> and
>
Settings\Daniel\.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-
> 1.1-alpha-2.jar;C:\Documents
> and Settings\Daniel\.m2\repository\commons-lang\commons-lang\2.1\commons-
> lang-2.1.jar;C:\Documents
> and Settings\Daniel\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar"
> org.apache.maven.surefire.boo
> ter.SurefireBooter C:\DOCUME~1\Daniel\LOCALS~1\Temp\surefire36850tmp
> C:\DOCUME~1\Daniel\LOCALS~1\Temp\surefire36851tmp
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> Running com.sinergiainc.aliasfox.commons.JcsCacheTest
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.078
> sec <<< FAILURE!
>
> Results :
>
> Failed tests:
> warning(junit.framework.TestSuite$1)
> warning(junit.framework.TestSuite$1)
>
> Tests run: 2, Failures: 2, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.BuildFailureException: There are test failures.
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:555)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:475)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:454)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:306)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(
> Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are
> test failures.
> at org.apache.maven.plugin.surefire.SurefirePlugin.execute(
> SurefirePlugin.java:425)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:412)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
> ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Sun May 13 11:11:58 VET 2007
> [INFO] Final Memory: 4M/8M
> [INFO]
> ------------------------------------------------------------------------
>
>
> As you can see, the classes directory is included in classpathElements.
>
> How can I fix this error?
>
> Regards,
> Daniel del Castillo
> --
> -DdC
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]