It's possible.  You just need to use the correct url if you use the
maven protocol.
Look at http://wiki.ops4j.org/display/ops4j/Pax+URL+-+mvn
and maybe try with something like

   mvn:[groupId]/[artifactId]/[version]/war

On Tue, Mar 31, 2009 at 10:38, cmoulliard <[email protected]> wrote:
>
> Hi,
>
> Can we install a war using the feature command because I receive the
> following message when I try to deploy a war ?
>
> <feature name="reportincident-web">
>
> <bundle>mvn:org.apache.camel.example/reportincident.web/1.0-SNAPSHOT</bundle>
> </feature>
>
> s...@root:features> install reportincident-web
>
> Message returned :
>
> ERROR CommandLineExecutionFailed:
> org.apache.geronimo.gshell.command.CommandException:
> java.lang.RuntimeException: URL
> [mvn:org.apache.camel.example/reportincident.web/1.
> 0-SNAPSHOT] could not be resolved. (enable TRACE logging for details)
>
> I see in the trace that the code tries to download a jar :
>
> 10:33:37,102 | TRACE | localShell       | Connection                       |
> .pax.url.mvn.internal.Connection  189 |   Reason
> [java.io.FileNotFoundException:
> c:\.m2\repository\org\apache\camel\example\reportincident.web\1.0-SNAPSHOT\reportincident.web-1.0-SNAPSHOT.jar
> (The system cannot find the file specified)]
> 1
>
> It should be interesting to install a war though the feature command and why
> not to use command like this :
>
>    <feature name="reportincident-web">
>
> <bundle>wrap:mvn:org.apache.camel.example/reportincident.web/1.0-SNAPSHOT?WebWebapp-Context=reportincidentWeb</bundle>
>    </feature>
>
> Regards,
>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: 
> http://www.nabble.com/Question-%3A-install-war-using-feature-on-SMX4---tp22800727p22800727.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to