You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by nhcoder <an...@hotmail.com> on 2009/04/10 21:04:25 UTC

Tutorial 2.2: ${servicemix-version} is not a valid reference.

Hi,

I am trying to troubleshoot my example still and got a warning that wasn't
mentioned in the tutorial. I am not sure if it is related to the example not
working for me but I thought I would ask.  

http://servicemix.apache.org/22-beginner-creating-our-first-su-module.html

$ mvn archetype:create -DarchetypeArtifactId=servicemix-service-unit
-Darchetyp
eGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-file-su
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Tutorial
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: org.apache.servicemix.tutorial
[INFO]
-------------------------------------------------------------------------
---
[INFO] Using following parameters for creating OldArchetype:
servicemix-service-
unit:RELEASE
[INFO]
-------------------------------------------------------------------------
---
[INFO] Parameter: groupId, Value: org.apache.servicemix.tutorial
[INFO] Parameter: packageName, Value: org.apache.servicemix.tutorial
[INFO] Parameter: package, Value: org.apache.servicemix.tutorial
[INFO] Parameter: artifactId, Value: tutorial-file-su
[INFO] Parameter: basedir, Value: c:\sandbox\servicemix
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[WARNING] org.apache.velocity.runtime.exception.ReferenceException:
reference :
template = archetype-resources/pom.xml [line 101,column 18] :
${servicemix-versi
on} is not a valid reference.
[INFO] ********************* End of debug info from resources from generated
POM
 ***********************
[INFO] OldArchetype created in dir: c:\sandbox\servicemix\tutorial-file-su
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Apr 10 14:40:05 EDT 2009
[INFO] Final Memory: 8M/14M
[INFO]
------------------------------------------------------------------------

Is this warning the result of me doing something wrong?  I was going
verbatim with the command so I had no idea why it should appear. Thanks,

Andy
-- 
View this message in context: http://www.nabble.com/Tutorial-2.2%3A-%24%7Bservicemix-version%7D-is-not-a-valid-reference.-tp22993119p22993119.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Tutorial 2.2: ${servicemix-version} is not a valid reference.

Posted by Ashwin Karpe <as...@progress.com>.
Hi,

Looks like your build was successful. You can ignore the warning. 

These warning is thrown by the archetype during compilation and the only
time you really need to care is if the build fails.

Usually these warnings do not amount to much unless they fail the build. You
may see them from time to time. It does not imply that naything is wrong n
your code.

Cheers,

Ashwin...


nhcoder wrote:
> 
> Hi,
> 
> I am trying to troubleshoot my example still and got a warning that wasn't
> mentioned in the tutorial. I am not sure if it is related to the example
> not working for me but I thought I would ask.  
> 
> http://servicemix.apache.org/22-beginner-creating-our-first-su-module.html
> 
> $ mvn archetype:create -DarchetypeArtifactId=servicemix-service-unit
> -Darchetyp
> eGroupId=org.apache.servicemix.tooling -DartifactId=tutorial-file-su
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Tutorial
> [INFO]    task-segment: [archetype:create] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus
> .velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [archetype:create]
> [WARNING] This goal is deprecated. Please use mvn archetype:generate
> instead
> [INFO] Defaulting package to group ID: org.apache.servicemix.tutorial
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Using following parameters for creating OldArchetype:
> servicemix-service-
> unit:RELEASE
> [INFO]
> -------------------------------------------------------------------------
> ---
> [INFO] Parameter: groupId, Value: org.apache.servicemix.tutorial
> [INFO] Parameter: packageName, Value: org.apache.servicemix.tutorial
> [INFO] Parameter: package, Value: org.apache.servicemix.tutorial
> [INFO] Parameter: artifactId, Value: tutorial-file-su
> [INFO] Parameter: basedir, Value: c:\sandbox\servicemix
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference :
> template = archetype-resources/pom.xml [line 101,column 18] :
> ${servicemix-versi
> on} is not a valid reference.
> [INFO] ********************* End of debug info from resources from
> generated POM
>  ***********************
> [INFO] OldArchetype created in dir: c:\sandbox\servicemix\tutorial-file-su
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Fri Apr 10 14:40:05 EDT 2009
> [INFO] Final Memory: 8M/14M
> [INFO]
> ------------------------------------------------------------------------
> 
> Is this warning the result of me doing something wrong?  I was going
> verbatim with the command so I had no idea why it should appear. Thanks,
> 
> Andy
> 


-----
--- 
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence 
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
--- 
+1-972-304-9084 (Office) 
+1-972-971-1700 (Mobile) 
---- 
Blog: http://opensourceknowledge.blogspot.com/


-- 
View this message in context: http://www.nabble.com/Tutorial-2.2%3A-%24%7Bservicemix-version%7D-is-not-a-valid-reference.-tp22993119p23000850.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.