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 16:46:04 UTC

Tutorial Help

I tried running Chapter 2 of the tutorial.  I was on this step:

http://servicemix.apache.org/26-beginner-exercise.html

I thought I did everything correct thus far, but when I try and run this
command:

$ mvn jbi:projectDeploy -DforceUpdate=true
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Tutorial
[INFO]   Tutorial :: File SU
[INFO]   Tutorial :: JMS SU
[INFO]   Tutorial :: EIP SU
[INFO]   Tutorial :: SA
[INFO] Searching repository for plugin with prefix: 'jbi'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not exist
or
no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Apr 10 10:40:18 EDT 2009
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

I was at a loss as to why that doesn't work.  Any ideas?

Thanks,


-- 
View this message in context: http://www.nabble.com/Tutorial-Help-tp22989058p22989058.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Tutorial Help

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

I agree with everything Gert has said in his response to your message.

In the event you are really only looking for a way to get out of your
current predicament, you will need to add a repository where your
maven-jbi-pligin is located. This involves adding a any repository
containing the plugin to your POM file as shown below

Hope this helps.

Cheers,

Ashwin...
========================================================
                  <repositories>
		<repository>
			<releases/>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>open.iona.m2</id>
			<name>FUSE Community Release Repository</name>
			<url>http://repo.fusesource.com/maven2</url>
		</repository>
                  </repositories>
                  <pluginRepositories>
		<pluginRepository>
			<releases/>
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<id>open.iona.m2</id>
			<name>FUSE Community Release Repository</name>
			<url>http://repo.fusesource.com/maven2</url>
		</pluginRepository>
	     </pluginRepositories>

============================================================


nhcoder wrote:
> 
> I tried running Chapter 2 of the tutorial.  I was on this step:
> 
> http://servicemix.apache.org/26-beginner-exercise.html
> 
> I thought I did everything correct thus far, but when I try and run this
> command:
> 
> $ mvn jbi:projectDeploy -DforceUpdate=true
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Tutorial
> [INFO]   Tutorial :: File SU
> [INFO]   Tutorial :: JMS SU
> [INFO]   Tutorial :: EIP SU
> [INFO]   Tutorial :: SA
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not
> exist or
> no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Apr 10 10:40:18 EDT 2009
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
> 
> I was at a loss as to why that doesn't work.  Any ideas?
> 
> Thanks,
> 
> 
> 


-----
--- 
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-Help-tp22989058p23000940.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Tutorial Help

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,

>From the output I'm seeing here, I'm guessing you did do things
correctly up to now.  However, you would have to run the mvn
jbi:projectDeploy command from the SA directory instead of from the
project root directory if you want to deploy things using the Maven
JBI plugin.

I would recommend you to use hot-deployment instead though.  That's
what most people use in production anyway: just copy the SA archive
you find in your tutorial-sa/target directory to the hotdeploy folder
in your servicemix installation.

I avoid the use of the JBI Maven plugin in real life, because it has
two drawbacks:
- if you don't take care, it will also try to reinstall the JBI
components themselves, causing a lot more interruption than by just
deploying the SA
- you can re-initialize the entire container by deleting everything in
the data directory and then restarting the container -- if you are
using hotdeployment, all SA will be automatically redeployed without
having to run the maven commands again.

FWIW, I raised a JIRA to remember to update the tutorials to use
hot-deployment (cfr.
https://issues.apache.org/activemq/browse/SM-1844).

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/4/10 nhcoder <an...@hotmail.com>:
>
> I tried running Chapter 2 of the tutorial.  I was on this step:
>
> http://servicemix.apache.org/26-beginner-exercise.html
>
> I thought I did everything correct thus far, but when I try and run this
> command:
>
> $ mvn jbi:projectDeploy -DforceUpdate=true
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Tutorial
> [INFO]   Tutorial :: File SU
> [INFO]   Tutorial :: JMS SU
> [INFO]   Tutorial :: EIP SU
> [INFO]   Tutorial :: SA
> [INFO] Searching repository for plugin with prefix: 'jbi'.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-jbi-plugin' does not exist
> or
> no valid version could be found
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Fri Apr 10 10:40:18 EDT 2009
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> I was at a loss as to why that doesn't work.  Any ideas?
>
> Thanks,
>
>
> --
> View this message in context: http://www.nabble.com/Tutorial-Help-tp22989058p22989058.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>