Done. http://jira.codehaus.org/browse/MSUREFIRE-85
-----Original Message----- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Sunday, April 02, 2006 5:44 PM To: Maven Users List Subject: Re: [M2] Problem with TestNG, Surefire, Java 5, and Java 1.4 JavaDoc Annotations The annotations should be ok, but please file a bug and it will be investigated. - Brett On 4/3/06, Andreas Guther <[EMAIL PROTECTED]> wrote: > I am having problems running TestNG tests with Maven 2 and the following > configuration: > > - all tests are using the JavaDoc annotations (Java 1.4) > - The tests are executed with Maven 2 via a testng.xml file and a > surefire configuration as included below > - The JDK I am using to run Maven 2 is Java 5 (!) > > The problem is that my TestNG test cases are *not* run from surefire. > It might be that surefire cannot handle to run TestNG properly in that > way that TestNG recognizes Java 1.4 JavaDoc annotations while running > under Java 5, but that is just one idea. > > I wonder if someone is using TestNg and Maven 2 in the same set-up > successfully so I could eliminate a problem of surefire from my list of > open questions. > > Andreas > > > My surefire configuration > > <build> > ... > <plugin> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <testFailureIgnore>true</testFailureIgnore> > <suiteXmlFiles> > > <suiteXmlFile>src/test/resources/testng-xml-export.xml</suiteXmlFile> > </suiteXmlFiles> > </configuration> > </plugin> > > The testNG.xml file: > <!DOCTYPE suite SYSTEM "testng-1.0.dtd" > > <suite name="XML Export" annotations="javadoc"> > <test name="Builder Test"> > <classes> > <class > name="mt.ztelligence.questionnaire.SurveyProjectXmlDataInjectorTestNg" > /> > <class name="mt.ztelligence.questionnaire.xml.XmlExporterTestNg"/> > <class > name="mt.ztelligence.survey.util.SurveyBuilderDataExtractorTestNg"/> > </classes> > </test> > </suite> > > My plug-in repositories: > > <pluginRepository> > <id>apache.snapshots</id> > <url> http://cvs.apache.org/maven-snapshot-repository</url> > </pluginRepository> > <pluginRepository> > <id>Maven Snapshots</id> > <url>http://snapshots.maven.codehaus.org/maven2/</url> > <snapshots> > <enabled>true</enabled> > </snapshots> > <releases> > <enabled>false</enabled> > </releases> > </pluginRepository> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
