It does. mvn install or mvn deploy generate the
maven-metadata-local.xml. That's why it should work.
I will try to reproduce the issue.
Regards
JB
On 02/22/2012 10:13 AM, Achim Nierbeck wrote:
JB,
it'll work with system bundles, but afair the webconsole bundle isn't a
system bundle and if it is installed with a features:install it'll try
to get the latest
from the maven repo. AFAIR correctly the mvn install command doesn't
generate the needed meta data, or does it?
regards, Achim
2012/2/22 Jean-Baptiste Onofré <[email protected] <mailto:[email protected]>>
Not sure, it should work with the latest SNAPSHOT.
I will take a look.
Regards
JB
On 02/22/2012 09:06 AM, Achim Nierbeck wrote:
Hi,
yes, this is a known defect due to the maven aether module. It
always
tries to load the latest version from the maven repo
cause usually you don't have the needed meta data if you build
on your
local machine.
For development right now I suggest using a local Maven Repo
Proxy like
Nexus or Apache Archiva
Regards, Achim
2012/2/22 Guofeng Zhang <[email protected]
<mailto:[email protected]>
<mailto:[email protected] <mailto:[email protected]>>__>
Hi,____
__ __
Build last Karaf 3.0.0-SNAPSHOT, then try to launch
webconsole, I
got the following wire error:____
Error executing command: Could not start bundle
mvn:org.apache.karaf.shell/__org.apache.karaf.shell.http/3.__0.0-SNAPSHOT in____
feature(s) http-3.0.0-SNAPSHOT: Unresolved constraint in bundle
org.apache.karaf.shell.http [57]: Unable to resolve 57.____
0: missing requirement [57.0] osgi.wiring.package;
(&(osgi.wiring.package=org.__ops4j.pax.web.service.spi)(__version>=1.1.0)____
(!(version>=2.0.0)))____
__ __
I configured org.ops4j.pax.url.mvn.cfg to use my local maven
repository:____
org.ops4j.pax.url.mvn.__settings=file:///c:/.m2/__settings.xml____
__ __
but I find that Karaf or pax-url always download
org.apache.karaf.shell.http from apache snapshot repository,
because
I find the following jar in system repository and it depends on
org.ops4j.pax.web.service.spi [1.1.0,2.0.0]____
org.apache.karaf.shell.http-3.__0.0-20120202.094242-172.jar______
__ __
what did I configure org.ops4j.pax.url.mvn.cfg improperly?____
__ __
Thanks____
__ __
Guofeng____
__ __
__ __
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/__display/paxweb/Pax+Web/
<http://wiki.ops4j.org/display/paxweb/Pax+Web/>> Committer
& Project Lead
blog <http://notizblog.nierbeck.de/__>
--
Jean-Baptiste Onofré
[email protected] <mailto:[email protected]>
http://blog.nanthrax.net
Talend - http://www.talend.com
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
& Project Lead
blog <http://notizblog.nierbeck.de/>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com