How to get between overlay processing and webapp assembly

2011-03-14 Thread Pulkit Singhal
Hello Everyone, I have a scenario where I need to make tweaks to a war and repackage it. Initially, I thought that creating a maven war project would be perfect for this as I would be able to use overlays to replace/add files as I wish. And I still think this is a good idea. But in addition to

Where to host and publish a new plugin

2011-03-10 Thread Pulkit Singhal
Hello Everyone, I'm following the instructions given here to create a new maven plugin: http://maven.apache.org/guides/plugin/guide-java-plugin-development.html I think it would be useful to everyone when its done so I want to find out: 1) Where do you usually host the source for your plugins?

How to build sub-modules selectively?

2010-12-20 Thread Pulkit Singhal
With a structure like the following: umbrella-module core-module optional-module-1 optional-module-2 How can the maven pom files be configured so that a user can build: 1) either, core-module with configuration and jar files from optional-module-1 as dependencies 2) or, core-module with

Detect empty property value

2010-11-11 Thread Pulkit Singhal
How can we write a maven pom.xml file to check for a condition so that we may apply a property value if it is not-null or not-empty? I want to filter my application.conf file and it is simple to filter it against my filter.properties file. But I also want to make sure to filter using any key

Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
Hello, In a multi-module project, I am attempting to provide the parent pom with an assembly descriptor which will pick up the artifacts from some of its children modules and throw them in a folder. I'm doing this by closely following the instructions given here:

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
it for something like assembling the structure for the final releasable product based on the artifacts from its children. On Thu, Sep 2, 2010 at 2:43 PM, Wendy Smoak wsm...@gmail.com wrote: On Thu, Sep 2, 2010 at 1:26 PM, Pulkit Singhal pulkitsing...@gmail.com wrote: In a multi-module project, I am

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
/plugins/maven-assembly-plugin/faq.html#module-binaries /Anders On Thu, Sep 2, 2010 at 20:54, Pulkit Singhal pulkitsing...@gmail.comwrote: Do you mean structuring it like so: parent-maven-project |__childA-maven-project |__childB-maven-project |__childC-maven-project |__fake-assembly

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
Smoak wsm...@gmail.com wrote: On Thu, Sep 2, 2010 at 4:26 PM, Pulkit Singhal pulkitsing...@gmail.com wrote: Thank You Anders Wendy, that was a very educational link. But by moving the product assembler from the parent to a child project, I've now run into a problem because i also have some

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
/fileSet /fileSets On Thu, Sep 2, 2010 at 4:41 PM, Pulkit Singhal pulkitsing...@gmail.com wrote: The sub-module is using the following goal for the assembler:          execution            phasepackage/phase            goals              goalsingle/goal            /goals          /execution

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
and good advice :) On Thu, Sep 2, 2010 at 5:04 PM, Wendy Smoak wsm...@gmail.com wrote: On Thu, Sep 2, 2010 at 4:59 PM, Pulkit Singhal pulkitsing...@gmail.com wrote:        fileSet            directory../artifact-generating-child/target/directory ...             directory../assembly-based

Re: Assembly with modules of specific classifier

2010-09-02 Thread Pulkit Singhal
I don't about bug or not but I have this nagging feeling that if you limited yourself to: includefoo:bar-rpt:jar/include it would work? On Tue, Jun 22, 2010 at 12:48 AM, Adrian Shum tcs...@taifook.com wrote: Dear all, Assume I have a multi-module project foo:bar, with several sub-modules, one

Re: Assembling multi-module artifacts

2010-09-02 Thread Pulkit Singhal
, Sep 2, 2010 at 5:17 PM, Pulkit Singhal pulkitsing...@gmail.com wrote: Well commands you say ... hmm ... just doing: mvn clean install and since that assembly:single goal should tie me into the maven lifecycle, I suppose I felt this command was good enough? In addition, in the .m2 repo I see

Re: Shuttling Property Values between Maven and Ant

2010-08-20 Thread Pulkit Singhal
Hello Luke, Thank You for the help. I see that props can be written out and read back in and this has to be done explicitly to get the altered values back from ant. By the way I tried using profiles and I was able to accomplish the separation I needed for my compile time variables based on any

Shuttling Property Values between Maven and Ant

2010-08-19 Thread Pulkit Singhal
Hello, Can anyone tell me how to make sure that the property values changed by the antrun plugin stick around for use by Maven? I have defined the following properties in Maven: properties !-- valid values: developer or production -- BUILD_TYPEdeveloper/BUILD_TYPE

Re: How to write to file from maven

2010-08-16 Thread Pulkit Singhal
   /properties your can test it by passing on the command line: mvn -DSVN_REVISION=$SVN_REVISION ... /r At 9:36 PM -0400 8/2/10, Pulkit Singhal wrote: I followed your advise and setup something like the following:    resources      resource         targetPath${project.build.directory

How to write to file from maven

2010-08-02 Thread Pulkit Singhal
Does anyone know how to write out to a file from inside a pom.xml file? I ask because I want to put my hudson build's ${SVN_REVISION} value into a version.txt file. Any ideas? - Pulkit - To unsubscribe, e-mail:

Re: How to write to file from maven

2010-08-02 Thread Pulkit Singhal
, and next use the replace task to replace the token with the new value, the current version... : D 2010/8/2 Pulkit Singhal pulkitsing...@gmail.com Does anyone know how to write out to a file from inside a pom.xml file? I ask because I want to put my hudson build's ${SVN_REVISION} value

Re: How to write to file from maven

2010-08-02 Thread Pulkit Singhal
need to enable filtering. refs: [1] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html At 7:09 PM -0400 8/2/10, Pulkit Singhal wrote: I know that what you suggested is a perfectly acceptable solution ... but I cringe at the thought of running ant in maven ... no real

Re: How to write to file from maven

2010-08-02 Thread Pulkit Singhal
Nope did not invent the names :) I'm using hudson and I believe that these environment variables are being set by Hudson for me. http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project#Buildingasoftwareproject-HudsonSetEnvironmentVariables On Mon, Aug 2, 2010 at 9:38 PM, Wayne Fay

How to specify Java system properties via pom.xml in maven

2010-03-22 Thread Pulkit Singhal
Hello All, I was wondering if there is a way to set java system related properties in pom.xml? For exmaple: I want to specify the equivalent of the following: System.setProperty(http.proxyHost, proxy); System.setProperty(http.proxyPort, 8080); inside my pom.xml before my plugin runs. Please

How to place exclusions on a plugin directly

2010-02-08 Thread Pulkit Singhal
Hello Everyone, I want to places the exclusions tag insidea plugin to remove the dependencies that are referenced by that plugin's plugin.pom file retrieved from maven repository. I know that I can place exclusions under the dependencies tag but here I want to exclude files from the plugin and