Re: Does Cargo m2 plug-in support oc4j 10.1.3 ?

2007-09-27 Thread Farhan Sarwar
Well actually i have posted there already, but apparently that list is not as active as i thought it would be. Farhan. On 9/27/07, Wayne Fay [EMAIL PROTECTED] wrote: Any reason you're asking on this list rather than on the Cargo Users list directly? I personally never used Cargo when I was

Re: Does Cargo m2 plug-in support oc4j 10.1.3 ?

2007-09-27 Thread Farhan Sarwar
probably need to code it yourself and contribute it. Wayne On 9/27/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Well actually i have posted there already, but apparently that list is not as active as i thought it would be. Farhan. On 9/27/07, Wayne Fay [EMAIL PROTECTED] wrote: Any reason

Re: General question about how to use Maven to build and deploy

2007-09-21 Thread Farhan Sarwar
Thats something i would be interested in knowing as well, as to what people are using for automated deployment of their wars/ears or are they still relying on some manual effort, i know of few using ant for the same. Farhan. to my knowledge most of the people are currently using or ant or other

Re: maven2 / continuum / scm URL frustration

2007-09-15 Thread Farhan Sarwar
probably thats because subversion still just supports http/https/ftp/file protocols..so you need to configure subversion with apache so as to make accessible through http protocol, with that done the url in connection and developerconnection tags should look like

Re: adding struts-config.xml file to WEB-INF folder during WAR build

2007-09-12 Thread Farhan Sarwar
A one time thing but certainly worth the effort in my opinion, eventually the goal should be to have a similar structure enterprise-wide so as to speed up the time it takes for the new members to adapt to a different project in the company. Farhan. On 9/12/07, Syed Shabir [EMAIL PROTECTED]

Re: suite in junit and maven 2 - do they work together

2007-09-12 Thread Farhan Sarwar
but does maven invoke these suites for you during its build-cycle? as thats what i want On 9/12/07, Sebastian Johnck [EMAIL PROTECTED] wrote: I had the this way working for a while using annotations like so: @Suite.SuiteClasses( { ServicesSystemTestSuite.class }) @RunWith(Suite.class) Using

Re: suite in junit and maven 2 - do they work together

2007-09-12 Thread Farhan Sarwar
interesting but not a good way to go ahead with (as also you suggested), more because this way you would have to configure in every project's pom the directory where the test-cases reside (so as to exclude them) what if the test-cases reside in one more than one folder (for a single project) the

Re: suite in junit and maven 2 - do they work together

2007-09-12 Thread Farhan Sarwar
maven includes and excludes elements in the surefire plugin. On 9/12/07, Farhan Sarwar [EMAIL PROTECTED] wrote: interesting but not a good way to go ahead with (as also you suggested), more because this way you would have to configure in every project's pom the directory where the test-cases

Re: suite in junit and maven 2 - do they work together

2007-09-12 Thread Farhan Sarwar
Makes sense...thanks man. Farhan. On 9/12/07, Sebastian Johnck [EMAIL PROTECTED] wrote: correct, i use profiles to configure the excludes/includes values depending on which test run i want to do. On 9/12/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Sebastian...I assume that you still have

Re: Associate a default goal for a plugin and type the plugin name only on cmdln

2007-08-28 Thread Farhan Sarwar
Thanks Remy... On 8/28/07, Rémy Sanlaville [EMAIL PROTECTED] wrote: not in maven 2. It was only in maven 1. In m2 you have to call aPlugin:aGoal Yes, it's not available in maven 2. I ask for a such feature some time ago and I had this reply that explain why it is not so easy.

Associate a default goal for a plugin and type the plugin name only on cmdln

2007-08-27 Thread Farhan Sarwar
Hello Guys, I was just wondering if there is a way to configure/associate a default goal for plugin so that we need not to type the goal name explicitly on the command line Thanks and Regards, Farhan. - To unsubscribe, e-mail:

Re: Associate a default goal for a plugin and type the plugin name only on cmdln

2007-08-27 Thread Farhan Sarwar
. However, if you bind the goal to a phase, you don't even need to type the plugin (nor the goal) on the CLI... It just all happens automagically. Wayne On 8/27/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Hello Guys, I was just wondering if there is a way to configure/associate a default

Re: Associate a default goal for a plugin and type the plugin name only on cmdln

