maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Heinz Marbaise (JIRA)" <>
Subject [jira] [Commented] (MNG-5998) Can not use external xml file referenced from settings.xml
Date Mon, 16 May 2016 18:35:13 GMT


Karl Heinz Marbaise commented on MNG-5998:

It sounds like you are mixing/misusing concepts. The {{settings.xml}} defines the location
from where artifacts are consumed which is usually a repository manager (so in general a single
entry as I mentioned above). Furthermore the {{settings.xml}} can contain passwords/etc. (usually
encrypted) which should be located in the users home folder ({{$HOME/.m2/settings.xml}}.

The configuration of where artifacts are being deployed  is defined in {{distributionManagement}}
within a {{pom.xml}}. But this should be done only once within a corporate setup. The projects
etc. are separated by their {{groupId}}, {{artifactId}} and {{version}} and not by using different
repositories. And they way you are describing things shows that it is much configuration which
is not really needed.

> Can not use external xml file referenced from settings.xml
> ----------------------------------------------------------
>                 Key: MNG-5998
>                 URL:
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.3.9
>            Reporter: Lulseged Zerfu
>             Fix For: waiting-for-feedback
> Hi
> I am trying to use DOCTYPE inside settings.zml file and I always get:
> [FATAL] Non-parseable settings /home/<user>/.m2/settings.xml.
> Mt settings.xml file looks like:
> <?xml version='1.0' encoding='utf-8'?>
> <!DOCTYPE settings-xml [ <!ENTITY maven-settings SYSTEM "~/.m2/xdms-settings.xml">
> ]>
> <settings xmlns="" xmlns:xsi=""
> 	xsi:schemaLocation="">
> 	&maven-settings;
> </settings>
> I have moved middle parts of settings.xml in to xdms-settings.xml.
> Is this not supported? it is at least according to xml standard.
> BR
> Lulseged

This message was sent by Atlassian JIRA

View raw message