You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kristian Rosenvold (JIRA)" <ji...@codehaus.org> on 2013/05/03 19:09:52 UTC
[jira] (SUREFIRE-964) TEST-*.xml files generated by Surefire throw
validation warnings in Eclipse for no grammer constraints (DTD or XML
schema) referenced in the document
[ https://jira.codehaus.org/browse/SUREFIRE-964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kristian Rosenvold updated SUREFIRE-964:
----------------------------------------
Priority: Trivial (was: Major)
> TEST-*.xml files generated by Surefire throw validation warnings in Eclipse for no grammer constraints (DTD or XML schema) referenced in the document
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SUREFIRE-964
> URL: https://jira.codehaus.org/browse/SUREFIRE-964
> Project: Maven Surefire
> Issue Type: Bug
> Components: Maven Surefire Report Plugin
> Affects Versions: 2.13
> Environment: Any OS, Eclipse Juno with m2e and m2e-wtp.
> Reporter: Josh Unger
> Priority: Trivial
>
> 1. Create a Maven project in Eclipse.
> 2. Add a single class and a single test method decorated with @Test.
> {code}
> import org.junit.Test;
> public class ATest
> {
> @Test
> public void test()
> {
>
> }
> }
> {code}
> 3. Add the necessary information to the POM -
> {code}
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <version>2.13</version>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.7</version>
> <scope>test</scope>
> </dependency>
> </dependencies>
> {code}
> 4. Close Eclipse.
> 5. Edit your .project file to include the validator -
> {code}
> <buildCommand>
> <name>org.eclipse.wst.validation.validationbuilder</name>
> <arguments></arguments>
> </buildCommand>
> {code}
> 6. Build from the command line -
> > mvn install
> 7. Open Eclipse.
> EXPECTING: no warnings appear out of the box. I understand workarounds, but for the benefit of anyone going forward and existing users, there should be no warnings.
> ACTUAL: warning appears -
> Description Resource Path Location Type
> No grammar constraints (DTD or XML Schema) referenced in the document. TEST-ATest.xml /test/target/surefire-reports line 1 XML Problem
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira