[ImageJ-devel] Build failure with NetBeans

David Parsons david.parsons at inria.fr
Thu Oct 25 04:34:44 CDT 2012


Hi everyone,

First of all, I'm new here. I've just been hired to work on an ImageJ 
plugin and I don't know much about imageJ yet.

As I wanted to use netbeans to develop my stuff, I followed the 
instructions provided here : http://developer.imagej.net/netbeans
Of course everything works fine until the Build step...

I basically get errors in tests which apparently makes the whole build 
fail (attached is the whole build output).

Trying to go further, I tried to build the ImageJ Application project 
and got the following error :
Failed to execute goal on project ij-app: Could not resolve dependencies 
for project net.imagej:ij-app:jar:2.0.0-SNAPSHOT: The following 
artifacts could not be resolved: 
net.imagej:ij-script-java:jar:2.0.0-SNAPSHOT, 
net.imagej:ij-ui-swing-script-editor:jar:2.0.0-SNAPSHOT: Failure to find 
net.imagej:ij-script-java:jar:2.0.0-SNAPSHOT in 
http://maven.imagej.net/content/repositories/releases was cached in the 
local repository, resolution will not be reattempted until the update 
interval of imagej.releases has elapsed or updates are forced -> [Help 1]

If anyone could get me back into the right way, it would be much 
appreciated ;-)
David


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20121025/8e6d9944/attachment.html>
-------------- next part --------------
cd C:\Users\dparsons\Documents\Multipop\code\imagej; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_07" "\"C:\\Program Files\\NetBeans 7.2\\java\\maven\\bin\\mvn.bat\"" install
Scanning for projects...
------------------------------------------------------------------------
Reactor Build Order:

ImageJ Projects
ImageJ POM: Core
ImageJ Core Classes
ImageJ Data Model
ImageJ Core Options
ImageJ Updater
ImageJ Updater Core
ImageJ User Interface Framework
ImageJ Core: I/O
ImageJ POM: Core Commands
ImageJ Core Commands: Application
ImageJ Core Commands: Data
ImageJ Core Tools
ImageJ Core Commands: Debug
ImageJ Core Commands: Display
ImageJ Core Commands: Miscellaneous
ImageJ POM: User Interface
ImageJ POM: AWT and Swing UIs
ImageJ Utility Classes: AWT
ImageJ Legacy Bridge
ImageJ POM: Script
Beanshell Scripting For ImageJ
Minimal support for Maven projects
A script engine for Java
ImageJ POM: Swing UI
The Script Editor
ImageJ Core Platforms
ImageJ UI: Common AWT Classes
ImageJ Utility Classes: Swing
ImageJ UI: Swing
ImageJ UI: Swing Plugins
ImageJ UI: Swing Tools
ImageJ Updater (Swing)
ImageJ Updater support for uploading via SSH/SFTP
ImageJ Application
ImageJ Logging: SLF4J
                                                                        
------------------------------------------------------------------------
Building ImageJ Projects 2.0.0-SNAPSHOT
------------------------------------------------------------------------

[buildnumber:create]
Checking for local modifications: skipped.
Updating project files from SCM: skipped.
Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
Working directory: C:\Users\dparsons\Documents\Multipop\code\imagej
Storing buildNumber: UNKNOWN at timestamp: 1351156946891
Executing: cmd.exe /X /C "git rev-parse --verify HEAD"
Working directory: C:\Users\dparsons\Documents\Multipop\code\imagej
Storing buildScmBranch: UNKNOWN_BRANCH

>>> maven-source-plugin:2.1.2:jar (default) @ pom-ij-base >>>

[buildnumber:create]

<<< maven-source-plugin:2.1.2:jar (default) @ pom-ij-base <<<

[source:jar]

[install:install]
Installing C:\Users\dparsons\Documents\Multipop\code\imagej\pom.xml to C:\Users\dparsons\.m2\repository\net\imagej\pom-ij-base\2.0.0-SNAPSHOT\pom-ij-base-2.0.0-SNAPSHOT.pom
                                                                        
------------------------------------------------------------------------
Building ImageJ POM: Core 2.0.0-SNAPSHOT
------------------------------------------------------------------------

[buildnumber:create]

>>> maven-source-plugin:2.1.2:jar (default) @ pom-ij-core >>>

[buildnumber:create]

<<< maven-source-plugin:2.1.2:jar (default) @ pom-ij-core <<<

[source:jar]

[install:install]
Installing C:\Users\dparsons\Documents\Multipop\code\imagej\core\pom.xml to C:\Users\dparsons\.m2\repository\net\imagej\pom-ij-core\2.0.0-SNAPSHOT\pom-ij-core-2.0.0-SNAPSHOT.pom
                                                                        
------------------------------------------------------------------------
Building ImageJ Core Classes 2.0.0-SNAPSHOT
------------------------------------------------------------------------

[buildnumber:create]

[resources:resources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 3 resources

[compiler:compile]
Compiling 285 source files to C:\Users\dparsons\Documents\Multipop\code\imagej\core\core\target\classes

[resources:testResources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory C:\Users\dparsons\Documents\Multipop\code\imagej\core\core\src\test\resources

[compiler:testCompile]
Compiling 22 source files to C:\Users\dparsons\Documents\Multipop\code\imagej\core\core\target\test-classes

[surefire:test]
Surefire report directory: C:\Users\dparsons\Documents\Multipop\code\imagej\core\core\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running imagej.display.DisplayTest
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.13 sec <<< FAILURE!
Running imagej.menu.ShadowMenuTest
Tests run: 5, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE!
Running imagej.object.ObjectIndexTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec
Running imagej.object.SortedObjectIndexTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running imagej.plugin.PluginIndexTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.006 sec <<< FAILURE!
Running imagej.script.JavascriptTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE!
Running imagej.service.ServiceIndexTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE!
Running imagej.util.AppUtilsTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 sec <<< FAILURE!
Running imagej.util.ByteArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.026 sec
Running imagej.util.CheckSezpozTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.057 sec <<< FAILURE!
Running imagej.util.ClassUtilsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running imagej.util.ColorRGBTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running imagej.util.DoubleArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec
Running imagej.util.FileUtilsTest
Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!
Running imagej.util.FloatArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
Running imagej.util.IntArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running imagej.util.LongArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
Running imagej.util.PrefsTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
Running imagej.util.ShortArrayTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running imagej.util.UnitUtilsTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec <<< FAILURE!

Results :

Failed tests:   testBaseDirectory(imagej.util.AppUtilsTest)
  testURLToFile(imagej.util.FileUtilsTest): expected:<[/Users/jqpublic/imagej/]ImageJ.class> but was:<[\Users\jqpublic\imagej\]ImageJ.class>
  testGetAbbreviatedByteLabel(imagej.util.UnitUtilsTest): expected:<9[.]8KiB> but was:<9[,]8KiB>

Tests in error: 
  testText(imagej.display.DisplayTest)
  testCreate(imagej.display.DisplayTest): Could not initialize class imagej.ImageJ
  testAddRemove(imagej.display.DisplayTest): Could not initialize class imagej.ImageJ
  testStructure(imagej.menu.ShadowMenuTest): Could not initialize class imagej.ImageJ
  testGetMenu(imagej.menu.ShadowMenuTest): Could not initialize class imagej.ImageJ
  testRemove(imagej.menu.ShadowMenuTest): Could not initialize class imagej.ImageJ
  testAdd(imagej.menu.ShadowMenuTest): Could not initialize class imagej.ImageJ
  testIterator(imagej.menu.ShadowMenuTest): Could not initialize class imagej.ImageJ
  testGetPluginsOfClass(imagej.plugin.PluginIndexTest): Could not initialize class imagej.ImageJ
  testGetPluginsOfClassString(imagej.plugin.PluginIndexTest): Could not initialize class imagej.ImageJ
  testBasic(imagej.script.JavascriptTest): Could not initialize class imagej.ImageJ
  testGetAll(imagej.service.ServiceIndexTest): Could not initialize class imagej.ImageJ
  testBasic(imagej.util.CheckSezpozTest): java.io.IOException: Cannot run program "javac" (in directory "C:\Users\dparsons\AppData\Local\Temp\test-sezpoz7612719201478833492\src\main\java"): CreateProcess error=2, Le fichier spécifié est introuvable

Tests run: 181, Failures: 3, Errors: 13, Skipped: 0

------------------------------------------------------------------------
Reactor Summary:

ImageJ Projects ................................... SUCCESS [0.638s]
ImageJ POM: Core .................................. SUCCESS [0.013s]
ImageJ Core Classes ............................... FAILURE [6.267s]
ImageJ Data Model ................................. SKIPPED
ImageJ Core Options ............................... SKIPPED
ImageJ Updater .................................... SKIPPED
ImageJ Updater Core ............................... SKIPPED
ImageJ User Interface Framework ................... SKIPPED
ImageJ Core: I/O .................................. SKIPPED
ImageJ POM: Core Commands ......................... SKIPPED
ImageJ Core Commands: Application ................. SKIPPED
ImageJ Core Commands: Data ........................ SKIPPED
ImageJ Core Tools ................................. SKIPPED
ImageJ Core Commands: Debug ....................... SKIPPED
ImageJ Core Commands: Display ..................... SKIPPED
ImageJ Core Commands: Miscellaneous ............... SKIPPED
ImageJ POM: User Interface ........................ SKIPPED
ImageJ POM: AWT and Swing UIs ..................... SKIPPED
ImageJ Utility Classes: AWT ....................... SKIPPED
ImageJ Legacy Bridge .............................. SKIPPED
ImageJ POM: Script ................................ SKIPPED
Beanshell Scripting For ImageJ .................... SKIPPED
Minimal support for Maven projects ................ SKIPPED
A script engine for Java .......................... SKIPPED
ImageJ POM: Swing UI .............................. SKIPPED
The Script Editor ................................. SKIPPED
ImageJ Core Platforms ............................. SKIPPED
ImageJ UI: Common AWT Classes ..................... SKIPPED
ImageJ Utility Classes: Swing ..................... SKIPPED
ImageJ UI: Swing .................................. SKIPPED
ImageJ UI: Swing Plugins .......................... SKIPPED
ImageJ UI: Swing Tools ............................ SKIPPED
ImageJ Updater (Swing) ............................ SKIPPED
ImageJ Updater support for uploading via SSH/SFTP . SKIPPED
ImageJ Application ................................ SKIPPED
ImageJ Logging: SLF4J ............................. SKIPPED
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 7.679s
Finished at: Thu Oct 25 11:22:33 CEST 2012
Final Memory: 24M/347M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project ij-core: There are test failures.

Please refer to C:\Users\dparsons\Documents\Multipop\code\imagej\core\core\target\surefire-reports for the individual test results.
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

After correcting the problems, you can resume the build with the command
  mvn <goals> -rf :ij-core


More information about the ImageJ-devel mailing list