Gradle should ignore layout p2 in settings.xml


(Michael Vorburger) #1

Gradle (v1.5) unnecessarily complains about:

:install [ant:null] Error parsing settings file ‘/home/vorburger/.m2/settings.xml’ - ignoring. Error was: Unrecognised tag: ‘layout’ (position: START_TAG seen … /\n\t… @21:10)

because my settings.xml has this:

<mirror>
        <id>p2</id>
        <name>Odyssey p2 Repository</name>
        <url>.../nexus/content/groups/p2-public/</url>
        <layout>p2</layout>
        <mirrorOf>*</mirrorOf>
        <mirrorOfLayouts>p2</mirrorOfLayouts>
</mirror>

which is valid Maven, it’s for Maven Tycho Eclipse plug-in build stuff which I do in other projects. I don’t want to have to switch settings.xml around, so if Gradle looks at it, it should ignore what it doesn’t dig?

PS: Shame that you’ve locked down your http://issues.gradle.org :frowning: