Re: plugin descriptor missing mojos section

2010-08-06 Thread Pankaj Tandon
Just for the record, here's the solution if anyone else were to encounter this: My mistake was to do with basic annotation syntax: In the header of my Mojo class, I had: /** * This goal will process a ... * * @goal metadatagenerator * @phase compile * @author Pankaj T

plugin descriptor missing mojos section

2010-08-05 Thread Pankaj Tandon
Hi, I've been working on a plugin which I attached to the compile phase of the life cycle. All seemed well and it was doing what was expected. Then I decided to document the plugin in using mvn site. So I built out the apt files and issued a mvn site. At that point something happened which I cann

Re: Where are there missing jars in repo1, with just .pom files instead

2010-04-21 Thread Pankaj Tandon
Thanks for the response Wayne. I missed the relocation element there. -- View this message in context: http://n2.nabble.com/Where-are-there-missing-jars-in-repo1-with-just-pom-files-instead-tp4931179p4937074.html Sent from the maven users mailing list archive at Nabble.com. ---

Re: Why do some projects in the repo contain only .pom files, no jars

2010-04-21 Thread Pankaj Tandon
Please ignore this post.. It's a duplicate of: http://n2.nabble.com/Where-are-there-missing-jars-in-repo1-with-just-pom-files-instead-td4931179.html#a4931179 -- View this message in context: http://n2.nabble.com/Why-do-some-projects-in-the-repo-contain-only-pom-files-no-jars-tp4936700p4936874.h

Why do some projects in the repo contain only .pom files, no jars

2010-04-21 Thread Pankaj Tandon
Hi, This question is regarding dependencies and how they are stored in repo1 AND my corporate repo. There are projects that have just .pom files and no corresponding jars. When I open up the pom file, I see a packaging a type jar. Still.. no jar. Also there is no 'relocation' element specified. F

Where are there missing jars in repo1, with just .pom files instead

2010-04-20 Thread Pankaj Tandon
Hi, This question is regarding dependencies and how they are stored in repo1 AND my local repo. First, on repo1, I noticed that some versions (of projects) contain jars and some do not. For instance: http://mirrors.ibiblio.org/pub/mirrors/maven2/cobertura/cobertura/1.8/ has jars but http://mirr

Re: Controlling when Plexus injects components into plugins.

2010-04-19 Thread Pankaj Tandon
even if some of the dependencies are not resolved. But an even better way to get at the dependencies is: Set dependentArtifactSet = mavenProject.createArtifacts(artifactFactory, null, null); HTH Pankaj Tandon wrote: > > Hello, > > I'm writing a plugin that

Controlling when Plexus injects components into plugins.

2010-04-17 Thread Pankaj Tandon
Hello, I'm writing a plugin that needs to know the dependencies of the project it is configured for, and if the dependencies are missing, do something about it (like install the dependencies from another repo (with required credentials of course)). To get a list of dependencies that a project us

Re: XML output of missing dependencies

2010-03-03 Thread Pankaj Tandon
; Hi Pankaj, > > Pankaj Tandon wrote at Wednesday, 3. March 2010 14:32: > >> >> Hi, >> I'm looking for a way to determine what artifacts are NOT in my corporate >> repository (for a certain maven project) so that I can script their >> addition to the c

XML output of missing dependencies

2010-03-03 Thread Pankaj Tandon
Hi, I'm looking for a way to determine what artifacts are NOT in my corporate repository (for a certain maven project) so that I can script their addition to the corporate repository. So I started looking at the maven-dependency-plugin and was happy to see a goal called analyze that takes in a co

Re: Prevent a plugin executing for each module in a multi-module build

2009-11-30 Thread Pankaj Tandon
Wendy Smoak wrote: > > > >> One way, I know to achieve this is to configure the site plug-in in each >> child project with an inherited=false. But that is a bit crummy. > > What happens if you configure inherited=false in the parent? > > > > That didn't help. Here is my project structu

Prevent a plugin executing for each module in a multi-module build

