I have added all the repositories to my pom.xml (which I copied from
Karaf's pom.xml) and now I get this error:

[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:4.0.1-SNAPSHOT:assembly
(default-assembly) on project karaf: Unable to build assembly: Unable to
resolve root: missing requirement [root] osgi.identity;
osgi.identity=management; type=karaf.feature; version=4.0.1.SNAPSHOT;
filter:="(&(osgi.identity=management)(type=karaf.feature)(version>=4.0.1.SNAPSHOT))"
[caused by: Unable to resolve management/4.0.1.SNAPSHOT: missing
requirement [management/4.0.1.SNAPSHOT] osgi.identity;
osgi.identity=org.apache.aries.jmx.core; type=osgi.bundle;
version="[1.1.3,1.1.3]"; resolution:=mandatory [caused by: Unable to
resolve org.apache.aries.jmx.core/1.1.3: missing requirement
[org.apache.aries.jmx.core/1.1.3] osgi.service; effective:=active;
filter:="(objectClass=javax.management.MBeanServer)"]] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


On Wed, Jul 22, 2015 at 10:10 AM, Jean-Baptiste Onofré <[email protected]>
wrote:

> You need to update your local maven repo, or define <repository> with
> Apache SNAPSHOT repo.
>
> Regards
> JB
>
> On 07/22/2015 03:00 PM, Marc Durand wrote:
>
>> Tried with 4.0.1-SNAPSHOT and I get this error:
>>
>> [ERROR] Failed to execute goal on project com.test.karaf: Could not
>> resolve dependencies for project
>> com.test:com.test.karaf:karaf-assembly:1.0.0-SNAPSHOT: The following
>> artifacts could not be resolved:
>> org.apache.karaf.features:framework:kar:4.0.1-SNAPSHOT,
>> org.apache.karaf.features:standard:xml:features:4.0.1-SNAPSHOT,
>> org.apache.karaf.features:enterprise:xml:features:4.0.1-SNAPSHOT,
>> org.apache.karaf.features:spring:xml:features:4.0.1-SNAPSHOT: Could not
>> find artifact org.apache.karaf.features:framework:kar:4.0.1-SNAPSHOT ->
>> [Help 1]
>> [ERROR]
>>
>>   Is there perhaps another maven repo that I need to add to my
>> configuration?
>>
>> Thanks,
>> Marc
>>
>> On Wed, Jul 22, 2015 at 2:47 AM, Jean-Baptiste Onofré <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     AFAIR we fixed this issue (related to Windows).
>>
>>     Can you make a try with 4.0.1-SNAPSHOT ?
>>
>>     Regards
>>     JB
>>
>>
>>     On 07/21/2015 10:47 PM, Marc Durand wrote:
>>
>>         Hello - I am getting this error when trying to build a Karaf 4.0.0
>>         custom distribution:
>>
>>         [INFO] BUILD FAILURE
>>         [INFO]
>>
>> ------------------------------------------------------------------------
>>         [INFO] Total time: 6.822 s
>>         [INFO] Finished at: 2015-07-21T16:39:14-04:00
>>         [INFO] Final Memory: 21M/251M
>>         [INFO]
>>
>> ------------------------------------------------------------------------
>>         [ERROR] Failed to execute goal
>>         org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
>>         (default-assembly) on project com.test.karaf: Unable to build
>>         assembly:
>>         Error -> [Help 1]
>>         [DEBUG] Connection manager is shutting down
>>         [DEBUG] Connection manager shut down
>>         org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>         execute goal
>>         org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly
>>         (default-assembly) on project com.test.karaf: Unable to build
>>         assembly
>>                   at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>>                   at
>>         org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
>>                   at
>>         org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
>>                   at
>>         org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
>>                   at
>>         org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
>>                   at
>> org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
>>                   at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
>>                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>         Method)
>>                   at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>                   at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>                   at java.lang.reflect.Method.invoke(Method.java:483)
>>                   at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>                   at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>                   at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>                   at
>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>         Caused by: org.apache.maven.plugin.MojoExecutionException: Unable
>> to
>>         build assembly
>>                   at
>>
>> org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:170)
>>                   at
>>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>>                   at
>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>>                   ... 20 more
>>         Caused by:
>>         org.apache.karaf.features.internal.util.MultiException: Error
>>                   at
>>
>> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.<init>(MavenDownloadManager.java:84)
>>                   at
>>
>> org.apache.karaf.features.internal.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:72)
>>                   at
>>
>> org.apache.karaf.profile.assembly.Builder.loadRepositories(Builder.java:1029)
>>                   at
>>
>> org.apache.karaf.profile.assembly.Builder.bootStage(Builder.java:703)
>>                   at
>>
>> org.apache.karaf.profile.assembly.Builder.doGenerateAssembly(Builder.java:554)
>>                   at
>>
>> org.apache.karaf.profile.assembly.Builder.generateAssembly(Builder.java:352)
>>                   at
>>
>> org.apache.karaf.tooling.AssemblyMojo.doExecute(AssemblyMojo.java:296)
>>                   at
>>
>> org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:164)
>>                   ... 22 more
>>                   Suppressed: java.nio.file.InvalidPathException:
>>         Illegal char
>>         <:> at index 4:
>>
>> file:/C:/cygwin64/tmp/custom/target/assembly/system/org/apache/karaf/features/framework/4.0.0/framework-4.0.0-features.xml
>>                           at
>>         sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
>>                           at
>>         sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
>>                           at
>>         sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
>>                           at
>>         sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
>>                           at
>>         sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
>>                           at
>>         sun.nio.fs.AbstractPath.resolve(AbstractPath.java:53)
>>                           at
>>
>> org.apache.karaf.profile.assembly.Builder$4.downloaded(Builder.java:1040)
>>                           at
>>
>> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:133)
>>                           at
>>
>> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader$1.operationComplete(MavenDownloadManager.java:127)
>>                           at
>>
>> org.apache.karaf.features.internal.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:344)
>>                           at
>>
>> org.apache.karaf.features.internal.download.impl.DefaultFuture.addListener(DefaultFuture.java:293)
>>                           at
>>
>> org.apache.karaf.features.internal.download.impl.MavenDownloadManager$MavenDownloader.download(MavenDownloadManager.java:127)
>>                           at
>>
>> org.apache.karaf.profile.assembly.Builder.loadRepositories(Builder.java:1035)
>>                           ... 27 more
>>         [ERROR]
>>         [ERROR]
>>         [ERROR] For more information about the errors and possible
>>         solutions,
>>         please read the following articles:
>>         [ERROR] [Help 1]
>>
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>
>>         Note that the same pom works just fine when using Karaf 3.0.4.
>>         Here is
>>         the standalone pom that I've trimmed down to show the error:
>>
>>         <?xml version="1.0" encoding="UTF-8"?>
>>         <project xmlns="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";>
>>              <modelVersion>4.0.0</modelVersion>
>>
>>              <properties>
>>                 <org.apache.karaf.version>4.0.0</org.apache.karaf.version>
>>
>>
>> <maven-resources-plugin.version>2.7</maven-resources-plugin.version>
>>              </properties>
>>
>>              <groupId>com.test</groupId>
>>              <artifactId>com.test.karaf</artifactId>
>>              <packaging>karaf-assembly</packaging>
>>              <version>1.0.0-SNAPSHOT</version>
>>
>>              <dependencies>
>>                 <dependency>
>>                    <groupId>org.apache.karaf.features</groupId>
>>                    <artifactId>framework</artifactId>
>>                    <version>${org.apache.karaf.version}</version>
>>                    <type>kar</type>
>>                 </dependency>
>>                 <dependency>
>>                    <groupId>org.apache.karaf.features</groupId>
>>                    <artifactId>standard</artifactId>
>>                    <classifier>features</classifier>
>>                    <version>${org.apache.karaf.version}</version>
>>                    <type>xml</type>
>>                    <scope>runtime</scope>
>>                 </dependency>
>>                 <dependency>
>>                    <groupId>org.apache.karaf.features</groupId>
>>                    <artifactId>enterprise</artifactId>
>>                    <classifier>features</classifier>
>>                    <version>${org.apache.karaf.version}</version>
>>                    <type>xml</type>
>>                    <scope>runtime</scope>
>>                 </dependency>
>>                 <dependency>
>>                    <groupId>org.apache.karaf.features</groupId>
>>                    <artifactId>spring</artifactId>
>>                    <classifier>features</classifier>
>>                    <version>${org.apache.karaf.version}</version>
>>                    <type>xml</type>
>>                    <scope>runtime</scope>
>>                 </dependency>
>>              </dependencies>
>>
>>              <build>
>>                 <pluginManagement>
>>                    <plugins>
>>                       <plugin>
>>                          <groupId>org.apache.maven.plugins</groupId>
>>                          <artifactId>maven-resources-plugin</artifactId>
>>
>>         <version>${maven-resources-plugin.version}</version>
>>                       </plugin>
>>                       <plugin>
>>                          <groupId>org.apache.karaf.tooling</groupId>
>>                          <artifactId>karaf-maven-plugin</artifactId>
>>                          <version>${org.apache.karaf.version}</version>
>>                       </plugin>
>>                    </plugins>
>>                 </pluginManagement>
>>
>>                 <resources>
>>                    <resource>
>>                       <directory>src/main/resources</directory>
>>                       <filtering>false</filtering>
>>                       <includes>
>>                          <include>**/*</include>
>>                       </includes>
>>                    </resource>
>>                 </resources>
>>
>>                 <plugins>
>>                    <plugin>
>>                       <groupId>org.apache.maven.plugins</groupId>
>>                       <artifactId>maven-resources-plugin</artifactId>
>>                       <executions>
>>                          <execution>
>>                             <id>process-resources</id>
>>                             <goals>
>>                                <goal>resources</goal>
>>                             </goals>
>>                          </execution>
>>                       </executions>
>>                    </plugin>
>>
>>                    <plugin>
>>                       <groupId>org.apache.karaf.tooling</groupId>
>>                       <artifactId>karaf-maven-plugin</artifactId>
>>                       <extensions>true</extensions>
>>                       <configuration>
>>                          <startupFeatures>
>>                          </startupFeatures>
>>                          <bootFeatures>
>>                             <feature>standard</feature>
>>                             <feature>management</feature>
>>                             <feature>scr</feature>
>>                             <feature>jetty</feature>
>>                             <feature>http</feature>
>>                             <feature>war</feature>
>>                             <feature>jasypt-encryption</feature>
>>                             <feature>transaction</feature>
>>                             <feature>ssh</feature>
>>                             <feature>config</feature>
>>                             <feature>package</feature>
>>                             <feature>kar</feature>
>>                             <feature>region</feature>
>>                             <feature>spring-web</feature>
>>                             <feature>webconsole</feature>
>>                          </bootFeatures>
>>                            <installedFeatures>
>>                            </installedFeatures>
>>                       </configuration>
>>                    </plugin>
>>                 </plugins>
>>              </build>
>>         </project>
>>
>>
>>         Any help is greatly appreciated!
>>
>>         Thanks,
>>         Marc
>>
>>
>>     --
>>     Jean-Baptiste Onofré
>>     [email protected] <mailto:[email protected]>
>>     http://blog.nanthrax.net
>>     Talend - http://www.talend.com
>>
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to