war plugin and dependant webapps
Hi, I have webapps depending upon a common webapp (for jsps, images, js...). Each webapp can override stuff in common webapp and contains the files in its own project. common/src/webapp/welcome.jsp webmoduleA/src/webapp/welcome.jsp To accomplish building webmoduleA, I tried copying files from common to ${maven.war.webapp.dir} as pre-goal but the war plug-in when copying the webmoduleA/src/webapp/ files does specify the ant:copy overwrite=true j:if test=${webSourcesPresent == 'true'} ant:copy todir=${maven.war.webapp.dir} preservelastmodified=true ant:fileset dir=${maven.war.src} includes=${maven.war.src.includes} excludes=${maven.war.src.excludes} /ant:fileset /ant:copy /j:if and hence the file is not overwritten. I made it as a post-goal and copy the files from common after the war:webapp but the problem comes if the common/.../welcome.jsp has been modified after webModuleA/.../welcome.jsp then it is overwritten. How to handle this case? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: aspectj maven.aspectj.source
Thank you. -Original Message- From: Carlos Sanchez [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 3:20 PM To: 'Maven Users List' Subject: RE: aspectj maven.aspectj.source Hi, Thanks for pointing this out, it has just been fixed in CVS. You can download it from http://cvs.apache.org/repository/maven/plugins/maven-aspectj-plugin-3.2-SNAP SHOT.jar Regards Carlos Sanchez A Coruña, Spain Oness Project http://oness.sourceforge.net -Original Message- From: Sonnathi, Venkat [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 4:59 PM To: 'Maven Users List' Subject: aspectj maven.aspectj.source Hi, I have assert statements in my java code and when I try to weave aspects into it, iajc is not recognizing assert statement even after I have set maven.aspectj.source = 1.4. I took a peek at plugin.jelly of mavenaspectj-3.1.1 and don't find reference to the maven.aspectj.source variable. How do I enable 1.4 asserts with aspectj plugin? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Maven FindBugs Plugin 0.8.2 released
I don't see any difference between 0.7.2 generated report and 0.8.2 generated report. As per the release notes it mentions about new pmd style report... Can you provide a new sample output? Thanks, --Venkat. -Original Message- From: Eric Pugh [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 2:13 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [ANN] Maven FindBugs Plugin 0.8.2 released The maven-plugins team is pleased to announce the FindBugs Plug-in 0.8.2 release! http://maven-plugins.sourceforge.net A plugin to automate FindBugs tasks Changes in this version include: New Features: o Switch to maven friendly raw report format. Add new pmd style report. o add maven.findbugs.detail which can be low, medium, or high to control which errors are displayed. o Instead of running findbugs against a compiled jar, run against the individual classes. This avoids running the unit tests just to get a compiled jar. Changes: o Use findbugs version 0.8.2. To automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=maven-plugins -DartifactId=maven-findbugs-plugin -Dversion=0.8.2 -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://maven-plugins.sour ceforge.net/maven/ For a manual installation, you can download the plugin here: http://www.ibiblio.org/maven,http://maven-plugins.sourceforge.net/maven/mave n-plugins/plugins/maven-findbugs-plugin-0.8.2.jar Have fun! -The maven-plugins team - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven WebLogic 8.1 Plugin is available
I am interested in using it. Thanks, --Venkat. -Original Message- From: =?iso-8859-1?Q?=22G=F6schl=2CSiegfried=22_ [mailto:[EMAIL PROTECTED] Sent: Thursday, June 24, 2004 4:41 AM To: Maven Users List Subject: RE: Maven WebLogic 8.1 Plugin is available Sorry, the email was not finished yet - anyone who would like to use it ?! And more important - thanks to Fabian Crabus who helped developing it! Cheers, Siegfried Goeschl -Original Message- From: Göschl,Siegfried Sent: Donnerstag, 24. Juni 2004 10:34 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Maven WebLogic 8.1 Plugin is available Hi folks, I wrote a Maven plugin for BEA WebLogic 8.1 a while ago and did not have any time yet to upload it to maven-plugins.sourceforge.net Shame on me. I tested it for Maven RC1 under Windows XP and BEA WebLogic 8.1 SP2 - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven multiproject plugin help
Hi, I am trying to run multiproject:site for multiproject 1.4 and am using Maven rc2 and I get the error: Attempting to download maven-1.0-rc2.jar. ... . build:start: multiproject:projects-init: [echo] Gathering project list BUILD FAILED File.. file:/c:/myhome/.maven/plugins/maven-multiproject-plugin-1.3/plugin.j elly Element... j:if Line.. 51 Column 44 file:/c:/myhome/.maven/plugins/maven-multiproject-plugin-1.3/plugin.jelly:63 :9: maven:reactor This tag does not understand the 'collectionVar' attribute Total time: 3 seconds Finished at: Thu Jun 24 09:29:12 EDT 2004 Do I need to use RC3 for using this plugin? I look at the dependecies on the maven plugin site and it says maven 1.o rc2 jar Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
plugin variable
Hi, Can I set a variable for a plugin. For e.g. Can I set maven.build.dir setting for multiproject plugin alone? for the rest use-default? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Aspectj warning
Hi, I get this warning! Where should the aspectjrt.jar be present? aspectj:weave-internal: [move] Moving 1 files to Z:\build\gold\GOLD-presentation [iajc] couldn't find aspectjrt.jar on classpath, checked: [iajc] [iajc] 1 warning [iajc] Building zip: Z:\build\gold\GOLD-presentation\GOLD-presentation-1.0.j ar I have dependency on aspectjrt-1.1.1.jar in my project.xml. Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Aspectj warning
Thanks for the help. -Original Message- From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] Sent: Thursday, June 03, 2004 9:54 AM To: Maven Users List Subject: Re: Aspectj warning Venkat, It is slightly annoying and I think it has to be brought up with the aspectj folks. Your project is compiling fine, because, as you said, you have aspectjrt-1.1.1.jar in the project.xml. For some reason, the ajc compiler complains if it is not named aspectjrt.jar. So, to get around the warning, change the entry for the aspectjrt.jar in your project.xml. dependency groupIdaspectj/groupId typejar/type artifactIdaspectjrt/artifactId jaraspectjrt.jar/jar properties classloaderroot/classloader war.bundletrue/war.bundle /properties /dependency That will do it. Make sure you copy aspectjrt-1.1.1.jar to aspectjrt.jar in your repository. Oh, and you should consider switching to aspectj-1.2, it has better features and it compiles much faster. Charlie Sonnathi, Venkat said the following on 6/3/2004 8:37 AM: Hi, I get this warning! Where should the aspectjrt.jar be present? aspectj:weave-internal: [move] Moving 1 files to Z:\build\gold\GOLD-presentation [iajc] couldn't find aspectjrt.jar on classpath, checked: [iajc] [iajc] 1 warning [iajc] Building zip: Z:\build\gold\GOLD-presentation\GOLD-presentation-1.0.j ar I have dependency on aspectjrt-1.1.1.jar in my project.xml. Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recommended way to execute a java class
Hi, After the build. I need to run a Java class with the same classpath as the build classpath. Is ant:java... the best way? If so how do I access the project classpath (depdencies). Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven:war plugin change request
Hi Paul, Atleast have a configurable property that is set to false by default and who so ever wants can override this behavior. This will be a definite problem when people have dependant web modules. Thanks, --Venkat. -Original Message- From: Glenn, Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 11:52 AM To: Maven Users List Subject: RE: maven:war plugin change request Hi, I don't think you want an overwrite there unless the file has changed, as you might want to preserve the timestamp on an unchanged file. We do this for deploying 'exploded' in our desktop development env. This saves us from having to wait for JSPs getting compiled if they are unchanged. Paul -Original Message- From: Sonnathi, Venkat [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 11:43 AM To: 'Maven Users List' Subject: RE: maven:war plugin change request Hi, The problem is that the ant:copy does not have a overwrite=true in the maven-war-plugin-1.5.jar. What is the procedure for requesting change to this plugin? The following code in the goal war needs to be changed because of the problems I am facing: j:if test=${webSourcesPresent == 'true'} ant:copy todir=${maven.war.webapp.dir} ant:fileset dir=${maven.war.src} includes=${maven.war.src.includes} excludes=${maven.war.src.excludes} /ant:fileset /ant:copy /j:if We need to add overwrite=true to the ant:copy task above. Thanks for your time. --Venkat. -Original Message- From: Henry S. Isidro [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 28, 2004 8:10 PM To: Maven Users List Subject: Re: maven:war plugin Sonnathi, Venkat wrote: Hi, I have common web module (CWM) and a few specialized web modules(SWM). SWM over-ride the jsp defines in CWM on a as needed basis. So, when building SWM web-app, I need to copy the webapp dir of CWM/src and then whatever is defined in SWM/src/webapp. I defined a preGoal for war:webapp, but by default the overwrite flag of ant:copy used in war:webapp is false. So, the specialized files (jsp's in SWM) are not copied over the onces from CWM. So can someone add a overwrite flag to maven:war plugin? Or are there anyother suggesstions? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi. Just set the flag to true. For example, copy overwrite=true.../ I've done that and it works. Regards, Henry S. Isidro Software Engineer Exist Software Labs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting maven.multiproject.type
Yes, I did and invoked maven mutliproject:install from A directory. I am using Maven rc2. Thanks, --Venkat. -Original Message- From: Brice Copy [mailto:[EMAIL PROTECTED] Sent: Thursday, April 29, 2004 10:42 AM To: Maven Users List; Sonnathi, Venkat Subject: Re: Setting maven.multiproject.type Venkat, I have set of three modules/projects in a global project folder. A/moda - jar A/modb - jar A/modc - war I generally invoke maven from A and would like to utilize multiproject plugin. How do I set the maven.multiproject.type variable for each module separately? I have the same project folder layout as you do, but I cannot seem to invoke any multiproject goals from A/modc Did you manage to deploy the A/modc WAR file ? which Maven version are you using ? I had to create a base project A/Base from which I can call multiproject:artifact. Thanks Brice - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting maven.multiproject.type
Sorry! I had a incomplete maven.multiproject.type in the ${user.home}/build.properties and it was overriding maven.multiproject.type in the project.properties. Thanks, --Venkat. -Original Message- From: Sonnathi, Venkat [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 27, 2004 1:10 PM To: 'Maven Users List' Subject: Setting maven.multiproject.type Hi, I have set of three modules/projects in a global project folder. A/moda - jar A/modb - jar A/modc - war I generally invoke maven from A and would like to utilize multiproject plugin. How do I set the maven.multiproject.type variable for each module separately? Thanks, --Venkat. - 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]
maven:war plugin
Hi, I have common web module (CWM) and a few specialized web modules(SWM). SWM over-ride the jsp defines in CWM on a as needed basis. So, when building SWM web-app, I need to copy the webapp dir of CWM/src and then whatever is defined in SWM/src/webapp. I defined a preGoal for war:webapp, but by default the overwrite flag of ant:copy used in war:webapp is false. So, the specialized files (jsp's in SWM) are not copied over the onces from CWM. So can someone add a overwrite flag to maven:war plugin? Or are there anyother suggesstions? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting maven.multiproject.type
Hi, I have set of three modules/projects in a global project folder. A/moda - jar A/modb - jar A/modc - war I generally invoke maven from A and would like to utilize multiproject plugin. How do I set the maven.multiproject.type variable for each module separately? Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
preGoal not invoked
Hi, I have the following maven.xml: maven.xml project default=foobar-dist xmlns:m=jelly:maven xmlns:ant=jelly:ant xmlns:j=jelly:core goal name=foobar-dist attainGoal name=war:war / preGoal name=war:webapp ant:echoIn the preGoal of war:init/ant:echo ant:available property=baseWebappSourceDir type=dir file=${gold.base.webapp.dir}/ j:if test=${baseWebappSourceDir == 'true'} ant:copy todir=${maven.war.webapp.dir} ant:fileset dir=${gold.base.webapp.dir} /ant:fileset /ant:copy /j:if /preGoal /goal /project End of maven.xml The preGoal is not being invoked (I don't see the ant:echo output). Can someone please help. Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: preGoal not invoked
Thanks. --Venkat. -Original Message- From: Craig S. Cottingham [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 13, 2004 12:38 PM To: Maven Users List Subject: Re: preGoal not invoked On Tue, 2004-04-13 at 11:25, Sonnathi, Venkat wrote: I have the following maven.xml: maven.xml project default=foobar-dist xmlns:m=jelly:maven xmlns:ant=jelly:ant xmlns:j=jelly:core goal name=foobar-dist attainGoal name=war:war / preGoal name=war:webapp ant:echoIn the preGoal of war:init/ant:echo ant:available property=baseWebappSourceDir type=dir file=${gold.base.webapp.dir}/ j:if test=${baseWebappSourceDir == 'true'} ant:copy todir=${maven.war.webapp.dir} ant:fileset dir=${gold.base.webapp.dir} /ant:fileset /ant:copy /j:if /preGoal /goal /project End of maven.xml The preGoal is not being invoked (I don't see the ant:echo output). Can someone please help. The pregoal element should be at the same level as the goal element, not nested inside it. -- Craig S. Cottingham [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Default/bootstrap Classpath
Hi, I am new Maven user. So please excuse me if this is a very naive/dump question: I have created a small project which refers to Xerces classes and in the project.xml I have not specified the xerces.jar as the dependency and when I do a jar:jar goal it compiles and creates a jar with my classes. So, I am assuming that there is a certain default classpath which maven has - Can someone throw some light on this. Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can we deploy build jars to maven.local.repo directory?
Hi, I would like to know if we can deploy the new built jars to maven.local.repo directory. I am trying to build hivemind and it has two modules - framework and library. library depeds upon the jar created in the framework. I don't have ibibilio.org account. It would be nice if I could specifiy that the jar be deploy to ${maven.local.repo} directory. Thanks, --Venkat. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]