You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Timothy Stewart <ti...@gmail.com> on 2013/11/08 23:46:40 UTC

ActiveMQ Web Console 5.9.0 in a Features file

I've got a features file that includes several activemq, camel, cxf, etc.
requirements.  To simplify the problem I'm seeing, I've simplified the
features file to:

<?xml version="1.0" encoding="UTF-8"?>
<features name='my-karaf-feature-repo'>
   
<repository>mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features</repository>

    <feature name="my-karaf-feature" version='${project.version}'
resolver='(obr)' start-level='50'>
        
        <feature>activemq-web-console</feature>
    </feature>
</features>


This fails with:

validate (validate) on project my-karaf-feature: Unable to validate .... :
Unable to resolve artifact for uri
mvn:org.apache.activemq/activemq-web-console/5.9.0/war -> [Help 1]

Looking at the features file for activemq, I see:

<feature name="activemq-web-console" version="5.9.0" resolver="(obr)"
start-level="50">
  <feature start-level="10">war</feature> 
  <feature start-level="10">eventadmin</feature> 
  <configfile
finalname="/etc/org.apache.activemq.webconsole.cfg">mvn:org.apache.activemq/activemq-karaf/5.9.0/cfg/activemq-webconsole</configfile> 
  <bundle>mvn:org.apache.activemq/activemq-web-console/5.9.0/war</bundle> 
  </feature>

Which I guess is where things failed.

Is this a problem with the features-maven-plugin, with the activemq features
file, or something I'm doing?





--
View this message in context: http://karaf.922171.n3.nabble.com/ActiveMQ-Web-Console-5-9-0-in-a-Features-file-tp4030244.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: ActiveMQ Web Console 5.9.0 in a Features file

Posted by Timothy Stewart <ti...@gmail.com>.
Thanks for the response, yes the issue isn't a deployment issue. The both the
customer feature repo I've used to wrap several other features deploys fine
and works well, and installing the war directly works fine.

The trouble is just the validation goal by the plugin fails when I'm
including that particular feature, or when I try to reference a blueprint
XML which would auto-wrap when I deploy it.

As you said, I think its only capable of handling bundle jars directly, or
plain jars using the wrap: notation.



--
View this message in context: http://karaf.922171.n3.nabble.com/ActiveMQ-Web-Console-5-9-0-in-a-Features-file-tp4030244p4030254.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: ActiveMQ Web Console 5.9.0 in a Features file

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I think that the issue is that the maven plugin is not able to manage 
artifacts from another type than jar (AFAIR).

I gonna take a look on that.

Regards
JB

On 11/09/2013 12:51 PM, Charles Moulliard wrote:
> As the war file is available from maven repo, you should be able to
> deploy it
> (http://repo1.maven.org/maven2/org/apache/activemq/activemq-web-console/5.9.0/
> Ca, you try to install it manually using command (install -s
> webbundle:war:mvn:org.apache.activemq/activemq-web-console/5.9.0/war
>
>
>
>
> On Fri, Nov 8, 2013 at 11:46 PM, Timothy Stewart
> <timothy.stewart@gmail.com <ma...@gmail.com>> wrote:
>
>     I've got a features file that includes several activemq, camel, cxf,
>     etc.
>     requirements.  To simplify the problem I'm seeing, I've simplified the
>     features file to:
>
>     <?xml version="1.0" encoding="UTF-8"?>
>     <features name='my-karaf-feature-repo'>
>
>     <repository>mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features</repository>
>
>          <feature name="my-karaf-feature" version='${project.version}'
>     resolver='(obr)' start-level='50'>
>
>              <feature>activemq-web-console</feature>
>          </feature>
>     </features>
>
>
>     This fails with:
>
>     validate (validate) on project my-karaf-feature: Unable to validate
>     .... :
>     Unable to resolve artifact for uri
>     mvn:org.apache.activemq/activemq-web-console/5.9.0/war -> [Help 1]
>
>     Looking at the features file for activemq, I see:
>
>     <feature name="activemq-web-console" version="5.9.0" resolver="(obr)"
>     start-level="50">
>        <feature start-level="10">war</feature>
>        <feature start-level="10">eventadmin</feature>
>        <configfile
>     finalname="/etc/org.apache.activemq.webconsole.cfg">mvn:org.apache.activemq/activemq-karaf/5.9.0/cfg/activemq-webconsole</configfile>
>
>     <bundle>mvn:org.apache.activemq/activemq-web-console/5.9.0/war</bundle>
>        </feature>
>
>     Which I guess is where things failed.
>
>     Is this a problem with the features-maven-plugin, with the activemq
>     features
>     file, or something I'm doing?
>
>
>
>
>
>     --
>     View this message in context:
>     http://karaf.922171.n3.nabble.com/ActiveMQ-Web-Console-5-9-0-in-a-Features-file-tp4030244.html
>     Sent from the Karaf - User mailing list archive at Nabble.com.
>
>
>
>
> --
> Charles Moulliard
> Apache Committer / Architect @RedHat
> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
> <http://cmoulliard.github.io>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: ActiveMQ Web Console 5.9.0 in a Features file

Posted by Charles Moulliard <ch...@gmail.com>.
As the war file is available from maven repo, you should be able to deploy
it (
http://repo1.maven.org/maven2/org/apache/activemq/activemq-web-console/5.9.0/
Ca, you try to install it manually using command (install -s
webbundle:war:mvn:org.apache.activemq/activemq-web-console/5.9.0/war




On Fri, Nov 8, 2013 at 11:46 PM, Timothy Stewart
<ti...@gmail.com>wrote:

> I've got a features file that includes several activemq, camel, cxf, etc.
> requirements.  To simplify the problem I'm seeing, I've simplified the
> features file to:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <features name='my-karaf-feature-repo'>
>
>
> <repository>mvn:org.apache.activemq/activemq-karaf/5.9.0/xml/features</repository>
>
>     <feature name="my-karaf-feature" version='${project.version}'
> resolver='(obr)' start-level='50'>
>
>         <feature>activemq-web-console</feature>
>     </feature>
> </features>
>
>
> This fails with:
>
> validate (validate) on project my-karaf-feature: Unable to validate .... :
> Unable to resolve artifact for uri
> mvn:org.apache.activemq/activemq-web-console/5.9.0/war -> [Help 1]
>
> Looking at the features file for activemq, I see:
>
> <feature name="activemq-web-console" version="5.9.0" resolver="(obr)"
> start-level="50">
>   <feature start-level="10">war</feature>
>   <feature start-level="10">eventadmin</feature>
>   <configfile
>
> finalname="/etc/org.apache.activemq.webconsole.cfg">mvn:org.apache.activemq/activemq-karaf/5.9.0/cfg/activemq-webconsole</configfile>
>   <bundle>mvn:org.apache.activemq/activemq-web-console/5.9.0/war</bundle>
>   </feature>
>
> Which I guess is where things failed.
>
> Is this a problem with the features-maven-plugin, with the activemq
> features
> file, or something I'm doing?
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/ActiveMQ-Web-Console-5-9-0-in-a-Features-file-tp4030244.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io