You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Owen Thomas <ot...@wcg.net.au> on 2007/03/07 02:06:36 UTC

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.


Re: Maven newbie alert - incorrect archetype version.

Posted by Bruce Snyder <br...@gmail.com>.
On 3/8/07, Bruce Snyder <br...@gmail.com> wrote:
> The issue is that ServiceMix releases are not published in the Maven
> central repo due to Incubator policies. The solution to this is
> either:
>
> 1) To point Maven to the Incubator repo as noted here:
>
> http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration
>
> OR
>
> 2) To build ServiceMix from source as described here:
>
> http://incubator.apache.org/servicemix/building.html
>
> However, it appears that solution #1 will not work at this time
> because Maven's archetype:create goal does not properly use repos
> listed in the local settings.xml - which seems to be a bug in Maven so
> I filed an issue:
>
> http://jira.codehaus.org/browse/MNG-2862

I stand corrected. It was brought to my attention that the
remoteRepositories system property can be used to point to a specific
repo via the command line. I've updated the tutorials with this note
so the command that works is as follows:

$ mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-binding-component \
-DarchetypeVersion=3.1-incubating \
-DgroupId=org.apache.servicemix.samples.helloworld.bc \
-DartifactId=hello-world-bc \
-DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository

I just tested this after moving my local repo aside and it works correctly.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Maven newbie alert - incorrect archetype version.

Posted by Bruce Snyder <br...@gmail.com>.
The issue is that ServiceMix releases are not published in the Maven
central repo due to Incubator policies. The solution to this is
either:

1) To point Maven to the Incubator repo as noted here:

http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration

OR

2) To build ServiceMix from source as described here:

http://incubator.apache.org/servicemix/building.html

However, it appears that solution #1 will not work at this time
because Maven's archetype:create goal does not properly use repos
listed in the local settings.xml - which seems to be a bug in Maven so
I filed an issue:

http://jira.codehaus.org/browse/MNG-2862

So it looks like the only solution is to build ServiceMix from source.
This is pretty easy to accomplish and doesn't take too long even with
a clean repo. Just make sure that if you're going to use ServiceMix
3.1 that you check out the 3.1 tag from Subversion and not the trunk.
The 3.1 tag is here:

http://svn.apache.org/repos/asf/incubator/servicemix/tags/servicemix-3.1/

So make sure to check out from that URL. Once the source is built
successfully, you can run the following Maven command to create the
hello-world-bc:

$ mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-binding-component \
-DarchetypeVersion=3.1-incubating \
-DgroupId=org.apache.servicemix.samples.helloworld.bc \
-DartifactId=hello-world-bc

Please let us know if you have any questions.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

RE: Maven newbie alert - incorrect archetype version.

Posted by Owen Thomas <ot...@wcg.net.au>.
Hello.

Thanks for the information Guilliaume. This is what I'm going to try to
do right now.

I think that I have put myself, as I observe things, right amongst the
turbulent swell of an idea in its most early stages of development.
Although getting an idea would be great, I'm going to have to focus on
what it is that I really need and to back away from using maven (at
least to develop JBI binding components). I'll come back when the water
hopefully calms.

I'm using NetBeans as my IDE, and I think I've come across some
information about building binding components as an Ant (NetBeans)
project. I'll turn my attention to that right now. I may also come back
to Maven if I find that things are in their infancy on that front too;
my preference being for a Maven build.

Have a good day. I will be watching from the shore for now,

  Owen.

-----Original Message-----
From: Guillaume Nodet [mailto:gnodet@gmail.com] 
Sent: Thursday, March 08, 2007 11:46 AM
To: servicemix-users@geronimo.apache.org
Subject: Re: Maven newbie alert - incorrect archetype version.

Maybe try to remove the following folder
  C:\Documents and
Settings\othomas\.m2\repository\org\apache\maven\plugins\maven-archetype
-plugin

And try removing the SNAPSHOT when runnning the
   "mvn archetype:create" command.


Re: Maven newbie alert - incorrect archetype version.

Posted by Guillaume Nodet <gn...@gmail.com>.
Maybe try to remove the following folder
  C:\Documents and
Settings\othomas\.m2\repository\org\apache\maven\plugins\maven-archetype-plugin

And try removing the SNAPSHOT when runnning the
   "mvn archetype:create" command.

On 3/8/07, Owen Thomas <ot...@wcg.net.au> wrote:
>
> Okay... I've removed the directory "C:\Documents and
> Settings\othomas\.m2\repository\org\apache\servicemix", and will try the
> same as I did before with the file
> "bindingcomponents-3.1-incubating-20070129.083009-68.pom" that I found
> at
> http://people.apache.org/maven-snapshot-repository/org/apache/servicemix
> /bindingcomponents/3.1-incubating-SNAPSHOT/...
>
> Maven responds with the following:
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'install'.
> [INFO]
> --------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install:install-file] (aggregator-style)
> [INFO]
> --------------------------------------------------------------------
> [INFO] [install:install-file]
> [INFO] Installing
> C:\bindingcomponents-3.1-incubating-20070129.083009-68.pom to
> C:\Documents and
> Settings\othomas\.m2\repository\org\apache\servicemix\tool
> ing\servicemix-binding-component\3.1-incubating-SNAPSHOT\servicemix-bind
> ing-component-3.1-incubating-SNAPSHOT.jar
> [INFO]
> --------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> --------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Thu Mar 08 10:34:38 EST 2007
> [INFO] Final Memory: 2M/4M
> [INFO]
> --------------------------------------------------------------------
>
> So, I guess Maven's happy. I now try to do what I originally intended
> again - to build myself a binding component project. To do this, I run
> the following command:
>
> mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
> -DarchetypeArtifactId=servicemix-binding-component -DarchetypeVers
> ion=3.1-incubating-SNAPSHOT
> -DgroupId=au.com.wcg.bindingcomponent.executeshellscript
> -DartifactId=ExecuteShellScriptBindingComponent
>
> Doing this, I receive the following output:
>
> [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
> resour
> ce '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:
> au.com.wcg.bindingcomponent.executeshellscript
> [INFO]
> -------------------------------------------------------------------
> [INFO] Using following parameters for creating Archetype:
> servicemix-binding-component:3.1-incubating-SNAPSHOT
> [INFO]
> -------------------------------------------------------------------
> [INFO] Parameter: groupId, Value:
> au.com.wcg.bindingcomponent.executeshellscript
> [INFO] Parameter: packageName, Value:
> au.com.wcg.bindingcomponent.executeshellscript
> [INFO] Parameter: basedir, Value: H:\CurrentProjects
> [INFO] Parameter: package, Value:
> au.com.wcg.bindingcomponent.executeshellscript
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: artifactId, Value: ExecuteShellScriptBindingComponent
> [INFO]
> -------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> -------------------------------------------------------------------
> [INFO] Error creating from archetype
>
> Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
> found.
> [INFO]
> -------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> -------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Thu Mar 08 10:47:14 EST 2007
> [INFO] Final Memory: 4M/8M
> [INFO]
> -------------------------------------------------------------------
>
> I really would appreciate some assistance here, something that gives me
> a binding component project so that I can start coding out the BC that
> my management would like to see. I would like to know how Maven works
> *eventually*, but I would like to spend time on doing this after I get
> the BC written.
>
> Thanks,
>
>   Owen.
>
> -----Original Message-----
> From: Guillaume Nodet [mailto:gnodet@gmail.com]
> Sent: Wednesday, March 07, 2007 6:18 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: Maven newbie alert - incorrect archetype version.
>
> Hey Bruce,
> I'm thinking maybe we should use the 3.1 version for this tutorial ?
> Or is there anything requiring 3.2 ?
>
> On 3/7/07, Bruce Snyder <br...@gmail.com> wrote:
> >
> > On 3/6/07, Owen Thomas <ot...@wcg.net.au> wrote:
> > > 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,
> >
> > I've updated the tutorial some. The reason you're seeing the error is
> > because of the version of ServiceMix you were using. One of the
> > updates to the tutorial was to update the version of ServiceMix being
> > used to 3.2-incubating-SNAPSHOT.
> >
> > I've also removed all the links using Fisheye since it is has not been
> > available for about a month now.
> >
> > Unfortunately the tutorial is still not 100% complete yet. This is
> > very time-consuming work. Any contributions you might have are most
> > welcome.
> >
> > Bruce
> > --
> > perl -e 'print
> > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> > );'
> >
> > Apache Geronimo - http://geronimo.apache.org/
> > Apache ActiveMQ - http://activemq.org/
> > Apache ServiceMix - http://servicemix.org/
> > Castor - http://castor.org/
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Re: Maven newbie alert - incorrect archetype version.

