Add an other sources and classpath folder
I m using MockCreator to build my tests. When I generate the mock objects, I put the source src/mocks/java and the compiled version into target/mocks-classes. How can I add these directories into my pom.xml file?
Re: maven2 TestCase with System.getProperty(java.class.path);
How can I get the current MavenProject into my TestCase setUp() method? 2006/7/12, leahpar [EMAIL PROTECTED]: hello, in fact the classpath you get is not the right one due to classloader inheritance http://maven.apache.org/guides/mini/guide-maven-classloading.html It seems that java.class.path is set at the jvm launch so it cannot hold dynamic modification from classloader... To get the classpath of your project you should use the API of MavenProject there's method like .getTestClasspathElements() .getTestCompileSourceRoots() cordialement. -- View this message in context: http://www.nabble.com/maven2-TestCase-with-System.getProperty%28%22java.class.path%22%29--tf1927109.html#a5283616 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven2 TestCase with System.getProperty(java.class.path);
I have a problem in a TestCase. I need to obtain the current classpath definition and I use the System.getProperty(java.class.path); When i run the TestCase into Eclipse all it's ok and i obtain this value for the java.class.path : java.class.path = H:\eclipse\workspace-spring\cglib\target\test-classes;H:\eclipse\workspace-spring\cglib\target\classes;H:\maven2.repository\junit\junit\3.8.1\junit- 3.8.1.jar;H:\maven2.repository\asm\asm-tree\2.2.1\asm-tree-2.2.1.jar ;H:\maven2.repository\ant\ant\1.6.5\ant-1.6.5.jar ;H:\maven2.repository\asm\asm-attrs\2.2.1\asm-attrs-2.2.1.jar ;H:\maven2.repository\asm\asm\2.2.1\asm-2.2.1.jar ;H:\maven2.repository\asm\asm-commons\2.2.1\asm-commons-2.2.1.jar ;H:\maven2.repository\asm\asm-util\2.2.1\asm-util-2.2.1.jar ;H:\maven2.repository\asm\asm-analysis\2.2.1\asm-analysis-2.2.1.jar ;/d:/apps/dev/Java/eclipse_sdk/eclipse/plugins/org.eclipse.jdt.junit_3.1.1/junitsupport.jar;/d:/apps/dev/Java/eclipse_sdk/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.1.0/junitruntime.jar When I run the same TestCase with maven2 it's failed and I have this value for the java.class.path : java.class.path = D:\apps\dev\maven-2.0.4\core\boot\classworlds-1.1.jar How can configure the pom.xml for having the same java.class.path into Eclipse and maven2.
Desable compile phase during mvn eclipse:eclipse
Some one can he indicate to me how to stop the compile process during mvn eclipse:eclipse execution. I have try this bu it's not work mvn -DdownloadSources=true -Dwtpversion=1.0 -Dnocompile=true eclipse:eclipse
Running junit test with maven
I have defined two module A and B with a common parent module because B depend on A. I have imported the module as Eclipse project. The problem i have a TestCase class into the B module which extends a TestCase into the A module. When I run the test suite with the Eclipse console all is ok, but when I run the mvn test command into the B module, I have java.lang.NoClassDefFoundError with TestCase into A. How can I indicate to surefire plugin to include depend test classpath into it's classpath, to avoid to duplicate the TestCase into the A module?
Create J2EE module
How can I create a J2EE module with archetype:create? Wich archetypeArtifactId value must I used?
ordering classpath with maven2
How can you indicate to maven2 when it's running a test that the jar files must before the jdk jar into the classpath? I have same question for the mvn eclipse:eclipse command, to put the classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ at the last position into .classpath file generated. PG ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]