continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Iskandar" <Johan.Iskan...@ag-it.com>
Subject RE: Classpaths behaviour in mvn
Date Mon, 03 Sep 2007 13:14:31 GMT
Oops sorry wrong forum..

> -----Original Message-----
> From: Johan Iskandar
> Sent: Monday, September 03, 2007 8:04 PM
> To: continuum-users@maven.apache.org
> Subject: Classpaths behaviour in mvn
> 
> Hi,
> 
> While I was running this command "D:/proyek/mvn verify", I was hoping
to
> find my surefire tests runs having in one of it's classpaths the path
> "D:/proyek/proyek-core/target/classes".
> 
> I tested this by invoking the code in one of it's test classes:
> ==========
> URL url = ClassLoader.getSystemResource("file-to-find.xml");
> String file = url==null?null:url.getFile();
> ==========
> But only to find that the variable file was null;
> 
> I made sure the existence of the
> "D:/proyek/proyek-core/target/classes/file-to-find.xml".
> 
> Is there anyway that I could do in the pom.xml file or any other maven
> configs to actually adjust the classpath. Cuz, I'd prefer not to
declare
> it in the mvn command or the shell environment..
> 
> Thanks,
> Johan
> 
> Here's my pom:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> 	<parent>
> 		<artifactId>proyek</artifactId>
> 		<groupId>com.pro</groupId>
> 		<version>1.0-SNAPSHOT</version>
> 	</parent>
> 	<packaging>jar</packaging>
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>com.pro.core</groupId>
> 	<artifactId>proyek-core</artifactId>
> 	<name>proyek-core</name>
> 	<version>1.0-SNAPSHOT</version>
> 	<url>http://maven.apache.org</url>
> </project>
> 
> 



Mime
View raw message