Posted by Bruce Snyder <br...@gmail.com>.
On 3/7/07, Guillaume Nodet <gn...@gmail.com> wrote:
> Hey Bruce,
> I'm thinking maybe we should use the 3.1 version for this tutorial ?
> Or is there anything requiring 3.2 ?

There's nothing requiring 3.2. I'll try to run through the tutorial
after moving my local repo aside.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

RE: Maven newbie alert - incorrect archetype version.

Posted by Owen Thomas <ot...@wcg.net.au>.
Okay... I've removed the directory "C:\Documents and
Settings\othomas\.m2\repository\org\apache\servicemix", and will try the
same as I did before with the file
"bindingcomponents-3.1-incubating-20070129.083009-68.pom" that I found
at
http://people.apache.org/maven-snapshot-repository/org/apache/servicemix
/bindingcomponents/3.1-incubating-SNAPSHOT/...

Maven responds with the following:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
--------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO]
--------------------------------------------------------------------
[INFO] [install:install-file]
[INFO] Installing
C:\bindingcomponents-3.1-incubating-20070129.083009-68.pom to
C:\Documents and
Settings\othomas\.m2\repository\org\apache\servicemix\tool
ing\servicemix-binding-component\3.1-incubating-SNAPSHOT\servicemix-bind
ing-component-3.1-incubating-SNAPSHOT.jar
[INFO]
--------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
--------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Mar 08 10:34:38 EST 2007
[INFO] Final Memory: 2M/4M
[INFO]
--------------------------------------------------------------------

So, I guess Maven's happy. I now try to do what I originally intended
again - to build myself a binding component project. To do this, I run
the following command:

mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-binding-component -DarchetypeVers
ion=3.1-incubating-SNAPSHOT
-DgroupId=au.com.wcg.bindingcomponent.executeshellscript
-DartifactId=ExecuteShellScriptBindingComponent

Doing this, I receive the following output:

