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.