2009-11-27 Thread Pankaj Tandon
Hi, I have a multi-module project and I'm trying to run the site plugin to generate a site for the project. But I would like to generate the site ONLY for the top level (aggregator) project. Each of my child projects are aggregated AND they are children of the top-level project because they have

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
Rob, Thanks! That clarifies things. Pankaj Sorry, I should have added that the element is only required if the goal is not one of those in the lifecycle (corresponding to the packaging type). 2009/4/2 Pankaj Tandon > > Rob and Brian, > Thanks for the response. However, how then

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
ll be assumed. 2009/4/2 Pankaj Tandon > > Hello Rob, > I wanted to ask you about your comment below where you state that even if > you have an annotation in a mojo for the execution phase, you still have to > declare an executions element for the very same phase in the project that &g

Re: [ANN] Maven 2.1.0 Released

2009-04-02 Thread Pankaj Tandon
Hello Rob, I wanted to ask you about your comment below where you state that even if you have an annotation in a mojo for the execution phase, you still have to declare an executions element for the very same phase in the project that invkes this plugin. That, kind of defeats the purpose of ha

Prevent a reactor build from filtering in child projects

2009-03-11 Thread Pankaj Tandon
Hello, I have a top level project that specifies a resource directory that I require filtering on. src/main/filters/${label}.properties src/main/resources true Then I have (se

Re: Plugin calling shell script

2009-01-30 Thread Pankaj Tandon
r script (s) (e.g. > mojo-scritps.jar) and add this in the specific plugin dependencies > section, > something like: > > > > > mojo-scripts.jar > > > > > > Would this solve your problem? (not sure if I completely understood the >

Plugin calling shell script

2009-01-29 Thread Pankaj Tandon
Hello, I have written a plugin that uses Wagon to remotely execute a command on a remote machine. But now I find that instead of executing a simple unix command, I need to execute a whole shell script. So I created a shell script and placed it in src/main/resources, so that it correctly gets bund

Interjectign a plugin in a life-cycle phase

2008-11-19 Thread Pankaj Tandon
Hello, I'd like to interject a plugin in a certain phase (say validate) that is always executed for all developers who use maven within the enterprise. To achieve this, should I create a enterprise level POM and have all developers extend it? I have an enterprise-wide setting.xml file. Can I so

Re: dependency:tree depth

2008-11-16 Thread Pankaj Tandon
Thanks! Makes sense... Geoffrey Wiseman wrote: > > On Sun, Nov 16, 2008 at 9:14 AM, Pankaj Tandon > <[EMAIL PROTECTED]>wrote: > >> >> Hello all, >> I was wondering how the dependency:tree mojo decides how deep it should >> go >> to list d

dependency:tree depth

2008-11-16 Thread Pankaj Tandon
Hello all, I was wondering how the dependency:tree mojo decides how deep it should go to list dependencies? For example, in the following output, why does it stop at org.springframework:spring-core:jar:1.2.4:compile and not go deeper. There are no parameters also to configure this. (using help:de

Re: How to get build-helper plugin to place xml files in the build

2008-02-14 Thread Pankaj Tandon
o generate > the WSDL to attach its output to the MavenProject so it is bundled > with the JAR. > > Wayne > > On 2/14/08, Pankaj Tandon <[EMAIL PROTECTED]> wrote: >> >> Hi, >> I'm using build-helper-plugin to move class files from the >> generated

How to get build-helper plugin to place xml files in the build

2008-02-14 Thread Pankaj Tandon
Hi, I'm using build-helper-plugin to move class files from the generated-sources folder to the final jar file (pom packaging is jar). (The generated-sources files are client classes generated from a web-service wsdl2java). One of the generated file is an xml file (MyService.xml) that describes the

RE: generated-sources class files not in final artifact

2008-01-03 Thread Pankaj Tandon
-sources/anyPluginName, so > multiple plugins are not in each others way. > > Try the maven-build-helper to add your source folder to the compiler. It > should work. > > Hth, > > Nick Stolwijk > > -Original Message- > From: Pankaj Tandon [mailto:[EMAIL PROT

Re: generated-sources class files not in final artifact

2008-01-03 Thread Pankaj Tandon
tory with the maven-build-helper plugin. > > Jeff > > > On Jan 3, 2008 4:19 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote: > >> >> If I remove the outputDir parameter to the weblogic-maven-plugin, the >> sources >> will go into ${basedir}/src/m

Re: assembly plugin - topLevel directory to be supressed in war

2008-01-03 Thread Pankaj Tandon
Just to provide a workaround.. I punted and ended up using the ant zip task. That works fine. If in the meanwhile someone finds out how to solve this using the assembly plugin please reply to this thread. Thanks Pankaj Pankaj Tandon wrote: > > Hi, > I was away for 10 days so I

Re: generated-sources class files not in final artifact

2008-01-03 Thread Pankaj Tandon
: > > For me, you generated sources are not compiled. Remove the outputDir > parameter and they will be compiled as the default is to generate in the > standard Java source directory. > > Jeff > > > On Jan 3, 2008 3:09 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote: >

Re: generated-sources class files not in final artifact

2008-01-03 Thread Pankaj Tandon
T.jar and so the next project (bpm-service) which is dependent on this artifact, fails. Thanks, Pankaj Jeff MAURY wrote: > > Can you send us the pom or the output of Maven ? > > Jeff > > > On Jan 3, 2008 2:05 PM, Pankaj Tandon <[EMAIL PROTECTED]> wrote: > >&g

Re: generated-sources class files not in final artifact

2008-01-03 Thread Pankaj Tandon
ee > http://mojo.codehaus.org/build-helper-maven-plugin > > Jeff > > On Jan 3, 2008 2:49 AM, Pankaj Tandon <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> I'm using weblogic-maven-plugin to generate client stubs (using the >> clientgen goal). The client stubs

generated-sources class files not in final artifact

2008-01-02 Thread Pankaj Tandon
Hi, I'm using weblogic-maven-plugin to generate client stubs (using the clientgen goal). The client stubs are correctly generated in the generated-sources folder as specified in the plugin. Also, as expected, the generated-sources folder is detected by the complier and along with the java files u

Re: assembly plugin - topLevel directory to be supressed in war

2008-01-02 Thread Pankaj Tandon
Hi, I was away for 10 days so I couldn't participate in this discussion. But thanks Ryan for persuing the cause! However, I'm not sure how the solution is working for you. It will greatly help if you provide details. First, I used the following plugin config: org.apache

assembly plugin - topLevel directory to be supressed in war

2007-12-19 Thread Pankaj Tandon
Hi, I intend to use the assembly plugin for a very simple task. I need it to war up a folder structure into a WAR file. The folder is already in a WAR format (infact it is an exploded war file) that I modify via a custom mojo and then I'm using the assembly plugin to war it back up again. Sounds

Re: Error - "Target `and ' does not exist in this project." while building sample RCP Application

2007-04-21 Thread Pankaj Tandon
Pretty sure this is because of your folder name (Documents and Settings). Try placing your fodler name in quotes. Better still, checkout to D:\projects or some saner named folder ;) HTH Pankaj Ramesh Babu Pokala - TLS, Chennai wrote: > > > > Hi, > > I tried building one eclipse RCP Appl

RE: maven-surefire-plugin problem

2007-04-18 Thread Pankaj Tandon
060601 > > > > org.eclipse > core.runtime > 3.2.0.v20060603 > > > > > > > > > > org.codehaus.mojo > pde-maven-plugin > true > > D:\eclipse > > > > > &

Re: maven-surefire-plugin problem

2007-04-18 Thread Pankaj Tandon
Hi, It may help if you posted the pom.xml of your project. Also I noticed that you have a project in your home folder.. not a big deal and it should not break anything but it's just a bit strange :). The repository is a peer to your project. Typically you will want to use the 'install' goal to get

Where is binding for maven-release-plugin specified?

2007-04-18 Thread Pankaj Tandon
Hi, I was looking at the pom.xml of the maven-release-plugin hoping to find a binding to one of the phases in there. For example... ... sample.plugin maven-hello-plugin compile sayhi

Keyword substitution in SVN via maven-release-plugin

2007-04-17 Thread Pankaj Tandon
Hello, When maven-release-plugin's prepare goal creates a release for me, it correctly modifies my dev pom, modifies my release(d) pom, and checks in the current HEAD version to a tag branch into SVN. What would be really great would be a way to substitute a keyword with the TAG (not the revisio

Re: Cannot run changelog command

2007-04-17 Thread Pankaj Tandon
Just to bring this issue to closure.. This was happenning because I had not qualified my connection url by scm:svn: But for some reason the maven-release-plugin is not sensitive to this... so I was led to believe that the scm section was good. Pankaj Pankaj Tandon wrote: > > Hello

Re: Cannot run changelog command

2007-04-17 Thread Pankaj Tandon
IA, Pankaj Pankaj Tandon wrote: > > Hi, > Actually the scm section looks fine. I've inluded my pom at the bottom. > Another indication that my scm section is good is that mvn release:prepare > works just fine and does produce me a new release in my scm. > I even removed my

Re: Cannot run changelog command

2007-04-16 Thread Pankaj Tandon
org.apache.maven.plugins maven-changelog-plugin dennisl-2 wrote: > > From the look of things, I'd say that your scm section is either wrong > or completely missing from the pom.xml file. > > Pankaj Tandon wrote: >>

What causes release:prepare to re-download

2007-04-16 Thread Pankaj Tandon
Hi all, We've been using mvn release:prepare/perform for several months now on our build machine. Today, however issuing mvn release:prepare caused a LOT of files to be downloaded into our local repository. What caused this at the command was invoked with no explicit instructions to look for upda

RE: Release Notes generation

2007-04-16 Thread Pankaj Tandon
t > Subject: Re: Release Notes generation > > That'd be the maven-changes-plugin then: > >http://maven.apache.org/plugins/maven-changes-plugin/ > > Pankaj Tandon wrote: >> Thanks Dennis, >> That was really helpful. >> However, is there a report plugin t

Cannot run changelog command

2007-04-16 Thread Pankaj Tandon
Hi, We were running the changelog plugin correctly until last week and this moring, a mvn release:prepare execution caused a bunch of downloads into the maven repository. Now a mvn site -e yields the below. (This was working fine till Friday!) Any pointers are appreciated. Thanks Pankaj [INFO]

Re: Release Notes generation

2007-04-14 Thread Pankaj Tandon
t report? Thanks, Pankaj dennisl-2 wrote: > > Pankaj Tandon wrote: >> Hello, >> I'd like to generate release notes as a part of my mvn site command. >> If I annotate the site.xml with the following: >> >> >> >> >>

Release Notes generation

2007-04-13 Thread Pankaj Tandon
Hello, I'd like to generate release notes as a part of my mvn site command. If I annotate the site.xml with the following: It certainly creates the menu correctly. However, where is the plugin that will actually create the release-notes.html? I

Re: Configure buildnumber and Subversion/Subclipse

2007-04-02 Thread Pankaj Tandon
whatever you've configured in your pom (if it can). > > Check out http://maven.apache.org/scm/scm-url-format.html and http:// > maven.apache.org/scm/subversion.html. Might be as simple as using a > pipe instead of a colon. > > Also verify that maven can reach your subversion repos

How to tie a issueNumber to a buildNumber

2007-03-30 Thread Pankaj Tandon
Hi all, I was wondering if anyone out there knew how to tie an issue number/bug number/requirement number to a buildnumber as returned by the buildnumber plugin for Maven2? (I mean without having to manage the relationship in our application, that is). As a related question: Is there a way I can

Configure buildnumber and Subversion/Subclipse

2007-03-30 Thread Pankaj Tandon
Hi, We need to incoporate build numbers into our codebase and so started looking at the buildnumberr plugin. It looks great and works fine if we configure it to spit out an incremental number like so: false false {0,number} buildNumber0