[ https://jira.codehaus.org/browse/SUREFIRE-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312591#comment-312591 ]
Thomas Broyer edited comment on SUREFIRE-450 at 10/30/12 5:12 AM: ------------------------------------------------------------------ I faced this issue recently and although it's an issue in MVERIFIER and not surefire, I'll add some info here. The problem was that my settings.xml contained an empty {{<localRepository/>}} element. A minimal settings.xml that would reproduce the issue would probably be: {code} <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"> <localRepository/> </settings> {code} MVERIFIER, when processing that element ({{Verifier.java}} line 1883 in MVERIFIER 1.3) throws that {{SAXException}}. It should probably use the default value instead of throwing, as Maven otherwise has no problem with the empty element (and uses the default value). A related issue on MVERIFIER side: MVERIFIER-10 was (Author: t.broyer): I faced this issue recently and although it's an issue in MVERIFIER and not surefire, I'll add some info here. The problem was that my settings.xml contained an empty {{<localRepository/>}} element. A minimal settings.xml that would reproduce the issue would probably be: {code} <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"> <localRepository/> </settings> {code} MVERIFIER, when processing that element ({{Verifier.java}} line 1883 in MVERIFIER 1.3) throws that {{SAXException}}. It should probably use the default value instead of throwing, as Maven otherwise has no problem with the empty element (and uses the default value). > Verification test failure: Invalid mavenProfile entry. Missing one or more > fields: {localRepository} > ---------------------------------------------------------------------------------------------------- > > Key: SUREFIRE-450 > URL: https://jira.codehaus.org/browse/SUREFIRE-450 > Project: Maven Surefire > Issue Type: Bug > Affects Versions: Backlog > Environment: java version "1.5.0_13" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241) > Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing) > Reporter: Graham Leggett > > All tests in surefire-integration-tests fail like so: > testTwoTestCases(org.apache.maven.surefire.its.TwoTestCasesTest) Time > elapsed: 0.011 sec <<< ERROR! > org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid > mavenProfile entry. Missing one or more fields: {localRepository}. > at > org.apache.maven.it.Verifier$UserModelReader.parse(Verifier.java:1269) > at org.apache.maven.it.Verifier.retrieveLocalRepo(Verifier.java:557) > at org.apache.maven.it.Verifier.findLocalRepo(Verifier.java:1178) > at org.apache.maven.it.Verifier.<init>(Verifier.java:101) > at org.apache.maven.it.Verifier.<init>(Verifier.java:80) > at org.apache.maven.it.Verifier.<init>(Verifier.java:107) > at > org.apache.maven.surefire.its.TwoTestCasesTest.testTwoTestCases(TwoTestCasesTest.java:27) > It looks like the localRepository setting is missing from a pom or config > file somewhere. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira