Resources not filtering with eclipse/WTP 1.5 launching tomcat from WTP

2008-04-16 Thread Jared Blitzstein
I have resource filtering setup and working correctly (when I build a  
war or mvn jetty:run), but when I deploy to tomcat from Eclipse 3.3/ 
WTP 1.5, the ${} values are not parsed at that point. Does anyone have  
any suggestion to get that working? I saw this with WTP 2.0 (http://docs.codehaus.org/display/M2ECLIPSE/Integration+with+WTP 
) but it doesn't address that issue specifically. It would be my guess  
that I would some how have to tell eclipse to publish from the / 
target/ directory rather then the /src/main/webapp/ and hook in a mvn  
war:war command before every launch. Anyone have any suggestions?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: continuous integration server

2008-04-15 Thread Jared Blitzstein
Just an FYI, bamboo 2.0 went live today. I've looked at both  
Continuum, Bamboo, Hudson, and Team City. I've hit some weird issues  
with Hudson that I couldn't work out (note: the author was willing to  
lend a hand but I didn't have enough time) and had to just move on,  
but it built 4 out of 5 of my projects no problem. I'm currently  
playing with Bamboo and it seems to fit well for my needs. I would  
recommend giving each of them a few hours of play time and coming up  
with your own opinion, but ultimately I'm going with Bamboo (Team City  
would be my next choice followed closely by a revisit to Hudson). I  
definitely wasn't a fan of Continuum, but I also haven't looked at it  
in a while


On Apr 15, 2008, at 11:44 AM, Matthew Tordoff wrote:


Has anyone looked at Bamboo?

-Original Message-
From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
Sent: 13 April 2008 13:21
To: Maven Users List
Subject: Re: continuous integration server

Hudson, without a doubt.
See https://hudson.dev.java.net/ or a live instance at
http://hudson.jboss.org/hudson/

On Sun, Apr 13, 2008 at 1:36 PM, Peter Horlock
[EMAIL PROTECTED] wrote:

Hi,

Which continuous integration server would you recommend me?

Continuum? Or is there also a version by sonatype in the making?! :-)


Thanks in advance,


Peter



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




The content of this e-mail is confidential and may be privileged. It  
may be read, copied and used only by the intended recipient and may  
not be disclosed, copied or distributed. If you received this email  
in error, please contact the sender immediately by return e-mail or  
by telephoning +44 20 7260 2000, delete it and do not disclose its  
contents to any person. You should take full responsibility for  
checking this email for viruses. Markit reserves the right to  
monitor all e-mail communications through its network.
Markit and its affiliated companies make no warranty as to the  
accuracy or completeness of any information contained in this  
message and hereby exclude any liability of any kind for the  
information contained herein. Any opinions expressed in this message  
are those of the author and do not necessarily reflect the opinions  
of Markit.
For full details about Markit, its offerings and legal terms and  
conditions, please see Markit's website at http://www.markit.com http://www.markit.com/ 
 .


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: continuous integration server

2008-04-15 Thread Jared Blitzstein
The ease of installing Hudson was unbelievable, especially the test  
drive. I want to elaborate on my statement a little bit, I looked at  
Continuum and Hudson late last year and haven't used them since  
(though I tried to give Hudson another spin 3 weeks ago and got some  
null pointers right off the bat). I looked at Team City 3 and Bamboo  
(2 beta) last week and the push to use one over the other was that we  
already use a few Atlassian products at my job. They were both quality  
products and seem robust, but the ease of Hudson makes it very  
appealing as well.


On Apr 15, 2008, at 12:05 PM, Adam wrote:


We had used Continuum and had no problems with it for the most part
until we came across a bug in our version (1.0.3) that we'd have had
to upgrade to 1.1.  We switched to Hudson at that point just based on
ease of installation and it has been great for the time we've been
using it so I say +1 for Hudson as well.

On Tue, Apr 15, 2008 at 11:50 AM, Jared Blitzstein
[EMAIL PROTECTED] wrote:
Just an FYI, bamboo 2.0 went live today. I've looked at both  
Continuum,
Bamboo, Hudson, and Team City. I've hit some weird issues with  
Hudson that I
couldn't work out (note: the author was willing to lend a hand but  
I didn't
have enough time) and had to just move on, but it built 4 out of 5  
of my
projects no problem. I'm currently playing with Bamboo and it seems  
to fit
well for my needs. I would recommend giving each of them a few  
hours of play
time and coming up with your own opinion, but ultimately I'm going  
with
Bamboo (Team City would be my next choice followed closely by a  
revisit to
Hudson). I definitely wasn't a fan of Continuum, but I also haven't  
looked

