I am trying to use Maven 1 to manage an existing project(s), from within
Eclipse plug-in Mevenide and/or the command line. When using the goal jar:jar , I get the following debug output for test:test. I can run the Junit tests just fine in Eclipse, but running Maven from Eclipse or the command line gives me failed unit tests. One thing I've noticed as I write this is that my Java package starts with testing.* , whereas this output shows java.testing.* When I do maven test:ui, I can run the tests successfully as well. test:test: [taskdef] [DEBUG] Class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent loader [taskdef] [DEBUG] +User task: junit org.apache.tools.ant.taskdefs.optional.junit.JUnitTask [DEBUG] Found /C:/Documents and Settings/smcclenahan/.maven/repository/junit/jars/junit-3.8.1.jar [DEBUG] Found /C:/Program Files/Apache Software Foundation/Maven 1.0.2/lib/ant-1.5.3-1.jar [DEBUG] Found /C:/Program Files/Apache Software Foundation/Maven 1.0.2/lib/ant-optional-1.5.3-1.jar [junit] [DEBUG] fileset: Setup scanner in dir C:\projects\online\trunk\PatientCompass\src\test with patternSet{ includes: [**/*Test.java] excludes: [**/*AbstractTestCase.java] } [junit] [VERBOSE] Using System properties {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\j2sdk1.4\jre\bin, java.vm.version=1.4.2_06-b03, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\projects\online\trunk\PatientCompass, java.runtime.version=1.4.2_06-b03, forehead.conf.file=C:\Program Files\Apache Software Foundation\Maven 1.0.2\bin\forehead.conf, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, basedir=C:\projects\online\trunk\PatientCompass, java.endorsed.dirs=C:\j2sdk1.4\lib\endorsed;C:\Program Files\Apache Software Foundation\Maven 1.0.2\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\Temp\, line.separator= , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, maven.repo.remote=file:///localhost/projects/online/trunk,http://public. planetmirror.com/pub/maven/,http://www.ibiblio.org/maven/, os.name=Windows XP, sun.java2d.fontpath=, tools.jar=C:\j2sdk1.4\lib\tools.jar, java.library.path=C:\j2sdk1.4\bin;.;C:\Windows\system32;C:\Windows;C:\Or acle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1 .4.2\bin\client;C:\Program Files\Compaq\Compaq Management Agents\Dmi\Win32\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\ Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Symantec\pcAnywhere\;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\b in;C:\Program Files\Apache Software Foundation\Maven 1.0.2\bin, javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFacto ryImpl, maven.home.local=C:\Documents and Settings\smcclenahan/.maven, java.specification.name=Java Platform API Specification, java.class.version=48.0, maven.repo.local=C:\Documents and Settings\smcclenahan/.maven/repository, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFac tory, os.version=5.1, user.home=C:\Documents and Settings\smcclenahan, user.timezone=GMT, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.4, file.encoding=Cp1252, user.name=smcclenahan, java.class.path=/c:/eclipse/plugins/org.mevenide.ui_0.4.0/lib/forehead-1 .0-beta-5.jar, java.vm.specification.version=1.0, sun.arch.data.model=32, java.home=C:\j2sdk1.4, java.specification.vendor=Sun Microsystems Inc., user.language=en, awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, java.version=1.4.2_06, java.ext.dirs=C:\j2sdk1.4\jre\lib\ext, sun.boot.class.path=C:\Program Files\Apache Software Foundation\Maven 1.0.2\lib\endorsed\xerces-2.4.0.jar;C:\Program Files\Apache Software Foundation\Maven 1.0.2\lib\endorsed\xml-apis-1.0.b2.jar;C:\j2sdk1.4\jre\lib\rt.jar;C:\j2s dk1.4\jre\lib\i18n.jar;C:\j2sdk1.4\jre\lib\sunrsasign.jar;C:\j2sdk1.4\jr e\lib\jsse.jar;C:\j2sdk1.4\jre\lib\jce.jar;C:\j2sdk1.4\jre\lib\charsets. jar;C:\j2sdk1.4\jre\classes, java.vendor=Sun Microsystems Inc., javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Document BuilderFactoryImpl, maven.home=C:\Program Files\Apache Software Foundation\Maven 1.0.2, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.isalist=pentium i486 i386} [junit] [VERBOSE] Implicitly adding C:\Documents and Settings\smcclenahan\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Pro gram Files\Apache Software Foundation\Maven 1.0.2\lib\ant-1.5.3-1.jar;C:\Program Files\Apache Software Foundation\Maven 1.0.2\lib\ant-optional-1.5.3-1.jar to CLASSPATH [junit] [VERBOSE] Using CLASSPATH C:\projects\online\trunk\PatientCompass\target\test-classes;C:\projects\ online\trunk\PatientCompass\target\classes;C:\Documents and Settings\smcclenahan\.maven\repository\struts\jars\struts-1.0.2.jar;C:\D ocuments and Settings\smcclenahan\.maven\repository\commons-logging\jars\commons-logg ing-SNAPSHOT.jar;C:\Documents and Settings\smcclenahan\.maven\repository\commons-lang\jars\commons-lang-SN APSHOT.jar;C:\Documents and Settings\smcclenahan\.maven\repository\commons-httpclient\jars\commons-h ttpclient-2.0.jar;C:\Documents and Settings\smcclenahan\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Doc uments and Settings\smcclenahan\.maven\repository\Common\lib\jars\j2ee.jar;C:\Docum ents and Settings\smcclenahan\.maven\repository\Common\reference\jars\sample3a_ej b.jar;C:\Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\framework-e xt.jar;C:\Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\framework.j ar;C:\Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\util.jar;C: \Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\psclient.ja r;C:\Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\quikpay.jar ;C:\Documents and Settings\smcclenahan\.maven\repository\Common\reference\jars\content.jar ;C:\Documents and Settings\smcclenahan\.maven\repository\Common\lib\jars\dao.jar;C:\Progra m Files\Apache Software Foundation\Maven 1.0.2\lib\ant-1.5.3-1.jar;C:\Program Files\Apache Software Foundation\Maven 1.0.2\lib\ant-optional-1.5.3-1.jar [junit] [DEBUG] Finding class java.testing.forms.epay.CreditCardFormTest [junit] Running java.testing.forms.epay.CreditCardFormTest [junit] [DEBUG] Class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl loaded from parent loader [junit] [DEBUG] ResourceStream for META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration loaded from parent loader [junit] [DEBUG] Class org.apache.xerces.parsers.XML11Configuration loaded from parent loader [junit] [DEBUG] Class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl loaded from parent loader [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec [junit] [ERROR] TEST java.testing.forms.epay.CreditCardFormTest FAILED -------------------------- NOTE: This message and any included attachments are from HealthCom Partners, LLC and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail. |
It look like an invalide unitTestSourceDirectory path in your project.xml
Nicolas 2005/6/14, Simon McClenahan <[hidden email]>: > I am trying to use Maven 1 to manage an existing project(s), from within > Eclipse plug-in Mevenide and/or the command line. > > When using the goal jar:jar , I get the following debug output for > test:test. I can run the Junit tests just fine in Eclipse, but running > Maven from Eclipse or the command line gives me failed unit tests. One > thing I've noticed as I write this is that my Java package starts with > testing.* , whereas this output shows java.testing.* > > When I do maven test:ui, I can run the tests successfully as well. > > test:test: > [taskdef] [DEBUG] Class > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from > parent loader > [taskdef] [DEBUG] +User task: junit > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask > [DEBUG] Found /C:/Documents and > Settings/smcclenahan/.maven/repository/junit/jars/junit-3.8.1.jar > [DEBUG] Found /C:/Program Files/Apache Software Foundation/Maven > 1.0.2/lib/ant-1.5.3-1.jar > [DEBUG] Found /C:/Program Files/Apache Software Foundation/Maven > 1.0.2/lib/ant-optional-1.5.3-1.jar > [junit] [DEBUG] fileset: Setup scanner in dir > C:\projects\online\trunk\PatientCompass\src\test with patternSet{ > includes: [**/*Test.java] excludes: [**/*AbstractTestCase.java] } > [junit] [VERBOSE] Using System properties > {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, > sun.boot.library.path=C:\j2sdk1.4\jre\bin, java.vm.version=1.4.2_06-b03, > java.vm.vendor=Sun Microsystems Inc., > java.vendor.url=http://java.sun.com/, path.separator=;, > java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, > user.country=US, sun.os.patch.level=Service Pack 2, > java.vm.specification.name=Java Virtual Machine Specification, > user.dir=C:\projects\online\trunk\PatientCompass, > java.runtime.version=1.4.2_06-b03, forehead.conf.file=C:\Program > Files\Apache Software Foundation\Maven 1.0.2\bin\forehead.conf, > java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, > basedir=C:\projects\online\trunk\PatientCompass, > java.endorsed.dirs=C:\j2sdk1.4\lib\endorsed;C:\Program Files\Apache > Software Foundation\Maven 1.0.2\lib\endorsed, os.arch=x86, > java.io.tmpdir=C:\Temp\, line.separator= > , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, > maven.repo.remote=file:///localhost/projects/online/trunk,http://public. > planetmirror.com/pub/maven/,http://www.ibiblio.org/maven/, > os.name=Windows XP, sun.java2d.fontpath=, > tools.jar=C:\j2sdk1.4\lib\tools.jar, > java.library.path=C:\j2sdk1.4\bin;.;C:\Windows\system32;C:\Windows;C:\Or > acle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1 > .4.2\bin\client;C:\Program Files\Compaq\Compaq Management > Agents\Dmi\Win32\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\ > Wbem;C:\Program Files\Subversion\bin;C:\Program > Files\Symantec\pcAnywhere\;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\b > in;C:\Program Files\Apache Software Foundation\Maven 1.0.2\bin, > javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFacto > ryImpl, maven.home.local=C:\Documents and Settings\smcclenahan/.maven, > java.specification.name=Java Platform API Specification, > java.class.version=48.0, maven.repo.local=C:\Documents and > Settings\smcclenahan/.maven/repository, > java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFac > tory, os.version=5.1, user.home=C:\Documents and Settings\smcclenahan, > user.timezone=GMT, java.awt.printerjob=sun.awt.windows.WPrinterJob, > java.specification.version=1.4, file.encoding=Cp1252, > user.name=smcclenahan, > java.class.path=/c:/eclipse/plugins/org.mevenide.ui_0.4.0/lib/forehead-1 > .0-beta-5.jar, java.vm.specification.version=1.0, > sun.arch.data.model=32, java.home=C:\j2sdk1.4, > java.specification.vendor=Sun Microsystems Inc., user.language=en, > awt.toolkit=sun.awt.windows.WToolkit, java.vm.info=mixed mode, > java.version=1.4.2_06, java.ext.dirs=C:\j2sdk1.4\jre\lib\ext, > sun.boot.class.path=C:\Program Files\Apache Software Foundation\Maven > 1.0.2\lib\endorsed\xerces-2.4.0.jar;C:\Program Files\Apache Software > Foundation\Maven > 1.0.2\lib\endorsed\xml-apis-1.0.b2.jar;C:\j2sdk1.4\jre\lib\rt.jar;C:\j2s > dk1.4\jre\lib\i18n.jar;C:\j2sdk1.4\jre\lib\sunrsasign.jar;C:\j2sdk1.4\jr > e\lib\jsse.jar;C:\j2sdk1.4\jre\lib\jce.jar;C:\j2sdk1.4\jre\lib\charsets. > jar;C:\j2sdk1.4\jre\classes, java.vendor=Sun Microsystems Inc., > javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Document > BuilderFactoryImpl, maven.home=C:\Program Files\Apache Software > Foundation\Maven 1.0.2, file.separator=\, > java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, > sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, > sun.cpu.isalist=pentium i486 i386} > [junit] [VERBOSE] Implicitly adding C:\Documents and > Settings\smcclenahan\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Pro > gram Files\Apache Software Foundation\Maven > 1.0.2\lib\ant-1.5.3-1.jar;C:\Program Files\Apache Software > Foundation\Maven 1.0.2\lib\ant-optional-1.5.3-1.jar to CLASSPATH > [junit] [VERBOSE] Using CLASSPATH > C:\projects\online\trunk\PatientCompass\target\test-classes;C:\projects\ > online\trunk\PatientCompass\target\classes;C:\Documents and > Settings\smcclenahan\.maven\repository\struts\jars\struts-1.0.2.jar;C:\D > ocuments and > Settings\smcclenahan\.maven\repository\commons-logging\jars\commons-logg > ing-SNAPSHOT.jar;C:\Documents and > Settings\smcclenahan\.maven\repository\commons-lang\jars\commons-lang-SN > APSHOT.jar;C:\Documents and > Settings\smcclenahan\.maven\repository\commons-httpclient\jars\commons-h > ttpclient-2.0.jar;C:\Documents and > Settings\smcclenahan\.maven\repository\junit\jars\junit-3.8.1.jar;C:\Doc > uments and > Settings\smcclenahan\.maven\repository\Common\lib\jars\j2ee.jar;C:\Docum > ents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\sample3a_ej > b.jar;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\framework-e > xt.jar;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\framework.j > ar;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\util.jar;C: > \Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\psclient.ja > r;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\quikpay.jar > ;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\reference\jars\content.jar > ;C:\Documents and > Settings\smcclenahan\.maven\repository\Common\lib\jars\dao.jar;C:\Progra > m Files\Apache Software Foundation\Maven > 1.0.2\lib\ant-1.5.3-1.jar;C:\Program Files\Apache Software > Foundation\Maven 1.0.2\lib\ant-optional-1.5.3-1.jar > [junit] [DEBUG] Finding class > java.testing.forms.epay.CreditCardFormTest > [junit] Running java.testing.forms.epay.CreditCardFormTest > [junit] [DEBUG] Class > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl loaded from parent > loader > [junit] [DEBUG] ResourceStream for > META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration > loaded from parent loader > [junit] [DEBUG] Class org.apache.xerces.parsers.XML11Configuration > loaded from parent loader > [junit] [DEBUG] Class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl > loaded from parent loader > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [junit] [ERROR] TEST java.testing.forms.epay.CreditCardFormTest > FAILED > > -------------------------- > NOTE: This message and any included attachments are from HealthCom Partners, LLC and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail. > > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Free forum by Nabble | Edit this page |