Closed jamezp closed 1 week ago
@jamezp thanks for the report, there's two issues here: 1) a bug fixed in #703, and 2) there are no channels published at the GAVs you're using, only manifests (channel artifact would have a channel
classifier).
I think what you're trying to achieve is:
echo '---
schemaVersion: "2.0.0"
name: "wildfly"
repositories:
- id: "central"
url: "https://repo1.maven.org/maven2/"
- id: "jboss-public"
url: "https://repository.jboss.org/nexus/content/groups/public/"
- id: "mrrc"
url: "https://maven.repository.redhat.com/ga/"
manifest:
maven:
groupId: "org.wildfly.channels"
artifactId: "wildfly"
---
schemaVersion: "2.0.0"
name: "resteasy"
repositories:
- id: "central"
url: "https://repo1.maven.org/maven2/"
manifest:
maven:
groupId: "dev.resteasy.channels"
artifactId: "resteasy-6.2"' > resteasy-channel.yaml
prospero.sh install --channels resteasy-channel.yaml --dir test-wfly --fpl org.wildfly:wildfly-galleon-pack
Unfortunately since this requires two channels, it's not possible to execute it as a oneliner with --manifest
and --repositories
Thank you @spyrkob. I was wondering if it was a missing channel issue. Would it make sense for manifests which just want to override the version of provisioned dependencies to also create a channel? I don't think there is much effort in doing this, but I want to make sure it also won't make a mess of things.
IoW, in this specific case should RESTEasy also create a channel that gets published?
Would it make sense for manifests which just want to override the version of provisioned dependencies to also create a channel?
Yes, each channel is tied to a single manifest so an overwrite manifest has to come with it's own channel. Note it's possible to define a dependency on another channel (see requires
field in manifest definition). Using this the WildFly channel would be created based on repositories defined in the RESTEasy channel and the required
manifest.
IoW, in this specific case should RESTEasy also create a channel that gets published?
I'd say if you feel like this would make it easier to consume the manifest, than sure. So far we haven't been publishing channel definitions for any other projects, but we're really only starting with them in WildFly :)
I'm attempting to execute the following command:
However, the
dev.resteasy.channels:resteasy-6.2/maven-metadata.xml
cannot be found by the dependency resolution. The file does exist though, https://repo1.maven.org/maven2/dev/resteasy/channels/resteasy-6.2/maven-metadata.xml. Below is the error I'm seeing:The
~/.m2/repository/dev/resteasy/channels/resteasy-6.2/resolver-status.properties
contains the following:I'm not too sure what the issue could be.