Re: what does --define do in maven

2012-02-18 Thread sarmahdi
thanks for the comment stephen: I agree, it does seem like a bootstrap or adhoc way of passing which JDK we need to compile with: How ever, i made profiles. So you think making profiles is a good way or not. i made two profiles and gave the compiler plugin settings differently. So when i call wi

Re: scm connection vs developer connection

2012-02-18 Thread sarmahdi
Thanks Wayne for the reply. Can any one also tell me the difference between connection and developerconnection and is there a way to define three or four connection urls for 4 different streams. Thanks Syed... -- View this message in context: http://maven.40175.n5.nabble.com/scm-connection-vs-d

Re: How to exclude resources from war?

2012-02-18 Thread Greg Thomas
On 17 February 2012 18:36, David Hoffer wrote: > Where is logback-test.xml in your directory structure relative to the pom? Currently for legacy reasons in src/main/webapp/WEB-INF/classes - though I'm sure that we have tested it in src/main/resources. On 17 February 2012 18:44, Sebastian Otaegui

Re: How to exclude resources from war?

2012-02-18 Thread Greg Thomas
On 18 February 2012 10:46, Greg Thomas wrote: > On 17 February 2012 18:36, David Hoffer wrote: >> Where is logback-test.xml in your directory structure relative to the pom? > > Currently for legacy reasons in src/main/webapp/WEB-INF/classes - > though I'm sure that we have tested it in src/main/r

Re: what does --define do in maven

2012-02-18 Thread Stephen Connolly
No. Toolchains that is the way. Profiles are not best suited to that, esp when you are hardcoding paths in the profile. If you are doing Maven right, on another new PC running any of MacOS/Linux/Windows you should just need to install maven, setup your toolchains.xml and settings.xml and checkout

Re: scm connection vs developer connection

2012-02-18 Thread Wayne Fay
> Thanks Wayne for the reply. Can any one also tell me the difference between > connection and developerconnection and is there a way to define three or > four connection urls for 4 different streams. This is covered in the Maven documentation: http://maven.apache.org/pom.html#SCM Wayne

Re: How to exclude resources from war?

2012-02-18 Thread Greg Thomas
On 18 February 2012 10:55, Greg Thomas wrote: > On 18 February 2012 10:46, Greg Thomas wrote: >> On 17 February 2012 18:36, David Hoffer wrote: >>> Where is logback-test.xml in your directory structure relative to the pom? >> >> Currently for legacy reasons in src/main/webapp/WEB-INF/classes - >

Re: what does --define do in maven

2012-02-18 Thread sarmahdi
Stephen, i just saw toolchain. for jdk yes its a good way, pretty much the same way I am doing in profiles. It will only add one more step (or xml tree) to add a tool chain instead of reading from properties in the compiler plugin the profile will be bound by its own specific tool chain for the

Re: what does --define do in maven

2012-02-18 Thread sarmahdi
ahh!!! yes you are right stephen,cos POMs can be committed with the code and toolchains.xml and settings.xml are machine specific or more accurately, local maven installation specific so the POM are still portable. Hmm i guess have to go that way .. I will build profiles that use their own tool

Re: what does --define do in maven

2012-02-18 Thread Stephen Connolly
It is a question of itch scratching... If it is your itch, scratch it, submit a patch, and it will be done ;-) On Saturday, 18 February 2012, sarmahdi wrote: > Stephen, > > i just saw toolchain. > > for jdk yes its a good way, pretty much the same way I am doing in profiles. > It will only add on

Maven fails to run any tests was:TestNG dependency not found

2012-02-18 Thread Gogirl
Wayne wrote> I am guessing that you made changes but did not re-import yet. I am only using the IDE Editor to edit. Sorry for the mixup. I am only using the console and a simple bat file with maven goals and phases. I have made the following changes to the original Maven in 5 min example: Change

Re: How to exclude resources from war?

2012-02-18 Thread David Hoffer
But in that case wouldn't it be excluded in the compile phase too? I'm looking for a way to include the resources for all uses (i.e. compile phase) but just not package it in the war. E.g. as if they have provided scope. That just gives me an idea...I might move those resources to a new module an

Re: Maven fails to run any tests was:TestNG dependency not found

2012-02-18 Thread Stephen Connolly
Sure fire expects test class names to begin or end with Test unless you configure it otherwise... Rename your test and it will run ;-) On Saturday, 18 February 2012, Gogirl wrote: > Wayne wrote> I am guessing that you made changes but did not re-import yet. > I am only using the IDE Editor to ed

Re: what does --define do in maven

2012-02-18 Thread sarmahdi
Hello Stephen, I need some help i guess: I tried to use toolchains to actually compile the code with JDK 5 while my default java_home is jdk6 and it said : [DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile from plugin realm ClassRealm[plugin>org.apache.maven.

Re: what does --define do in maven

2012-02-18 Thread Stephen Connolly
Copy your toolchains and Pom into *pastebin* or *gist* and post *the link* I will take a look Do not try posting you Pom in the reply, do not pass go, do not collect $200, do not pick up any community chest cards On Saturday, 18 February 2012, sarmahdi wrote: > Hello Stephen, > > I need some hel

creating problem for hot deploy

2012-02-18 Thread ashutoshd
com.XX 3.2 system ${basedir}/lib/XX-3.1.4.jar this is creating problem for auto build of projects in maven can anyone tell me what is the corr

Re: creating problem for hot deploy

2012-02-18 Thread Stephen Connolly
don't use scope=system either: 1. install the artifact in your local repo or 2. (Better) deploy the artifact to your maven repository manager Friends don't let friends use Maven without a Repository Manager Friends don't let friedns use Scope = system -Stephen On 17 February 2012 15:03, ash

compile and run a class before the comiple phase

2012-02-18 Thread jgruber
Hello all.. still learning maven. I have a project where I need to compile a class and then run its main method to acquire some of the needed files for the compile phase. The files I need to acquire require a bit of massaging of a HTTP conversation to work, so that part is proprietary to my class

Help! What I'm doing wrong with release:branch?

2012-02-18 Thread Dipl.-Ing. Torsten Liermann
Hi, (sorry, I can't speak english :( ) I would like to create a branch with a release version in all pom's The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release version should be 3.0-b01. Calling maven with mvn org.apache.maven.plugins:maven-release-plugn:2.2.2:branch -DbranchN

Re: compile and run a class before the comiple phase

2012-02-18 Thread Stephen Connolly
put it in a separate module On 18 February 2012 15:14, jgruber wrote: > Hello all.. still learning maven.  I have a project where I need to compile a > class and then run its main method to acquire some of the needed files for > the compile phase. The files I need to acquire require a bit of mass

Re: compile and run a class before the comiple phase

2012-02-18 Thread Stephen Connolly
or better yet, make it a plugin On 19 February 2012 01:38, Stephen Connolly wrote: > put it in a separate module > > On 18 February 2012 15:14, jgruber wrote: >> Hello all.. still learning maven.  I have a project where I need to compile a >> class and then run its main method to acquire some of

Re: creating problem for hot deploy

2012-02-18 Thread ashutoshd
I m totally new to Maven . Can you please give me an example on this , taking this one as sample so that I can figure out how to write others for both point 1 and 2. Can you explain the What do you mean with repository manager -- View this message in context: http://maven.40175.n5.nabble.com/sy

Re: creating problem for hot deploy

2012-02-18 Thread Wayne Fay
> this is creating problem for auto build of projects in maven What does "auto build" mean? > can anyone tell me what is the correct way to write so that maven can be > auto build again Don't use system scope. As Stephen already told you. Stephen also mentioned and you asked about a repository