2007-08-27 Thread Farhan Sarwar
i see..thanks On 8/27/07, Arnaud HERITIER [EMAIL PROTECTED] wrote: not in maven 2. It was only in maven 1. In m2 you have to call aPlugin:aGoal Arnaud On 27/08/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Well actually there are scenarios where i would want to execute a plugin:goal

Re: Associate a default goal for a plugin and type the plugin name only on cmdln

2007-08-27 Thread Farhan Sarwar
though i wonder why would they have taken the feature out..i certainly see it handy.. Farhan. On 8/27/07, Farhan Sarwar [EMAIL PROTECTED] wrote: i see..thanks On 8/27/07, Arnaud HERITIER [EMAIL PROTECTED] wrote: not in maven 2. It was only in maven 1. In m2 you have to call aPlugin:aGoal

mvn deploy on Artifactory gives File transfer error (Return Code 401)

2007-08-27 Thread Farhan Sarwar
Hello Guys, Any clue as to why am i getting the following error on deploying an artifact on artifactory repo using maven deploy:deploy-file..it says Failed to transfer file : [filename] Return Code 401 Farhan. C:\Users\dummyusermvn deploy:deploy-file -DgroupId=itext -DartifactId=itext

parameterised way (like maven.test.skip=true) to bypass a phase/goal

2007-08-22 Thread Farhan Sarwar
Hello All, Just wanted to know if there is a way to bypass a phase or a goal (defined in a pom) on invoking the same from the command prompt ..like we do for bypassing the test-cases with mvn phase -Dmaven.test.skip=true...i doubt there is..but just wanted to be sure.. Thanks and Regards,

Re: parameterised way (like maven.test.skip=true) to bypass a phase/goal

2007-08-22 Thread Farhan Sarwar
and Regards, Farhan. On 8/22/07, Dan Tran [EMAIL PROTECTED] wrote: You can not skip a phase, but executions within a phase can be skipped if the configured plugins support this option ( like sql-maven-plugin) . -D On 8/22/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Hello All, Just

Re: artifactory - maintaining a public-repo cache

2007-08-21 Thread Farhan Sarwar
is to override the central repo. Thus, override central by specifying your proxy with an id of central and Maven will not connect directly to it. Wayne On 8/21/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Thanks alot for the elaboration Wayne...it certainly is helpful, but actually what i

Question on updatePolicy and the way it relates to snapshots

2007-08-21 Thread Farhan Sarwar
Hello Guys, Got a question relating to the updatePolicy tag in the maven repository configuration, so basically an updatePolicy can have one of the 4 possible values i.e. always,daily,interval:X (in minutes) and never. Now my understanding of the way maven handles Snapshot version(s) is that it

Re: Question on updatePolicy and the way it relates to snapshots

2007-08-21 Thread Farhan Sarwar
. Please comment.. Thanks and Regards, Farhan. On 8/21/07, Eric Redmond [EMAIL PROTECTED] wrote: On 8/21/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Hello Guys, Got a question relating to the updatePolicy tag in the maven repository configuration, so basically an updatePolicy can

Re: How to globally set version of dependencies used commonly in child poms

2007-08-20 Thread Farhan Sarwar
Farrukh, I think you'll require using the pluginManagement tag in the parent pom to achieve the same behaviour for plugins. Farhan. On 8/20/07, Farrukh Najmi [EMAIL PROTECTED] wrote: Thank you Wayne! I had completely missed this subtle but important distinction between dependencies and

artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
Dear All, I have setup a maven public repository cache so as to maintain the artifacts used commonly (within the organization) and hence not require a download everytime from a maven public repository and btw i am using Artifactory as the Repository Manager. So in order to achieve the above i

Re: artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
Hi Yoav, Thanks for the quick follow..so basically among the two approaches suggested, the first is the one i have opted, and have defined the maven-public-repository-cache in the parent pom as it states (instead of settings.xml)..or am i still missing something.. Farhan. On 8/20/07, Yoav

Re: artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
Hi Yoav, It seems to be working now...Well actually the artifacts i was refering to were actually the plugins (which were always being downloaded from the maven public repo i.e. repo1), and after adding the pluginrepositories section (as below) in pom those are now being cached/downloaded from

