Re: Property overwriting - resource filtering for sub project

2006-09-25 Thread fagfa
I'm still stuck with this one and can't believe no one knows the answer ... fagfa wrote: > > We have a parent project which contains several J2EE subprojects, such as > web, ejb, ear, etc.. In the parent POM, a property "db" is defined, whose > default is "

Re: Property overwriting - resource filtering for sub project

2006-09-06 Thread fagfa
No one knows??? fagfa wrote: > > We have a parent project which contains several J2EE subprojects, such as > web, ejb, ear, etc.. In the parent POM, a property "db" is defined, whose > default is "hsql", for example. Build for various databases can be > switc

Property overwriting - resource filtering for sub project

2006-09-05 Thread fagfa
rks perfectly. But when I specify "-Ddb=mysql", the resource files are filtered, but still by the properties in the parent POM, not from command line. Based on my understanding, property specified in command line should precede elsewhere specified, which is NOT happending here. Any ideas? T

JDBC driver Jar for MS SQL Server 2000/2005

2006-08-29 Thread fagfa
Hi, where (I mean, M2 repository) can I found the JDBC driver jar for Microsoft SQL server 2000 and 2005? Thanks, -- View this message in context: http://www.nabble.com/JDBC-driver-Jar-for-MS-SQL-Server-2000-2005-tf2184254.html#a6041313 Sent from the Maven - Users forum at Nabble.com.

Re: Use different database for test and package phase

2006-08-22 Thread fagfa
Thanks. But I do want to use "-D" to pass database variable since I also package for other databases, such as oracle, db2, psql, etc. Alexandre Russel-2 wrote: > > On Tuesday 22 August 2006 16:15, fagfa wrote: > I had the same problem testing ejb. The unit test wher

Re: Use different database for test and package phase

2006-08-22 Thread fagfa
ase property in this phase? 3) copy mysql.properties to "classes/META-INF" during "package" phase; again, I'm not sure how to do so? Maybe need to resort to embeding ant script? Any help is appreciated. Thanks, fagfa wrote: > > Hi, I have a database specific resource file wh

Use different database for test and package phase

2006-08-22 Thread fagfa
Hi, I have a database specific resource file which needs to copy to "classes/META-INF" and as a result, package into the jar file, for example, hsql.properties, mysql.properties, etc. I specify this database property in POM, and default value is "hsql". The problem is that I only use hsql for my

Re: resource file overriding/excluding for unit testing

2006-08-03 Thread fagfa
Can we also exclude some paths from test? For example, in my case, I want to exclude "classes/META-INF/*.*" from my testing since I'm using "test-classes/META-INF/*.*". Thanks, davidkarlsen wrote: > > fagfa wrote: >> >> fagfa wrote: >> >&

Re: resource file overriding/excluding for unit testing

2006-08-03 Thread fagfa
fagfa wrote: > > Hi, > > I'd like use different resource file (eg, persistence.xml for ejb3) for > unit testing and the problem is that "maven-surefire-plugin" always > include "target/classes" in the classpath and its sub dir "MATA-INF"

resource file overriding/excluding for unit testing

2006-08-02 Thread fagfa
e same file in "target/test-classes", which is the one I'd like to use during unit testing. I could not find a way to skip this recource file copying during test phase. Any advice? Thanks, fagfa -- View this message in context: http://www.nabble.com/resource-file-overriding-excluding-