[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
resour
ce '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:
au.com.wcg.bindingcomponent.executeshellscript
[INFO]
-------------------------------------------------------------------
[INFO] Using following parameters for creating Archetype:
servicemix-binding-component:3.1-incubating-SNAPSHOT
[INFO]
-------------------------------------------------------------------
[INFO] Parameter: groupId, Value:
au.com.wcg.bindingcomponent.executeshellscript
[INFO] Parameter: packageName, Value:
au.com.wcg.bindingcomponent.executeshellscript
[INFO] Parameter: basedir, Value: H:\CurrentProjects
[INFO] Parameter: package, Value:
au.com.wcg.bindingcomponent.executeshellscript
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: ExecuteShellScriptBindingComponent
[INFO]
-------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
-------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
found.
[INFO]
-------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
-------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 08 10:47:14 EST 2007
[INFO] Final Memory: 4M/8M
[INFO]
-------------------------------------------------------------------

I really would appreciate some assistance here, something that gives me
a binding component project so that I can start coding out the BC that
my management would like to see. I would like to know how Maven works
*eventually*, but I would like to spend time on doing this after I get
the BC written.

Thanks,

  Owen.

-----Original Message-----
From: Guillaume Nodet [mailto:gnodet@gmail.com] 
Sent: Wednesday, March 07, 2007 6:18 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Maven newbie alert - incorrect archetype version.

Hey Bruce,
I'm thinking maybe we should use the 3.1 version for this tutorial ?
Or is there anything requiring 3.2 ?

On 3/7/07, Bruce Snyder <br...@gmail.com> wrote:
>
> On 3/6/07, Owen Thomas <ot...@wcg.net.au> wrote:
> > 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,
>
> I've updated the tutorial some. The reason you're seeing the error is
> because of the version of ServiceMix you were using. One of the
> updates to the tutorial was to update the version of ServiceMix being
> used to 3.2-incubating-SNAPSHOT.
>
> I've also removed all the links using Fisheye since it is has not been
> available for about a month now.
>
> Unfortunately the tutorial is still not 100% complete yet. This is
> very time-consuming work. Any contributions you might have are most
> welcome.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Re: Maven newbie alert - incorrect archetype version.

Posted by Guillaume Nodet <gn...@gmail.com>.
Hey Bruce,
I'm thinking maybe we should use the 3.1 version for this tutorial ?
Or is there anything requiring 3.2 ?

On 3/7/07, Bruce Snyder <br...@gmail.com> wrote:
>
> On 3/6/07, Owen Thomas <ot...@wcg.net.au> wrote:
> > 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,
>
> I've updated the tutorial some. The reason you're seeing the error is
> because of the version of ServiceMix you were using. One of the
> updates to the tutorial was to update the version of ServiceMix being
> used to 3.2-incubating-SNAPSHOT.
>
> I've also removed all the links using Fisheye since it is has not been
> available for about a month now.
>
> Unfortunately the tutorial is still not 100% complete yet. This is
> very time-consuming work. Any contributions you might have are most
> welcome.
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Castor - http://castor.org/
>



-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

RE: Maven newbie alert - incorrect archetype version.

Posted by Owen Thomas <ot...@wcg.net.au>.
Hello.

So Bruce,... ummm... I should be using ServiceMix
3.2-incubating-SNAPSHOT? There aint no such version on the ServiceMix
home page just yet. I can't even find it in development builds...

I did a Google search on Servicemix 3.2, and it came back with about 24
sites on two Google pages. I went to the second of these:
http://people.apache.org/maven-snapshot-repository/org/apache/servicemix
/servicemix-soap/3.2-incubating-SNAPSHOT/servicemix-soap-3.2-incubating-
20070131.094224-1.pom, and copied the output to
C:\servicemix-soap-3.2-incubating.pom.

Following the instructions given me on the output I received when I
earlier asked maven to create the binding-component project, I ran the
following:

C:\>mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactId=servicemix-binding-component
-Dversion=3.2-incubating-SNAPSHOT -Dpackaging=jar
-Dfile=C:\servicemix-soap-3.2-incubating.pom

Maven said that the build was successful, the most apparently
informative message being the following:

[INFO] [install:install-file]
[INFO] Installing C:\servicemix-soap-3.2-incubating.pom to C:\Documents
and
Settings\othomas\.m2\repository\org\apache\servicemix\tooling\servicemix
-binding-component\3.2-incubating-SNAPSHOT\servicemix-binding-component-
3.2-incubating-SNAPSHOT.jar

Now... I run maven using the original parameters substituting
3.2-incubating-SNAPSHOT as the value for the -DarchetiypeVersion
parameter thus:

mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-binding-component
-DarchetypeVersion=3.2-incubating-SNAPSHOT
-DgroupId=au.com.wcg.bindingcomponent.executeshellscript
-DartifactId=WCGExecuteSchellScriptBindingComponent

... and it's not got the archetype version error any more (which is
good) but there appears to be another error which I may not have picked
up on earlier. Maven now tells me the following:

...
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
...
[INFO]
--------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
--------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: The META-INF/maven/archetype.xml descriptor cannot be
found.
[INFO]
---------------------------------------------------------------------
...

So, I think I have one problem rectified, but other problems may have
appeared, or may have existed previously which I didn't pick up on.

Thank you for helping me,

  Owen.

-----Original Message-----
From: Bruce Snyder [mailto:bruce.snyder@gmail.com] 
Sent: Wednesday, March 07, 2007 2:26 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Maven newbie alert - incorrect archetype version.

I've updated the tutorial some. The reason you're seeing the error is
because of the version of ServiceMix you were using. One of the
updates to the tutorial was to update the version of ServiceMix being
used to 3.2-incubating-SNAPSHOT.

I've also removed all the links using Fisheye since it is has not been
available for about a month now.

Unfortunately the tutorial is still not 100% complete yet. This is
very time-consuming work. Any contributions you might have are most
welcome.

Bruce
-- 
perl -e 'print
unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: Maven newbie alert - incorrect archetype version.

Posted by Bruce Snyder <br...@gmail.com>.
On 3/6/07, Owen Thomas <ot...@wcg.net.au> wrote:
> 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,

I've updated the tutorial some. The reason you're seeing the error is
because of the version of ServiceMix you were using. One of the
updates to the tutorial was to update the version of ServiceMix being
used to 3.2-incubating-SNAPSHOT.

I've also removed all the links using Fisheye since it is has not been
available for about a month now.

Unfortunately the tutorial is still not 100% complete yet. This is
very time-consuming work. Any contributions you might have are most
welcome.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/