Two classes with same name in src/main/java and src/test/java

2011-01-03 Thread Manuel Doninger
Hi, i have the following constellation: I have a class Feature.java and a class MapData.java in my folder src/main/java. The Feature contains some work to do, and the MapData is contains a HashMap which is populated with data from a database and their methods are called in Feature. Now i want to

Re: Best practice for integration testing (IT)?

2011-01-03 Thread Anders Hammar
As far as I know, the same. There is no change out of a user's perspective when using Maven 3.0. /Anders On Sun, Jan 2, 2011 at 19:57, Guo Du mrdu...@duguo.org wrote: Happy New Year everyone, maven-failsafe-plugin was used in [1] to perform IT. Both [1] and [2] mentioned src/it/java, in

Re: Two classes with same name in src/main/java and src/test/java

2011-01-03 Thread Samuli Saarinen
Hello, You could use jmockit [1] and replace the functionality in MapData. Or you could change the Feature class to accept MapData as contructor arg or with setter and replace it in tests with another implementation of MapData... br, Samuli [1] http://code.google.com/p/jmockit/ On

Re: Profile and dependencies not activated

2011-01-03 Thread Pazmiño Mazón , Iván Andrés
Thanks for your reply. I've moved the profile to the enterprise pom and is being activated now. Still the libraries are not resolved while compiling even when dependency:tree resolves them just fine with the right versions. -Original Message- From: Justin Edelson jus...@justinedelson.com

Resource-Plugin

2011-01-03 Thread Asmann, Roland
Hi all, I was playing around with the resource-plugin to copy several resources around in my project, and found a problem with the plugin. It appears that the parameter 'includeEmptyDirs' is not always (!) being obeyed. From what I can see, it works when I configure several resources and do

Re: Profile and dependencies not activated

2011-01-03 Thread Wayne Fay
Thanks for your reply. I've moved the profile to the enterprise pom and is being activated now. Still the libraries are not resolved while compiling even when dependency:tree resolves them just fine with the right versions. Why are you using profiles at all? Can you post a sample of what's

Cleaning a POM file

2011-01-03 Thread ping.sumit
hi, I am new to the Maven and trying to clean a POM file. Please let me know how can I make sure if any plugins, repositories or dependencies are not in use. Thanks in Advance -- View this message in context: http://maven.40175.n5.nabble.com/Cleaning-a-POM-file-tp3326392p3326392.html Sent from

Re: Cleaning a POM file

2011-01-03 Thread Ron Wheeler
On 03/01/2011 6:39 PM, ping.sumit wrote: hi, I am new to the Maven and trying to clean a POM file. Please let me know how can I make sure if any plugins, repositories or dependencies are not in use. Thanks in Advance yes 1) You should only have your own repository. Get Nexus or one of the

Re: Cleaning a POM file

2011-01-03 Thread Guo Du
1 Delete everything you are not sure. 2 run the desired goals such as install site 3 add back required stuff until step 2 success -Guo On 3 Jan 2011 23:39, ping.sumit ping.su...@gmail.com wrote: hi, I am new to the Maven and trying to clean a POM file. Please let me know how can I make sure

Re: Cleaning a POM file

2011-01-03 Thread Justin Edelson
You can use dependency:analyze to identify unused dependencies: http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html On Mon, Jan 3, 2011 at 6:39 PM, ping.sumit ping.su...@gmail.com wrote: hi, I am new to the Maven and trying to clean a POM file. Please let me know how

Indirect dependency of sub modules problem.

2011-01-03 Thread Hayarobi Park
Hello, I'm managing maven project of my team, and having truble in module dependencies.. The root project has some sub modules. A submodule named utils has a few submodule; config, logger, json and etc. Another submodule mid has manager submodule, which are pom project and has core,

Re: Indirect dependency of sub modules problem.

2011-01-03 Thread Anders Hammar
What version of Maven are you using? Have you tried 3.0.1? Out of a module design perspective, I find your structure strange and I think that you should try to re-arrange. In some sense you do have cyclic dependencies, as utils depends on mid, while mid depends on utils. /Anders On Tue, Jan 4,