Re: checkstyle plugins: maven and eclipse

2007-10-05 Thread Greg_Vaughn
For the .checkstyle file, I just configured the eclipse prefs UI to point 
to a http url. It was pretty straightforward IIRC. Just poke through the 
checkstyle plugin UI. I think I did it in the project specific settings 
(project properties?). That's what creates the .checkstyle file. Otherwise 
it's stored in the workspace.

On the other point, use build-helper-maven-plugin to deploy the xml file 
as well as the jar.
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html 
attach-artifact section has an example.

-Greg

Jim Sellers [EMAIL PROTECTED] wrote on 10/05/2007 08:15:32 AM:

 Hi Greg.
 
 A couple of questions:
 The .checkstyle file can point to the xml file in the maven repo.
 - how does it do this?  Can you please provide an example?
 
 There's only one source xml config file, but it gets deployed twice.
 - Are you doing that manually?  Do you have it done with maven?  Is so,
 could you provide an example of that or point me in the right direction?
 
 Thanks for your time!
 Jim
 
 
 On 10/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 
  Thanks for mentioning that, Dimitris. I forgot about that piece. 
They're
  not mutually exclusive though. The .checkstyle file can point to the 
xml
  file in the maven repo.
 
  houzecl, I don't think I was clear enough in my first message. I have 
both
  the xml in a jar and the xml out of a jar in the maven repo. Maven 
uses
  the one in the jar. The eclipse plugin uses the one out of the jar.
  There's only one source xml config file, but it gets deployed twice. 
It's
  not quite optimal, but it was close enough for our purposes.
 
  Someone else commented that you can add extra info in a parent pom for 
the
  eclipse plugin that will add the metadata for checkstyle when
  eclipse:eclipse goal is run. We went with more of Dimitris' approach 
here.
  The .checkstyle file is part of our archetypes to make the eclipse 
plugin
  happy. But we do use the jar file for maven invocation.
 
  -Greg Vaughn
 
  Dimitris Kapanidis [EMAIL PROTECTED] wrote on 10/04/2007 
03:47:17
  AM:
 
   I have another solution to this problem, which is not the maven way 
but
   works equally.
  
   I have uploaded the file on a web server and accessing it from 
there:
  
   Eclipse is using .checkstyle config to see the remote location of 
the
   configuration (there is an option for remote file)
   Maven is using the parent pom.xml to see the same remote location of 
the
 
   configuration.
plugin
   artifactIdmaven-checkstyle-plugin/artifactId
   configuration
  
  
  configLocationhttp://www.someplace.net/scytl_checkstyle.xml
  /configLocation
   /configuration
/plugin
  
   I'd prefer the jar solution though, is much cleaner.
  
   houzecl wrote:
Yes, the last part of your post is what we'd like to do:
   
One mavenized projet holding a set of configuration files.
So that you can version, deploy, and access the jar containing the
appropriate set of rules.
We do not want to embed the rules inside the project(s) that will 
be
  using
the rules.
we want these rules to be common (as sun_checks).
   
Therefore, once the rules'jar is available in the repository, it 
can
  be
accessed by maven (no probs)
BUT how can you make it available to eclipse at the same time ? 
(do
  you
explode the jar in the repository when you deploy it ?, so that
  eclipse
checkstyle can reference the xml files ...)
   
anyway, I posted the question in checkstyle mailing list.
If I get an answer, I'll post it
   
good day,
   
Christian-Luc
   
   
   
Greg_Vaughn wrote:
   
I am using maven-checkstyle-plugin with a specific configuration
  file
(I made it as a resource in a jar and the plugin configuration 
works
 
   
fine:
   
checkstyle - or the plugin - is clever enough to get the xml 
file
  out of
   
the
   
dependency jar)
   
I'd like to do the same within eclipse with the
   
eclipse-checkstyle-plugin
   
(so that checkstyle can be active during eclipse work, not just 
when
building with maven)
Unfortunately the checkstyle preference window does not seem to
  allow a
reference to a jar.
it needs an xml file
This is not really a maven question but someone may know if my
  request
   
is
   
possible ???
   
We did this last year, but the details aren't fresh on my mind. 
Let
  me
know
if this general approach is not enough.
   
We attached the checkstyle xml file to the project so it was 
deployed
 
along
with the jar file to our corporate maven repository. Since that
  repository
is available via http, we configured the eclipse plugin to use 
that
  url.
   
Now we have one mavenized project to manage the checkstyle rules.
  When we
deploy it, the checkstyle rules become available to both maven 
and
  eclipse
at the same time.
   
-Greg Vaughn

Re: checkstyle plugins: maven and eclipse

2007-10-04 Thread Greg_Vaughn
Thanks for mentioning that, Dimitris. I forgot about that piece. They're 
not mutually exclusive though. The .checkstyle file can point to the xml 
file in the maven repo.

houzecl, I don't think I was clear enough in my first message. I have both 
the xml in a jar and the xml out of a jar in the maven repo. Maven uses 
the one in the jar. The eclipse plugin uses the one out of the jar. 
There's only one source xml config file, but it gets deployed twice. It's 
not quite optimal, but it was close enough for our purposes.

Someone else commented that you can add extra info in a parent pom for the 
eclipse plugin that will add the metadata for checkstyle when 
eclipse:eclipse goal is run. We went with more of Dimitris' approach here. 
The .checkstyle file is part of our archetypes to make the eclipse plugin 
happy. But we do use the jar file for maven invocation.

-Greg Vaughn

Dimitris Kapanidis [EMAIL PROTECTED] wrote on 10/04/2007 03:47:17 
AM:

 I have another solution to this problem, which is not the maven way but 
 works equally.
 
 I have uploaded the file on a web server and accessing it from there:
 
 Eclipse is using .checkstyle config to see the remote location of the 
 configuration (there is an option for remote file)
 Maven is using the parent pom.xml to see the same remote location of the 

 configuration.
  plugin
 artifactIdmaven-checkstyle-plugin/artifactId
 configuration
 
 
configLocationhttp://www.someplace.net/scytl_checkstyle.xml/configLocation
 /configuration
  /plugin
 
 I'd prefer the jar solution though, is much cleaner.
 
 houzecl wrote:
  Yes, the last part of your post is what we'd like to do:
 
  One mavenized projet holding a set of configuration files.
  So that you can version, deploy, and access the jar containing the
  appropriate set of rules.
  We do not want to embed the rules inside the project(s) that will be 
using
  the rules.
  we want these rules to be common (as sun_checks). 
 
  Therefore, once the rules'jar is available in the repository, it can 
be
  accessed by maven (no probs)
  BUT how can you make it available to eclipse at the same time ? (do 
you
  explode the jar in the repository when you deploy it ?, so that 
eclipse
  checkstyle can reference the xml files ...)
 
  anyway, I posted the question in checkstyle mailing list.
  If I get an answer, I'll post it
 
  good day,
 
  Christian-Luc
 
 
 
  Greg_Vaughn wrote:
  
  I am using maven-checkstyle-plugin with a specific configuration 
file 
  (I made it as a resource in a jar and the plugin configuration works 

  
  fine:
  
  checkstyle - or the plugin - is clever enough to get the xml file 
out of 
  
  the
  
  dependency jar)
 
  I'd like to do the same within eclipse with the 
  
  eclipse-checkstyle-plugin
  
  (so that checkstyle can be active during eclipse work, not just when
  building with maven)
  Unfortunately the checkstyle preference window does not seem to 
allow a
  reference to a jar.
  it needs an xml file
  This is not really a maven question but someone may know if my 
request 
  
  is
  
  possible ???
  
  We did this last year, but the details aren't fresh on my mind. Let 
me 
  know
  if this general approach is not enough.
 
  We attached the checkstyle xml file to the project so it was deployed 

  along
  with the jar file to our corporate maven repository. Since that 
repository
  is available via http, we configured the eclipse plugin to use that 
url.
 
  Now we have one mavenized project to manage the checkstyle rules. 
When we
  deploy it, the checkstyle rules become available to both maven and 
eclipse
  at the same time.
 
  -Greg Vaughn
 
 
  
==
 
  Confidentiality Notice: The information contained in and transmitted 
with
  this communication is strictly confidential, is intended only for the 
use
  of the intended recipient, and is the property of Countrywide 
