inheriting and reusing the same plugin for different purposes? doesn't seem to find the right executions

2010-05-12 Thread Shan Syed
Here's my scenario: I have a large multimodule project whose WARs share certain dependencies, which are packaged as zips by a few simple assemblies I wrote. I am using the maven-dependency-plugin to unpack the contents of these zips into their destination folders in the webapps. However, to reduc

Re: inheriting and reusing the same plugin for different purposes? doesn't seem to find the right executions

2010-05-13 Thread Shan Syed
Thanks, but the problem is that when I do that, both executions occur, even when I specify inheritance=false. I basically need to use the same plugin for two different purposes, without either of them affecting the other; I tried to specify different versions for the mvn dep plugin (i.e. in one bl

Re: inheriting and reusing the same plugin for different purposes? doesn't seem to find the right executions

2010-05-13 Thread Shan Syed
ate the > one it needs. > > Tim McGinnis > 717 720-1962 > Web Development > AES/PHEAA > > > > From: > "Shan Syed" > To: > "Maven Users List" , kalpa...@gmail.com > Date: > 05/13/2010 09:54 AM > Subject: > Re: inheriting and reus

Re: inheriting and reusing the same plugin for different purposes? doesn't seem to find the right executions

2010-05-13 Thread Shan Syed
> > > WAR POM specifies this: > > > > > > org.apache.maven.plugins > maven-dependency-plugin > > > > > > > Tim McGinnis > 717 720-1962 > Web Development > AES/PHEAA > > > > From: > "Shan Sye

Re: newbie question

2010-05-26 Thread Shan Syed
please post your entire POM; you don't have to tell the compiler much, but this just reads like you might be missing dependency blocks On Wed, May 26, 2010 at 1:46 PM, Meeusen, Christopher W. < meeusen.christop...@mayo.edu> wrote: > Yes, that did the trick, now new errors though. > > [ERROR] Fai

Re: newbie question

2010-05-26 Thread Shan Syed
you need to specify a dependencies for everything; in the case you depend on a jar that's not publicly available (3rd party vendor, in-house jar, etc), you have a few options: -maintain a repository for these sorts of things, using a tool like archiva, nexus, or artifactory (ideal for teams of mor

Re: Versioning of company SuperPOM

2010-06-01 Thread Shan Syed
I don't fully understand your scenario, but do you use the "release" plugin? http://maven.apache.org/plugins/maven-release-plugin/introduction.html if you maintain your pre-release code as "SNAPSHOT so-and-so", this plugin will help you make a release version out of it without having to edit POMs

Re: Internal Repository Advice

2010-06-01 Thread Shan Syed
Artifactory, Nexus, and Archiva are all well regarded; some choose one over the others for their own reasons. I use Archiva http://archiva.apache.org/ because it was extremely easy to get started with. On Tue, Jun 1, 2010 at 10:18 AM, Greg Akins wrote: > I'm moving my companies projects to Mave

Re: Multi Module Archetypes

2010-06-02 Thread Shan Syed
I think Apache Cocoon and MyFaces have archetypes that do this, you could reference their code otherwise, try executing "archetype:create-from-project" at the root and see what happens? On Wed, Jun 2, 2010 at 11:47 AM, wrote: > Hi, > > Is it possible to create an Archetype which will create a f

Re: Spring3 WS Archetype

2010-06-02 Thread Shan Syed
you could use STS http://www.springsource.com/products/sts to create the WS projects with Spring 3 with proper maven POMs On Wed, Jun 2, 2010 at 11:53 AM, Changkowski wrote: > > Hello > > I'm new to Maven and I have to build several spring webservices with spring > 3. > When I write > > mvn arch

Re: Spring3 WS Archetype

2010-06-03 Thread Shan Syed
Hi, try the STS IDE itself, not the plugin, if you can: http://www.springsource.com/products/sts On Thu, Jun 3, 2010 at 2:42 PM, Changkowski wrote: > > Hi Ron > > The STS-plugin is installed to eclipse, but when i create a Spring project > in eclipse, the project has not the spring directory st

Re: tools.jar and upload to central

2010-06-09 Thread Shan Syed
this is a Sun jar that's under a license that prevents it from being available like that using system scope is an ok solution, but as stated elsewhere, hosting your own repository is a great solution for this issue as well as others that you will likely encounter as your project grows try archiva

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Shan Syed
are you using true in your WAR plugin config? you can reference this WAR project's JAR in your project that requires the classes for compile time, using classes On Fri, Jun 11, 2010 at 11:03 AM, Starrman wrote: > > I have a webapp that is to be used as a war overlay. My packaging type is > wa

Re: War overlay trouble for Pom that produces WAR and JAR

2010-06-11 Thread Shan Syed
it's actually Shan ;) just to generalize (not fully sure if this applies to your scenario), if you want a WAR project to produce a JAR locally (within the /lib dir of the webapp), you can use true to have the same/similar JAR actually be available as a consumable arti

Re: Building Maven Without Maven Installed

2010-06-11 Thread Shan Syed
Hi, are you sure netbeans requires Maven 3? http://wiki.netbeans.org/Maven if you're new to Maven, building and understand Maven 3 will be tricky, so it might be a good idea to stick with an older/stable version On Fri, Jun 11, 2010 at 3:17 PM, christianto hendri < christianto.hen...@gmail.com>

high-level maven multimodule/inheritance question

2010-06-11 Thread Shan Syed
example scenario: - there is a super POM, which is the parent for 5 other POMs (A, B, C, D, E), which have their own children too - only A, B, and C are listed as modules in the super POM because the others are logically separate (and also, issuing a build at the top with all the modules enabled

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Shan Syed
it would be nice if you could somehow specify that certain dependencies were "transient" or something (perhaps in a profile), and have maven go out and execute the same goals on those? On Fri, Jun 11, 2010 at 6:23 PM, Wayne Fay wrote: > > It is not clear that this is a viable way to work. > > Yo

Re: high-level maven multimodule/inheritance question

2010-06-12 Thread Shan Syed
h. > > It also means that a developer can set his dependencies on code that he > > knows and trusts - either a release or a particular SNAPSHOT or the > latest > > SNAPSHOT if he/she is working closely with another developer. > > > > Otherwise, you have no idea about w

Re: using javascript dependencies in a webapp (war packaging)

2010-06-14 Thread Shan Syed
I've worked on projects that share common javascript files, so I used a simple assembly descriptor to zip each set of files and install them as maven artifacts WAR projects then just specified them as dependencies in their POMs it's nice then to be able to treat these artifacts like any other proje

Re: using javascript dependencies in a webapp (war packaging)

2010-06-16 Thread Shan Syed
o, no weirdness with copying and unzipping directly On Tue, Jun 15, 2010 at 6:23 PM, Haszlakiewicz, Eric wrote: > >-Original Message- > >From: Shan Syed [mailto:shan...@gmail.com] > > > >I've worked on projects that share common javascript files, so I used

Re: How to deploy artifact without version in name?

2010-06-22 Thread Shan Syed
do you need the artifact's file name to retain the groupId/version info? if not, specify moduleA in the section of your POM On Tue, Jun 22, 2010 at 10:54 AM, D D wrote: > Hello, > > Is there an easy way to deploy an artifact such it doesn't include version > in its name? > > For example: when m

Re: Maven Package Speed

2010-06-24 Thread Shan Syed
this has to do with what's in your WAR, perhaps analyze what dependencies its using, and where they are coming from Maven is just like any other program; you can throw hardware at it to speed it up On Thu, Jun 24, 2010 at 4:41 PM, Rajasekar Karthik wrote: > Hi, > How can Maven's package of war be

Re: Maven Package Speed

2010-06-25 Thread Shan Syed
also, consider breaking the WAR up into different webapps, if you can, architecturally 50 dependencies is pretty big On Fri, Jun 25, 2010 at 10:22 AM, Wayne Fay wrote: > > Copying webapp > > resources[C:\Users\7yw\netbeans_workspace\BioKDF\src\main\webapp] > > Webapp assembled in[75025 msecs] >

Re: Maven Package Speed

2010-06-25 Thread Shan Syed
I don't know what your webapp does, so it's hard for me to describe how it could be broken up; but personally, if I had a webapp that relied on 50 dependencies (and as a result, 50+ jars), I would try to identify how I could modularize it and move the service layer to actual independent web service

altDeploymentRepository - deploy plugin

2010-07-02 Thread Shan Syed
how can I specify security info (username/password) for the target repo, using this parameter with the deploy:deploy goal? it takes the URL, format, and ID only thanks - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org F

Re: altDeploymentRepository - deploy plugin

2010-07-02 Thread Shan Syed
> http://maven.apache.org/settings.html#Servers > > /Anders > > On Fri, Jul 2, 2010 at 22:29, Shan Syed wrote: > >> how can I specify security info (username/password) for the target >> repo, using this parameter with the deploy:deploy goal? >> it ta

Re: Customized Maven congfiguration

2010-07-06 Thread Shan Syed
build your projects using maven, then orchestrate your build with something like hudson http://hudson-ci.org/ you can set various triggers on how to kick off a build (time/cron based, or monitor CVS for changes) you can also invoke deploy plugins and what not through maven On Tue, Jul 6, 2010 at 8

is there a way to query maven for all the X type of modules it just built?

2010-07-06 Thread Shan Syed
If I have a multi-module project made up of JARs and WARs and ZIPs and... etc is there a way to commit an action on, for example, all the WARs that were just built, without having to specify particular projects? - To unsubscribe,

Re: is there a way to query maven for all the X type of modules it just built?

2010-07-06 Thread Shan Syed
script, to make sure at any time, I have links to all the WARs in Hudson produced by a single build this is all so I don't have to maintain a list of tons and tons of WARs; I want it generated automatically S On Tue, Jul 6, 2010 at 4:01 PM, Ron Wheeler wrote: > On 06/07/2010 2:24 PM, S

Re: change version?

2010-07-06 Thread Shan Syed
http://maven.apache.org/plugins/maven-release-plugin/examples/update-versions.html On Tue, Jul 6, 2010 at 5:06 PM, Frank Maritato wrote: > I have a multimodule maven project and I want to change the version number. > Unfortunately, it looks like I have to manually edit each pom.xml (or write > so

Re: Relationsship "pom.xml" and "build.xml" from Ant

2010-07-14 Thread Shan Syed
maven/POMs can make use of ant build scripts, so be wary of this scenario; it is fairly common to use ant via maven > So if I get a project which contains a pom.xml and a build.xml then the > developer offers to use > either Ant or Maven. If I select Maven then I can delete build.xml. If I > selec

Re: Relationsship "pom.xml" and "build.xml" from Ant

2010-07-14 Thread Shan Syed
you can reference an external build file within the ant-run plugin, so something like: .. .. taken from the second example http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html chances are that in your case: -the two separate builds are

Re: antrun plugin resolving properties referencing properties

2010-07-14 Thread Shan Syed
just to clarify, are you using the antrun plugin for maven or the maven tasks for ant? On Wed, Jul 14, 2010 at 6:06 PM, Adam Krieg wrote: > I'm trying to access the project.build.directory property which is defined in > my pom as > >   >    ${project.basedir}/target > > > In ant I have thi

Re: Maven ant tasks resolving properties referencing properties

2010-07-14 Thread Shan Syed
ieg wrote: > Forgive me, I meant Maven ant tasks.  I'm trying to reference information > defined in the pom from my build.xml. > > -Original Message- > From: Shan Syed [mailto:shan...@gmail.com] > Sent: Wednesday, July 14, 2010 6:23 PM > To: Maven Users List &g

applying finalName of dependencies when project is packaging

2010-07-20 Thread Shan Syed
I know there is already a lot of discussion around the topic of artifacts not using "finalName" when they are installed into a repository (remote or local), but is there a way to enforce that the dependencies, when packaged into the using project, are packaged with their finalNames? example: Proje

Re: applying finalName of dependencies when project is packaging

2010-07-20 Thread Shan Syed
to use the artifact name and strip out > the version info from the filename, you can use outputFileNameMapping > (see http://maven.apache.org/plugins/maven-assembly-plugin/component.html > ). > > Kalle > > > On Tue, Jul 20, 2010 at 1:26 PM, Shan Syed wrote: > > I kn

understanding SNAPSHOTS.. where?

2010-07-24 Thread Shan Syed
simple question; on this page http://maven.apache.org/guides/getting-started/index.html it states: "*version* This element indicates the version of the artifact generated by the project. Maven goes a long way to help you with version management and you will often see the SNAPSHOT designator in a v

what happened to release:update-versions?

2010-07-24 Thread Shan Syed
is it gone? perhaps in favor of the http://mojo.codehaus.org/versions-maven-plugin/ plugin? >mvn release:update-versions ... [INFO] Required goal not found: release:update-versions in org.apache.maven.plugins:maven-release-plugin:2.0-beta-8 and >mvn org.apache.maven.plugins:maven-release-plugin:

force maven to redownload/refresh "released" dependencies

2010-07-30 Thread Shan Syed
is there a way to force a project to refresh certain dependencies every build? i.e. replicate SNAPSHOT behaviour with "released" artifacts S

Re: force maven to redownload/refresh "released" dependencies

2010-07-30 Thread Shan Syed
ok, thanks basically for liability reasons for a certain project, we have to provide specific times of when a project was built and when/where all its dependencies were retrieved at/from we have to ensure a sanitary build for all these JARs and a complete log of going from 0 to 100 for the build; s

Re: force maven to redownload/refresh "released" dependencies

2010-07-30 Thread Shan Syed
ist told us that your request is stupid" deleting the m2 works, I was just curious to see if there was a switch in maven to force all downloads again On Fri, Jul 30, 2010 at 2:47 PM, Jason van Zyl wrote: > > On Jul 30, 2010, at 2:21 PM, Shan Syed wrote: > > > ok, thanks

Re: force maven to redownload/refresh "released" dependencies

2010-07-30 Thread Shan Syed
it only applies to our final release cuts, not our day-to-day just once for this project really; I wanted to insert such this switch (if existed) in our "delivery build" profile we use archiva for everything else, and actually only make use of public maven repositories when we up a version of our d

Re: force maven to redownload/refresh "released" dependencies

2010-07-30 Thread Shan Syed
oad it again. So, back to the > original problem, are you guys doing that? > > On Fri, Jul 30, 2010 at 3:57 PM, Shan Syed wrote: > > > it only applies to our final release cuts, not our day-to-day > > just once for this project really; I wanted to insert such this switch > (if