Re: artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
1) So if the ids is just the logical name inside maven , what difference does it make if i name the Id as central or snapshot as you suggested earlier, and i assume thats the only change you are suggesting to my earlier configuration in the pom. 2) Isn't that how it should be, given that if the

Re: artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
I am still not clear with the concept so if you could kindly elaborate a bit further..i would appreciate it, to what i have understood so far is that central and snapshot are the ids which maven uses to determine if the public repository is to be overridden or not, but i am just not clear as to

Re: artifactory - maintaining a public-repo cache

2007-08-20 Thread Farhan Sarwar
not override the central repo setting, then the local Maven installs will still know about the real Central, and they won't use your proxy for all requests which is what you want to configure, if you're setting up a corporate repo cache/proxy. Wayne On 8/20/07, Farhan Sarwar [EMAIL PROTECTED

plugin for executing shell script/batch files ?

2007-08-17 Thread Farhan Sarwar
Whats the plugin to use in maven to execute/invoke shell scripts or a batch file? Farhan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

configuring default phase against a profile

2007-08-17 Thread Farhan Sarwar
How to associate a default phase with a profile, so that when i activate/invoke the profile, i dont have to explicitly specify the phase from the command line...something like mvn -P someprofile, and hence the profile is activated within whatever the default phase it is configured with.

Question relating to a build configured within a profile

2007-08-17 Thread Farhan Sarwar
Another quick questions folks.. I have got a profile (in a pom) which has a build configured for maven-ant plugin in it (as below), now my understanding of plugin/goals configured within a build is that if they are not bind to phase they would just run independent of the maven build-cycle-phases,

Re: Re : Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-17 Thread Farhan Sarwar
.. On 8/16/07, Farhan Sarwar [EMAIL PROTECTED] wrote: Thanks for the follow-up Steve, I am still hoping that someone has a solution to what I want to achieve but at the same time I think what you have suggested is certainly a good simulation for the same…now am still trying to configure the pom

Re : Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-17 Thread Farhan Sarwar
. If you put the antrun execution (or any other execution) in a profile with no explicit activation spec, and bind it to a really early phase (say, the initialize phase), then you can invoke it from the command line like this: mvn -P profile-id initialize Steve Farhan Sarwar wrote: Hi

Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-16 Thread Farhan Sarwar
Hi All, Is there a way I can invoke a plug-in/goal (not linked with any phase) configured in a project's pom.xml (within an execution tag) from the command line directly, also the idea is to invoke the goal irrespective of the maven build cycle. To be more precise let's say if I have a

Associate an ID with a goal and call it independently

2007-08-15 Thread Farhan Sarwar
Hi Guys, There is something which I am trying to achieve through maven, for which I need some assistance.. Basically I would want to run some maven goal for which I have provided the configuration (e.g. the parameters it expects and other stuff) in a pom for a project. Now what I would want

Feedback on maven repository managers

2007-08-14 Thread Farhan Sarwar
Hello Guys, Well we are in the process of moving over our applications/modules on maven 2 and hence setting up a maven repository, as I do so I wanted to hear your experiences with different repository managers out there, so far I just have explored Artifactory and uptil now I am pretty happy

Re: Dependency project classes getting included in the resulting jar

2007-08-11 Thread Farhan Sarwar
Actually I am not… Farhan Sarwar wrote: Hey Guys, Am experiencing a strange behavior, which I am not able to understand why.Basically I have got two projects A and B where project A has a dependency on the Project B, also I have a parent POM from which both these projects

How to define as to which phase the goal is to be executed

2007-08-10 Thread Farhan Sarwar
Another quick question, Where to define/configure as to which phase the Mojo/goal is to be executed, so far with what I have read it seems that it's the Mojo class file which has this annotation for @phase (at class level) to tell MAVEN about the phase the goal is to be executed, just wanted to be

Dependency project classes getting included in the resulting jar

2007-08-10 Thread Farhan Sarwar
Hey Guys, Am experiencing a strange behavior, which I am not able to understand why.Basically I have got two projects A and B where project A has a dependency on the Project B, also I have a parent POM from which both these projects are being inherited, the compilation and everything works

Question on adding a dependency

2007-08-09 Thread Farhan Sarwar
Got a simple question if someone could respond. All the dependencies that we add in a project's pom are in the form of groupid ,artifactid and version, so what in case we have some propriety product/jar for which the maven structure (or let's say the pom) is yet not defined, so in that case