Re: Issue with building custom 4.3.0 distribution against my own Nexus 3

2021-04-01 Thread Jean-Baptiste Onofre
Hi Oleg,

I didn’t take a look yet.

I have "user support" planned today (Paul asked for help as well), so I’m 
completing 4.3.1 release and I will switch to "support" ;)

Regards
JB

> Le 2 avr. 2021 à 04:08, Oleg Cohen  a écrit :
> 
> Hi JB,
> 
> I wonder if you have any ideas on how to resolve it? Is there any way I can 
> provide a list of repositories explicitly?
> 
> Would really appreciate help on resolving this issue!
> 
> Best regards,
> Oleg 
> 
> Sent from my iPhone
> 
>> On Mar 30, 2021, at 7:16 AM, Oleg Cohen > > wrote:
>> 
>> Hi JB,
>> 
>> Here it is:
>> 
>> http://maven.apache.org/POM/4.0.0 
>> "
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
>> "
>>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>>  
>> http://maven.apache.org/xsd/maven-4.0.0.xsd 
>> ">
>> 
>>  4.0.0
>> 
>>  acme
>>  test
>> 
>>  1.0.1-SNAPSHOT
>> 
>>  karaf-assembly
>> 
>>  
>>  4.3.0
>>  1.7.30
>>  
>>  
>>  
>>  
>>  
>>  org.apache.karaf.tooling
>>  karaf-maven-plugin
>>  true
>>  
>>  
>> ${project.artifactId}
>>  
>>  wrap
>>  bundle
>>  config
>>  system
>>  feature
>>  package
>>  log
>>  ssh
>>  instance
>>  shell
>>  management
>>  service
>>  jaas
>>  deployer
>>  diagnostic
>>  scr
>>  http
>>  war
>>  
>>  
>>  
>>  
>>  eventadmin
>>  
>>  false
>>  false
>>  
>> ${project.build.directory}/assembly/karaf
>>  empower
>>  true
>>  
>>  
>>  
>> mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features
>>   
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>  org.eclipse.m2e
>>  
>> lifecycle-mapping
>>  1.0.0
>>  
>>  
>>  
>>  
>> 
>>  
>> 
>>  
>> 
>>  
>> org.apache.karaf.tooling
>>  
>> 
>>  
>> 
>>  
>> karaf-maven-plugin
>>  
>> 
>>  
>> 
>>  
>> [4.3.0,)
>>  
>> 
>>  
>> 
>>  
>> assembly
>>  

Re: Issue with building custom 4.3.0 distribution against my own Nexus 3

2021-04-01 Thread Oleg Cohen
Hi JB,

I wonder if you have any ideas on how to resolve it? Is there any way I can
provide a list of repositories explicitly?

Would really appreciate help on resolving this issue!

Best regards,
Oleg

Sent from my iPhone

On Mar 30, 2021, at 7:16 AM, Oleg Cohen  wrote:

Hi JB,

Here it is:

http://maven.apache.org/POM/4.0.0
"*
xmlns:xsi=*"http://www.w3.org/2001/XMLSchema-instance
"*
xsi:schemaLocation=*"http://maven.apache.org/POM/4.0.0

http://maven.apache.org/xsd/maven-4.0.0.xsd
"*>

4.0.0

acme
test

1.0.1-SNAPSHOT

karaf-assembly


4.3.0
1.7.30






org.apache.karaf.tooling
karaf-maven-plugin
true

${project.artifactId}

wrap
bundle
config
system
feature
package
log
ssh
instance
shell
management
service
jaas
deployer
diagnostic
scr
http
war




eventadmin

false
false
${project.build.directory}/assembly/karaf
empower
true



mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features










org.eclipse.m2e
lifecycle-mapping
1.0.0






org.apache.karaf.tooling


karaf-maven-plugin


[4.3.0,)


assembly


















org.apache.karaf.features
framework
${karaf.runtime.version}
kar




org.apache.karaf.features
framework
${karaf.runtime.version}
features
xml
runtime




org.apache.karaf.features
standard
${karaf.runtime.version}
features
xml




org.slf4j
slf4j-api
${slf4j.version}
provided



org.apache.camel.karaf
apache-camel
3.8.0
features
xml



io.hawt
hawtio-karaf
2.13.1
features
xml



org.ops4j.pax.cdi
pax-cdi-features
1.1.4
features
xml






Thank you!
Oleg

On Mar 30, 2021, at 12:12 AM, Jean-Baptiste Onofre  wrote:

Hi,

The range comes from as  in another feature I guess.

The warning is "normal" as Karaf plugin won’t scan all possible versions.
However, it should resolve a version.

What’s your pom xml ?

Regards
JB

Le 29 mars 2021 à 18:12, Oleg Cohen  a écrit :

Thank you! I was able to blacklist 1.0.0 as below, but [1,2) isn’t working
and I get this error: [WARNING] Matched URI can't use version ranges:
mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features

Where is it coming from and how can I override the entry list?




mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features
mvn:org.ops4j.pax.cdi/pax-cdi-features/[1,2)/xml/features




On Mar 29, 2021, at 11:41 AM, Jean-Baptiste Onofre  wrote:

1.1.4 is the last and clean (it should ;) )

Regards
JB

Le 29 mars 2021 à 16:33, Oleg Cohen  a écrit :

Hi JB,

It is a proxy. I have the artifact there, but I think the error is that the
artifact is too old. Which one is the right one to use?

Thank you!
Oleg

On Mar 29, 2021, at 10:23 AM, Jean-Baptiste Onofre  wrote:

Hi Oleg,

It seems that it can’t
download mvn:org.ops4j.pax.cdi/pax-cdi-features/1.0.0/xml/features resolved
based on the range.

I guess your Nexus repository is a proxy right ?

Regards
JB

Le 29 mars 2021 à 15:49, Oleg Cohen  a écrit :

Greetings,

I am getting the following error when trying to build a custom distribution
for Karaf v4.3.0 pointing to my own Nexus 3 repository. This works when I
use Maven Central.

Not sure what is causing the issue. Below is the error message. Is there a
way to specify v1.1.3 or v1.1.4 of pax-cdi-features to be used?

Would appreciate help on resolving this issue!

Best,
Oleg



*[WARNING] Error resolving artifact
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1,2): [Could not find
metadata org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml in local
(/Users/ocohen/.m2/repository), Could not transfer metadata
org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml from/to nexus
(https://nexus3.assurebridge.com/content/groups/public
): NotAfter: Sat May
30 06:48:38 EDT 2020, Could not transfer metadata
org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml from/to nexus
(https://nexus3.assurebridge.com/content/groups/public/
): NotAfter: Sat
May 30 06:48:38 EDT 2020]java.io.IOException: Error resolving artifact
org.ops4j.pax.cdi:pax-cdi-features:xml:features:[1,2): [Could not find
metadata org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml in local
(/Users/ocohen/.m2/repository), Could not transfer metadata
org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml from/to nexus
(https://nexus3.assurebridge.com/content/groups/public
): NotAfter: Sat May
30 06:48:38 EDT 2020, Could not transfer metadata
org.ops4j.pax.cdi:pax-cdi-features/maven-metadata.xml from/to nexus
(https://nexus3.assurebridge.com/content/groups/public/
): NotAfter: Sat
May 30 06:48:38 EDT 2020]*
at
org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException
(AetherBasedResolver.java:803)
at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve