Hi there,

I'm doing some work on Apache Karaf that should make it easier to package and 
deploy features; am hoping to complete this work over the next few weeks. In 
the meantime though, the features mechanism does work quite well, and I think 
you've got mostly the right idea. One thing I can't see from your example is 
the contents of your feature file: sounds to me like your features descriptor 
is referring to the the sample bundle, not your brand new bundle. This would 
explain why you're not seeing the new bundle's functionality. 

Can you clean and tar/zip your project so I can take a better look?

Cheers,
Ade

Adrian Trenaman
http://fusesource.com


----- Original Message -----
From: djb [mailto:[email protected]]
Sent: Wednesday, September 22, 2010 10:31 AM
To: [email protected] <[email protected]>
Subject: SMX Maven/feature deployment


Hi,

I can't for the life of me work out how to make a cxf-jaxrs project from
scratch.  The only documentation that exists seems to be 'type
features:install examples-cxf-jaxrs', which doesn't help someone trying to
learn SMX.

So,  I'm trying to take the example, move it to another directory, make
changes to it, and install it myself.  I am trying to install the cxf-jaxrs
example by adding it as a new 'feature' 

So.

Step 1.
Cut <feature> from apache-servicemix-4.2.0-features.xml

Step 2.
Paste <feature> to myfeatures.xml

Step 3.
Copy /examples/cxf-jaxrs to /mydir/test-cxf-jaxrs

Step 4.
features:addUrl file:myfeatures.xml

Step 5.
Change pom.xml:  
changed 
<artifactId>test-cxf-jaxrs</artifactId>
changed 
<Import-Package>org.apache.servicemix.examples.test.cxf.jaxrs</Import-Package>
changed 
<Export-Package>org.apache.servicemix.examples.test.cxf.jaxrs</Export-Package>

Step 6.
mvn install

Step 7.
features:install test-cxf-jaxrs

It actually does install, and works as before.  But changes to my new test
code don't change anything.  

Now, I know it has something to do with Maven repos, but Maven's
documentation is obfuscated.

What changes must I make to make the code go to a nice repository somewhere,
and have SMX load that code when I run Step 7? 

Is there an easier way than the undocumented features facility?

Please help...  

Regards,
Daniel  




-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/SMX-Maven-feature-deployment-tp2849796p2849796.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to