at it in a while



On Apr 15, 2008, at 11:44 AM, Matthew Tordoff wrote:



Has anyone looked at Bamboo?

-Original Message-
From: Tom Huybrechts [mailto:[EMAIL PROTECTED]
Sent: 13 April 2008 13:21
To: Maven Users List
Subject: Re: continuous integration server

Hudson, without a doubt.
See https://hudson.dev.java.net/ or a live instance at
http://hudson.jboss.org/hudson/

On Sun, Apr 13, 2008 at 1:36 PM, Peter Horlock
[EMAIL PROTECTED] wrote:


Hi,

Which continuous integration server would you recommend me?

Continuum? Or is there also a version by sonatype in the  
making?! :-)



Thanks in advance,


Peter




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




The content of this e-mail is confidential and may be privileged.  
It may
be read, copied and used only by the intended recipient and may not  
be
disclosed, copied or distributed. If you received this email in  
error,
please contact the sender immediately by return e-mail or by  
telephoning +44
20 7260 2000, delete it and do not disclose its contents to any  
person. You
should take full responsibility for checking this email for  
viruses. Markit
reserves the right to monitor all e-mail communications through its  
network.
Markit and its affiliated companies make no warranty as to the  
accuracy or
completeness of any information contained in this message and  
hereby exclude
any liability of any kind for the information contained herein. Any  
opinions
expressed in this message are those of the author and do not  
necessarily

reflect the opinions of Markit.

For full details about Markit, its offerings and legal terms and

conditions, please see Markit's website at http://www.markit.com
http://www.markit.com/ .


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Adam Altemus
MobilVox, Inc.
http://www.mobilvox.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I add a directory to the classpath to run JUnit tests in the command line?

2008-04-15 Thread Jared Blitzstein
I'm doing a demo app using JUnit 4 and Spring annotations and having  
some trouble getting maven to run my tests. They launch and run  
correctly in eclipse, but mvn test cannot find my xml context files  
because they're not on the classpath (they're in /webapp/WEB-INF/) and  
my JUnit test is using @ContextConfiguration(locations = { /todo- 
application-context.xml, /todo-data.xml }). I saw  
maven.plugin.classpath and maven.test.classpath (though it seems maven  
1.x) and launching via mvn test -Dmaven.plugin.classpath=/src/main/ 
webapp/WEB-INF/ (i've tried the absolute path too) but it's still  
giving me a FileNotFound exception on my *.xml files. Any ideas?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How can I add a directory to the classpath to run JUnit tests in the command line?

2008-04-15 Thread Jared Blitzstein

Answered my own question I think, I did it via the POM

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-surefire-plugin/artifactId
  version2.4.2/version  
configuration
additionalClasspathElements
additionalClasspathElementsrc/main/webapp/WEB-INF// 
additionalClasspathElement

/additionalClasspathElements
  /configuration
/plugin

However, my tests don't seem to be returning. I can see it execute the  
first one, then just sit there.


On Apr 15, 2008, at 12:21 PM, Jared Blitzstein wrote:

I'm doing a demo app using JUnit 4 and Spring annotations and having  
some trouble getting maven to run my tests. They launch and run  
correctly in eclipse, but mvn test cannot find my xml context files  
because they're not on the classpath (they're in /webapp/WEB-INF/)  
and my JUnit test is using @ContextConfiguration(locations = { / 
todo-application-context.xml, /todo-data.xml }). I saw  
maven.plugin.classpath and maven.test.classpath (though it seems  
maven 1.x) and launching via mvn test -Dmaven.plugin.classpath=/src/ 
main/webapp/WEB-INF/ (i've tried the absolute path too) but it's  
still giving me a FileNotFound exception on my *.xml files. Any ideas?




Re: Publishing to Tomcat from Eclipse, my filtered files aren't being filtered

2007-08-15 Thread Jared Blitzstein
I do have that plugin installed, anything specific I should look at?  
The general workflow I follow is to do my coding in eclipse, do a  
mvn compile in a terminal window, at that point either do mvn  
jetty:run if I only want to run that app or go back to eclipse,  
refresh that project and start up tomcat from WTP. I'm guessing there  
needs to be some type of process that happens before I start tomcat  
that allows maven to setup a staging area (I'm guessing 'target'),  
then publish that off to tomcat. I thought it already did that, but  
apparently not. Any thoughts?


On Aug 15, 2007, at 3:42 PM, Adam Hardy wrote:


Jared Blitzstein on 14/08/07 19:40, wrote:
I have a few configuration files that need to be filtered when  
run. When I run in jetty or build a war for deployment, they are  
filtered correctly. But when I deploy to tomcat from eclipse, they  
are not. Is there a way I can make sure eclipse publishes / tomcat  
uses a filtered set of values for those files?


You could try the m2eclipse plugin. I am having issues with it at  
the moment and slowly learning how WST/WTP, Tomcat and m2eclipse  
interact, so I won't say it can do that yet, but I suspect it can  
or at least may in the near future.


Regards
Adam



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Publishing to Tomcat from Eclipse, my filtered files aren't being filtered

2007-08-14 Thread Jared Blitzstein
I have a few configuration files that need to be filtered when run.  
When I run in jetty or build a war for deployment, they are filtered  
correctly. But when I deploy to tomcat from eclipse, they are not. Is  
there a way I can make sure eclipse publishes / tomcat uses a  
filtered set of values for those files?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can continuum dynamically update the version number in an m2 pom?

2007-07-05 Thread Jared Blitzstein
I have a few apps that I build using maven2 as part of a sweet and  
they all have the same version number of 4.8.x (major.minor.build)  
right now. When building with maven2 by hand, the pom has  
version4.8.${buildVersion}/version  and when I call the goal of  
war:exploded I pass in -DbuildVersion=5 so this results in a build of  
version 4.8.5. However continuum does not like this because it's  
literally outputting 4.8.${builderVersion} if I pass in - 
DbuildVersion=5 as an argument in the build definition.


Is the preferred method to update the pom file for every single  
build? This could get pretty tedious having to change CVS controlled  
files just to build. Is there a simpler way that I can define the  
version in continuum and have the pom pick it up for the build?


Re: Filtering resources into a directory other than classes for a webapp?

2007-06-28 Thread Jared Blitzstein
Yeah, looks like 2.0 doesn't work and when I switched it to 2.0.2 it  
worked right away.


On May 7, 2007, at 12:31 PM, stig.lau wrote:



I was looking for the same solution, and the war-plugin seemed right.
But my config files were always put in the war root instead of the  
folder i

specified.
The solution for me was to use the 2.0.2 version of the war-plugin  
instead

of 2.0.


Heinrich Nirschl wrote:


On Fri, 2007-04-27 at 15:17 -0400, Jared Blitzstein wrote:

Thanks, I've read that as well as http://maven.apache.org/guides/
getting-started/index.html#How%20do%20I%20filter%20resource%20files
and it's basically the same thing as the WAR plugin...I believe.
Since I need this on both the WAR and the exploded app for jetty,  
I'm

not sure if the war plugin is what I need to be using. But the files
are actually being filtered, it's just they're not ending up in / 
WEB-

INF/config/ like I want.  They're going to /WEB-INF/classes/WEB-INF/
config/. Here is the snippet from my pom

filters
filtersrc/main/filters/${env}.var/filter
/filters
resources
resource

directorysrc/main/webapp/WEB-INF/config/directory
filteringtrue/filtering
targetPathWEB-INF/config//targetPath
/resource
/resources


Any ideas?



I have not tried this, but according to the documentation a
configuration similar to this for the war plugin should work:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration
  filters
filtersrc/main/filters/${env}.var/filter
  /filters
  webResources
 resource
   !-- the config files you want to filter should be in this
directory --
   directoryconfigurations/directory
   targetPathWEB-INF/config/targetPath
   !-- enable filtering --
   filteringtrue/filtering
 /resource
  /webResources
/configuration
  /plugin

- Henry


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: http://www.nabble.com/Filtering- 
resources-into-a-directory-other-than-classes-for-a-webapp-- 
tf3658613s177.html#a10360724

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven2 property to get absolute location of POM?

2007-06-26 Thread Jared Blitzstein
Is there a POM property that can return the absolute path or itself?  
I have a dependency that must use the systemPath tag but the absolute  
path could be different for all our developers, but it's always the  
same relative to the pom. Any idea how to accomplish this with just  
entries in the POM, I don't want to have to set environment vars on  
the system.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing in maven_opts at run time?

2007-05-04 Thread Jared Blitzstein
Is there a way to pass in maven_opts at run time? I have the  
environment variable set and it works when I run maven from my  
console, but I'm using a build manager and it seems to be calling  
maven and it's ignoring the environment variable some how. I was  
wondering if there was a way I could call maven and specify -Xmx384m  
-Xms256m -XX:MaxPermSize=256m -verbose:gc via the command line to  
ensure it's using those.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multi-module passing properties to children

2007-05-02 Thread Jared Blitzstein
Does using the parent tag require the project to be in a repository?  
I planned on having this suitepom accessible via CVS but not  
something that is going to be installed in our company repo. I may be  
way off base though.


Also, how would you pass something through like a version? The  
version tag is required in the child pom so you can't leave it out,  
and if I do ${version} it doesn't pick that up from the definition in  
the master pom, it just uses ${version} literally.


On May 2, 2007, at 5:17 PM, Wayne Fay wrote:


Put the shared properties in profiles in the parent pom, include the
children as modules/ in the parent pom, and use the parent tag in
the children to share properties with all your poms.

Or is there a specific reason this is not sufficient?

Wayne

On 5/2/07, Jared Blitzstein [EMAIL PROTECTED] wrote:
I have 5 projects that I want to build as a suite.  I created a  
multi-

module to do this and it's fine out of the box for just calling the
sub projects. But I need to be able to set variables in the multi-
module to pass in like the version, profile, and some other basic
things. But I also need to make sure each of these projects can live
on their own. I've read http://www.sonatype.com/book/pom-
relationships.html as well as the getting-started on mavens website
but they don't speak to what I'm trying to do. Can anyone point me in
the right direction?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



antrun plugin not honoring overwrite=false (explicit or by default)

2007-04-30 Thread Jared Blitzstein
Anyone else have a problem with antrun ignoring overwrite=false? I  
have the following in my pom


plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
phasecompile/phase
goals
goalrun/goal
/goals
configuration
tasks
copy

todir=${basedir}/target/${artifactId}/WEB-INF/config/
fileset

dir=${basedir}/target/classes/config/
include 
name=*.* /

/fileset
/copy
copy 
overwrite=false

todir=${basedir}/src/main/webapp/WEB-INF/config/
fileset

dir=${basedir}/target/classes/config/
include 
name=*.* /

/fileset
/copy
/tasks
/configuration
/execution
/executions
/plugin


The second copy shouldn't override files if they already exist in  
that directory, but it is. Anyone see anything incorrect with this code?




Re: How to run ant tasks in maven 2?

2007-04-30 Thread Jared Blitzstein
Are you running the deploy goal or something else that executes that  
phase? Also I'm not sure if you're supposed to define a target.


On Apr 30, 2007, at 8:48 PM, Baz wrote:


All,

I read the page in
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html but  
i still

cannot make a simple ant task work in maven 2. Please help.

Here is my code:

 plugin
   artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
   phasedeploy/phase
 configuration
   tasks
 target name=aaa
   echo message=Testing/
 /target
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
 /plugin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
I'm using the webapp archetype and our apps are configured to have  
the properties files in /WEB-INF/config/ rather than /WEB-INF/ 
classes/ which maven defaults to for resource filtering. I see the  
targetPath tag in the resource tag but that's only for packages,  
not directories outside classes. I tried tricking it with a path  
of ../config/ but that only works when it creates the classes  
directory, not the WAR or exploded app. Any suggestions to get this  
to work without having to run an ant script afterwards to move the  
files?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Filtering resources into a directory other than classes for a webapp?

2007-04-27 Thread Jared Blitzstein
Thanks, I've read that as well as http://maven.apache.org/guides/ 
getting-started/index.html#How%20do%20I%20filter%20resource%20files  
and it's basically the same thing as the WAR plugin...I believe.  
Since I need this on both the WAR and the exploded app for jetty, I'm  
not sure if the war plugin is what I need to be using. But the files  
are actually being filtered, it's just they're not ending up in /WEB- 
INF/config/ like I want.  They're going to /WEB-INF/classes/WEB-INF/ 
config/. Here is the snippet from my pom


filters
filtersrc/main/filters/${env}.var/filter
/filters
resources
resource

directorysrc/main/webapp/WEB-INF/config/directory
filteringtrue/filtering
targetPathWEB-INF/config//targetPath
/resource
/resources


Any ideas?


On Apr 27, 2007, at 12:28 PM, Heinrich Nirschl wrote:


On 4/27/07, Jared Blitzstein [EMAIL PROTECTED] wrote:

I'm using the webapp archetype and our apps are configured to have
the properties files in /WEB-INF/config/ rather than /WEB-INF/
classes/ which maven defaults to for resource filtering. I see the
targetPath tag in the resource tag but that's only for packages,
not directories outside classes. I tried tricking it with a path
of ../config/ but that only works when it creates the classes
directory, not the WAR or exploded app. Any suggestions to get this
to work without having to run an ant script afterwards to move the
files?


The war plugin can do that. Have a look at
http://maven.apache.org/plugins/maven-war-plugin/examples/adding- 
filtering-webresources.html


- Henry

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]