Skip to content

Instantly share code, notes, and snippets.

@heimp
Last active August 14, 2022 16:57
Show Gist options
  • Save heimp/1d67afbebc1869e8188374306c82a1f6 to your computer and use it in GitHub Desktop.
Save heimp/1d67afbebc1869e8188374306c82a1f6 to your computer and use it in GitHub Desktop.
an xml file to get ceylon working with maven again. found on the gitter
<!--
as for issues with maven this is known bug. In Ceylon module resolver there is path to maven central but starts with http which is now disabled in maven central we always get 503 but You can add another repository by providing settings.xml to the project
here is settings xml which works
And then in Your Ceylon project in IDE Your project -> properties -> ceylon build -> module repositories -> Add maven repository and from file explorer select settings.xml
-->
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>central</id>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>Maven Central</id>
<name>Maven Central</name>
<url>https://repo1.maven.org/maven2/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central</id>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>central</activeProfile>
</activeProfiles>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment