You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Aaron Digulla (JIRA)" <ji...@codehaus.org> on 2011/07/13 14:53:42 UTC
[jira] Created: (MVERIFIER-10) Print the absolute path to the input
file when verification fails
Print the absolute path to the input file when verification fails
-----------------------------------------------------------------
Key: MVERIFIER-10
URL: https://jira.codehaus.org/browse/MVERIFIER-10
Project: Maven 2.x Verifier Plugin
Issue Type: New Feature
Reporter: Aaron Digulla
While building Tycho, I had this exception: {{org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid
mavenProfile entry. Missing one or more fields: {localRepository}.}}
The error message was useless for me because I have no idea which file caused the error.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MVERIFIER-10) Print the absolute path to the input file
when verification fails
Posted by "Thomas Broyer (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MVERIFIER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312596#comment-312596 ]
Thomas Broyer commented on MVERIFIER-10:
----------------------------------------
I faced this issue recently with 1.3.
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 a {{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).
> Print the absolute path to the input file when verification fails
> -----------------------------------------------------------------
>
> Key: MVERIFIER-10
> URL: https://jira.codehaus.org/browse/MVERIFIER-10
> Project: Maven 2.x Verifier Plugin
> Issue Type: New Feature
> Affects Versions: 1.1
> Reporter: Aaron Digulla
> Assignee: Olivier Lamy
> Fix For: 1.1
>
>
> While building Tycho, I had this exception: {{org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid
> mavenProfile entry. Missing one or more fields: {localRepository}.}}
> The error message was useless for me because I have no idea which file caused the error.
--
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: (MVERIFIER-10) Print the absolute path to the input
file when verification fails
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MVERIFIER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MVERIFIER-10.
---------------------------------
Resolution: Fixed
Assignee: Olivier Lamy
fixed r1152710
> Print the absolute path to the input file when verification fails
> -----------------------------------------------------------------
>
> Key: MVERIFIER-10
> URL: https://jira.codehaus.org/browse/MVERIFIER-10
> Project: Maven 2.x Verifier Plugin
> Issue Type: New Feature
> Reporter: Aaron Digulla
> Assignee: Olivier Lamy
>
> While building Tycho, I had this exception: {{org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid
> mavenProfile entry. Missing one or more fields: {localRepository}.}}
> The error message was useless for me because I have no idea which file caused the error.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MVERIFIER-10) Print the absolute path to the
input file when verification fails
Posted by "Aaron Digulla (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MVERIFIER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=273154#comment-273154 ]
Aaron Digulla commented on MVERIFIER-10:
----------------------------------------
Here is the complete stack trace:
{code}
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:1917)
at org.apache.maven.it.Verifier.retrieveLocalRepo(Verifier.java:781)
at org.apache.maven.it.Verifier.findLocalRepo(Verifier.java:1822)
at org.apache.maven.it.Verifier.<init>(Verifier.java:150)
at org.apache.maven.it.Verifier.<init>(Verifier.java:127)
at org.apache.maven.it.Verifier.<init>(Verifier.java:121)
at org.apache.maven.it.Verifier.<init>(Verifier.java:176)
at org.eclipse.tycho.test.AbstractTychoIntegrationTest.getVerifier(AbstractTychoIntegrationTest.java:81)
at org.eclipse.tycho.test.AbstractTychoIntegrationTest.getVerifier(AbstractTychoIntegrationTest.java:51)
at org.eclipse.tycho.test.AbstractTychoIntegrationTest.getVerifier(AbstractTychoIntegrationTest.java:109)
{code}
> Print the absolute path to the input file when verification fails
> -----------------------------------------------------------------
>
> Key: MVERIFIER-10
> URL: https://jira.codehaus.org/browse/MVERIFIER-10
> Project: Maven 2.x Verifier Plugin
> Issue Type: New Feature
> Reporter: Aaron Digulla
>
> While building Tycho, I had this exception: {{org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid
> mavenProfile entry. Missing one or more fields: {localRepository}.}}
> The error message was useless for me because I have no idea which file caused the error.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MVERIFIER-10) Print the absolute path to the input
file when verification fails
Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MVERIFIER-10?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herve Boutemy updated MVERIFIER-10:
-----------------------------------
Affects Version/s: 1.3
Fix Version/s: 1.4
> Print the absolute path to the input file when verification fails
> -----------------------------------------------------------------
>
> Key: MVERIFIER-10
> URL: https://jira.codehaus.org/browse/MVERIFIER-10
> Project: Maven 2.x Verifier Plugin
> Issue Type: New Feature
> Affects Versions: 1.3
> Reporter: Aaron Digulla
> Assignee: Olivier Lamy
> Fix For: 1.4
>
>
> While building Tycho, I had this exception: {{org.apache.maven.it.VerificationException: org.xml.sax.SAXException: Invalid
> mavenProfile entry. Missing one or more fields: {localRepository}.}}
> The error message was useless for me because I have no idea which file caused the error.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira