[ 
https://issues.apache.org/jira/browse/BROOKLYN-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14209284#comment-14209284
 ] 

David Medinets commented on BROOKLYN-85:
----------------------------------------

Very simple to run 'mvn clean install' instead of 'mvn compile'. The results 
are:

{noformat}
...
===============================================
    Surefire test
    Tests run: 1279, Failures: 1, Skips: 1
===============================================
[GC (Allocation Failure)  333234K->104299K(770048K), 0.0112900 secs]
[GC (Allocation Failure)  334187K->104931K(771584K), 0.0107942 secs]
Tests run: 1279, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 61.491 sec 
<<< FAILURE! - in TestSuite
testCanRemoveObtainedMachineFromPoolSoNotReallocated(brooklyn.location.basic.FixedListMachineProvisioningLocationTest)
  Time elapsed: 0.005 sec  <<< FAILURE!
java.lang.NullPointerException: null
        at 
brooklyn.location.basic.FixedListMachineProvisioningLocationTest.testCanRemoveObtainedMachineFromPoolSoNotReallocated(FixedListMachineProvisioningLocationTest.java:222)

2014-11-13 05:01:43,667 INFO  Brooklyn shutdown: stopping entities 
[TestEntityImpl{id=e0DhVSPM}, TestEntityImpl{id=WyfX9gt8}, 
BlockingEntityImpl{id=HPYPvFz7}]

Results :

Failed tests: 
  
FixedListMachineProvisioningLocationTest.testCanRemoveObtainedMachineFromPoolSoNotReallocated:222
 NullPointer

[INFO] Brooklyn Logback Configuration .................... SUCCESS [  0.070 s]
[INFO] CAMP Server ....................................... SUCCESS [  3.245 s]
[INFO] Brooklyn Core ..................................... FAILURE [01:10 min]
[INFO] Brooklyn Policies ................................. SKIPPED
{noformat}



> /incubator-brooklyn/usage/all/target/classes isn't a file.
> ----------------------------------------------------------
>
>                 Key: BROOKLYN-85
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-85
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.7.0-SNAPSHOT
>         Environment: Ubuntu 14.04 inside Docker image.
>            Reporter: David Medinets
>            Priority: Blocker
>
> Please see https://github.com/medined/docker-brooklyn to replicate the error.
> ./build_image.sh creates the Docker image.
> ./run_images.sh run the Docker image providing a bash shell. It also starts 
> an Artifactory image so that the downloaded dependencies don't clutter the 
> host system. The Artifactory image persists so you can start multiple build 
> images without re-downloading the dependencies.
> Run 'mvn compile' and you should see
> [INFO] Brooklyn All Things ............................... SUCCESS [  0.458 s]
> [INFO] Brooklyn Distribution ............................. FAILURE [  1.243 s]
> [INFO] Brooklyn Quick-Start Project Archetype ............ SKIPPED
> ...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 51.232 s
> [INFO] Finished at: 2014-11-13T04:03:42+00:00
> [INFO] Final Memory: 65M/1950M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-assembly-plugin:2.4.1:single 
> (build-distribution-dir) on project brooklyn-dist: Failed to create assembly: 
> Error adding file 'org.apache.brooklyn:brooklyn-all:jar:0.7.0-SNAPSHOT' to 
> archive: /incubator-brooklyn/usage/all/target/classes isn't a file. -> [Help 
> 1]
> [ERROR] 
> You can change files inside the build image and re-compile as needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to