You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by martymusk <ma...@email.it> on 2007/10/18 11:13:08 UTC
VM_global_library.vm
Hi,
I'm trying to build servicemix with maven, but when I start -Dprofile=step2
the following error occurs:
---------
[ maven embedder INFO] Velocimacro : initialization starting.
[ maven embedder INFO] Velocimacro : adding VMs from VM library template :
VM_gl obal_library.vm
[ maven embedder ERROR] ResourceManager : unable to find resource
'VM_global_lib rary.vm' in any resource loader.
[ maven embedder INFO] Velocimacro : error using VM library template
VM_global_ library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[ maven embedder INFO] Velocimacro : VM library template macro registration
com plete.
[ maven embedder INFO] Velocimacro : allowInline = true : VMs can be defined
inl ine in templates
[ maven embedder INFO] Velocimacro : allowInlineToOverride = false : VMs
defined inline may NOT replace previous VM definitions
[ maven embedder INFO] Velocimacro : allowInlineLocal = false : VMs defined
inli ne will be global in scope if allowed.
[ maven embedder INFO] Velocimacro : initialization complete.
[ maven embedder INFO] Velocity successfully started.
[ maven embedder INFO] [archetype:create]
[ maven embedder INFO] Defaulting package to group ID: sample
[ maven embedder INFO]
---------------------------------------------------------
-------------------
[ maven embedder INFO] Using following parameters for creating Archetype:
servic emix-bean-service-unit:3.1.2
[ maven embedder INFO]
---------------------------------------------------------
-------------------
[ maven embedder INFO] Parameter: groupId, Value: sample
[ maven embedder INFO] Parameter: packageName, Value: sample
[ maven embedder INFO] Parameter: basedir, Value: /tmp
[ maven embedder INFO] Parameter: package, Value: sample
[ maven embedder INFO] Parameter: version, Value: 1.0-SNAPSHOT
[ maven embedder INFO] Parameter: artifactId, Value: sample
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.835 sec
<<< FA ILURE!
Results :
Tests in error:
testBeanServiceUnit(org.apache.servicemix.tooling.BeanServiceUnitTest)
Tests run: 15, Failures: 0, Errors: 15, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 49 seconds
[INFO] Finished at: Thu Oct 18 10:32:05 CEST 2007
[INFO] Final Memory: 30M/121M
[INFO]
------------------------------------------------------------------------
where can I find VM_global_library.vm?
Can somebody help me?
Thanks in advance,
Martina
--
View this message in context: http://www.nabble.com/VM_global_library.vm-tf4645729s12049.html#a13270729
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: VM_global_library.vm
Posted by Bruce Snyder <br...@gmail.com>.
On 10/18/07, martymusk <ma...@email.it> wrote:
>
> Hi,
> I'm trying to build servicemix with maven, but when I start -Dprofile=step2
> the following error occurs:
>
> ---------
> [ maven embedder INFO] Velocimacro : initialization starting.
> [ maven embedder INFO] Velocimacro : adding VMs from VM library template :
> VM_gl obal_library.vm
> [ maven embedder ERROR] ResourceManager : unable to find resource
> 'VM_global_lib rary.vm' in any resource loader.
> [ maven embedder INFO] Velocimacro : error using VM library template
> VM_global_ library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> [ maven embedder INFO] Velocimacro : VM library template macro registration
> com plete.
> [ maven embedder INFO] Velocimacro : allowInline = true : VMs can be defined
> inl ine in templates
> [ maven embedder INFO] Velocimacro : allowInlineToOverride = false : VMs
> defined inline may NOT replace previous VM definitions
> [ maven embedder INFO] Velocimacro : allowInlineLocal = false : VMs defined
> inli ne will be global in scope if allowed.
> [ maven embedder INFO] Velocimacro : initialization complete.
> [ maven embedder INFO] Velocity successfully started.
> [ maven embedder INFO] [archetype:create]
> [ maven embedder INFO] Defaulting package to group ID: sample
> [ maven embedder INFO]
> ---------------------------------------------------------
> -------------------
> [ maven embedder INFO] Using following parameters for creating Archetype:
> servic emix-bean-service-unit:3.1.2
> [ maven embedder INFO]
> ---------------------------------------------------------
> -------------------
> [ maven embedder INFO] Parameter: groupId, Value: sample
> [ maven embedder INFO] Parameter: packageName, Value: sample
> [ maven embedder INFO] Parameter: basedir, Value: /tmp
> [ maven embedder INFO] Parameter: package, Value: sample
> [ maven embedder INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [ maven embedder INFO] Parameter: artifactId, Value: sample
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.835 sec
> <<< FA ILURE!
>
> Results :
>
> Tests in error:
> testBeanServiceUnit(org.apache.servicemix.tooling.BeanServiceUnitTest)
...
> where can I find VM_global_library.vm?
The missing VM_global_library.vm is red herring - don't chase it. The
real issue is above, i.e., the test failure. To get past this failing
test and just build the code, tell Maven to skip the tests like so:
$ mvn -Dmaven.test.skip=true -Pstep1 install
...
$ mvn -Dmaven.test.skip=true -Pstep2 install
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/