Financial
  Corporation or its affiliates and subsidiaries. If you are not the
  intended recipient, you are hereby notified that any use of the
  information contained in or transmitted with the communication or
  dissemination, distribution, or copying of this communication is 
strictly
  prohibited by law. If you have received this communication in error,
  please immediately return this communication to the sender and delete 
the
  original message and any copy of it in your possession.
 
  
==
 
 
 
  
 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended

Re: checkstyle plugins: maven and eclipse

2007-10-03 Thread Greg_Vaughn
 I am using maven-checkstyle-plugin with a specific configuration file 
 (I made it as a resource in a jar and the plugin configuration works 
fine:
 checkstyle - or the plugin - is clever enough to get the xml file out of 
the
 dependency jar)
 
 I'd like to do the same within eclipse with the 
eclipse-checkstyle-plugin
 (so that checkstyle can be active during eclipse work, not just when
 building with maven)
 Unfortunately the checkstyle preference window does not seem to allow a
 reference to a jar.
 it needs an xml file
 This is not really a maven question but someone may know if my request 
is
 possible ???

We did this last year, but the details aren't fresh on my mind. Let me 
know
if this general approach is not enough.

We attached the checkstyle xml file to the project so it was deployed 
along
with the jar file to our corporate maven repository. Since that repository
is available via http, we configured the eclipse plugin to use that url.

Now we have one mavenized project to manage the checkstyle rules. When we
deploy it, the checkstyle rules become available to both maven and eclipse
at the same time.

-Greg Vaughn


==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.

==



Re: Maven with NTLM

2007-06-27 Thread Greg_Vaughn
Maven works for me with an NTLM proxy. The general rule I learned is that 
whenever username is requested, supply domainname\username (this is 
true of any Java-based technology that interacts with proxies). I think 
that's what you're trying to do below, but you have a forward slash 
instead of backslash.

-Greg Vaughn

Sammpathkumar, C [EMAIL PROTECTED] wrote on 06/27/2007 04:15:36 
AM:

 Hi All, 
 I am struggling with Maven to make I work with NTLM authentication 
 in our office network. 
 I tried customizing settings.xml and giving the environment 
 properties in commandline with details of the proxy. But I always 
 get the below error:
 Caused by: java.net.ProtocolException: Server redirected too many  times 
(20)
 at sun.net.www.protocol.http.HttpURLConnection.
 getInputStream(HttpURLConnection.java:1160) 
 at org.apache.maven.wagon.providers.http.
 LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83) 
 ... 23 more 
 In settings.xml, I have the below: 
 proxy 
   activetrue/active 
   protocolhttp/protocol 
   host132.186.65.234/host 
   port8080/port 
   usernamein002/sc001179/username 
   passwordXX/password 
 /proxy 
   /proxies 
 out.txt 


==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.

==



Re: Cannot invoke Tomcat manager: FAIL - Application already exists at path

2007-05-16 Thread Greg_Vaughn
Arrowx7 [EMAIL PROTECTED] wrote on 05/16/2007 11:03:45 AM:

 
 Hello,
 I am running NetBeans with mavenide2, with tomcat plugin.  This plugin
 allows me to run tomcat:deploy.  Is there any way to get the plugin to
 invoke undeploy before it deploys the updated version of the WAR?
 
 It keeps throwing the application already exists error, unless i 
manually
 delete the war and directory.

Does tomcat:redeploy not serve your needs?
http://mojo.codehaus.org/tomcat-maven-plugin/context-goals.html

-Greg

==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: (newbie question) seding war somewhere else

2007-05-10 Thread Greg_Vaughn
Arrowx7 [EMAIL PROTECTED] wrote on 05/10/2007 12:16:04 PM:

 
 I have mevenide2 installed, and when I run lifecycle phase install
 one of the output lines is 
 [INFO]Installing /root/sourcecode/myproject.war to
 /root/.m2/repository/org/myproject.war
 
 is there a way to get it to install somewhere other than
 /root/.m2/repository/... say /usr/local/tomcat/webapps/  ??  Do I have 
to
 add some sort of property
 
 Thank you very much in advance, looking forward to replies.

I think you want to look at the tomcat plugin and the tomcat:deploy goal.
See: http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html

-Greg

==

Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries. If you are not the intended recipient, you are 
hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law. If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Preventing transitive snapshot downloading

2007-03-09 Thread Greg_Vaughn
Mikis [EMAIL PROTECTED] wrote on 03/09/2007 07:17:32 AM:

 
 I have being struggling with problems regarding dependencies on 
apparently
 released artifacts (not snapshots), which contain snapshot or faulty
 dependencies (maybe transitive). If the artifacts also define their own
 remote repositories, I'm unable to fix the problem by patching the 
intranet
 or proxy repository, as this are circumvented . 
 
 Is it possible to prevent Maven from downloading artifacts from Internet
 repositories using the intranet/proxy repository as the only remote
 repository? One way of doing this would be to define some kind of 
repository
 whitelist defining the intranet repositories allowed. The offline line
 option is not quite what I need as this would prevent usage of the 
