wildfly / galleon

Galleon Provisioning Tool
https://docs.wildfly.org/galleon/
Apache License 2.0
27 stars 30 forks source link

Failed to resolve Maven universe org.jboss.universe:community-universe #245

Open sekaijin opened 5 years ago

sekaijin commented 5 years ago

Hello

How to use galleon without internet access. I have a nexus server that has access to the internet. I added the repository jboss-public-repository-group http://myserver:8081/nexus/content/repositories/jboss-public-repository-group/ which is a mirror.

but I still have the messages install wildfly-core:current --dir=myinstallation -v Error: Install failed.

`$maven get-info

Configuration Item Value

Default release policy daily Default snapshot policy never Enable release true Enable snapshot false Local repository C:\Users\me.m2\repository Maven xml settings C:\tools\org\apache\maven\3.5.3\conf\settings.xml Offline false Remote repositories jboss-public-repository-group url=http://repository.jboss.org/nexus/content/groups/public/ type=default release=true releaseUpdatePolicy=daily snapshot=false snapshotUpdatePolicy=never maven-central url=http://repo1.maven.org/maven2/ type=default release=true releaseUpdatePolicy=daily snapshot=false snapshotUpdatePolicy=never public url=http://sap-nexus.sap.aphp.fr:8081/nexus/content/groups/public/ type=default release=true releaseUpdatePolicy=daily snapshot=false snapshotUpdatePolicy=never releases url=http://myserver:8081/nexus/content/repositories/releases/ type=default release=true releaseUpdatePolicy=daily snapshot=false snapshotUpdatePolicy=never jboss-public-repository-group url=http://myserver:8081/nexus/content/repositories/jboss-public-repository-group/ type=default release=true releaseUpdatePolicy=daily snapshot=false snapshotUpdatePolicy=never`

I tried maven remove-repository maven-central to remove "maven-central" and replace it with my nexus server. but I did not find the right syntax I still have "maven-central" not found

A+JYT

aloubyansky commented 5 years ago

Hello,

sorry, I noticed this issue too late. As you probably noticed, we don't use github for issue tracking or discussions. Galleon issue track is https://issues.jboss.org/projects/GAL/issues And for discussions we use https://wildfly.zulipchat.com/#narrow/stream/184003-galleon

Anyway, back to your issue. First of all you can't actually remove maven-central. This repository is always added by Maven itself. How is the repo that you configured is populated? The universe artifact is available in maven-central but it appears it isn't in your repo. If you can't get the universe artifact in your repo, install command won't actually work. I think we should fix it for the default universe.

You can still provision wildfly w/o it assuming you have all the other necessary artifacts in your repo. Here is an example how it provisioned using a maven plugin https://github.com/wildfly/wildfly/blob/master/dist/pom.xml#L76

Another workaround would be to download the necessary feature-packs as ZIP files and use the CLI import command for each. And then install wildfly.