[ https://issues.apache.org/jira/browse/MNG-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15243733#comment-15243733 ]
Karl Heinz Marbaise commented on MNG-5998: ------------------------------------------ What kind of things are needed to make a separate file from it in particular related to the settings.xml file ? Usually a typical settings.xml looks like this: {code:xml} <settings> <mirrors> <mirror> <!--This sends everything else to /public --> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>http://localhost:8081/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <!--Enable snapshots for the built in central repo to direct --> <!--all requests to nexus via the mirror --> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <!--make the profile active all the time --> <activeProfile>nexus</activeProfile> </activeProfiles> </settings> {code} and why do you need to make a separate file for parts of it. Can give more detailed information what you are trying to achieve. > 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)