intranet
 repositories.
 
 I fell I'm currently unable to guarantee my intranet Maven users that a
 fully version controlled dependency definition in the poms will ensure a
 fixed dependency tree (broken configuration management :-( ). 

I have not verified this, but I recall 2.0.5 was to have a new feature so 
that in settings.xml you could specify a repository as a 
mirrorOf*/mirrorOf for just this sort of situation. Sorry I can't give 
more specific advice, but that may head you down the right path.

-Greg Vaughn

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Preventing transitive snapshot downloading

2007-03-09 Thread Greg_Vaughn
Yes, this mailing list is where I heard of it. Perhaps searching the 
archives would yield more info.

-Greg Vaughn

Wayne Fay [EMAIL PROTECTED] wrote on 03/09/2007 10:08:42 AM:

 The mirrorOf* is a new feature that we've discussed here on M-U and
 M-D a bit the last few months. But it seems like it has not been
 documented anywhere (!).
 
 I'll post an issue in JIRA about this. Thanks for the note, Tamás.
 
 Wayne
 
 On 3/9/07, Tamás Cservenák [EMAIL PROTECTED] wrote:
  What about some (possibly maven-aware) HTTP proxy? Something like DSMP
  should be able to solve the problem, no?
 
  Greg, where did you find this about mirrorOf*/mirrorOf?
 
  I did not find anything about it in release notes and Jira issues
 
  ~t~
 
  On 3/9/07, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
   Mikis [EMAIL PROTECTED] wrote on 03/09/2007 07:17:32 AM:
  
   
I have being struggling with problems regarding dependencies on
   apparently
released artifacts (not snapshots), which contain snapshot or 
faulty
dependencies (maybe transitive). If the artifacts also define 
their own
remote repositories, I'm unable to fix the problem by patching the
   intranet
or proxy repository, as this are circumvented .
   
Is it possible to prevent Maven from downloading artifacts from 
Internet
repositories using the intranet/proxy repository as the only 
remote
repository? One way of doing this would be to define some kind of
   repository
whitelist defining the intranet repositories allowed. The offline 
line
option is not quite what I need as this would prevent usage of the
   intranet
repositories.
   
I fell I'm currently unable to guarantee my intranet Maven users 
that a
fully version controlled dependency definition in the poms will 
ensure a
fixed dependency tree (broken configuration management :-( ).
  
   I have not verified this, but I recall 2.0.5 was to have a new 
feature so
   that in settings.xml you could specify a repository as a
   mirrorOf*/mirrorOf for just this sort of situation. Sorry I 
can't give
   more specific advice, but that may head you down the right path.
  
   -Greg Vaughn
  
   
==
   Confidentiality Notice: The information contained in and 
 transmitted with this communication is strictly confidential, is 
 intended only for the use of the intended recipient, and is the 
 property of Countrywide Financial Corporation or its affiliates and 
 subsidiaries.  If you are not the intended recipient, you are hereby
 notified that any use of the information contained in or transmitted
 with the communication or dissemination, distribution, or copying of
 this communication is strictly prohibited by law.  If you have 
 received this communication in error, please immediately return this
 communication to the sender and delete the original message and any 
 copy of it in your possession.
   
==
  
 
  -
  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]
 
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: War resource filtering and excludes problem.

2007-03-02 Thread Greg_Vaughn
I'm wondering if a whole 'nother approach would work for you. It really 
depends on your workflow, but I submit it for your consideration. 

Doing 'mvn compile war:inplace' will cause maven to copy the .class files 
to web-inf/classes and the pom dependencies to web-inf/lib so that you can 
do your gui testing in place. I'd also suggest setting up your source 
control to ignore these folders. I've done it with subversion, but don't 
recall the syntax.

To go a step further, add those directories to the 'clean' plugin in your 
pom like this:
  plugin
artifactIdmaven-clean-plugin/artifactId
configuration
  filesets
fileset
 directory${basedir}/src/main/webapp/WEB-INF/lib/directory
/fileset
fileset
 directory${basedir}/src/main/webapp/WEB-INF/classes/directory
/fileset
  /filesets
/configuration
  /plugin

Now you can do 'mvn clean package' to get a pristine war.

Does that meet your overall goal?

-Greg Vaughn

Julian Wood [EMAIL PROTECTED] wrote on 03/02/2007 02:35:48 PM:

 I'm actually beginning to think this is not possible with the way the 
 war plugin currently works. You are always going to have either both 
 sets of jars, or neither set. The reason is because the war plugin 
 seems to do its excludes at the last possible moment, so it can't 
 differentiate between the two sources.
 
 I think the pom snippet which should work is this one:
 
 configuration
  warSourceExcludes**/*.jar/warSourceExcludes
 /configuration
 
 I execute mvn clean package
 
 In the target folder, in the webappDirectory in maven-war-plugin 
 nomenclature (http://maven.apache.org/plugins/maven-war-plugin/war- 
 mojo.html), it creates the perfect webapp (minus the META-INF). That 
 is, it has everything from src/main/webapp, with the exception of any 
 jars from src/main/webapp/lib. It does have a lib directory, 
 assembled from the dependencies in the pom. This is seldom identical 
 to the lib directory at src/main/webapp/lib, but that's okay (that's 
 the point, actually). This webapp works perfectly.
 
 Now unfortunately, the war plugin doesn't simply make a war from that 
 directory it just built. First it wars it, then it grabs all the 
 files from src/main/webapp again, and then it applies any excludes 
 (again). So in this situation, I get no jars at all in the lib folder 
 of the final war file.
 
 That's why if I specify no excludes at all, I get all the jars from 
 the src/main/webapp/lib and all the jars from the dependencies.
 
 I'm not sure if this should be labeled a bug with the war plugin or 
 not. I haven't looked at the code - it is all surmised from what it 
 produces.
 
 I think my best bet might be to do an antrun to move the lib folder 
 before the war is generated, and move it back afterwards, which is 
 what I do manually right now.
 
 Thanks,
 
 J
 
 
 
 On 28-Feb-07, at 4:36 PM, Julian Wood wrote:
 
  In my src/main/webapp/WEB-INF I have a classes folder and a lib 
  folder, which are not part of the source, but let me compile in 
  place and immediately see the results of my changes in tomcat.
 
  Now when I go to actually build a war using maven, I don't want 
  that lib nor classes folder - I want the one which maven generates. 
  In its default state, using version 2.0.2 of the war plugin, what 
  happens is that you get both sets - in the lib folder for example, 
  you get everything in my dev lib folder, plus any new snapshots 
  or new dependencies maven might have downloaded. So usually you end 
  up with duplicate jars. Not good.
 
  How do you tell the war plugin to ignore src/main/webapp/WEB-INF/ 
  lib and classes (but not ignore the ones assembled during 
  compilation)?
 
  No matter what configuration I use, it always either ignores both 
  sets, or includes both sets.
 
  Thanks,
 
  J
 
 
 --
 Julian Wood [EMAIL PROTECTED]
 
 Software Engineer
 Teaching  Learning Centre
 University of Calgary
 
 http://tlc.ucalgary.ca
 
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Help updating batch script during assembly

2007-02-28 Thread Greg_Vaughn
It would by default, however, you can modify the maven-resources-plugin 
settings to put, for example, *.bat and *.sh files outside of 
target/classes and therefore not get put in the jar.

More info at http://maven.apache.org/plugins/maven-resources-plugin/

-Greg Vaughn

Todd Nine [EMAIL PROTECTED] wrote on 02/28/2007 01:55:39 PM:

 No, but wouldn't they then get inserted into the jar, not into the zip 
file?
 If not, where is the doc on setting this up?  I couldn't find it 
anywhere.
 
 Thanks,
 Todd
 
 On 2/28/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  Any reason your scripts can't live in resources and get filtered, so
  the proper values are replaced in the files during the normal Maven
  process-resources phase?
 
  Wayne
 
  On 2/28/07, Todd Nine [EMAIL PROTECTED] wrote:
   Hi all,
 I have a large standalone distribution I'm zipping up with the
  assembler.
   It's using a self executing jar, and has both a batch script and a 
shell
   script that use java -jar artifactId-version.jar args.  Is it
  possible
   to use something similar to sed in the assembler so I can find and
  replace a
   variable in my scripts with the artifact name.  This way we won't 
have
  to
   manually update the scripts before we package our artifacts, and we 
can
   reduce errors due to version mismatches in the scripts.
  
   Thanks,
   Todd
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Maven skip war

2007-02-21 Thread Greg_Vaughn
jthurst [EMAIL PROTECTED] wrote on 02/21/2007 03:46:16 PM:

 
 Hello,
 I've been struggled many times to find a way to skip the generation of 
the
 war file.  I want the webapp to be built but don't want the war file to 
be
 created ever time b/c it takes too long.  Is there a way to accomplish 
this. 
 If not, maybe there could be a new packaging type called webapp that 
would
 stop short of creating the war file.
 

You could try either
mvn test war:exploded
or
mvn test war:inplace

Those stop you short of the standard packaging step then add an explicit 
war goal. More information on the war plugin's goals can be found 
http://maven.apache.org/plugins/maven-war-plugin/

I wish there were some way to replace the standard binding of war:war to 
the package goal, but I've not found it.

-Greg Vaughn

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: How to automatic re-deploy sources (classes/jsp) after changing them ???

2007-01-10 Thread Greg_Vaughn
sammes [EMAIL PROTECTED] wrote on 01/10/2007 03:30:10 AM:

 we are using Eclipse, Hibernate, Ant and Maven2 for a java web 
application.
 
 At the moment, everytinme I change a JSP or a java class I have to mvn
 package (redeploy etc.) the whole app.
 
 Then I have to restart our jBoss/tomcat server.
 
 Is there a way to automatical redeploy/refresh this after changing 
something
 ?
 
 When I use eclipse/java/ant without maven, I have the hotdeploy. And if
 hotdeploy does not work (for e.g. changing a base class), I only have to
 restart the jBoss server.
 
 But with the current configuration, I always have to do all (stop 
server,
 mvn package, restart server).
 
 It would be great if you have any idea for this problem!

This has been discussed a few times. I've offered a solution that works 
for my team that is discussed in this thread: 
http://www.nabble.com/tomcat-deployer-tf2628178s177.html#a7340060

-Greg Vaughn

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: tomcat deployer

2006-11-16 Thread Greg_Vaughn
Kevin Jackson [EMAIL PROTECTED] wrote on 11/15/2006 07:07:38 PM:

  The way I've setup things I can see the changed jsp without calling
  any maven target. There's more details of my solution here
  http://www.nabble.com/Eclipse-war-builder-tf2371898s177.html#a6646490
  Another fellow wrote a custom eclipse plugin to help him.
 
 Could you go into more details?  I've followed what I could from your
 post ^^ but I still cannot get Tomcat to deploy just the context.xml
 file and use the target directory as an exploded webapp.  My guess is
 that I've setup tomcat incorrectly, but a working example of what to
 do would be great (I also tried the eclipse war builder thing and
 again it didn't work for me).

Here's a writeup I did for the team. I'll do my best to answer any
questions that it doesn't clarify.

Preliminaries

You'll need to edit a file in your tomcat installation to allow access to 
the manager webapp. These instructions are based upon tomcat 5.5.17, but 
should be similar for any 5.x installation. If not, please update this 
wiki once it is figured out.

In {tomcat-install-dir}/conf/tomcat-users.xml add the following:

user username=admin password= roles=tomcat,manager,admin/

inside the tomcat-users element. Go to http://localhost:8080/manager and 
undeploy your application if it is already there. Also remove any war 
files and directories for your app under the webapps directory. (Re)start 
tomcat and you're ready.

Maven Targets

Now you can do:

mvn compile war:inplace tomcat:inplace

as your initial setup. You should now be able to see your deployed app in 
tomcat. Editing JSPs in eclipse will be seen immediately upon a refresh of 
the web page. If you edit any Java classes that the JSPs depend upon, you 
can do:

mvn compile war:inplace

to get tomcat to see the updates.

If at any time your context.xml file changes, you can tell tomcat about it 
by doing:

mvn tomcat:inplace

I haven't tried this, but it might be useful to modify the eclipse 
settings to direct compiled classes into the WEB-INF/classes directory. 
This should remove the need to ever do mvn compile war:inplace since a 
compile inside eclipse would put the modified classes there. Then only 
when the context.xml file changes would maven need to be involved.

Behind the Scenes

So, how does this work? The context.xml file lives in src/main/resources 
and the pom.xml is configured to filter this. That means we can do 
variable substitution. The context.xml file uses a variable that is based 
upon ${basedir} which maven knows as the directory the pom.xml files lives 
within. So, we can use this to tell tomcat to look inside the project 
directory for the exploded webapp.

war:inplace is a built-in maven goal that knows to create the exploded 
webapp inside src/main/webapp. However, this goal does not have any 
prerequisites, so whenever you use it, you must also do a compile (or test 
if you want to run unit tests too). war:inplace actually copies the 
external jars into WEB-INF/lib and the compiled classes into 
WEB-INF/classes, so subversion needs to be configured to ignore these (by 
adding a svn:ignore property to the WEB-INF directory ? I've already done 
this for SpecialLoans). Additionally, the pom.xml has been modified to 
tell the clean target to additionally delete those directories.

There's a feature request in maven that will help simplify some of this, 
like allowing the war:inplace to require compile and test as 
prerequisites, but due to various reasons, it can't be done in maven 
2.0.4. We can update this wiki page when this changes.
POM Involvement

Here are the relevant sections of the pom.xml that must be set in order 
for the whole scheme above to work. At some point this, or something 
similar, should become part of our basepom and archetypes, but until then, 
the information is preserved.

properties
docbase.on.server${basedir}/src/main/webapp/docbase.on.server
webapp.reloadabletrue/webapp.reloadable
/properties
build
...
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources

  plugins
  ...
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdtomcat-maven-plugin/artifactId
version1.0-SNAPSHOT/version
configuration
updatetrue/update
modecontext/mode
 contextFiletarget/classes/context.xml/contextFile
  /configuration
  /plugin
  plugin !-- clean up from war:inplace  --
artifactIdmaven-clean-plugin/artifactId
configuration
filesets
fileset
 directory${basedir}/src/main/webapp/WEB-INF/lib/directory
/fileset
fileset
 directory${basedir}/src/main/webapp/WEB-INF/classes/directory
/fileset
/filesets
/configuration
  /plugin

The context.xml 

Re: tomcat deployer

2006-11-14 Thread Greg_Vaughn
Kevin Jackson [EMAIL PROTECTED] wrote on 11/14/2006 03:17:09 AM:

 Hi all,
 
 I'm trying to work on a webapp with tomcat and mvn.  I want to be able
 to edit a jsp, type mvn tomcat:redeploy and have just the changed jsp
 be reloaded, without having to compile/package/deploy
 
 I'm fairly sure that this is possible using a combination of mvn +
 tomcat-plugin, but I'm failing the correct incantation test
 
 so far I can do a mvn tomcat:deploy, but this
 compiles/filters/packages and takes forever - not good for rapid
 development of ui stuff
 
 mvn tomcat:redeploy seems to just redeploy the application that's
 already deployed in the CATALINA_HOME/webapps directory, what I need
 is some way to configure the plugin to deploy my development directory
 as an exploded web application

This gets discussed fairly regularly and there's multiple ways to handle 
it.
If you're not aware, there's a great search engine for this list at
http://www.nabble.com/Maven---Users-f178.html

The way I've setup things I can see the changed jsp without calling
any maven target. There's more details of my solution here
http://www.nabble.com/Eclipse-war-builder-tf2371898s177.html#a6646490
Another fellow wrote a custom eclipse plugin to help him.

If you actually want to call tomcat:redeploy before seeing the changed
jsp, you may want to look at the tomcat:inplace goal or maybe 
war:exploded.

Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Examples of using Spring with JUnit

2006-11-09 Thread Greg_Vaughn
Mick Knutson [EMAIL PROTECTED] wrote on 11/09/2006 01:11:38 PM:

 I am wondering if anyone has some examples of calling a test Spring 
resource
 (test/resources/applicationContext.xml) from JUnit to run when Maven is
 running my Unit tests...

It's been really straightforward for me. 

Use AbstractDependencyInjectionSpringContextTests with
protected String[] getConfigLocations() {
return new String[] {/applicationContext.xml}; // in 
src/test/resources
}

-Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: How Do I Deploys The Sources To The Repository

2006-11-08 Thread Greg_Vaughn
Adam Hardy [EMAIL PROTECTED] wrote on 11/08/2006 02:32:34 
PM:

 [EMAIL PROTECTED] wrote:
  Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM: 
  I can generate a jar containing the source files of a project.  But
  how do I configure it to deploy the source jar to the repo?
  
  I need this because I would like to use the download sources
  setting of the eclipse plugin for my own projects.
  
  So far I have found nothing that would accomplish this task.
  
  Somewhere deep in the plugins of maven adding a system property of 
  performRelease=true causes both source and javadoc jars to be
  generated and deployed. It's not well documented. So you can do
  
  mvn -DperformRelease=true deploy
  
  and you get both source and javadoc jars in the repository along with
  the main artifact. It also works with the install target.
 
 
 Very interesting. I just checked on the maven website and it's not 
 mentioned as one of the optional parameters (only createChecksum and 
 updateReleaseInfo are documented).
 
 But it works.

I had looked that up at one point when I didn't understand much, but now I 
went after it again. It's defined in the superpom (which can be found in 
MAVEN_HOME/lib/maven-project-2.0.4.jar as 
org/apache/maven/project/pom-4.0.0.xml for the curious). Here's the 
magic:

profile
  idrelease-profile/id

  activation
property
  nameperformRelease/name
  valuetrue/value
/property
  /activation

  build
plugins
  plugin
inheritedtrue/inherited
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-source-plugin/artifactId

executions
  execution
idattach-sources/id
goals
  goaljar/goal
/goals
  /execution
/executions
  /plugin
  plugin
inheritedtrue/inherited
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId

executions
  execution
idattach-javadocs/id
goals
  goaljar/goal
/goals
  /execution
/executions
  /plugin
  plugin
inheritedtrue/inherited
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-deploy-plugin/artifactId

configuration
  updateReleaseInfotrue/updateReleaseInfo
/configuration
  /plugin
/plugins
  /build
/profile

I tried adding an activeProfiles section in my ~/.m2/settings.xml for 
release-profile with no luck.
mvn -DperformRelease=true help:active-profiles
returns no active profiles. It still doesn't all make sense to me.

-Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: How Do I Deploys The Sources To The Repository

2006-11-07 Thread Greg_Vaughn
Yves Van Steen [EMAIL PROTECTED] wrote on 11/07/2006 09:58:46 AM:

 I can generate a jar containing the source files of a project.  But how 
do I
 configure it to deploy the source jar to the repo?
 
 I need this because I would like to use the download sources setting of 
the
 eclipse plugin for my own projects.
 
 So far I have found nothing that would accomplish this task.

Somewhere deep in the plugins of maven adding a system property of 
performRelease=true causes both source and javadoc jars to be generated 
and deployed. It's not well documented. So you can do

mvn -DperformRelease=true deploy

and you get both source and javadoc jars in the repository along with the 
main artifact. It also works with the install target.

-Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: How do people include version info into the build?

2006-11-07 Thread Greg_Vaughn
Christian Goetze [EMAIL PROTECTED] wrote on 11/07/2006 
01:57:33 PM:

 With this, I mean how do people ensure that the version number used in 
 the build is available at runtime? Do people generate a property file 
 with the version number and include it in the jar? Anyone have a nice 
 little example for this?

I haven't had a need to use this, but I've noticed that any jar maven 
builds includes several files in the meta-inf folder including pom.xml, 
pom.properties, and manifest.mf. The version number is in all three places 
(though slightly different format).

-Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Plugin to do http POST?

2006-11-02 Thread Greg_Vaughn
We've got a custom web form used internally to deploy web applications to 
our qa server. I'd like to automate the resulting http POST within Maven. 
Is anyone aware of any plugins that can do this? I've checked the main 
maven site and codehaus without any obvious choices.
Greg Vaughn
[EMAIL PROTECTED]
==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Plugin to do http POST?

2006-11-02 Thread Greg_Vaughn
I had considered writing my own plugin (I've used commons-httpclient 
before), but in the name of expediency I'm going to go with Wayne's 
suggestion for now (I had googled for ant tasks and found that same 
library when your email arrived :-)

-Greg

Srepfler Srgjan [EMAIL PROTECTED] wrote on 11/02/2006 
05:11:28 PM:

 Wayne Fay wrote:
  I don't personally know of any M2 plugins which could do this.
 
  It seems like you should be able to use the HTTP Post Ant task from
  Antelope [1] to do it along with Maven Antrunner plugin.
 
  [1] http://antelope.tigris.org/nonav/docs/manual/bk03ch17.html
 
  Wayne
 
  On 11/2/06, [EMAIL PROTECTED] [EMAIL PROTECTED] 
  wrote:
  We've got a custom web form used internally to deploy web 
  applications to
  our qa server. I'd like to automate the resulting http POST within 
  Maven.
  Is anyone aware of any plugins that can do this? I've checked the 
main
  maven site and codehaus without any obvious choices.
  Greg Vaughn
  [EMAIL PROTECTED]
 
 Perhaps you could write a small plugin that's based on the 
 commons-httpclient library.
 Read this blog entry 
 *http://weblogs.java.net/blog/joshy/archive/2006/11/a_quick_intro_t.html
 Srgjan

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: dependcy vs one lib of jars

2006-10-25 Thread Greg_Vaughn
That's a great use case to bring up. Sounds like the beginnings of a new 
plugin. It could parse a project's pom for provided dependencies and 
retrieve those from maven repository and put them all in a specified dir. 
Or it could go even further and have a new project type of tomcat-manager 
that specifies which projects should be deployed in this instance of 
tomcat. It could retrieve those wars from maven, plus parse for their 
provided dependencies and populate the shared directory.

Maven may not do everything you want out of the box, but I've been 
impressed with the foundations it is laying and the possibilities. YMMV.

Greg Vaughn
[EMAIL PROTECTED]



Attila Mezei-Horvati [EMAIL PROTECTED] 
10/25/2006 01:41 PM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
dependcy vs one lib of jars






I was reading a lot about how one of maven's best
features is the dependency handling: there is no need
for a directory of jar files. Everything is specified
in the dependency management and the repository has
the needed jars. Sounds good.

One of my coworkers raised however an issue the other
day which I couldn't answer. Any ideas welcome.

Here is the story: building with ant, our project had
one directory with all the jar files. On our
production server the contents of this dir was in the
tomcat/shared library (we have several apps running on
the servers and they share a lot of the dependencies).
Keeping it up to date with new jars was as easy as
synching with our ext_libs folder.

Now, we use maven. There is no more ext libs folder.
The dependencies however are not included in the wars
(scope: provided). They are already in the shared lib
of tomcat. 

Question is: how are we supposed to generate the
contents of the tomcat ext libs folder at this point?
Looking up 100 dependencies from several pom files and
extracting the jars from the repository doesn't seem
so great. It seems as with the dependency managament
suddenly we lost the ease of keeping our production
server shared library up to date.

I wonder if there is some solution to this. 

Attila





==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


RE: Maven Noobie - How can I just add a directory of jars to my classpat

2006-10-24 Thread Greg_Vaughn
There's the teach a man to fish response and the give a man a fish 
response. I'll try to do a bit of both.

I think the deeper question is what are your goals in migrating the 
project to maven? Most users find the dependency management features of 
Maven to be one of its strongest points. If you're dependant on mostly 
popular open source projects, you won't have to create and upload the 
files to a repository. For more information see 
http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

I'm not aware of any single setting to do what you want, but from the link 
above, there is a 'system' scope you can specify for the dependencies. It 
shouldn't be hard to write a quick-n-dirty script to loop over the 
contents of your lib directory and spit out the appropriate xml that you 
could paste into your pom. It's a one time only effort.

From this point, I'd encourage you to search for your dependencies in the 
master maven repository and modify the scope away from 'system', but this 
could be done incrementally. Here's a handy search page to do so 
http://www.mvnregistry.com/

Greg Vaughn
[EMAIL PROTECTED]



goatwuss [EMAIL PROTECTED] 
10/24/2006 02:14 PM
Please respond to
Maven Users List users@maven.apache.org


To
users@maven.apache.org
cc

Subject
RE: Maven Noobie - How can I just add a directory of jars to my classpat







Hello,

Thanks for the reply...  the situation is that I am trying to load a 
project
with 100 or so jar files that I need to include in the library...  I don't
want to have to manually add each one to a repository, and include a
separate dependency for each jar...  I just need a quick and dirty way 
to
compile this project

THX




adampp wrote:
 
 I'm new too, so just been through this, but no you don't.  You create a
 pom.xml file, or have maven do it for you by using mvn archetype:create
 args...  Then you add dependency xml frags that tell what libs your
 project depends on.  Then when you do a mvn compile or related goal,
 maven
 will download all the deps for you.  So an example dependency is 
 
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
 /dependency
 
 The big idea of maven is it gets rid of that ./lib directory.
 
 You can track down your dependencies at a www.ibiblio.org/maven2 and use
 google to help you out by googling for site:www.ibiblio.org maven2 
junit.
 It will lead you to a directory with a junit-3.8.1.pom file that will 
tell
 you the info needed to craft your dependency rule.
 
 Hope this helps.
 Adam
 
 -Original Message-
 From: goatwuss [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 24, 2006 11:54 AM
 To: users@maven.apache.org
 Subject: Maven Noobie - How can I just add a directory of jars to my
 classpath?
 
 
 Hello - I am getting started with Maven.  I am looking at online guides
 and
 literature, and I'm trying to not be retarded
 
 All I want to do is somehow point to a directory of jar files (./lib) 
and
 add these to the classpath so I can compile my code in maven.
 
 I can see that there's this idea of the repository in maven...  Do I
 have
 to manually add each required jar file to the local repository?  Do I 
need
 to put more lines in my pom.xml for each required jar, or can I just say
 include this whole directory of jars
 
 Thanks, and sorry if this is a dumb question
 -- 
 View this message in context:
 
http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars-

 to-my-classpath--tf2503345.html#a6979200
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-Noobie---How-can-I-just-add-a-directory-of-jars-to-my-classpath--tf2503345.html#a6979513

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


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




==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, 

Re: Creating a common local repository.

2006-10-24 Thread Greg_Vaughn
That's a common situation. We have installed MavenProxy on a server in our 
company. This acts as a cache of artifacts from ibiblio, but also has a 
separate internal repository where we deploy artifacts that are not in 
ibiblio. My understanding is that MavenProxy is no longer being actively 
developed. Other tools I've heard mentioned as performing similar 
functions are Proximity and Archiva. I've not looked at those, but they're 
on my to-do list.

Greg Vaughn
[EMAIL PROTECTED]

Adam Perry-Pelletier [EMAIL PROTECTED] wrote on 10/24/2006 02:03:26 PM:

 While experimenting with Maven2 I experienced the following error:
 
 
 
 Missing:
 
 --
 
 1) jsr170:jcr:jar:1.0
 
 
 
   Try downloading the file manually from the project website.
 
 
 
   Then, install it using the command:
 
   mvn install:install-file -DgroupId=jsr170 -DartifactId=jcr \
 
   -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
 
 
 
   Path to dependency:
 
 1) com.moesol.bv:BattlespaceVideo:jar:1.0-SNAPSHOT
 
 2) jsr170:jcr:jar:1.0
 
 
 
 So I took the error message's advice and did the mvn 
install:install-file
 ..  That fixed the problem and patched my local repository.  However 
this
 leads sort an uncomfortable situation.  If I have 15 developers on my 
team I
 now have to notify them to manually patch their repositories and answer
 their queries about how I broke the build.  Not a tolerable situation.
 
 
 
 So what I'd like to do is this.  I'd like to host a maven repository on 
our
 server (linux running apache and ssh).  However I don't want it to be a
 full-blown rsynch'ed repository that mirrors www.ibiblio.org/maven2.  I 
want
 the repository to be just like my local repository in that it has only 
the
 jars that our project needs, but one that I can point all our 
development
 team to.  So when I come across this problem in the future, I can go out 
to
 that one shared, but local and minimal, repository do the mvn
 install:install-file and all our developers will see the change. 
Although
 I can find docs on how to accomplish the rsynch'ed full mirror 
repository
 model, I can't find much about how to have a local repository that can 
be
 shared.  In terms of layout, our developers develop on windows 
supplemented
 by cygwin and the available server would be a linux box with apache web
 server and ssh.
 
 
 
 Any help would be appreciated.
 
 
 
 Adam
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Odd dependency behaviour with java.servlet servlet-api in M2 2.0.4

2006-10-23 Thread Greg_Vaughn
You want to use scope provided on servlet-api instead of compile. Compile 
dependencies do get deployed. Provided ones are available at compile time, 
but then do not get packaged into the final artifact.

I know, the terminology took me a few minutes to get used to.

Greg Vaughn
[EMAIL PROTECTED]

Jakob Vad Nielsen [EMAIL PROTECTED] wrote on 10/23/2006 11:31:12 AM:

 Hi,
 
 I have a single pom project which is a war-project. It uses the 
 commons-logging 1.1 package. This package has a dependency on 
 javax.servlet:servlet-api 2.3. I don't want this package to be a part of 

 the distributed war-file. Therefore I have excluded it. But still I need 

 it at compile time. Therefore I have introduced it again, but only for 
 compile-time.
 
 My problem is that the javax-servlet.jar file still is included into the 

 war-file. Is this a bug? And can I do something to prevent it from being 

 included?
 
 Here is the dependencies from my pom.xml:
 
 dependencies
 dependency
 groupIdorg.apache.derby/groupId
 artifactIdderby/artifactId
 version10.1.2.1/version
 /dependency
 dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.1/version
 exclusions
 exclusion
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 /exclusion
 /exclusions
 /dependency
 dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.3/version
 scopecompile/scope
 /dependency
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 version2.0/version
 /dependency
 dependency
 groupIdc3p0/groupId
 artifactIdc3p0/artifactId
 version0.9.0.2/version
 /dependency
 dependency
 groupIdmysql/groupId
 artifactIdmysql-connector-java/artifactId
 version3.1.12/version
 /dependency
 /dependencies
 
 /Jakob
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: clear separation of source and target

2006-10-20 Thread Greg_Vaughn
I didn't write the docs, but I can share in your difficulties. I've 
flailed around at times with maven, but it gets better as you stick with 
it.

I like the scm approach better because maven is tempermental about 
directory layout. Yes, you can modify that, but who knows what plugins 
might make assumptions about things being in their default locations. Scm 
just seems less risky to me.

If I'm understanding your motivation, is 'mvn clean' not satisfactory? It 
deletes all the generated resources.

Greg Vaughn
[EMAIL PROTECTED]

solo turn [EMAIL PROTECTED] wrote on 10/20/2006 02:57:52 AM:

 thanks greg,
 
 this is a very user friendly documentation ... no default values are
 there so you have to guess or code read what it stands for :)
 
 our motivation is that all files should be organised by backup
 class, i.e. we want a simpe way to throw away all built files if
 necessary, and we do not want to backup it.
 
 also i'd consider setting one company rule  where to put all
 build/generated things would be simpler.
 
 why do you think the scm approach better? do you have a sample ignore 
file?
 
 best regards,
 
 solo.
 
 On 10/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
  I've never tried configuring maven to put generated files outside of 
its
  default location, but this link
  http://maven.apache.org/ref/current/maven-model/maven.html#class_build
  seems to imply it can by setting the builddirectory element.
 
  I have setup both cvs and svn to ignore certain directories. Either 
one
  should work for you, but I'd recommend the scm approach. The details 
will
  depend on which scm tool you use.
 
  Greg Vaughn
  [EMAIL PROTECTED]
 
 
 
  solo turn [EMAIL PROTECTED]
  10/18/2006 03:56 PM
  Please respond to
  Maven Users List users@maven.apache.org
 
 
  To
  Maven Developers List users@maven.apache.org
  cc
 
  Subject
  clear separation of source and target
 
 
 
 
 
 
  hi,
 
  is there an easy possibility to separate source code (which we write)
  from generated things?
 
  we'd prefer to keep the directory where  the pom is to stay clean of
  all built and generated things to use source code control systems like
  mercurial or darcs on that tree.
 
  is it possible to do that by:
   * configuring maven to put generated files somewhere out of this
  directory, or
   * configuring the source code control by excluding a directory resp a
  fixed set of directories
  ?
 
  -solo.

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: profiles.xml question

2006-10-19 Thread Greg_Vaughn
I'm by no means an expert on this. Your situation is much more complex 
than the profile stuff I've used. I've not used a profiles.xml but instead 
put them in the pom.xml. I suspect there's some sort of confusion between 
the multiple files as well as setting activeProfile and 
activeByDefault in different places.

There's one issue I do see, but it could be a typo. If you're using the 
system property to activate the profile, you should use:

mvn -Denv=qa clean package -e

Note the equals sign instead of dash.

The other suggestion you got to use 'mvn help:active-profiles' is a good 
one and helped me to debug some confusion I had.

Greg Vaughn
[EMAIL PROTECTED]

Mick Knutson [EMAIL PROTECTED] wrote on 10/18/2006 06:36:05 PM:

 Here is what I now have working:
 
 with mvn clean package -e or mvn -Denv-qa clean package -e
 
 None of the profiles get picked up correctly and all my parameters are
 missing.
 
 
 mvn -P qa clean package -e works just fine with the configuration 
below.
 
 In the settings.xml the envdev/env tag seems to override what is in 
the
 profiles.xml, but when I remove it, then env seems to work if I specify 
the
 -P on the command line
 
 *** BUT, I want to be able to run with zero parameters on the command 
line
 and run the default profile but that does not seem to work
 
 
 
profile
 idlocal/id
 
 properties
 envdev/env
 
 /properties
 /profile
 
 /profiles
 
 !--
| activeProfiles
| List of profiles that are active
 for all builds.
|--
 activeProfiles
 activeProfilelocal/activeProfile
 /activeProfiles
 
 /settings
 
 
 profiles.xml:
 
 
 profilesXml
 profiles
 
 
 !----
 !-- Local developer Profile. --
 
 !----
 profile
 iddev/id
 activation
 activeByDefault/
 /activation
 properties
 envdev/env
 compiler.debugtrue/compiler.debug
 
 jazn.url${jazn.url.dev}/jazn.url
 jazn.bind.dn${jazn.bind.dn.dev}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.dev}/jazn.samaccount
 
 /properties
 /profile
 
 profile
 idqa/id
 activation
 property
 nameenv/name
 valueqa/value
 /property
 /activation
 properties
 envqa/env
 jazn.url${jazn.url.qa}/jazn.url
 jazn.bind.dn${jazn.bind.dn.qa}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.qa}/jazn.samaccount
 /properties
 /profile
 
 profile
 iduat/id
 activation
 property
 nameenv/name
 valueuat/value
 /property
 /activation
 properties
 envuat/env
 jazn.url${jazn.url.uat}/jazn.url
 jazn.bind.dn${jazn.bind.dn.uat}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.uat}/jazn.samaccount
 /properties
 /profile
 
 profile
 idprod/id
 activation
 property
 nameenv/name
 valueprod/value
 /property
 /activation
 properties
 envprod/env
 jazn.url${jazn.url.prod}/jazn.url
 jazn.bind.dn${jazn.bind.dn.prod}/jazn.bind.dn
 jazn.samaccount${jazn.samaccount.prod}/jazn.samaccount
 /properties
 /profile
 
 
 /profiles
 /profilesXml

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: profiles.xml question

2006-10-19 Thread Greg_Vaughn
I'm glad to hear at least the -P approach is working for you. I understand 
your desire to encapsulate the default behavior inside a profile. It's 
something that didn't dawn on me when I implemented something similar. I 
just put my default behavior right in the relevant build section of the 
pom.xml. That gets executed in the common case of not specifying any 
profile. Then I have a profile that overrides those default setts.

Greg Vaughn
[EMAIL PROTECTED]

Mick Knutson [EMAIL PROTECTED] wrote on 10/19/2006 10:24:27 AM:

 Everything seems to work if I FORCE the -P on the command line.
 
 My issue now is that I want to run without the -P on the command line as
 well to use the default profile, but that does not seem to work. If I 
use
 profiles, I must ALWAYS specify the profiles.
 
 Is there a way around this?
 
 
 
 On 10/19/06, Attila Mezei-Horvati [EMAIL PROTECTED] wrote:
 
  Mick,
 
  I just discovered how to use profiles myself. I hope
  the following will help.
  First, you don't need to run mvn always and check the
  end results to make sure everything is alright.
 
  Just do:
  mvn help:active-profiles
  and it will list you all the profiles which will be
  used.
 
  In my case I could get profiles working in one of
  these ways:
  1. add activeprofile to settings.xml
  activeProfiles
  activeProfiledefault/activeProfile
  /activeProfiles
 
  2. specify profiles as param values as:
 
  profile
  idskipunittest/id
  properties
 
  maven.test.skiptrue/maven.test.skip
  /properties
  activation
property
  nametest/name
/property
  /activation
  /profile
  then call
 
  mvn help:active-profiles -Dtest
  or
  mvn install -Dtest
 
  etc.. Note that each property is a separate param as
  mvn help:active-profiles -Dtest -DtoProduction -Dmyapp
 
  where test, toProduction, myapp are different profiles
  I want to enable.
 
  I couldn't get -P to use the correct profiles. Env I
  think it worked but it is more to type. :)
 
  See also this link for more info:
  
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
 
  good luck,
  Attila
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 
 Thanks
 
 DJ MICK
 http://www.djmick.com
 http://www.myspace.com/mickknutson

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: profiles.xml question

2006-10-18 Thread Greg_Vaughn
I think I read that things get weird if you have a profile without an id 
element. Try adding one to your uat profile. Then try both with your 
activation property, but also by directly specifying the id with -P.

Greg Vaughn
[EMAIL PROTECTED]



Mick Knutson [EMAIL PROTECTED] 
10/18/2006 03:34 PM
Please respond to
Maven Users List users@maven.apache.org


To
maven users@maven.apache.org
cc

Subject
profiles.xml question






I have the following setting in my profiles.xml:

profilesXml
profiles


!----
!-- Local developer Profile. --

!----
profile
idlocal/id
properties
target.serverlocal/target.server
jazn.url${jazn.url.dev}/jazn.url

/properties
/profile

profile
activation
property
nameenvironment/name
valueuat/value
/property
/activation
properties
jazn.url${jazn.url.uat}/jazn.url
jazn.bind.dn${jazn.bind.dn.qa}/jazn.bind.dn
/properties
/profile



Then I run:

mvn -Denvironment=qa clean install -e


I get this at the start of my build:

C:\viewstore\npi_tactical_dev\NPI_Providermvn -Denvironment=uat clean
install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] Overriding profile: 'null' (source: profiles.xml) with new
instance from source: profiles.xml
[WARNING] Overriding profile: 'null' (source: profiles.xml) with new
instance from source: profiles.xml



WHen the build is finished, the values that I get for jazn.url are for 
dev
URL, not UAT...???
WHy is that not getting picked up?






-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: clear separation of source and target

2006-10-18 Thread Greg_Vaughn
I've never tried configuring maven to put generated files outside of its 
default location, but this link 
http://maven.apache.org/ref/current/maven-model/maven.html#class_build 
seems to imply it can by setting the builddirectory element.

I have setup both cvs and svn to ignore certain directories. Either one 
should work for you, but I'd recommend the scm approach. The details will 
depend on which scm tool you use.

Greg Vaughn
[EMAIL PROTECTED]



solo turn [EMAIL PROTECTED] 
10/18/2006 03:56 PM
Please respond to
Maven Users List users@maven.apache.org


To
Maven Developers List users@maven.apache.org
cc

Subject
clear separation of source and target






hi,

is there an easy possibility to separate source code (which we write)
from generated things?

we'd prefer to keep the directory where  the pom is to stay clean of
all built and generated things to use source code control systems like
mercurial or darcs on that tree.

is it possible to do that by:
 * configuring maven to put generated files somewhere out of this 
directory, or
 * configuring the source code control by excluding a directory resp a
fixed set of directories
?

-solo.

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




==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Locating pom.xml in a parent directory?

2006-10-17 Thread Greg_Vaughn
I don't want to discourage you from requesting a new feature, but I 
thought I'd throw my 2 cents in about workarounds. I have an external tool 
setup in eclipse to run mvn from the project root directory. I don't 
typically navigate my project's folder structure from a shell. I suspect 
you're a text editor only type to be doing a lot of that navigation 
(nothing wrong with that). If I were in your shoes, I'd probably just 
locally modify my mvn bat or shell script to keep stepping up the 
directory tree until it finds a pom.xml before actually executing. It'd be 
nice to attach that modification to the feature request.

Greg Vaughn
[EMAIL PROTECTED]

[EMAIL PROTECTED] wrote on 10/17/2006 03:00:32 PM:

 I don't see anything in the archives about parentBasedir. Does 
everyone
 just run mvn from their project root directory? this seems very limiting 
and
 against the model that a lot of people that use tools like ant follow.
 
 What is the best way to request a new feature like this?
 
 
 On 10/16/06, Dan Tran [EMAIL PROTECTED] wrote:
 
  there is some talk to provide ${parentBasedir} by maven
 
  please check the archive
  -D
 
  On 10/16/06, Wayne Fay [EMAIL PROTECTED] wrote:
  
   I don't believe this functionality exists. At least, I've never 
heard
   of it being available, nor have I seen any such request on this
   mailing list.
  
   I would perhaps create an alias to set myvar='pwd'; cd {parent}; 
mvn
   package; cd myvar; or something along those lines, if you are
   unable/unwilling to keep a console of your project root open all the
   time.
  
   Wayne
  
   On 10/16/06, Kabe [EMAIL PROTECTED] wrote:
I've searched the archives and the docs but have come up short on 
any
information for my issue (if i missed it, please point me to the
  correct
thread/doc). I'm trying to find out how to run 'mvn' in a similar 
way
  to
   how
i used to run 'ant', in that i was able to run it from some sub
   directory of
my project (for example, if i am in
  project/src/main/java/com/foo/bar)
   and
it will recursively check the current directory and all parent
   directories
until it locates the build file (pom.xml for maven of course) and 
then
   run
from that directory. Is this available with Maven? Without this, i
  have
   to
either keep a console on my project root so i can build, or move 
to
  the
project root every time i want to build. This seems like something
   everyone
else would come across as well, so figured there might be an 
option
  for
   this
type of behavior that i have just not come across. Any help would 
be
   great,
thanks.
   

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

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Eclipse war builder

2006-10-04 Thread Greg_Vaughn
Kevin Galligan [EMAIL PROTECTED] wrote on 10/02/2006 02:11:49 PM:

 Just thought I'd send a little back to the community.  I coded a
 simple eclipse builder plugin that helps speed up webapp development
 when using the war plugin.
 
 I'm sure there's something out there that does this already, but this
 works pretty well.  If you edit and save a file in either the
 'src/main/webapp' directory or a java class file, it copies the output
 to the exploaded war directory in 'target', so changes should be
 visible immediately rather than after running maven.
 
 Obviously, if you have plugins on your project, they won't get run.
 This really came out of a need to speed up jsp editing.  The plugin
 will also listen to the output on the compiled classes directory, so
 editing java classes in 'src/main/java' will compile to
 'target/classes', and from there be copied to the webapp exploded
 directory.
 
 The plugin also takes 'finalName' into account.  However, it does not
 look into parent pom definitions, etc, so more tricky configurations
 are not taken into account.
 
 http://www.bigheadco.com/warplugineclipsebuilder
 
 Comments welcome.

I tackled the same problem in a different manner recently. Are you 
familiar with the war:inplace goal? That does the reverse of your eclipse 
plugin. It copies the target/classes and lib dependencies from target into 
src/main/webapp/WEB-INF/classes and /lib. I added an ignore for those 
directories to my svn repository so they won't get checked in. Now just 
editing a jsp in eclipse and saving it allows tomcat to see the change. I 
got pulled into more backend development since then, so I didn't go the 
next step, but I considered modifying eclipse to use the WEB-INF/classes 
dir as the compile output folder instead of the default build/classes. 
With that in place, you should only need to run war:inplace if you add a 
new dependency. Also, I had to setup tomcat's context.xml for the app to 
be reloadable=true.

Another nicety I added was to add those WEB-INF/classes and lib 
directories to the maven-clean-plugin so that mvn clean gets rid of them 
too.

I haven't looked at your eclipse plugin in more detail, so I'm not sure of 
what extra features your solution may offer over mine, but I thought I'd 
throw mine out there for consideration.

Greg Vaughn
[EMAIL PROTECTED]


==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


cglib-full

2006-09-20 Thread Greg_Vaughn
Jörg Schaible [EMAIL PROTECTED] wrote on 09/20/2006 
03:24:46 AM:

 (*) New release of JMock 1.1.0 still uses cglib:cglib-full:2.0 as 
 dependency although this breaks any app using Hibernate 3.x or 
 Groovy. Better would have been to use cglib:cglib-nodeps:2.1_3, but 
 as the official docs state the bad dependency, it is also referenced
 in the POM on ibiblio. Is this Carlos' fault now?

I renamed the thread because this is tangent to it. I've also hit this 
error. How did you work around it? I was brand new to maven when we hit it 
and I did the following, but I'm not certain it is the best solution.

dependency
  groupIdjmock/groupId
  artifactIdjmock/artifactId
  version1.0.1/version
  scopetest/scope
  exclusions
exclusion
  artifactIdcglib-full/artifactId
  groupIdcglib/groupId
/exclusion
  /exclusions
/dependency

Greg Vaughn
[EMAIL PROTECTED]

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


RE: cglib-full

2006-09-20 Thread Greg_Vaughn
Jörg Schaible [EMAIL PROTECTED] wrote on 09/20/2006 
10:34:26 AM:

 Hi Greg,
 
 [EMAIL PROTECTED] wrote on Wednesday, September 20, 2006 4:45 
PM:
 
  Jörg Schaible [EMAIL PROTECTED] wrote on
  09/20/2006 03:24:46 AM:
  
  (*) New release of JMock 1.1.0 still uses cglib:cglib-full:2.0 as
  dependency although this breaks any app using Hibernate 3.x or
  Groovy. Better would have been to use cglib:cglib-nodeps:2.1_3, but
  as the official docs state the bad dependency, it is also referenced
  in the POM on ibiblio. Is this Carlos' fault now?
  
  I renamed the thread because this is tangent to it. I've also
  hit this
  error. How did you work around it? I was brand new to maven
  when we hit it
  and I did the following, but I'm not certain it is the best solution.
  
  dependency
groupIdjmock/groupId
artifactIdjmock/artifactId
 
 You mean jmock-cglib ... plain jmock does not have that dep :)

Strange. I actually copied and pasted out of my pom. I didn't exclude from 
jmock-cglib:
dependency
  groupIdjmock/groupId
  artifactIdjmock-cglib/artifactId
  version1.0.1/version
  scopetest/scope
/dependency

I wonder if this is a jmock 1.0.1 vs. 1.1.0 difference. I'll double check 
the dependency tree in the -X output, but what I pasted is what we're 
using. I guess I'll also see what's new in jmock 1.1.0.

 
version1.0.1/version
scopetest/scope
exclusions
  exclusion
artifactIdcglib-full/artifactId
groupIdcglib/groupId
  /exclusion
/exclusions
  /dependency
 
 Yes, this is what we do, but in the dependencyManagement section of 
 our global POM.

Nice idea. I was just reading about what those dependencyManagement and 
pluginManagement sections are for the other day, but I didn't see a 
concrete application of them. Thanks for the tip. We do have a basepom 
shared by a few teams.
==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: maven for repository

2006-09-20 Thread Greg_Vaughn
mbatth [EMAIL PROTECTED] wrote on 09/20/2006 12:09:01 PM:

 
 Hello,
 I am very new to maven, so please pardon my extremely newbie questions. 
I
 have a need for standardizing the common framework and components in my
 organization. So, i am thinking of managing the frameworks or componets 
via
 maven. When any team would require the common artifacts, they can 
install
 maven and connect to common repository. Is maven the right tool for 
this? Is
 it possible to track usage, such as number of downloads? Is there any
 security mechanism by which i can secure the repository?

This can be done, though it is not a primary goal of maven itself. What 
you essentially need to do is supply a mirror of the central repository 
within your organization. This mirror can contain all of your approved 
libraries and nothing else. This will serve up the libraries via a web 
server you control, so you can secure it as you wish and track usage 
through the logs.

In my organization we're looking into this in more detail. We're having 
our legal department approve some open source licenses, and of the 
eligible libraries, our architecture team will help make technical 
assessments of competing libraries to come up with our approved list. We 
also plan to have an experimental maven repository that will proxy the 
main ibiblio one (and others). This will allow developers to link to 
libraries that have not been approved yet (or newer versions of approved 
ones) to continue development while they are in review. Before we go to 
QA, we will ensure that a project can be built against just the repository 
of approved libraries.

From an organizational standpoint, maven will also serve as our standard 
build process. We'll provide a common parent pom for our projects that 
will have customized org specific settings. We'll also have custom 
archetypes to help them get started on new projects. We'll also use the 
site reports to generate standard reports and metrics on the code, and a 
standard configuration for our continuous integration server.

Maven is a great enabler for these organizational standards, but be aware, 
someone in your organization will have to learn maven well to get it 
configured for your needs, and the documentation is a bit scattered at 
this point.

Greg Vaughn
[EMAIL PROTECTED]
==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Where can I get maven-javadoc-plugin 2.1-SNAPSHOT to build from source?

2006-09-20 Thread Greg_Vaughn
There's no tag or branch for that, but the latest trunk code uses that 
version.

https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-javadoc-plugin/

Greg Vaughn
[EMAIL PROTECTED]


==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Re: Where can I get maven-javadoc-plugin 2.1-SNAPSHOT to build from source?

2006-09-20 Thread Greg_Vaughn
Sorry. I didn't try to build it. I just knew where to look.

Greg Vaughn
[EMAIL PROTECTED]

Mick Knutson [EMAIL PROTECTED] wrote on 09/20/2006 04:31:41 PM:

 It did not build as it has some 2.0-snapshot errors
 
 
 
 
 On 9/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 
  There's no tag or branch for that, but the latest trunk code uses that
  version.
 
  
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-javadoc-plugin/
 

==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==


Overriding plugin's default phase/goal associations

2006-09-14 Thread Greg_Vaughn
I'm trying to figure out if it is even possible to override a plugin's 
default phase/goal associations. I'm basically working on a war project. 
What I'd ultimately like to do is change what maven-war-plugin's goals are 
called during the package lifecycle under different profiles. Without a 
profile specified, I want to do a war:inplace because we have tomcat 
installed locally. Under the env-qa profile, I'd like the package 
lifecycle to do a war:war (and then additionally call tomcat:redeploy, but 
it's beyond the scope of my current question).

When I look inside the maven-war-plugin.jar's plugin.xml file I see that 
it binds both it's war:exploded and war:war goals to the package 
lifecycle. I'd like to turn that off. Is it possible?

Also, for additional consideration, do I need to do something different if 
I put this into a parent pom shared by multiple projects?

Thanks for any help or pointers you could provide.

Greg Vaughn
[EMAIL PROTECTED]
==
Confidentiality Notice: The information contained in and transmitted with this 
communication is strictly confidential, is intended only for the use of the 
intended recipient, and is the property of Countrywide Financial Corporation or 
its affiliates and subsidiaries.  If you are not the intended recipient, you 
are hereby notified that any use of the information contained in or transmitted 
with the communication or dissemination, distribution, or copying of this 
communication is strictly prohibited by law.  If you have received this 
communication in error, please immediately return this communication to the 
sender and delete the original message and any copy of it in your possession.
==