You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Graham Leggett (JIRA)" <ji...@codehaus.org> on 2008/02/05 11:34:28 UTC
[jira] Created: (SUREFIRE-450) Verification test failure: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}
Verification test failure: Invalid mavenProfile entry. Missing one or more fields: {localRepository}
----------------------------------------------------------------------------------------------------
Key: SUREFIRE-450
URL: http://jira.codehaus.org/browse/SUREFIRE-450
Project: Maven Surefire
Issue Type: Bug
Affects Versions: 2.x
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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (SUREFIRE-450) Verification test failure: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}
Posted by "Thomas Broyer (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] (SUREFIRE-450) Verification test failure: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}
Posted by "Thomas Broyer (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/SUREFIRE-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312591#comment-312591 ]
Thomas Broyer commented on SUREFIRE-450:
----------------------------------------
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
[jira] Closed: (SUREFIRE-450) Verification test failure: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-450.
---------------------------------
Resolution: Cannot Reproduce
I don't reproduce this. What version of Maven are you using? What OS? I'm running:
Maven version: 2.0.8
Java version: 1.5.0_12
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> Verification test failure: Invalid mavenProfile entry. Missing one or more fields: {localRepository}
> ----------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-450
> URL: http://jira.codehaus.org/browse/SUREFIRE-450
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.x
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-450) Verification test failure: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}
Posted by "Dan Fabulich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/SUREFIRE-450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122463 ]
Dan Fabulich commented on SUREFIRE-450:
---------------------------------------
Notably, this stacktrace indicates that it's having problems reading your settings.xml file. Try using a clean settings.xml file; if that's not possible, please submit a minimal settings.xml file that reproduces the problem.
> Verification test failure: Invalid mavenProfile entry. Missing one or more fields: {localRepository}
> ----------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-450
> URL: http://jira.codehaus.org/browse/SUREFIRE-450
> Project: Maven Surefire
> Issue Type: Bug
> Affects Versions: 2.x
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira