You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by MICHEL Jerome <je...@fr.thalesgroup.com> on 2014/08/14 14:09:45 UTC

Using Maven SNAPSHOT

Dear Karaf Team,

I would like to make a Custom Release of Karaf with the maven plugin. It works as expected with the Karaf 3.0.1 version, but we would like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is it available to public ? which is the url ?

Regards
JM

[@@ OPEN @@]


Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yes, Karaf 3.0.2 already uses the new region version which is on Central.

Not yet for the log, I will take a look later today.

Regards
JB

On 08/18/2014 04:27 PM, CLEMENT Jean-Philippe wrote:
> Ok, so I guess it is a temporary issue which will be fixed in the release, correct?
>
> Did you have time to take a look at the logs are figure out what makes Karaf freeze?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 18 août 2014 15:39
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> In Karaf 3.0.1, in the system repo, you have region with the artifact that you are looking for:
>
> system/org/eclipse/equinox/region/1.0.0.v20110506
>
> That's why smx-m2 repo is not required.
>
> In your case, I suspect that the system repo doesn't contain the region artifact, and so it tries to resolve the artifact remotely. As this artifact (in this version) is only available on smx-m2 repo, you need the repo.
>
> Regards
> JB
>
> On 08/18/2014 03:09 PM, CLEMENT Jean-Philippe wrote:
>> Please find the settings.xml, pom.xml and debug logs in the attached zip.
>>
>> I'm wondering why the smx-m2 repo is not configured by default as it seems to be mandatory, and why Karaf does not use the Maven settings.xml?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18
>> août 2014 14:43 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> OK, that's your issue: the smx-m2 repository has to be in the file as region is located there.
>>
>> About the startup freeze, do you have something in the log
>> (data/log/karaf.log) in DEBUG ?
>> Can you send it to me ?
>>
>> Regards
>> JB
>>
>> On 08/18/2014 02:31 PM, CLEMENT Jean-Philippe wrote:
>>> The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.
>>>
>>> This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18
>>> août 2014 10:21 À : user@karaf.apache.org Objet : Re: Using Maven
>>> SNAPSHOT
>>>
>>> Hi JP,
>>>
>>> my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:
>>>
>>> org.ops4j.pax.url.mvn.repositories= \
>>>         http://repo1.maven.org/maven2@id=central, \
>>>
>>> http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
>>>
>>> http://repository.springsource.com/maven/bundles/release@id=springsou
>>> r
>>> ce.release,
>>> \
>>>
>>> http://repository.springsource.com/maven/bundles/external@id=springso
>>> u
>>> rce.external,
>>> \
>>>
>>> https://oss.sonatype.org/content/repositories/releases/@id=sonatype
>>>
>>> especially the m2-repo one.
>>>
>>> Regards
>>> JB
>>>
>>> On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
>>>> Sorry, I don't really understand the question :)
>>>>
>>>> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>>>>
>>>> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>>>>
>>>> Is there anything more required in order to build a distribution of Karaf?
>>>>
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>>> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven
>>>> SNAPSHOT
>>>>
>>>> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>>>>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>>>>
>>>>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>>>>
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 14 août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using
>>>>> Maven SNAPSHOT
>>>>>
>>>>> Hi JP,
>>>>>
>>>>> the artifact is on the SMX m2-repo:
>>>>>
>>>>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equi
>>>>> n
>>>>> o
>>>>> x
>>>>> /region/1.0.0.v20110506/
>>>>>
>>>>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>>>>
>>>>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>>>>
>>>>> I agree with you regarding the distribution, it was just to be sure
>>>>> that it's the purpose ;)
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>>>>> Hi Jean-Baptiste,
>>>>>>
>>>>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>>>>
>>>>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>>>>
>>>>>> JP
>>>>>>
>>>>>> [@@ OPEN @@]
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 14 août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using
>>>>>> Maven SNAPSHOT
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>>>>
>>>>>> <repository>
>>>>>>         <id>smx-m2</id>
>>>>>>         <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>>>>         ...
>>>>>> </repository>
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>>>>
>>>>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>>>>
>>>>>>> <settings>
>>>>>>> 	<profiles>
>>>>>>> 		<profile>
>>>>>>> 			<id>global</id>
>>>>>>> 			<repositories>
>>>>>>> 				<repository>
>>>>>>> 					<id>maven-central</id>
>>>>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>>>>> 					<releases>
>>>>>>> 						<enabled>true</enabled>
>>>>>>> 					</releases>
>>>>>>> 					<snapshots>
>>>>>>> 						<enabled>false</enabled>
>>>>>>> 					</snapshots>
>>>>>>> 				</repository>
>>>>>>> 				<repository>
>>>>>>> 					<id>apache-snapshots</id>
>>>>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>>>>> 					<releases>
>>>>>>> 						<enabled>false</enabled>
>>>>>>> 					</releases>
>>>>>>> 					<snapshots>
>>>>>>> 						<enabled>true</enabled>
>>>>>>> 					</snapshots>
>>>>>>> 				</repository>
>>>>>>> 			</repositories>
>>>>>>> 		</profile>
>>>>>>> 	</profiles>
>>>>>>>
>>>>>>> 	<activeProfiles>
>>>>>>> 		<activeProfile>global</activeProfile>
>>>>>>> 	</activeProfiles>
>>>>>>> </settings>
>>>>>>>
>>>>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>>>>
>>>>>>> Regards
>>>>>>> J.
>>>>>>>
>>>>>>> [@@ THALES GROUP INTERNAL @@]
>>>>>>>
>>>>>>> -----Message d'origine-----
>>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using
>>>>>>> Maven SNAPSHOT
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> the SNAPSHOTs repo is there:
>>>>>>>
>>>>>>> https://repository.apache.org/content/groups/snapshots/
>>>>>>>
>>>>>>> I will deploy an updated SNAPSHOT soon.
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>>>>> Dear Karaf Team,
>>>>>>>>
>>>>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>>>>> It works as expected with the Karaf 3.0.1 version, but we would
>>>>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot
>>>>>>>> repository, is it available to public ? which is the url ?
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> JM
>>>>>>>>
>>>>>>>> [@@ OPEN @@]
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Jean-Baptiste Onofré
>>>>>>> jbonofre@apache.org
>>>>>>> http://blog.nanthrax.net
>>>>>>> Talend - http://www.talend.com
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Ok, so I guess it is a temporary issue which will be fixed in the release, correct?

Did you have time to take a look at the logs are figure out what makes Karaf freeze?

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : lundi 18 août 2014 15:39
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

In Karaf 3.0.1, in the system repo, you have region with the artifact that you are looking for:

system/org/eclipse/equinox/region/1.0.0.v20110506

That's why smx-m2 repo is not required.

In your case, I suspect that the system repo doesn't contain the region artifact, and so it tries to resolve the artifact remotely. As this artifact (in this version) is only available on smx-m2 repo, you need the repo.

Regards
JB

On 08/18/2014 03:09 PM, CLEMENT Jean-Philippe wrote:
> Please find the settings.xml, pom.xml and debug logs in the attached zip.
>
> I'm wondering why the smx-m2 repo is not configured by default as it seems to be mandatory, and why Karaf does not use the Maven settings.xml?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18 
> août 2014 14:43 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> OK, that's your issue: the smx-m2 repository has to be in the file as region is located there.
>
> About the startup freeze, do you have something in the log
> (data/log/karaf.log) in DEBUG ?
> Can you send it to me ?
>
> Regards
> JB
>
> On 08/18/2014 02:31 PM, CLEMENT Jean-Philippe wrote:
>> The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.
>>
>> This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18 
>> août 2014 10:21 À : user@karaf.apache.org Objet : Re: Using Maven 
>> SNAPSHOT
>>
>> Hi JP,
>>
>> my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:
>>
>> org.ops4j.pax.url.mvn.repositories= \
>>        http://repo1.maven.org/maven2@id=central, \
>>
>> http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
>>
>> http://repository.springsource.com/maven/bundles/release@id=springsou
>> r
>> ce.release,
>> \
>>
>> http://repository.springsource.com/maven/bundles/external@id=springso
>> u
>> rce.external,
>> \
>>
>> https://oss.sonatype.org/content/repositories/releases/@id=sonatype
>>
>> especially the m2-repo one.
>>
>> Regards
>> JB
>>
>> On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
>>> Sorry, I don't really understand the question :)
>>>
>>> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>>>
>>> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>>>
>>> Is there anything more required in order to build a distribution of Karaf?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>>> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven 
>>> SNAPSHOT
>>>
>>> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>>>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>>>
>>>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>>>
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>> 14 août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using 
>>>> Maven SNAPSHOT
>>>>
>>>> Hi JP,
>>>>
>>>> the artifact is on the SMX m2-repo:
>>>>
>>>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equi
>>>> n
>>>> o
>>>> x
>>>> /region/1.0.0.v20110506/
>>>>
>>>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>>>
>>>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>>>
>>>> I agree with you regarding the distribution, it was just to be sure 
>>>> that it's the purpose ;)
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>>>> Hi Jean-Baptiste,
>>>>>
>>>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>>>
>>>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>>>
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 14 août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using 
>>>>> Maven SNAPSHOT
>>>>>
>>>>> Hi,
>>>>>
>>>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>>>
>>>>> <repository>
>>>>>        <id>smx-m2</id>
>>>>>        <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>>>        ...
>>>>> </repository>
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>>>
>>>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>>>
>>>>>> <settings>
>>>>>> 	<profiles>
>>>>>> 		<profile>
>>>>>> 			<id>global</id>
>>>>>> 			<repositories>
>>>>>> 				<repository>
>>>>>> 					<id>maven-central</id>
>>>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>>>> 					<releases>
>>>>>> 						<enabled>true</enabled>
>>>>>> 					</releases>
>>>>>> 					<snapshots>
>>>>>> 						<enabled>false</enabled>
>>>>>> 					</snapshots>
>>>>>> 				</repository>
>>>>>> 				<repository>
>>>>>> 					<id>apache-snapshots</id>
>>>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>>>> 					<releases>
>>>>>> 						<enabled>false</enabled>
>>>>>> 					</releases>
>>>>>> 					<snapshots>
>>>>>> 						<enabled>true</enabled>
>>>>>> 					</snapshots>
>>>>>> 				</repository>
>>>>>> 			</repositories>
>>>>>> 		</profile>
>>>>>> 	</profiles>
>>>>>>
>>>>>> 	<activeProfiles>
>>>>>> 		<activeProfile>global</activeProfile>
>>>>>> 	</activeProfiles>
>>>>>> </settings>
>>>>>>
>>>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>>>
>>>>>> Regards
>>>>>> J.
>>>>>>
>>>>>> [@@ THALES GROUP INTERNAL @@]
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using 
>>>>>> Maven SNAPSHOT
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> the SNAPSHOTs repo is there:
>>>>>>
>>>>>> https://repository.apache.org/content/groups/snapshots/
>>>>>>
>>>>>> I will deploy an updated SNAPSHOT soon.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>>>> Dear Karaf Team,
>>>>>>>
>>>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>>>> It works as expected with the Karaf 3.0.1 version, but we would 
>>>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot 
>>>>>>> repository, is it available to public ? which is the url ?
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> JM
>>>>>>>
>>>>>>> [@@ OPEN @@]
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
In Karaf 3.0.1, in the system repo, you have region with the artifact 
that you are looking for:

system/org/eclipse/equinox/region/1.0.0.v20110506

That's why smx-m2 repo is not required.

In your case, I suspect that the system repo doesn't contain the region 
artifact, and so it tries to resolve the artifact remotely. As this 
artifact (in this version) is only available on smx-m2 repo, you need 
the repo.

Regards
JB

On 08/18/2014 03:09 PM, CLEMENT Jean-Philippe wrote:
> Please find the settings.xml, pom.xml and debug logs in the attached zip.
>
> I'm wondering why the smx-m2 repo is not configured by default as it seems to be mandatory, and why Karaf does not use the Maven settings.xml?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 18 août 2014 14:43
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> OK, that's your issue: the smx-m2 repository has to be in the file as region is located there.
>
> About the startup freeze, do you have something in the log
> (data/log/karaf.log) in DEBUG ?
> Can you send it to me ?
>
> Regards
> JB
>
> On 08/18/2014 02:31 PM, CLEMENT Jean-Philippe wrote:
>> The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.
>>
>> This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18
>> août 2014 10:21 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> Hi JP,
>>
>> my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:
>>
>> org.ops4j.pax.url.mvn.repositories= \
>>        http://repo1.maven.org/maven2@id=central, \
>>
>> http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
>>
>> http://repository.springsource.com/maven/bundles/release@id=springsour
>> ce.release,
>> \
>>
>> http://repository.springsource.com/maven/bundles/external@id=springsou
>> rce.external,
>> \
>>
>> https://oss.sonatype.org/content/repositories/releases/@id=sonatype
>>
>> especially the m2-repo one.
>>
>> Regards
>> JB
>>
>> On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
>>> Sorry, I don't really understand the question :)
>>>
>>> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>>>
>>> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>>>
>>> Is there anything more required in order to build a distribution of Karaf?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven
>>> SNAPSHOT
>>>
>>> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>>>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>>>
>>>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>>>
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>>> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven
>>>> SNAPSHOT
>>>>
>>>> Hi JP,
>>>>
>>>> the artifact is on the SMX m2-repo:
>>>>
>>>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equin
>>>> o
>>>> x
>>>> /region/1.0.0.v20110506/
>>>>
>>>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>>>
>>>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>>>
>>>> I agree with you regarding the distribution, it was just to be sure
>>>> that it's the purpose ;)
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>>>> Hi Jean-Baptiste,
>>>>>
>>>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>>>
>>>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>>>
>>>>> JP
>>>>>
>>>>> [@@ OPEN @@]
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 14 août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using
>>>>> Maven SNAPSHOT
>>>>>
>>>>> Hi,
>>>>>
>>>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>>>
>>>>> <repository>
>>>>>        <id>smx-m2</id>
>>>>>        <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>>>        ...
>>>>> </repository>
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>>>
>>>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>>>
>>>>>> <settings>
>>>>>> 	<profiles>
>>>>>> 		<profile>
>>>>>> 			<id>global</id>
>>>>>> 			<repositories>
>>>>>> 				<repository>
>>>>>> 					<id>maven-central</id>
>>>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>>>> 					<releases>
>>>>>> 						<enabled>true</enabled>
>>>>>> 					</releases>
>>>>>> 					<snapshots>
>>>>>> 						<enabled>false</enabled>
>>>>>> 					</snapshots>
>>>>>> 				</repository>
>>>>>> 				<repository>
>>>>>> 					<id>apache-snapshots</id>
>>>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>>>> 					<releases>
>>>>>> 						<enabled>false</enabled>
>>>>>> 					</releases>
>>>>>> 					<snapshots>
>>>>>> 						<enabled>true</enabled>
>>>>>> 					</snapshots>
>>>>>> 				</repository>
>>>>>> 			</repositories>
>>>>>> 		</profile>
>>>>>> 	</profiles>
>>>>>>
>>>>>> 	<activeProfiles>
>>>>>> 		<activeProfile>global</activeProfile>
>>>>>> 	</activeProfiles>
>>>>>> </settings>
>>>>>>
>>>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>>>
>>>>>> Regards
>>>>>> J.
>>>>>>
>>>>>> [@@ THALES GROUP INTERNAL @@]
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using
>>>>>> Maven SNAPSHOT
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> the SNAPSHOTs repo is there:
>>>>>>
>>>>>> https://repository.apache.org/content/groups/snapshots/
>>>>>>
>>>>>> I will deploy an updated SNAPSHOT soon.
>>>>>>
>>>>>> Regards
>>>>>> JB
>>>>>>
>>>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>>>> Dear Karaf Team,
>>>>>>>
>>>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>>>> It works as expected with the Karaf 3.0.1 version, but we would
>>>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot
>>>>>>> repository, is it available to public ? which is the url ?
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> JM
>>>>>>>
>>>>>>> [@@ OPEN @@]
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Jean-Baptiste Onofré
>>>>>> jbonofre@apache.org
>>>>>> http://blog.nanthrax.net
>>>>>> Talend - http://www.talend.com
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Please find the settings.xml, pom.xml and debug logs in the attached zip.

I'm wondering why the smx-m2 repo is not configured by default as it seems to be mandatory, and why Karaf does not use the Maven settings.xml?

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : lundi 18 août 2014 14:43
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

OK, that's your issue: the smx-m2 repository has to be in the file as region is located there.

About the startup freeze, do you have something in the log
(data/log/karaf.log) in DEBUG ?
Can you send it to me ?

Regards
JB

On 08/18/2014 02:31 PM, CLEMENT Jean-Philippe wrote:
> The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.
>
> This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 18 
> août 2014 10:21 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> Hi JP,
>
> my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:
>
> org.ops4j.pax.url.mvn.repositories= \
>       http://repo1.maven.org/maven2@id=central, \
>       
> http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
>
> http://repository.springsource.com/maven/bundles/release@id=springsour
> ce.release,
> \
>
> http://repository.springsource.com/maven/bundles/external@id=springsou
> rce.external,
> \
>       
> https://oss.sonatype.org/content/repositories/releases/@id=sonatype
>
> especially the m2-repo one.
>
> Regards
> JB
>
> On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
>> Sorry, I don't really understand the question :)
>>
>> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>>
>> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>>
>> Is there anything more required in order to build a distribution of Karaf?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven 
>> SNAPSHOT
>>
>> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>>
>> Regards
>> JB
>>
>> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>>
>>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>>> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven 
>>> SNAPSHOT
>>>
>>> Hi JP,
>>>
>>> the artifact is on the SMX m2-repo:
>>>
>>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equin
>>> o
>>> x
>>> /region/1.0.0.v20110506/
>>>
>>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>>
>>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>>
>>> I agree with you regarding the distribution, it was just to be sure 
>>> that it's the purpose ;)
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>>> Hi Jean-Baptiste,
>>>>
>>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>>
>>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>>
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>> 14 août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using 
>>>> Maven SNAPSHOT
>>>>
>>>> Hi,
>>>>
>>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>>
>>>> <repository>
>>>>       <id>smx-m2</id>
>>>>       <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>>       ...
>>>> </repository>
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>>
>>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>>
>>>>> <settings>
>>>>> 	<profiles>
>>>>> 		<profile>
>>>>> 			<id>global</id>
>>>>> 			<repositories>
>>>>> 				<repository>
>>>>> 					<id>maven-central</id>
>>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>>> 					<releases>
>>>>> 						<enabled>true</enabled>
>>>>> 					</releases>
>>>>> 					<snapshots>
>>>>> 						<enabled>false</enabled>
>>>>> 					</snapshots>
>>>>> 				</repository>
>>>>> 				<repository>
>>>>> 					<id>apache-snapshots</id>
>>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>>> 					<releases>
>>>>> 						<enabled>false</enabled>
>>>>> 					</releases>
>>>>> 					<snapshots>
>>>>> 						<enabled>true</enabled>
>>>>> 					</snapshots>
>>>>> 				</repository>
>>>>> 			</repositories>
>>>>> 		</profile>
>>>>> 	</profiles>
>>>>>
>>>>> 	<activeProfiles>
>>>>> 		<activeProfile>global</activeProfile>
>>>>> 	</activeProfiles>
>>>>> </settings>
>>>>>
>>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>>
>>>>> Regards
>>>>> J.
>>>>>
>>>>> [@@ THALES GROUP INTERNAL @@]
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using 
>>>>> Maven SNAPSHOT
>>>>>
>>>>> Hi,
>>>>>
>>>>> the SNAPSHOTs repo is there:
>>>>>
>>>>> https://repository.apache.org/content/groups/snapshots/
>>>>>
>>>>> I will deploy an updated SNAPSHOT soon.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>>> Dear Karaf Team,
>>>>>>
>>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>>> It works as expected with the Karaf 3.0.1 version, but we would 
>>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot 
>>>>>> repository, is it available to public ? which is the url ?
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> JM
>>>>>>
>>>>>> [@@ OPEN @@]
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
OK, that's your issue: the smx-m2 repository has to be in the file as 
region is located there.

About the startup freeze, do you have something in the log 
(data/log/karaf.log) in DEBUG ?
Can you send it to me ?

Regards
JB

On 08/18/2014 02:31 PM, CLEMENT Jean-Philippe wrote:
> The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.
>
> This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 18 août 2014 10:21
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Hi JP,
>
> my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:
>
> org.ops4j.pax.url.mvn.repositories= \
>       http://repo1.maven.org/maven2@id=central, \
>       http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
>
> http://repository.springsource.com/maven/bundles/release@id=springsource.release,
> \
>
> http://repository.springsource.com/maven/bundles/external@id=springsource.external,
> \
>       https://oss.sonatype.org/content/repositories/releases/@id=sonatype
>
> especially the m2-repo one.
>
> Regards
> JB
>
> On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
>> Sorry, I don't really understand the question :)
>>
>> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>>
>> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>>
>> Is there anything more required in order to build a distribution of Karaf?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>>
>> Regards
>> JB
>>
>> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>>
>>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>>
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven
>>> SNAPSHOT
>>>
>>> Hi JP,
>>>
>>> the artifact is on the SMX m2-repo:
>>>
>>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equino
>>> x
>>> /region/1.0.0.v20110506/
>>>
>>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>>
>>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>>
>>> I agree with you regarding the distribution, it was just to be sure
>>> that it's the purpose ;)
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>>> Hi Jean-Baptiste,
>>>>
>>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>>
>>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>>
>>>> JP
>>>>
>>>> [@@ OPEN @@]
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>>> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven
>>>> SNAPSHOT
>>>>
>>>> Hi,
>>>>
>>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>>
>>>> <repository>
>>>>       <id>smx-m2</id>
>>>>       <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>>       ...
>>>> </repository>
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>>
>>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>>
>>>>> <settings>
>>>>> 	<profiles>
>>>>> 		<profile>
>>>>> 			<id>global</id>
>>>>> 			<repositories>
>>>>> 				<repository>
>>>>> 					<id>maven-central</id>
>>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>>> 					<releases>
>>>>> 						<enabled>true</enabled>
>>>>> 					</releases>
>>>>> 					<snapshots>
>>>>> 						<enabled>false</enabled>
>>>>> 					</snapshots>
>>>>> 				</repository>
>>>>> 				<repository>
>>>>> 					<id>apache-snapshots</id>
>>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>>> 					<releases>
>>>>> 						<enabled>false</enabled>
>>>>> 					</releases>
>>>>> 					<snapshots>
>>>>> 						<enabled>true</enabled>
>>>>> 					</snapshots>
>>>>> 				</repository>
>>>>> 			</repositories>
>>>>> 		</profile>
>>>>> 	</profiles>
>>>>>
>>>>> 	<activeProfiles>
>>>>> 		<activeProfile>global</activeProfile>
>>>>> 	</activeProfiles>
>>>>> </settings>
>>>>>
>>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>>
>>>>> Regards
>>>>> J.
>>>>>
>>>>> [@@ THALES GROUP INTERNAL @@]
>>>>>
>>>>> -----Message d'origine-----
>>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi
>>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using
>>>>> Maven SNAPSHOT
>>>>>
>>>>> Hi,
>>>>>
>>>>> the SNAPSHOTs repo is there:
>>>>>
>>>>> https://repository.apache.org/content/groups/snapshots/
>>>>>
>>>>> I will deploy an updated SNAPSHOT soon.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>>> Dear Karaf Team,
>>>>>>
>>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>>> It works as expected with the Karaf 3.0.1 version, but we would
>>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot
>>>>>> repository, is it available to public ? which is the url ?
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> JM
>>>>>>
>>>>>> [@@ OPEN @@]
>>>>>>
>>>>>
>>>>> --
>>>>> Jean-Baptiste Onofré
>>>>> jbonofre@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
The etc found in the generated zip distribution contains the org.ops4j.pax.url.mvn.cfg file you mentioned.

This file lists some URLs but not the "smx-m2" one. If I add it, Karaf starts with no error in the log but still freezes. What I call freeze is pushing keys do not display anything. I don't know why. Is it because some features are missing or because I use a JRE?

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : lundi 18 août 2014 10:21
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

Hi JP,

my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have something like:

org.ops4j.pax.url.mvn.repositories= \
     http://repo1.maven.org/maven2@id=central, \
     http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
 
http://repository.springsource.com/maven/bundles/release@id=springsource.release,
\
 
http://repository.springsource.com/maven/bundles/external@id=springsource.external,
\
     https://oss.sonatype.org/content/repositories/releases/@id=sonatype

especially the m2-repo one.

Regards
JB

On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
> Sorry, I don't really understand the question :)
>
> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>
> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>
> Is there anything more required in order to build a distribution of Karaf?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
> août 2014 18:40 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>
> Regards
> JB
>
> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>
>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven 
>> SNAPSHOT
>>
>> Hi JP,
>>
>> the artifact is on the SMX m2-repo:
>>
>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equino
>> x
>> /region/1.0.0.v20110506/
>>
>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>
>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>
>> I agree with you regarding the distribution, it was just to be sure 
>> that it's the purpose ;)
>>
>> Regards
>> JB
>>
>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>> Hi Jean-Baptiste,
>>>
>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>
>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>>> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven 
>>> SNAPSHOT
>>>
>>> Hi,
>>>
>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>
>>> <repository>
>>>      <id>smx-m2</id>
>>>      <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>      ...
>>> </repository>
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>
>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>
>>>> <settings>
>>>> 	<profiles>
>>>> 		<profile>
>>>> 			<id>global</id>
>>>> 			<repositories>
>>>> 				<repository>
>>>> 					<id>maven-central</id>
>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>> 					<releases>
>>>> 						<enabled>true</enabled>
>>>> 					</releases>
>>>> 					<snapshots>
>>>> 						<enabled>false</enabled>
>>>> 					</snapshots>
>>>> 				</repository>
>>>> 				<repository>
>>>> 					<id>apache-snapshots</id>
>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>> 					<releases>
>>>> 						<enabled>false</enabled>
>>>> 					</releases>
>>>> 					<snapshots>
>>>> 						<enabled>true</enabled>
>>>> 					</snapshots>
>>>> 				</repository>
>>>> 			</repositories>
>>>> 		</profile>
>>>> 	</profiles>
>>>>
>>>> 	<activeProfiles>
>>>> 		<activeProfile>global</activeProfile>
>>>> 	</activeProfiles>
>>>> </settings>
>>>>
>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>
>>>> Regards
>>>> J.
>>>>
>>>> [@@ THALES GROUP INTERNAL @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 
>>>> 14 août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using 
>>>> Maven SNAPSHOT
>>>>
>>>> Hi,
>>>>
>>>> the SNAPSHOTs repo is there:
>>>>
>>>> https://repository.apache.org/content/groups/snapshots/
>>>>
>>>> I will deploy an updated SNAPSHOT soon.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>> Dear Karaf Team,
>>>>>
>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>> It works as expected with the Karaf 3.0.1 version, but we would 
>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot 
>>>>> repository, is it available to public ? which is the url ?
>>>>>
>>>>> Regards
>>>>>
>>>>> JM
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

my question is: in the etc/org.ops4j.pax.url.mvn.cfg, do you have 
something like:

org.ops4j.pax.url.mvn.repositories= \
     http://repo1.maven.org/maven2@id=central, \
     http://svn.apache.org/repos/asf/servicemix/m2-repo@id=servicemix, \
 
http://repository.springsource.com/maven/bundles/release@id=springsource.release, 
\
 
http://repository.springsource.com/maven/bundles/external@id=springsource.external, 
\
     https://oss.sonatype.org/content/repositories/releases/@id=sonatype

especially the m2-repo one.

Regards
JB

On 08/18/2014 10:13 AM, CLEMENT Jean-Philippe wrote:
> Sorry, I don't really understand the question :)
>
> I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.
>
> I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.
>
> Is there anything more required in order to build a distribution of Karaf?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 14 août 2014 18:40
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?
>
> Regards
> JB
>
> On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
>> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>>
>> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> Hi JP,
>>
>> the artifact is on the SMX m2-repo:
>>
>> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equinox
>> /region/1.0.0.v20110506/
>>
>> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>>
>> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>>
>> I agree with you regarding the distribution, it was just to be sure
>> that it's the purpose ;)
>>
>> Regards
>> JB
>>
>> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>>> Hi Jean-Baptiste,
>>>
>>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>>
>>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>>
>>> JP
>>>
>>> [@@ OPEN @@]
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven
>>> SNAPSHOT
>>>
>>> Hi,
>>>
>>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>>
>>> <repository>
>>>      <id>smx-m2</id>
>>>      <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>>      ...
>>> </repository>
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>>
>>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>>
>>>> <settings>
>>>> 	<profiles>
>>>> 		<profile>
>>>> 			<id>global</id>
>>>> 			<repositories>
>>>> 				<repository>
>>>> 					<id>maven-central</id>
>>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>>> 					<releases>
>>>> 						<enabled>true</enabled>
>>>> 					</releases>
>>>> 					<snapshots>
>>>> 						<enabled>false</enabled>
>>>> 					</snapshots>
>>>> 				</repository>
>>>> 				<repository>
>>>> 					<id>apache-snapshots</id>
>>>> 					<url>http://repository.apache.org/snapshots</url>
>>>> 					<releases>
>>>> 						<enabled>false</enabled>
>>>> 					</releases>
>>>> 					<snapshots>
>>>> 						<enabled>true</enabled>
>>>> 					</snapshots>
>>>> 				</repository>
>>>> 			</repositories>
>>>> 		</profile>
>>>> 	</profiles>
>>>>
>>>> 	<activeProfiles>
>>>> 		<activeProfile>global</activeProfile>
>>>> 	</activeProfiles>
>>>> </settings>
>>>>
>>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>>
>>>> Regards
>>>> J.
>>>>
>>>> [@@ THALES GROUP INTERNAL @@]
>>>>
>>>> -----Message d'origine-----
>>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>>> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven
>>>> SNAPSHOT
>>>>
>>>> Hi,
>>>>
>>>> the SNAPSHOTs repo is there:
>>>>
>>>> https://repository.apache.org/content/groups/snapshots/
>>>>
>>>> I will deploy an updated SNAPSHOT soon.
>>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>>> Dear Karaf Team,
>>>>>
>>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>>> It works as expected with the Karaf 3.0.1 version, but we would
>>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot
>>>>> repository, is it available to public ? which is the url ?
>>>>>
>>>>> Regards
>>>>>
>>>>> JM
>>>>>
>>>>> [@@ OPEN @@]
>>>>>
>>>>
>>>> --
>>>> Jean-Baptiste Onofré
>>>> jbonofre@apache.org
>>>> http://blog.nanthrax.net
>>>> Talend - http://www.talend.com
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Sorry, I don't really understand the question :)

I'm trying to assemble Karaf (custom, but for now only Karaf) so I don't have any "etc" directory nor configuration file.

I followed the instruction from http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html in copying the example then starting Karaf, and got the error message in the log.

Is there anything more required in order to build a distribution of Karaf?

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : jeudi 14 août 2014 18:40
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?

Regards
JB

On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>
> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
> août 2014 16:03 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> Hi JP,
>
> the artifact is on the SMX m2-repo:
>
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equinox
> /region/1.0.0.v20110506/
>
> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>
> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>
> I agree with you regarding the distribution, it was just to be sure 
> that it's the purpose ;)
>
> Regards
> JB
>
> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>> Hi Jean-Baptiste,
>>
>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>
>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>
>> JP
>>
>> [@@ OPEN @@]
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven 
>> SNAPSHOT
>>
>> Hi,
>>
>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>
>> <repository>
>>     <id>smx-m2</id>
>>     <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>     ...
>> </repository>
>>
>> Regards
>> JB
>>
>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>
>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>
>>> <settings>
>>> 	<profiles>
>>> 		<profile>
>>> 			<id>global</id>
>>> 			<repositories>
>>> 				<repository>
>>> 					<id>maven-central</id>
>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>> 					<releases>
>>> 						<enabled>true</enabled>
>>> 					</releases>
>>> 					<snapshots>
>>> 						<enabled>false</enabled>
>>> 					</snapshots>
>>> 				</repository>
>>> 				<repository>
>>> 					<id>apache-snapshots</id>
>>> 					<url>http://repository.apache.org/snapshots</url>
>>> 					<releases>
>>> 						<enabled>false</enabled>
>>> 					</releases>
>>> 					<snapshots>
>>> 						<enabled>true</enabled>
>>> 					</snapshots>
>>> 				</repository>
>>> 			</repositories>
>>> 		</profile>
>>> 	</profiles>
>>>
>>> 	<activeProfiles>
>>> 		<activeProfile>global</activeProfile>
>>> 	</activeProfiles>
>>> </settings>
>>>
>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>
>>> Regards
>>> J.
>>>
>>> [@@ THALES GROUP INTERNAL @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>>> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven 
>>> SNAPSHOT
>>>
>>> Hi,
>>>
>>> the SNAPSHOTs repo is there:
>>>
>>> https://repository.apache.org/content/groups/snapshots/
>>>
>>> I will deploy an updated SNAPSHOT soon.
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>> Dear Karaf Team,
>>>>
>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>> It works as expected with the Karaf 3.0.1 version, but we would 
>>>> like to use the 3.0.2-SNAPSHOT. We didn't find the snapshot 
>>>> repository, is it available to public ? which is the url ?
>>>>
>>>> Regards
>>>>
>>>> JM
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Do you have the smx-m2 in etc/org.ops4j.pax.url.mvn.cfg ?

Regards
JB

On 08/14/2014 04:32 PM, CLEMENT Jean-Philippe wrote:
> Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.
>
> The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 14 août 2014 16:03
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Hi JP,
>
> the artifact is on the SMX m2-repo:
>
> http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equinox/region/1.0.0.v20110506/
>
> I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.
>
> Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?
>
> I agree with you regarding the distribution, it was just to be sure that it's the purpose ;)
>
> Regards
> JB
>
> On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
>> Hi Jean-Baptiste,
>>
>> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>>
>> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>>
>> JP
>>
>> [@@ OPEN @@]
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> Hi,
>>
>> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>>
>> <repository>
>>     <id>smx-m2</id>
>>     <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>>     ...
>> </repository>
>>
>> Regards
>> JB
>>
>> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>>
>>> We are using this settings.xml file which permits us to create the custom distribution :
>>>
>>> <settings>
>>> 	<profiles>
>>> 		<profile>
>>> 			<id>global</id>
>>> 			<repositories>
>>> 				<repository>
>>> 					<id>maven-central</id>
>>> 					<url>http://repo.maven.apache.org/maven2</url>
>>> 					<releases>
>>> 						<enabled>true</enabled>
>>> 					</releases>
>>> 					<snapshots>
>>> 						<enabled>false</enabled>
>>> 					</snapshots>
>>> 				</repository>
>>> 				<repository>
>>> 					<id>apache-snapshots</id>
>>> 					<url>http://repository.apache.org/snapshots</url>
>>> 					<releases>
>>> 						<enabled>false</enabled>
>>> 					</releases>
>>> 					<snapshots>
>>> 						<enabled>true</enabled>
>>> 					</snapshots>
>>> 				</repository>
>>> 			</repositories>
>>> 		</profile>
>>> 	</profiles>
>>>
>>> 	<activeProfiles>
>>> 		<activeProfile>global</activeProfile>
>>> 	</activeProfiles>
>>> </settings>
>>>
>>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>>
>>> Regards
>>> J.
>>>
>>> [@@ THALES GROUP INTERNAL @@]
>>>
>>> -----Message d'origine-----
>>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>>> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven
>>> SNAPSHOT
>>>
>>> Hi,
>>>
>>> the SNAPSHOTs repo is there:
>>>
>>> https://repository.apache.org/content/groups/snapshots/
>>>
>>> I will deploy an updated SNAPSHOT soon.
>>>
>>> Regards
>>> JB
>>>
>>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>>> Dear Karaf Team,
>>>>
>>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>>> It works as expected with the Karaf 3.0.1 version, but we would like
>>>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository,
>>>> is it available to public ? which is the url ?
>>>>
>>>> Regards
>>>>
>>>> JM
>>>>
>>>> [@@ OPEN @@]
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Both "smx-m2" release and snapshot are set to true. Karaf assembly works fine but the unpacked result freezes on startup with the "region" error message in the log.

The assembly and the execution are made on a special machine which has a direct access to the internet. This machine is running under Windows XP. Java version is a portable 1.7 JRE (Karaf complains about it but starts).

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : jeudi 14 août 2014 16:03
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

Hi JP,

the artifact is on the SMX m2-repo:

http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equinox/region/1.0.0.v20110506/

I don't use anything special (around that) in my settings.xml as the Karaf pom already refers to the smx-m2 repo.

Can you check that you enabled release/snapshot in the <repository/> section and double check the URL ?

I agree with you regarding the distribution, it was just to be sure that it's the purpose ;)

Regards
JB

On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
> Hi Jean-Baptiste,
>
> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>
> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>
> JP
>
> [@@ OPEN @@]
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
> août 2014 15:34 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> Hi,
>
> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>
> <repository>
>    <id>smx-m2</id>
>    <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>    ...
> </repository>
>
> Regards
> JB
>
> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>
>> We are using this settings.xml file which permits us to create the custom distribution :
>>
>> <settings>
>> 	<profiles>
>> 		<profile>
>> 			<id>global</id>
>> 			<repositories>
>> 				<repository>
>> 					<id>maven-central</id>
>> 					<url>http://repo.maven.apache.org/maven2</url>
>> 					<releases>
>> 						<enabled>true</enabled>
>> 					</releases>
>> 					<snapshots>
>> 						<enabled>false</enabled>
>> 					</snapshots>
>> 				</repository>
>> 				<repository>
>> 					<id>apache-snapshots</id>
>> 					<url>http://repository.apache.org/snapshots</url>
>> 					<releases>
>> 						<enabled>false</enabled>
>> 					</releases>
>> 					<snapshots>
>> 						<enabled>true</enabled>
>> 					</snapshots>
>> 				</repository>
>> 			</repositories>
>> 		</profile>
>> 	</profiles>
>>
>> 	<activeProfiles>
>> 		<activeProfile>global</activeProfile>
>> 	</activeProfiles>
>> </settings>
>>
>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>
>> Regards
>> J.
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
>> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven 
>> SNAPSHOT
>>
>> Hi,
>>
>> the SNAPSHOTs repo is there:
>>
>> https://repository.apache.org/content/groups/snapshots/
>>
>> I will deploy an updated SNAPSHOT soon.
>>
>> Regards
>> JB
>>
>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>> Dear Karaf Team,
>>>
>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>> It works as expected with the Karaf 3.0.1 version, but we would like 
>>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, 
>>> is it available to public ? which is the url ?
>>>
>>> Regards
>>>
>>> JM
>>>
>>> [@@ OPEN @@]
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,

the artifact is on the SMX m2-repo:

http://svn.apache.org/repos/asf/servicemix/m2-repo/org/eclipse/equinox/region/1.0.0.v20110506/

I don't use anything special (around that) in my settings.xml as the 
Karaf pom already refers to the smx-m2 repo.

Can you check that you enabled release/snapshot in the <repository/> 
section and double check the URL ?

I agree with you regarding the distribution, it was just to be sure that 
it's the purpose ;)

Regards
JB

On 08/14/2014 03:58 PM, CLEMENT Jean-Philippe wrote:
> Hi Jean-Baptiste,
>
> The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?
>
> We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?
>
> JP
>
> [@@ OPEN @@]
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 14 août 2014 15:34
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Hi,
>
> the equinox region 1.0 jar is on SMX M2 repo, so you have to add:
>
> <repository>
>    <id>smx-m2</id>
>    <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
>    ...
> </repository>
>
> Regards
> JB
>
> On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
>> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
>> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>>
>> We are using this settings.xml file which permits us to create the custom distribution :
>>
>> <settings>
>> 	<profiles>
>> 		<profile>
>> 			<id>global</id>
>> 			<repositories>
>> 				<repository>
>> 					<id>maven-central</id>
>> 					<url>http://repo.maven.apache.org/maven2</url>
>> 					<releases>
>> 						<enabled>true</enabled>
>> 					</releases>
>> 					<snapshots>
>> 						<enabled>false</enabled>
>> 					</snapshots>
>> 				</repository>
>> 				<repository>
>> 					<id>apache-snapshots</id>
>> 					<url>http://repository.apache.org/snapshots</url>
>> 					<releases>
>> 						<enabled>false</enabled>
>> 					</releases>
>> 					<snapshots>
>> 						<enabled>true</enabled>
>> 					</snapshots>
>> 				</repository>
>> 			</repositories>
>> 		</profile>
>> 	</profiles>
>>
>> 	<activeProfiles>
>> 		<activeProfile>global</activeProfile>
>> 	</activeProfiles>
>> </settings>
>>
>> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>>
>> Regards
>> J.
>>
>> [@@ THALES GROUP INTERNAL @@]
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14
>> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven
>> SNAPSHOT
>>
>> Hi,
>>
>> the SNAPSHOTs repo is there:
>>
>> https://repository.apache.org/content/groups/snapshots/
>>
>> I will deploy an updated SNAPSHOT soon.
>>
>> Regards
>> JB
>>
>> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>>> Dear Karaf Team,
>>>
>>> I would like to make a Custom Release of Karaf with the maven plugin.
>>> It works as expected with the Karaf 3.0.1 version, but we would like
>>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is
>>> it available to public ? which is the url ?
>>>
>>> Regards
>>>
>>> JM
>>>
>>> [@@ OPEN @@]
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi Jean-Baptiste,

The "smx-m2" repository was added in the .m2/settings.xml, but unfortunately the log is still complaining about missing "region" bundle. Don't know whether Karaf uses the settings.xml or not. Is it possible to obtain your settings.xml?

We are making a custom distribution in order to deliver a well-configured Karaf which includes our application. Seems it is made for, isn't it?

JP

[@@ OPEN @@]
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : jeudi 14 août 2014 15:34
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

Hi,

the equinox region 1.0 jar is on SMX M2 repo, so you have to add:

<repository>
  <id>smx-m2</id>
  <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
  ...
</repository>

Regards
JB

On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>
> We are using this settings.xml file which permits us to create the custom distribution :
>
> <settings>
> 	<profiles>
> 		<profile>
> 			<id>global</id>
> 			<repositories>
> 				<repository>
> 					<id>maven-central</id>
> 					<url>http://repo.maven.apache.org/maven2</url>
> 					<releases>
> 						<enabled>true</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>false</enabled>
> 					</snapshots>
> 				</repository>
> 				<repository>
> 					<id>apache-snapshots</id>
> 					<url>http://repository.apache.org/snapshots</url>
> 					<releases>
> 						<enabled>false</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>true</enabled>
> 					</snapshots>
> 				</repository>
> 			</repositories>
> 		</profile>
> 	</profiles>
>
> 	<activeProfiles>
> 		<activeProfile>global</activeProfile>
> 	</activeProfiles>
> </settings>
>
> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>
> Regards
> J.
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : jeudi 14 
> août 2014 14:15 À : user@karaf.apache.org Objet : Re: Using Maven 
> SNAPSHOT
>
> Hi,
>
> the SNAPSHOTs repo is there:
>
> https://repository.apache.org/content/groups/snapshots/
>
> I will deploy an updated SNAPSHOT soon.
>
> Regards
> JB
>
> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>> Dear Karaf Team,
>>
>> I would like to make a Custom Release of Karaf with the maven plugin.
>> It works as expected with the Karaf 3.0.1 version, but we would like 
>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is 
>> it available to public ? which is the url ?
>>
>> Regards
>>
>> JM
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

the equinox region 1.0 jar is on SMX M2 repo, so you have to add:

<repository>
  <id>smx-m2</id>
  <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
  ...
</repository>

Regards
JB

On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>
> We are using this settings.xml file which permits us to create the custom distribution :
>
> <settings>
> 	<profiles>
> 		<profile>
> 			<id>global</id>
> 			<repositories>
> 				<repository>
> 					<id>maven-central</id>
> 					<url>http://repo.maven.apache.org/maven2</url>
> 					<releases>
> 						<enabled>true</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>false</enabled>
> 					</snapshots>
> 				</repository>
> 				<repository>
> 					<id>apache-snapshots</id>
> 					<url>http://repository.apache.org/snapshots</url>
> 					<releases>
> 						<enabled>false</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>true</enabled>
> 					</snapshots>
> 				</repository>
> 			</repositories>
> 		</profile>
> 	</profiles>
>
> 	<activeProfiles>
> 		<activeProfile>global</activeProfile>
> 	</activeProfiles>
> </settings>
>
> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>
> Regards
> J.
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 14 août 2014 14:15
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Hi,
>
> the SNAPSHOTs repo is there:
>
> https://repository.apache.org/content/groups/snapshots/
>
> I will deploy an updated SNAPSHOT soon.
>
> Regards
> JB
>
> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>> Dear Karaf Team,
>>
>> I would like to make a Custom Release of Karaf with the maven plugin.
>> It works as expected with the Karaf 3.0.1 version, but we would like
>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is
>> it available to public ? which is the url ?
>>
>> Regards
>>
>> JM
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
By the way Jerome,

why do you create a custom distro ? The Karaf standard distro doesn't 
match your requirements ?

Regards
JB

On 08/14/2014 03:31 PM, MICHEL Jerome wrote:
> After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
> 	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "
>
> We are using this settings.xml file which permits us to create the custom distribution :
>
> <settings>
> 	<profiles>
> 		<profile>
> 			<id>global</id>
> 			<repositories>
> 				<repository>
> 					<id>maven-central</id>
> 					<url>http://repo.maven.apache.org/maven2</url>
> 					<releases>
> 						<enabled>true</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>false</enabled>
> 					</snapshots>
> 				</repository>
> 				<repository>
> 					<id>apache-snapshots</id>
> 					<url>http://repository.apache.org/snapshots</url>
> 					<releases>
> 						<enabled>false</enabled>
> 					</releases>
> 					<snapshots>
> 						<enabled>true</enabled>
> 					</snapshots>
> 				</repository>
> 			</repositories>
> 		</profile>
> 	</profiles>
>
> 	<activeProfiles>
> 		<activeProfile>global</activeProfile>
> 	</activeProfiles>
> </settings>
>
> With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?
>
> Regards
> J.
>
> [@@ THALES GROUP INTERNAL @@]
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : jeudi 14 août 2014 14:15
> À : user@karaf.apache.org
> Objet : Re: Using Maven SNAPSHOT
>
> Hi,
>
> the SNAPSHOTs repo is there:
>
> https://repository.apache.org/content/groups/snapshots/
>
> I will deploy an updated SNAPSHOT soon.
>
> Regards
> JB
>
> On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
>> Dear Karaf Team,
>>
>> I would like to make a Custom Release of Karaf with the maven plugin.
>> It works as expected with the Karaf 3.0.1 version, but we would like
>> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is
>> it available to public ? which is the url ?
>>
>> Regards
>>
>> JM
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

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

RE: Using Maven SNAPSHOT

Posted by MICHEL Jerome <je...@fr.thalesgroup.com>.
After using the Karaf custom release we are able to create a zip file with the right version of karaf in it. But after launching it, karaf is apparently not founding an artifact as you can see in the log below :
	" artifactorg.eclipse.equinox:region:jar:1.0.0.v20110506:Could not find artifact org.eclipse.equinox:region:jar:1.0.0.v20110506 in defaultlocal "

We are using this settings.xml file which permits us to create the custom distribution :

<settings>
	<profiles>
		<profile>
			<id>global</id>
			<repositories>
				<repository>
					<id>maven-central</id>
					<url>http://repo.maven.apache.org/maven2</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
				<repository>
					<id>apache-snapshots</id>
					<url>http://repository.apache.org/snapshots</url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
					</snapshots>
				</repository>
			</repositories>
		</profile>
	</profiles>

	<activeProfiles>
		<activeProfile>global</activeProfile>
	</activeProfiles>
</settings>

With this error I think that we missed a server to help maven found all the artifacts. Do you know the minimum settings.xml file or maven servers for Karaf lanching ?

Regards
J.

[@@ THALES GROUP INTERNAL @@]

-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Envoyé : jeudi 14 août 2014 14:15
À : user@karaf.apache.org
Objet : Re: Using Maven SNAPSHOT

Hi,

the SNAPSHOTs repo is there:

https://repository.apache.org/content/groups/snapshots/

I will deploy an updated SNAPSHOT soon.

Regards
JB

On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
> Dear Karaf Team,
>
> I would like to make a Custom Release of Karaf with the maven plugin. 
> It works as expected with the Karaf 3.0.1 version, but we would like 
> to use the 3.0.2-SNAPSHOT. We didn't find the snapshot repository, is 
> it available to public ? which is the url ?
>
> Regards
>
> JM
>
> [@@ OPEN @@]
>

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

Re: Using Maven SNAPSHOT

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

the SNAPSHOTs repo is there:

https://repository.apache.org/content/groups/snapshots/

I will deploy an updated SNAPSHOT soon.

Regards
JB

On 08/14/2014 02:09 PM, MICHEL Jerome wrote:
> Dear Karaf Team,
>
> I would like to make a Custom Release of Karaf with the maven plugin. It
> works as expected with the Karaf 3.0.1 version, but we would like to use
> the 3.0.2-SNAPSHOT. We didn’t find the snapshot repository, is it
> available to public ? which is the url ?
>
> Regards
>
> JM
>
> [@@ OPEN @@]
>

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

Re: Using Maven SNAPSHOT

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi

the repository is available here:
http://repository.apache.org/snapshots/

Karaf 3.0.2 can be found at:
http://repository.apache.org/content/groups/snapshots/org/apache/karaf/apache-karaf/3.0.2-SNAPSHOT/

regards, Achim




2014-08-14 14:09 GMT+02:00 MICHEL Jerome <je...@fr.thalesgroup.com>:

> Dear Karaf Team,
>
>
>
> I would like to make a Custom Release of Karaf with the maven plugin. It
> works as expected with the Karaf 3.0.1 version, but we would like to use
> the 3.0.2-SNAPSHOT. We didn’t find the snapshot repository, is it available
> to public ? which is the url ?
>
>
>
> Regards
>
> JM
>
>
>
> [@@ OPEN @@]
>
>
>



-- 

Apache Member
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/>

Software Architect / Project Manager / Scrum Master