Re: Common build jobs for sub modules should not be executed in parent

2011-11-02 Thread Wayne Fay
> Is it possible to put a build task/plugin in the parent which is > common for childA and childB but should not be applied to the parent? Sounds like you are looking for a way to MANAGE your PLUGINS, right? http://maven.apache.org/pom.html#Plugin_Management Wayne --

Common build jobs for sub modules should not be executed in parent

2011-11-02 Thread motes motes
I have the following project structure: parent |-> childA |-> childB Is it possible to put a build task/plugin in the parent which is common for childA and childB but should not be applied to the parent? Eg.: In childA and childB I have some identical build tasks using eg. maven-antrun-plug

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Wayne Fay
> Yes you are right but i think this will not work for me. > > As we are using weblogic 8.1 JDK version and ANT version and which is ANT > 1.5.3 and JDK 1.4 > > And in order to use this i need to have atleast ANT version 1.6.X + > > System Requirements*JDK*JDK version 1.5 or above is required (This

RE: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Stephen Connolly
maven ant tasks can be better for interoperability - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 2 Nov 2011 18:52, "Jim McCaskey" wrote: > Hi there, > > You'll probably

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Daivish Shah
Yes you are right but i think this will not work for me. As we are using weblogic 8.1 JDK version and ANT version and which is ANT 1.5.3 and JDK 1.4 And in order to use this i need to have atleast ANT version 1.6.X + System Requirements*JDK*JDK version 1.5 or above is required (This is due to de

RE: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Jim McCaskey
Hi there, The best place to look about getting started with ivy is in the docs: http://ant.apache.org/ivy/history/2.2.0/tutorial/start.html This does the dependency resolution within ant without having to engage maven. Arguably if that's what you want you should head over to the ivy mailing li

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Anders Hammar
Well, Maven Ant Tasks is used for building and you could use different JDK for building than for compiling. So, use JDK 5 for building but use a JDK 1.4 for the actual compilation. /Anders On Wed, Nov 2, 2011 at 20:47, Daivish Shah wrote: > Hi Anders, > > Maven Ant Task require to have JDK versi

RE: Unable to generate html report for maven-findbugs plugin

2011-11-02 Thread Robert Scholte
This is a plugin developed by the Codehaus mojo team[1], not by the Maven team. So their mailinglist[2] would be a better place to ask this question. Executing Maven with an additional -X will give you debug-logs, which might show the problem. The code you're hitting is [3]. Do you have .class

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Daivish Shah
Hi Anders, Maven Ant Task require to have JDK version 1.5 + and all of legacy system is using Jdk 1.4 only.. http://maven.apache.org/ant-tasks/index.html So i think here i can't use Maven ant task Any comments or solution on that ? Thanks, daivish. On Wed, Nov 2, 2011 at 12:33 PM, Ande

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Anders Hammar
I repeat, use Maven Ant tasks or Aether Ant tasks. /Anders On Wed, Nov 2, 2011 at 20:14, Daivish Shah wrote: > Hi, > > My question was how to use MAVEN generated artifacts in BUILD.XML file. > > I think do i need to use something like this ?  and How comes IVY is useful > here to use maven gener

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Daivish Shah
Hi, My question was how to use MAVEN generated artifacts in BUILD.XML file. I think do i need to use something like this ? and How comes IVY is useful here to use maven generated artifacts in ANT. http://repo1.maven.org/maven2/${maven.dir}/${maven.jar}"; dest="${maven.ant.

Re: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Anders Hammar
You can also use Maven Ant Tasks or the Aether Ant Tasks. /Anders On Wed, Nov 2, 2011 at 19:51, Jim McCaskey wrote: > Hi there, > > You'll probably want to take a look at ivy. > > http://ant.apache.org/ivy/ > > I've used it in a couple of places to "bridge the gap" on the way to Maven. > > -Jim

RE: How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Jim McCaskey
Hi there, You'll probably want to take a look at ivy. http://ant.apache.org/ivy/ I've used it in a couple of places to "bridge the gap" on the way to Maven. -Jim -Original Message- From: Daivish Shah [mailto:daivish.s...@gmail.com] Sent: Wednesday, November 02, 2011 11:47 AM To: Maven

Re: Release plugin when POM is not in root directory

2011-11-02 Thread Jim Cook
I have found some addiitonal examples of people having this trouble, but no real solutions yet. http://stackoverflow.com/questions/5558785/maven-release-plugin-git-and-the-poms-not-at-the-top http://maven-users.828.n2.nabble.com/release-perform-with-pom-xml-in-relative-path-of-SCM-repository-td634

How to use MAVEN Generated Artifacts in ANT Build.xml file ?

2011-11-02 Thread Daivish Shah
Hi, We are trying to convert some of the projects from ANT to MAVEN. Now I have a question about the projects who are not converted in MAVEN. I mean some of projects are still using ANT to generate artifacts and how to use MAVEN http repository dependencies in build.xml file ? Can you give me a g

Re: Release plugin when POM is not in root directory

2011-11-02 Thread Jim Cook
Of course the pom.xml is in git. It is not in the root directory and the release:perform step does not like this. My directory structure looks something like this: /Documentation /Development pom.xml /src I believe I just need some way to tell the plugin that the working directory is actua

Re: Error writing first Maven plugin.

2011-11-02 Thread MavenUser8979
Yes it is there. Sorry for not pasting entire MOJO defination. /** * Echos an object string to the output screen. * @goal sayhi * */ public class GreetingsMojo extends AbstractMojo { } -- View this message in context: http://maven.40175.n5.nabble.com/Error-writing-first-Maven-plugin-tp4957

Re: Error writing first Maven plugin.

2011-11-02 Thread Dirk Olmes
> I am getting error like " Could not find goal 'sayhi' in plugin > sample.plugin:hello-maven-plugin:2.3 among available goals touch -> [Help > 1]" > > My MOJO defination is like this. > > public class GreetingMojo extends AbstractMojo > { > public void execute() throws MojoExecutionException

Re: Maven Project - in repository or in current modular project

2011-11-02 Thread Tim Mickelson
Thanks a million, as I said, now I will as soon as I have time study this suggestion and when I have resolved my issue I will give my version here for future users with similar problems. On mercoledì 2 novembre 2011 11.46.21, Stephen Connolly wrote: /** * @parameter expression="${re

Re: Unable to generate html report for maven-findbugs plugin

2011-11-02 Thread Lukas Theussl
Hi, *) if you want to generate the findbugs report via the site plugin, the configuration should go into the reporting, not build section of the pom *) AFAICS neither nor are listed as supported configuration options of the findbugs plugin: http://mojo.codehaus.org/findbugs-maven-plugin/2

Re: Maven Project - in repository or in current modular project

2011-11-02 Thread Stephen Connolly
/** * @parameter expression="${reactorProjects}" * @required * @readonly */ private List/**/ reactorProjects; will in your mojo will give you the list of reactor projects (if targetting JRE 1.5+ you can safely uncomment the generics qualifier) for (MavenProject project

Error writing first Maven plugin.

2011-11-02 Thread MavenUser8979
All, I want to write my own maven plugin but I am getting some wired error while executing the goal. 1) Using below command I am creating one archetype : archetype:generate -DgroupId=sample.plugin -DartifactId=hello-maven-plugin -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactI

Unable to generate html report for maven-findbugs plugin

2011-11-02 Thread yerra babji
Hi, I am trying to create a findbugs report using mvn site. I pasted my pom.xml entry at the bottom. When I try to execute mvn site, it is giving the following two lines and after completing the command execution, i am unable to see any report generated for findbugs. [INFO] configuring report

Re: Maven Project - in repository or in current modular project

2011-11-02 Thread Tim Mickelson
Thanks, I think I've understood your strategy, that immediately brings me to the problem that I'm lacking documentation. Could you please give me an simple example how to do this, at least the two most important passes and I should be on a go I think :) Of course if I resolve my problem th

Re: Maven Project - in repository or in current modular project

2011-11-02 Thread Stephen Connolly
On 2 November 2011 09:06, Tim Mickelson wrote: >  I want to write a plugin to maven that copies the flex modules from a flex > project (type swf) which contains modules. This  because the flexmojos does > not do this. My problem is that independent of how the flexmodules are > configured in the po

Maven Project - in repository or in current modular project

2011-11-02 Thread Tim Mickelson
I want to write a plugin to maven that copies the flex modules from a flex project (type swf) which contains modules. This because the flexmojos does not do this. My problem is that independent of how the flexmodules are configured in the pom of the flex project they are saved on the local r