Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9295

Server fails to start if maven repo does not have Xerces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 9.3.0.Final
    • 9.3.0.Final
    • Server
    • None
    • Workaround Exists
    • Hide

      Seems like for this to work, Maven settings need to point to JBoss Nexus repo. Although a workaround, this is not a valid solution long term:

      <settings>
      
         <profiles>
            <profile>
               <id>jboss</id>
               <repositories>
                  <repository>
                     <id>jboss-public-repository-group</id>
                     <name>JBoss Public Repository Group</name>
                     <url>http://repository.jboss.org/nexus/content/groups/public/</url>
                     <layout>default</layout>
                     <releases>
                        <enabled>true</enabled>
                        <updatePolicy>always</updatePolicy>
                     </releases>
                     <snapshots>
                        <enabled>false</enabled>
                        <updatePolicy>never</updatePolicy>
                     </snapshots>
                  </repository>
               </repositories>
               <pluginRepositories>
                  <pluginRepository>
                     <id>jboss-public-repository-group</id>
                     <name>JBoss Public Repository Group</name>
                     <url>http://repository.jboss.org/nexus/content/groups/public/</url>
                     <releases>
                        <enabled>true</enabled>
                     </releases>
                     <snapshots>
                        <enabled>true</enabled>
                     </snapshots>
                  </pluginRepository>
               </pluginRepositories>
            </profile>
      
         </profiles>
      
         <activeProfiles>
            <activeProfile>jboss</activeProfile>
         </activeProfiles>
      
      </settings>
      
      Show
      Seems like for this to work, Maven settings need to point to JBoss Nexus repo. Although a workaround, this is not a valid solution long term: <settings> <profiles> <profile> <id>jboss</id> <repositories> <repository> <id>jboss- public -repository-group</id> <name>JBoss Public Repository Group</name> <url>http: //repository.jboss.org/nexus/content/groups/ public /</url> <layout> default </layout> <releases> <enabled> true </enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled> false </enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss- public -repository-group</id> <name>JBoss Public Repository Group</name> <url>http: //repository.jboss.org/nexus/content/groups/ public /</url> <releases> <enabled> true </enabled> </releases> <snapshots> <enabled> true </enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>jboss</activeProfile> </activeProfiles> </settings>

      If XercesImpl is not present in maven repo, there doesn't seem to be an attempt to download and instead you get:

      [Host Controller] Caused by: org.jboss.modules.xml.XmlPullParserException: Failed to resolve artifact 'xerces:xercesImpl:2.11.0.SP5' (position: END_TAG seen ...resources>\n        <artifact name="xerces:xercesImpl:2.11.0.SP5"/>... @26:56) 
      [Host Controller] 	at org.jboss.modules.xml.ModuleXmlParser.parseArtifact(ModuleXmlParser.java:981)
      [Host Controller] 	at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:869)
      [Host Controller] 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:659)
      [Host Controller] 	at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:426)
      [Host Controller] 	at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:302)
      [Host Controller] 	... 15 more
      

              Unassigned Unassigned
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: