You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Bengt Rodehav (JIRA)" <ji...@apache.org> on 2010/12/09 08:47:04 UTC
[jira] Issue Comment Edited: (KARAF-244) features-maven-plugin does
not work with maven 3
[ https://issues.apache.org/jira/browse/KARAF-244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969652#action_12969652 ]
Bengt Rodehav edited comment on KARAF-244 at 12/9/10 2:46 AM:
--------------------------------------------------------------
Andreas,
I've now tried Karaf 2.1.2 (and the associated features-maven-plugin) together with Maven 3.0.1 but it still doesn't work for me. I get the following output from maven:
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.2:add-features-to-repo (add-features-to-repo) on project assembly: Error populating repository: unknown protocol: null -> [Help 1]
was (Author: rodehav):
Andreas,
I've now tried Karaf 2.1.2 (and the associated features-maven-plugin) together with Maven 3.0.1 but it still doesn't work for me. I get the following output from maven:
${code}
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.2:add-features-to-repo (add-features-to-repo) on project assembly: Error populating repository: unknown protocol: null -> [Help 1]
${code}
> features-maven-plugin does not work with maven 3
> ------------------------------------------------
>
> Key: KARAF-244
> URL: https://issues.apache.org/jira/browse/KARAF-244
> Project: Karaf
> Issue Type: Bug
> Components: tooling
> Affects Versions: 2.1.0
> Reporter: Bengt Rodehav
> Assignee: Jean-Baptiste Onofré
>
> Now that maven 3 has been released, I think it is important to get the features-maven-plugin to work under maven 3. The problem is that you normally use "mvn:" url's in the features-maven-plugin, e g:
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <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.karaf/apache-karaf/${karaf-version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>ssh</feature>
> <feature>management</feature>
> <feature>webconsole</feature>
> </features>
> <repository>${project.build.directory}/features-repo</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> But the url handler for "mvn:" does not work under maven 3 due to changes in the classpath handling. An alternative must be developed. I've noticed on the ops4j mailing list that something called pax-url-aether is in the works. Maybe that's an option for features-maven-plugin?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.