The updation in the tutorial is
-DarchetypeVersion=3.2-incubating-SNAPSHOT earlier it was 3.1-incubating
I have updated the same in the command which is below
mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-binding-component
-DarchetypeVersion=3.2-incubating-SNAPSHOT
-DgroupId=org.apache.servicemix.samples.helloworld.bc
-DartifactId=hello-world-bc
-DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository
With this the console logs the following messages,
C:\serviceMix\hello-world-smx> mvn archetype:create
-DarchetypeGroupId=org.apach
e.servicemix.tooling -DarchetypeArtifactId=servicemix-binding-component
-Darchet
ypeVersion=3.2-incubating-SNAPSHOT
-DgroupId=org.apache.servicemix.samples.hello
world.bc -DartifactId=hello-world-bc
-DremoteRepositories=http://people.apache.o
rg/repo/m2-incubating-repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[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] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in
any
resource loader.
[INFO] Velocimacro : error using VM library template
VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID:
org.apache.servicemix.samples.helloworld.
bc
[INFO] We are using command line specified remote repositories:
http://people.ap
ache.org/repo/m2-incubating-repository
[INFO] snapshot
org.apache.servicemix.tooling:servicemix-binding-component:3.2-i
ncubating-SNAPSHOT: checking for updates from id0
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/s
ervicemix/tooling/servicemix-binding-component/3.2-incubating-SNAPSHOT/servicemi
x-binding-component-3.2-incubating-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.servicemix.tooling
ArtifactId: servicemix-binding-component
Version: 3.2-incubating-SNAPSHOT
Reason: Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactI
d=servicemix-binding-component \
-Dversion=3.2-incubating-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=se
rvicemix-binding-component \
-Dversion=3.2-incubating-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
org.apache.servicemix.tooling:servicemix-binding-component:jar:3.2-incubating-
SNAPSHOT
from the specified remote repositories:
id0 (http://people.apache.org/repo/m2-incubating-repository)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Oct 12 17:27:50 IST 2007
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------
I have found the version is defined as <version>3.2-SNAPSHOT</version> in
POM.XML, I have tried the maven build command with a change in the
version,
which is below
mvn archetype:create
-DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-binding-component
-DarchetypeVersion=3.2-SNAPSHOT
-DgroupId=org.apache.servicemix.samples.helloworld.bc
-DartifactId=hello-world-bc
-DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository
while executing this command the console logs the follwing messages
C:\serviceMix\hello-world-smx> mvn archetype:create
-DarchetypeGroupId=org.apach
e.servicemix.tooling -DarchetypeArtifactId=servicemix-binding-component
-Darchet
ypeVersion=3.2-SNAPSHOT
-DgroupId=org.apache.servicemix.samples.helloworld.bc -D
artifactId=hello-world-bc
-DremoteRepositories=http://people.apache.org/repo/m2-
incubating-repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[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] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.pr
operties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.
resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLo
aderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.
ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in
any
resource loader.
[INFO] Velocimacro : error using VM library template
VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may
NOT
replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be
glob
al in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID:
org.apache.servicemix.samples.helloworld.
bc
[INFO] We are using command line specified remote repositories:
http://people.ap
ache.org/repo/m2-incubating-repository
[INFO] snapshot
org.apache.servicemix.tooling:servicemix-binding-component:3.2-S
NAPSHOT: checking for updates from id0
Downloading:
http://people.apache.org/repo/m2-incubating-repository/org/apache/s
ervicemix/tooling/servicemix-binding-component/3.2-SNAPSHOT/servicemix-binding-c
omponent-3.2-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.servicemix.tooling
ArtifactId: servicemix-binding-component
Version: 3.2-SNAPSHOT
Reason: Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactI
d=servicemix-binding-component \
-Dversion=3.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=se
rvicemix-binding-component \
-Dversion=3.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
org.apache.servicemix.tooling:servicemix-binding-component:jar:3.2-SNAPSHOT
from the specified remote repositories:
id0 (http://people.apache.org/repo/m2-incubating-repository)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Oct 12 16:51:27 IST 2007
[INFO] Final Memory: 5M/9M
[INFO]
------------------------------------------------------------------------
Please guide me
vinothk wrote:
ServiceMix version 3.1.1
Maven version 2.0.4
while deploying a comonent in serviceMix using mvn install from command
prompt results in the following error. Can some one tell from where i
can
download this file
org.apache.activemq:activemq-core:jar:4.1-incubator-20070103.
[INFO] ---------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.activemq:activemq-core:jar:4.1-incubator-20070103