directory-fortress mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleksandr Bodriagov (Polystar)" <oleksandr.bodria...@polystar.com>
Subject error when running maven tests in Apache Fortress Core
Date Thu, 16 Apr 2015 08:06:09 GMT
Hi,

I got the following error when running ³mvn test -Pconsole² on Mac OS X
Yosemite (jdk1.8.0_31.jdk
):

[echo] ############### Run Fortress Console ###############
 [startAnt] Working directory ignored when same JVM is used.
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 6.670s
[INFO] Finished at: Thu Apr 16 09:58:35 CEST 2015
[INFO] Final Memory: 35M/411M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project
fortress-core: An Ant BuildException has occured:
java.lang.NoClassDefFoundError: org/jgrapht/UndirectedGraph
[ERROR] around Ant part ...<java fork="false"
classname="org.apache.directory.fortress.core.FortressConsole"
taskname="startAnt" failonerror="true"
dir="/Users/myusername/git/directory-fortress-core" timeout="4000000">...
@ 5:192 in 
/Users/myusername/git/directory-fortress-core/target/antrun/build-fortress-
console.xml: org.jgrapht.UndirectedGraph


Thank you in advance for your help.

Best regards,
Oleksandr



A full problem listing:
Mycmptr:directory-fortress-core myusername$ mvn test -Pconsole
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective
model for org.apache.directory.fortress:fortress-core:jar:1.0-RC40-SNAPSHOT
[WARNING] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)'
must be unique but found duplicate declaration of plugin
org.apache.maven.plugins:maven-jar-plugin @ line 479, column 17
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING] 
[INFO]             
    
[INFO] 
------------------------------------------------------------------------
[INFO] Building Apache Fortress Core 1.0-RC40-SNAPSHOT
[INFO] 
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) @
fortress-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
fortress-core ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
fortress-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
fortress-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 217 source files to
/Users/myusername/git/directory-fortress-core/target/classes
[INFO] 
/Users/myusername/git/directory-fortress-core/src/main/java/org/apache/dire
ctory/fortress/core/rbac/PolicyP.java: Some input files use unchecked or
unsafe operations.
[INFO] 
/Users/myusername/git/directory-fortress-core/src/main/java/org/apache/dire
ctory/fortress/core/rbac/PolicyP.java: Recompile with -Xlint:unchecked for
details.
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources
(default-testResources) @ fortress-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
fortress-core ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @
fortress-core ---
[INFO] 
[INFO] --- maven-antrun-plugin:1.8:run (default) @ fortress-core ---
[INFO] Executing tasks

fortress-console:
     [echo] ############### Run Fortress Console ###############
 [startAnt] Working directory ignored when same JVM is used.
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 6.670s
[INFO] Finished at: Thu Apr 16 09:58:35 CEST 2015
[INFO] Final Memory: 35M/411M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project
fortress-core: An Ant BuildException has occured:
java.lang.NoClassDefFoundError: org/jgrapht/UndirectedGraph
[ERROR] around Ant part ...<java fork="false"
classname="org.apache.directory.fortress.core.FortressConsole"
taskname="startAnt" failonerror="true"
dir="/Users/myusername/git/directory-fortress-core" timeout="4000000">...
@ 5:192 in 
/Users/myusername/git/directory-fortress-core/target/antrun/build-fortress-
console.xml: org.jgrapht.UndirectedGraph
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[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 read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


 


Mime
View raw message