i follow instruction to change maven configuration but i still have the same error dont understand why example on website dont work... all the step before the generation of SU are OK
Gert Vanthienen wrote: > > Erik, > > The Maven archetypes are not available in the public repository at > http://repo1.maven.org/maven2. > > If you want to use the latest released version (3.1-incubating) of the > archetypes, you can look at > http://incubator.apache.org/servicemix/4-examples.html for more > information on how to configure the additional repository for that. > > Maven output says you are using the development version > (3.2-incubating-SNAPSHOT). You can only use this version after you have > build ServiceMix from the latest sources on your machine first. Look at > http://incubator.apache.org/servicemix/building.html for instructions. > > Gert > > Erik Allais wrote: >> i try to generate the Service unit but i have this error >> >> [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.properties >> [INFO] Default ResourceManager initializing. (class >> org.apache.velocity.runtime.resource.ResourceManagerImpl) >> [INFO] Resource Loader Instantiated: >> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader >> [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 'VM_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 >> global 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 >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Failed to resolve artifact. >> >> GroupId: org.apache.servicemix.tooling >> ArtifactId: servicemix-service-assembly >> 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 >> -DartifactId=servicemix-service-assembly \ >> -Dversion=3.2-incubating-SNAPSHOT -Dpackaging=jar >> -Dfile=/path/to/file >> >> >> >> org.apache.servicemix.tooling:servicemix-service-assembly:jar:3.2-incubating-SNAPSHOT >> >> from the specified remote repositories: >> central (http://repo1.maven.org/maven2) >> >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 2 seconds >> [INFO] Finished at: Fri Jun 22 09:55:16 GMT+01:00 2007 >> [INFO] Final Memory: 4M/8M >> [INFO] >> ------------------------------------------------------------------------ >> >> could u explain me why? >> thanks >> >> Erik >> > > > -- View this message in context: http://www.nabble.com/Hello-world-bc-exemple-tf3963513s12049.html#a11249314 Sent from the ServiceMix - User mailing list archive at Nabble.com.
