Looks like the artifacts you need are in the Apache Snapshots
repository on people.apache.org:

http://people.apache.org/maven-snapshot-repository/org/apache/servicemix/tooling/servicemix-binding-component/

Also note the hello-world-bc webpage says at the top "Work In
Progress". So this is more complex than most Maven interactions.

The easiest way forward is thus:
1. Create a directory blah and a file pom.xml inside it
2. Paste the following into the file
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
 <modelVersion>4.0.0</modelVersion>
 <groupId>blah</groupId>
 <artifactId>test</artifactId>
 <packaging>jar</packaging>
 <version>1.0-SNAPSHOT</version>
 <name>blah test</name>
 <repositories>
   <repository>
     <id>Apache Snapshots</id>
     <url>http://people.apache.org/maven-snapshot-repository/</url>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <releases>
       <enabled>false</enabled>
     </releases>
   </repository>
 </repositories>
 <pluginRepositories>
   <pluginRepository>
     <id>Apache Snapshots</id>
     <url>http://people.apache.org/maven-snapshot-repository/</url>
     <snapshots>
       <enabled>true</enabled>
     </snapshots>
     <releases>
       <enabled>false</enabled>
     </releases>
   </pluginRepository>
 </pluginRepositories>
 <dependencies>
   <dependency>
     <artifactId>servicemix-binding-component</artifactId>
     <groupId>org.apache.servicemix.tooling</groupId>
     <version>3.1-incubating-SNAPSHOT</version>
   </dependency>
 </dependencies>
</project>
3. Then run "mvn test" and allow the files to download
4. Now go back to your original directory and attempt to run the "mvn
archetype:create ..." command again

However... I just did this and ran into an error about
META-INF/archetype.xml missing, so realistically you should send a
"support request" type email to the ServiceMix developers and see if
they can help you get things going... Or wait until this
hello-world-bc example is "finished".

Wayne

On 3/6/07, Owen Thomas <[EMAIL PROTECTED]> wrote:
These might be of interest too:

H:\CurrentProjects>mvn --version
Maven version: 2.0.5

H:\CurrentProjects>java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)

 Owen.

-----Original Message-----
From: Owen Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 07, 2007 1:41 PM
To: users@maven.apache.org
Subject: Maven newbie alert - incorrect archetype version.

Hello.



I am a Maven newbie. Having discovered the merit in using Maven over Ant
on Monday, I downloaded and started fiddling with it yesterday. I am
rather fresh.



My problem relates to the following error when trying to create a new
JBI BC project with maven. I am following the tutorial at
http://incubator.apache.org/servicemix/hello-world-bc.html to create my
own BC; a fact I think is unrelated to the problem I am having.



When I run the following command:



mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling /

-DarchetypeArtifactId=servicemix-binding-component /

-DarchetypeVersion=3.1-incubating-SNAPSHOT /

-DgroupId=au.com.wcg.bindingcomponent.executeshellscript /

-DartifactId=WCGExecuteSchellScriptBindingComponent



I find the following error in my maven output:



[INFO] Failed to resolve artifact.



GroupId: org.apache.servicemix.tooling

ArtifactId: servicemix-binding-component

Version: 3.1-incubating-SNAPSHOT



Reason: Unable to download the artifact from any repository



Try downloading the file manually from the project website.



Looking at the tutorial, I find that it has been courteous enough to
include a link to the "Top level ServiceMix POM", only this link points
to a page that no longer exists. I have done some searching, and, not
knowing exactly what it is that I am supposed to be finding, have here
made this request for help. Does anyone know where the POM I need is?



Help would be very much appreciated,



 Owen.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to