Search code examples
mavennexusrestlet

Can't discover maven.restlet.com


When i build my project the jars for org.restlet.jee, as a dependency for apache-camel, are missing.

[WARNING] The POM for org.restlet.jee:org.restlet.ext.spring:jar:2.2.2 is missing, no dependency information available

So i added in Nexus a new proxy repository for http://maven.restlet.com/.

After adding there is an error during the discovery process:

Remote strategy prefix-file on M2Repository(id=maven-releases) detected invalid input, results discarded: Prefix file does not start with expected "## repository-prefixes/2.0" header, refusing to load the file.

Is there any solution how i can use the restlet repository with Nexus?

Edited: my pom.xml

<distributionManagement>
    <repository>
        <id>releases</id>
        <name>Internal Releases</name>
        <url>http://xxx:8081/nexus/content/repositories/releases/</url>
    </repository>
    <snapshotRepository>
        <id>snapshots</id>
        <name>Internal Snapshots</name>
        <url>http://xxx:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
</distributionManagement>

<build>
    <plugins>
        <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.3</version>
            <extensions>true</extensions>
            <configuration>
                <serverId>deployment</serverId>
                <nexusUrl>http://xxx:8081/nexus/</nexusUrl>
            </configuration>
        </plugin>
        ...
    </plugins>
</build>

Solution

  • The prefix file message has to do with automatic routing. The site at maven.restlet.com doesn't support this feature. It's nothing to worry about though, see here for an explanation:

    https://support.sonatype.com/entries/30645946-

    Check to make sure the proxy repository you just added is a member of the group repository you've configured maven to use in your settings.xml file.

    If that isn't the problem you can get information about this problem by using the technique described here:

    https://support.sonatype.com/entries/21433982