Hi,

I guess you should add wagon as dependency of the karaf-maven-plugin execution.

Regards
JB

> Le 22 sept. 2021 à 09:45, Andre Schlegel-Tylla <andre.schle...@virtimo.de> a 
> écrit :
> 
> Hi JB,
> 
> I tried this:
> 
> <project>
>     <modelVersion>4.0.0</modelVersion>
>     <artifactId>test</artifactId>
>     <groupId>de.virtimo.bpc</groupId>
>     <version>1.0.0-SNAPSHOT</version>
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.karaf.tooling</groupId>
>                 <artifactId>features-maven-plugin</artifactId>
>                 <version>2.4.4</version>
> 
>                 <executions>
>                     <execution>
>                         <id>add-features-to-repo</id>
>                         <phase>generate-resources</phase>
>                         <goals>
>                             <goal>add-features-to-repo</goal>
>                         </goals>
>                         <configuration>
>                             <descriptors>
>                                 
> <descriptor>mvn:org.apache.cxf.karaf/apache-cxf/3.3.11/xml/feature</descriptor>
>                             </descriptors>
>                             <features>
>                                 <feature>cxf</feature>
>                             </features>
>                             <repository>target/features-repo</repository>
>                         </configuration>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
>     </build>
> </project>
> But when I get this error:
> 
> [ERROR] Failed to execute goal 
> org.apache.karaf.tooling:features-maven-plugin:2.4.4:add-features-to-repo 
> (add-features-to-repo) on project test: Can't resolve bundle 
> org.apache.cxf.karaf:apache-cxf:xml:feature:3.3.11: Could not transfer 
> artifact org.apache.cxf.karaf:apache-cxf:xml:feature:3.3.11 from/to central 
> (https://repo.maven.apache.org/maven2): Cannot access 
> https://repo.maven.apache.org/maven2 with type default using the available 
> connector factories: BasicRepositoryConnectorFactory
> [ERROR]   org.apache.cxf.karaf:apache-cxf:xml:3.3.11
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, 
> snapshots=true),
> [ERROR]   virtimo-central (https://virtimo.jfrog.io/artifactory/libs-release, 
> releases=true, snapshots=false),
> [ERROR]   virtimo-snapshots 
> (https://virtimo.jfrog.io/artifactory/libs-snapshot, releases=true, 
> snapshots=true): Cannot access https://repo.maven.apache.org/maven2 using the 
> registered transporter factories: WagonTransporterFactory: Unsupported 
> transport protocol https: com.google.inject.ProvisionException: Unable to 
> provision, see the following errors:
> [ERROR] 
> [ERROR] 1) Error in custom provider, java.lang.TypeNotPresentException: Type 
> org.apache.maven.wagon.providers.http.HttpWagon$__sisu33 not present
> [ERROR]   at 
> ClassRealm[plugin>org.apache.karaf.tooling:features-maven-plugin:2.4.4, 
> parent: jdk.internal.loader.ClassLoaders$AppClassLoader@4b85612c] (via 
> modules: org.eclipse.sisu.wire.WireModule -> 
> org.eclipse.sisu.plexus.PlexusBindingModule)
> [ERROR]   while locating org.apache.maven.wagon.Wagon annotated with 
> @com.google.inject.name.Named(value="https")
> [ERROR] 
> [ERROR] 1 error
> [ERROR]       role: org.apache.maven.wagon.Wagon
> [ERROR]   roleHint: https: org/apache/maven/wagon/providers/http/HttpWagon
> [ERROR] -> [Help 1]
> 
> The maven repo config is fine. He loaded the plugin from maven (the 
> 2.4.5-SNAPSHOT which is mentioned in the documentation is not available).
> 
> Regards
> Andre
> 
> Am Di., 21. Sept. 2021 um 08:36 Uhr schrieb Jean-Baptiste Onofre 
> <j...@nanthrax.net>:
> Hi Andre,
> 
> You can populate the system maven repository using add-features-to-repo goal 
> of the Karaf-maven-plugin.
> 
> Regards
> JB
> 
> > Le 21 sept. 2021 à 08:25, Andre Schlegel-Tylla 
> > <andre.schlegel-ty...@virtimo.de> a écrit :
> > 
> > Hello,
> > 
> > we want to update CXF on some customer systems. This is no problem with an 
> > internet connection. We also now how to install a single jar file into the 
> > local maven repository. But in this case CXF is based on many features.
> > 
> > How can we update all the used CXF features? A Karaf update is currently no 
> > option.
> > 
> > Kind regards
> > Andre
> 

Reply via email to