Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
On Thu, Aug 11, 2011 at 5:22 AM, Daivish Shah [via Maven] < ml-node+4687779-706532986-220...@n5.nabble.com> wrote: > You have to create Profile for that.. > > If you will put following entry in your settings.xml file it will first > look > at the remote repository and then it will look for your lo

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
Wayne Fay, The other idea was having Mirror tag point to remote repo. :) But configuring another repo made the trick. Thanks for the Help -Goutham On Thu, Aug 11, 2011 at 12:41 AM, Wayne Fay [via Maven] < ml-node+4686902-1392576678-220...@n5.nabble.com> wrote: > > Can this be the other way ? >

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
hey Barrie I dint read completely the suggested sources. I am in short of time so read few which help in picking up artifact's from repository. Yes i agree with your statement of checking remote repo only is bad idea , i missed the point "Any released artifact NEVER changes" . Thanks for the hel

[ANN] Maven Checkstyle Plugin 2.7 Released

2011-08-11 Thread Olivier Lamy
Hi, The Maven team is pleased to announce the release of the Maven Checkstyle Plugin, version 2.7. http://maven.apache.org/plugins/maven-checkstyle-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-checkstyle-plugin 2.7 Release N

Re: checkstyle and JavadocPackage module

2011-08-11 Thread Olivier Lamy
2011/8/11 Simone Tripodi : > Salut Olivier!!! > thanks a lot for your reply and sorry for writing so late (and missed > the messages on Twitter - I'm working on sume stuff as bricklayer > @home these days :P). > So my question is: how to configure current checkstyle plugin in order > to handle pack

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI All, Thanks for your help. I am able to build my JAR file by using following command. org.codehaus.mojo exec-maven-plugin 1.2 install install

Discrepancy in SNAPSHOT jar filename between JAR Plugin and Assembly Plugin

2011-08-11 Thread Michael Remijan
I am seeing an interesting discrepancy between the JAR plugin and the Assembly plugin.  I have the JAR plugin configured to add the dependencies to the MANIFEST:         org.apache.maven.plugins     maven-jar-plugin          

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
What is the purpose for moving from Ant to Maven in such environments? The purpose is to maintain different versions and to identify which version of JAR or EAR has issue so we can identify it quickly. Thanks, daivish. On Thu, Aug 11, 2011 at 10:30 AM, Wayne Fay wrote: > > We can't move all p

Re: checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Salut Olivier, I just realized in the dev@ ML that waiting for next checkstyle plugin release is a matter of moments, so I'll wait for it :P Thanks for your efforts, all the best! Simo http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Thu, Aug 11, 2011 at 5:11 PM, Simone Tripod

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Wayne Fay
> We can't move all projects to MAVEN at this moment so idea is to convert > some projects from ANT to MAVEN and slowly slowly we can implement or > convert all project from ANT to MAVEN. You don't understand my point. I am not asking why you can't move ALL your projects from Ant to Maven. I am as

problems loading correct class, using maven 2.2.1 and jdk1.6

2011-08-11 Thread glenh
Hey, We're using web service annotations for our application and running into a strange problem. During compilation we get an error stating that it can't find a specific constructor(s). The problem is that the class that has the correct constructor is located in a third party jar (from geranimo

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI Stephen, I tried the way your way... org.codehaus.mojo exec-maven-plugin 1.2 install install exec

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
Hi Wayne, We can't move all projects to MAVEN at this moment so idea is to convert some projects from ANT to MAVEN and slowly slowly we can implement or convert all project from ANT to MAVEN. So this is just a start and to make people happy. I know this is not realistic solution but have to do i

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
HI Stephen, Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run ANT and you can provide the ENV variables to your hearts content. For this can you give me example how can i setup JAVA_HOME by using exec-maven-plugin ? I think I can apply "ant -f WPSEjb_build.xml build" command i

overhead in running maven jetty:run

2011-08-11 Thread Tommy Chheng
Is there much of an overhead of running a servlet via mvn jetty:run vs an embedded jetty Main class in a production environment? Any other concerns? I typically stick a war into a jetty web-apps directory but i find it easier to run mvn jetty:run. Was curious if there's any negative to running it

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Wayne Fay
> I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop related > .WORK file under my build.xml and there is no way to specify JAVAC for this > wlwBuild Command. There *are* projects where Maven is simply unsuited for the task at hand (or using Maven simply overcomplicates things wit

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Stephen Connolly
Use http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html to run ANT and you can provide the ENV variables to your hearts content. Or use the http://ant.apache.org/manual/Tasks/exec.html to fork ANT with the correct environment variables set. On 11 August 2011 17:06, Daivish Shah wrote: > Hi

Re: MAVEN version 2.2.1 and maven-antrun-plugin 1.6 want to compile classes with Java 1.4.2 version

2011-08-11 Thread Daivish Shah
Hi Barrie, I can't apply JAVAC in my BUILD.XML as i am using Weblogic Workshop related .WORK file under my build.xml and there is no way to specify JAVAC for this wlwBuild Command. My code for build.xml is something like this.

Re: Parallel download dependencies in same group

2011-08-11 Thread Wayne Fay
> That was my initial idea too. But the problem is that these are trunk builds > with deep dependencies so they change very frequently. Most likely if I > rerun my tests 30 minutes later then I will recieve a new build because one > of the many in-house libraries has changed. We also work within a

Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Wayne Fay
> By the way, never thought it is so easy to upgrade to maven 3 based on the > experience from maven 1 to maven 2. One of the goals of Maven 3 was to make it dead simple for users to upgrade... in stark contrast to the m1>m2 experiences you remember! Wayne ---

Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Rice Yeh
The problem is gone when using maven 3. By the way, never thought it is so easy to upgrade to maven 3 based on the experience from maven 1 to maven 2. Thanks, Rice On Thu, Aug 11, 2011 at 10:35 PM, Wayne Fay wrote: > > Do I need to change the pom.xml in order to use maven 3? > > When you teste

Re: checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Salut Olivier!!! thanks a lot for your reply and sorry for writing so late (and missed the messages on Twitter - I'm working on sume stuff as bricklayer @home these days :P). So my question is: how to configure current checkstyle plugin in order to handle package-info.java insead of package.html? M

Re: Parallel download dependencies in same group

2011-08-11 Thread Gaurav Arora
That was my initial idea too. But the problem is that these are trunk builds with deep dependencies so they change very frequently. Most likely if I rerun my tests 30 minutes later then I will recieve a new build because one of the many in-house libraries has changed. We also work within a large te

Re: Parallel download dependencies in same group

2011-08-11 Thread Ron Wheeler
On 11/08/2011 6:36 AM, Gaurav Arora wrote: Hi, I recently posted a question on stackoverflow ( http://stackoverflow.com/questions/6971772/maven-parallel-download-dependencies-in-same-group) related to the topic but I only got a couple of answers and one of them turned out to be not an answer at

Re: Problem adding hibernate-jbosscache2 to my project

2011-08-11 Thread Wayne Fay
> I ran Maven from Eclipse, but I'll run it from the console and try your > suggestions. > I will report back with whatever results I get :) If you are actually using m2eclipse, you should probably ask for help on the m2eclipse user list. There may be some Eclipse-specific reason this isn't workin

Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Wayne Fay
> Do I need to change the pom.xml in order to use maven 3? When you tested things before sending this email, did it fail? Or is this a pre-emptive email? Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For add

Re: A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-11 Thread Rice Yeh
Do I need to change the pom.xml in order to use maven 3? Rice On Tue, Aug 9, 2011 at 10:54 PM, Wayne Fay wrote: > > All the modules except p2 use the default complier. p2 uses eclipse > > compiler. I find if I just compile p2, it works well. When I try to > compile > > > > [INFO] No such compi

Re: checkstyle and JavadocPackage module

2011-08-11 Thread Olivier Lamy
Hello Simone, I think this JavadocPackage comes with 5.0 checkstyle version. (see release note [1] ) As I can see checkstyle plugin in commons is 2.2 which use checkstyle 4.4. Maybe time to upgrade :-) (checktyle plugin 2.7 will be available soon) -- Olivier Lamy Talend : http://talend.com http

checkstyle and JavadocPackage module

2011-08-11 Thread Simone Tripodi
Hi all, In apache commons functor[1] (sandbox) I'm trying to enable the JavadocPackage checkstyle module, unfortunately I'm getting the following error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0-beta-3:site (default-site) on project commons-functor: Error during

Parallel download dependencies in same group

2011-08-11 Thread Gaurav Arora
Hi, I recently posted a question on stackoverflow ( http://stackoverflow.com/questions/6971772/maven-parallel-download-dependencies-in-same-group) related to the topic but I only got a couple of answers and one of them turned out to be not an answer at all. My question is, can the dependency pl

Re: Mojo unit test

2011-08-11 Thread Anders Hammar
Use the maven-invoker-plugin. You could have a look at nearly any of the plugins at Apache Maven or Codehaus Mojo and see how it is used (if the plugin's docs isn't clear enough). /Anders On Thu, Aug 11, 2011 at 11:47, Adrien Ruffie - Petals Link < adrien.ruf...@petalslink.com> wrote: > Hello, I

Mojo unit test

2011-08-11 Thread Adrien Ruffie - Petals Link
Hello, I need in my unit test (My customized mojo unit test) to run a "mvn clean install" but I don't understand the mechanism, any one have a piece of code to do this, please ? example: MavenProject pom = maven.readProject( new File(ComponentWithAdditionalResources.SRC_HO