[ 
https://issues.apache.org/jira/browse/MNG-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15285022#comment-15285022
 ] 

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: https://issues.apache.org/jira/browse/MNG-5998
>             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="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";>
>       
>       &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
(v6.3.4#6332)

Reply via email to