You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Sergey Zhemzhitsky (Created) (JIRA)" <ji...@apache.org> on 2012/01/17 16:15:43 UTC
[jira] [Created] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Unable to configure descriptors of features-maven-plugin with range of versions.
--------------------------------------------------------------------------------
Key: KARAF-1160
URL: https://issues.apache.org/jira/browse/KARAF-1160
Project: Karaf
Issue Type: Bug
Components: karaf-tooling
Affects Versions: 2.1.4
Reporter: Sergey Zhemzhitsky
Unable to configure descriptors of features-maven-plugin with range of versions.
{code:xml}
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-package</id>
<phase>prepare-package</phase>
<goals>
<goal>add-features-to-repo</goal>
</goals>
<configuration>
<descriptors>
<descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
<descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
</descriptors>
<features>
<feature>${project.groupId}</feature>
</features>
<addTransitiveFeatures>true</addTransitiveFeatures>
<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
<failOnArtifactResolutionError>false</failOnArtifactResolutionError>
<skipNonMavenProtocols>true</skipNonMavenProtocols>
<repository>${features.repo.directory}</repository>
</configuration>
</execution>
</executions>
</plugin>
{code}
With such a configuration I'm getting the following error:
{code}
[ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
Error populating repository:
IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Jean-Baptiste Onofré (Assigned JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-1160:
-------------------------------------------
Assignee: Jean-Baptiste Onofré
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
> Assignee: Jean-Baptiste Onofré
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187749#comment-13187749 ]
Jean-Baptiste Onofré commented on KARAF-1160:
---------------------------------------------
As the descriptor should a specific target version.
With your example, I guess that you expect that the features-maven-plugin take the latest 1.x version for the baz artifact ?
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Sergey Zhemzhitsky (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187757#comment-13187757 ]
Sergey Zhemzhitsky commented on KARAF-1160:
-------------------------------------------
Hi JB,
I'm expecting features-maven-plugin to resolve feature descriptors in the same way as for [ordinary maven dependencies|http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution#DependencyMediationandConflictResolution-DependencyVersionRanges].
In that case it should be possible to use the same property placeholder with version range all over the maven project (maven dependencies, features-maven-plugin descriptors, feature repositories, feature dependencies, etc.), e.g.
{code:xml}
<properties>
<foo.bar.version>[1,2)</foo.bar.version>
</properties>
...
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>features-maven-plugin</artifactId>
...
<configuration>
<descriptors>
<descriptor>mvn:foo.bar.features/baz/${foo.bar.version}/xml/features</descriptor>
...
<feature name="any-feature" version="${feature.version}">
<feature version="${foo.bar.version}">foo.bar</feature>
...
{code}
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Jean-Baptiste Onofré (Commented JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188369#comment-13188369 ]
Jean-Baptiste Onofré commented on KARAF-1160:
---------------------------------------------
PAX URL is able to handle version range.
I see that the version that you report is 2.1.4. Is it really the case or do you use 2.2.4 ?
I'm going to make a test case to reproduce.
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-1160:
-------------------------------------------
Assignee: (was: Jean-Baptiste Onofré)
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KARAF-1160) Unable to configure descriptors of
features-maven-plugin with range of versions.
Posted by "Sergey Zhemzhitsky (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13188408#comment-13188408 ]
Sergey Zhemzhitsky commented on KARAF-1160:
-------------------------------------------
2.1.4 is the version of the features-maven-plugin I've been using.
With features-maven-plugin:2.3.5 the behavior is the same.
> Unable to configure descriptors of features-maven-plugin with range of versions.
> --------------------------------------------------------------------------------
>
> Key: KARAF-1160
> URL: https://issues.apache.org/jira/browse/KARAF-1160
> Project: Karaf
> Issue Type: Bug
> Components: karaf-tooling
> Affects Versions: 2.1.4
> Reporter: Sergey Zhemzhitsky
> Assignee: Jean-Baptiste Onofré
>
> Unable to configure descriptors of features-maven-plugin with range of versions.
> {code:xml}
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>features-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>prepare-package</id>
> <phase>prepare-package</phase>
> <goals>
> <goal>add-features-to-repo</goal>
> </goals>
> <configuration>
> <descriptors>
> <descriptor>mvn:foo.bar.features/baz/[1,2)/xml/features</descriptor>
> <descriptor>mvn:${project.groupId}/${project.artifactId}/${project.version}/xml/features</descriptor>
> </descriptors>
> <features>
> <feature>${project.groupId}</feature>
> </features>
> <addTransitiveFeatures>true</addTransitiveFeatures>
> <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
> <failOnArtifactResolutionError>false</failOnArtifactResolutionError>
> <skipNonMavenProtocols>true</skipNonMavenProtocols>
> <repository>${features.repo.directory}</repository>
> </configuration>
> </execution>
> </executions>
> </plugin>
> {code}
> With such a configuration I'm getting the following error:
> {code}
> [ERROR] Failed to execute goal org.apache.karaf.tooling:features-maven-plugin:2.1.4:add-features-to-repo (make-repo) on project foo.bar:
> Error populating repository:
> IllegalArgumentException: Illegal character in path at index 116: file:///C:/Users/me/.m2/repository/foo/bar/features/baz/[1,2)/baz-[1,2)-features.xml -> [Help 1]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira