Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Kalpak Gadre
Hi, I am developing a Mojo for manipulation of JIRA while making a release. This mojo is required to manipulate issues and generate release notes. The process is very specific to the client. As part of the process, I need to commit the newly generated release notes to SCM. I also need to

Re: Reusing existing Mojo in a custom Mojo

2011-05-30 Thread Kalpak Gadre
Thanks Stephen and Leonard. due to how maven plugin plugin works, you cannot have a dependency on a maven plugin and extend the mojo's in that plugin. when we switch from javadoc processing to annotation processing, and with the classloader from maven 3 it will be possible, but until then

Re: Unwanted jars getting copied

2011-03-21 Thread Kalpak Gadre
Hi Amol, The rt.jar and tools.jar maybe be transitively referenced in your project. Try mvn dependency:tree on your project. This will list all the dependencies in a hierarchy. You can find which exact dependency is referencing the rt.jar and tools.jar libraries. It is questionable why

Re: maven to build thin war

2010-11-21 Thread Kalpak Gadre
Hi Kamaran, It would help if you provide build log. Check what part in the build is taking too long. Thanks, Kalpak Hi, I am a first time user of Maven. Earlier used Ant and now migrating the project to Maven. My environment is apache-maven-3.0, JDK 1.6.0_22 on Windows 7 platform. I am

Re: Deploying properties files.

2010-11-17 Thread Kalpak Gadre
It would help if you elaborate what you are exactly trying to achieve. To install arbitrary artifacts to the repository, you can use build-helper-maven-plugin http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html Kalpak Hi, In my project I have a lot of

Re: Custom assembly of multi module project

2010-11-12 Thread Kalpak Gadre
I have got around including config files form modules into an assembly using repository. I have configured build-helper-maven-plugin to install the configuration files into repository. The installed config files need a special classifier to distinguish it from the jar itself. The assembly

Re: Setting dependency with plugin generated jar

2010-11-11 Thread Kalpak Gadre
the rest of your comment. - Kalpak Regards, B. Ravi Shankar 2010/11/11 Kalpak Gadre [via Maven] ml-node+3259883-1188320679-143...@n5.nabble.comml-node%2b3259883-1188320679-143...@n5.nabble.com To make it work the Maven way, you should ideally separate the jar from the war file

Re: Setting dependency with plugin generated jar

2010-11-11 Thread Kalpak Gadre
project extract the war. locate the .class files then again package them in to jar? but that will be lots of work right? Regards, B. Ravi Shankar 2010/11/11 Kalpak Gadre [via Maven] [hidden email]http://user/SendEmail.jtp?type=nodenode=3260435i=0[hidden email]http://user/SendEmail.jtp?type

Re: Setting dependency with plugin generated jar

2010-11-10 Thread Kalpak Gadre
To make it work the Maven way, you should ideally separate the jar from the war file as an independent module. Your war file will then depend on the jar. Not sure if your packaging is war, adding maven-jar-plugin creates a jar file? If it does then you can use build-helper-maven-plugin to

Re: Maven dependency library versioning issue

2010-09-18 Thread Kalpak Gadre
Check the groupId in the exclusion, you have specified it as org.apache.poi before version 3.0 it use to be only poi so your exclusion should look like, exclusions exclusion groupIdpoi/groupId artifactIdpoi/artifactId /exclusion /exclusions 2010/9/17 Pradnya

Re: About Maven3 M2Eclipse plug-in versioning problem

2010-05-17 Thread Kalpak Gadre
Yes variable version names are not allowed as of Maven 3. I believe the reason will be deploying into repositories, as pom with version as some properties instead of a proper version could get deployed. A quick fix is to configure Eclipse to use external installation of Maven 2. But remember

Re: unit test not finding dependent class

2010-05-16 Thread Kalpak Gadre
Just in case.. Are you dynamically loading these classes from your code? You can see these kind of errors in case you are dynamically loading classes using System class loader instead of the immediate class loader. The test runner will segregate the classes by providing a custom class loader

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

2010-05-13 Thread Kalpak Gadre
I have never tried declaring the same plugin twice, but you can simply define more executions in the same plugin declaration like, executions execution idone/id . . /execution execution idtwo/id . . /execution /executions Thanks, Kalpak Here's my

Re: I would like to host a mirror of the maven repository. How can I do it?

2010-05-13 Thread Kalpak Gadre
Do you mean the local mirror or the public mirror? Anyway there are some open source products available. Look at, Nexus: http://nexus.sonatype.org/ Artifactory: http://nexus.sonatype.org/ Thanks, Kalpak I would like to host a mirror of the maven repository. How can I do it?

Re: I would like to host a mirror of the maven repository. How can I do it?

2010-05-13 Thread Kalpak Gadre
LOL.. did not try to be biased... :) Apologies Artifactory guys.. - Kalpak On May 13, 2010, at 4:57 AM, Kalpak Gadre wrote: Do you mean the local mirror or the public mirror? Anyway there are some open source products available. Look at, Nexus: http://nexus.sonatype.org/ Artifactory

Re: Conveniently switch between settings

2010-05-08 Thread Kalpak Gadre
. -Original Message- From: Kalpak Gadre [mailto:kalpa...@gmail.com] Sent: Friday, May 07, 2010 2:44 AM To: Maven Users List Subject: Conveniently switch between settings Hi, I use Maven from workplace and home. At workplace we have proxy as well as a maven repository. Where at home I

Conveniently switch between settings

2010-05-07 Thread Kalpak Gadre
Hi, I use Maven from workplace and home. At workplace we have proxy as well as a maven repository. Where at home I don't need any proxy and don't have a repository. Is there no convenient way to switch between these configurations other than specifying alternate settings file? It would be

Re: maven multi-module project structure

2010-05-05 Thread Kalpak Gadre
I haven't worked with a lot of multi-module projects, but the way it works if I understand it right is that your core-api will be built and installed into the local repository. Now whenever you will build the client / server from the relevant directory, It will *not* rebuild the core-api. It

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Kalpak Gadre
I don't think there is any way you can provide a wild-card dependency like somedir/**/*.jar You can define a pom which lists all these jars as dependencies and refer that pom as a dependency. But anyhow I believe you will have to define all of them as dependencies separately. You should be

Re: Ant to Maven migration

2010-05-04 Thread Kalpak Gadre
Hi Shalini, You can! But then you are really not using Maven. You are just using Maven to invoke your Ant. I recommend you read more about Maven to really understand how you can do it effectively using Maven. After you have read the basics you can look at this

Re: Dependency Scope -- Provided

2010-04-30 Thread Kalpak Gadre
What do you think should happen then? scope provided means the dependency will be provided in deployment environment say like J2EE container. Read this: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Thanks, Kalpak Hi, In my application, if I

Re: Dependency Scope -- Provided

2010-04-30 Thread Kalpak Gadre
What do you think should happen then? scope provided means the dependency will be provided in deployment environment say like provided by J2EE container. Read this: http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Thanks, Kalpak Hi, In my

Re: release plugin: Create new SNAPSHOT from release tag?

2010-04-30 Thread Kalpak Gadre
Past discussion which happened on similar question, http://www.mail-archive.com/users@maven.apache.org/msg108587.html Kalpak Hi, Using release:prepare, release:perform I successfully created a tag in svn. I now have to fix some bugs so I thought I should create a new branch from the svn tag.

Re: Using Ant script in Maven

2010-04-29 Thread Kalpak Gadre
Hi Partha, If you just need to copy the properties file so that it gets embedded in the jar file, Maven conventionally uses src/main/resources/ directory for this. So you could simply place your properties file under src/main/resources and it will automatically get embedded in the jar file.

Re: Copy Dependencies into target/lib

2010-04-29 Thread Kalpak Gadre
I tried your configuration and noted one thing, It did not work for me when the plugin definition is done under plugins section in pluginManagement but it does work if the plugin definition is done in plugins section in build I am using Maven 2.2.1 Could you try defining your plugin under

Re: Configure jetty port in profiles

2010-04-29 Thread Kalpak Gadre
I would recommend that you define properties for port and credentials like, properties https.port443/https.port keystorec:/xxx-ssl.keystore/keystore passwordxxx/password keyPasswordxxx/keyPassword /properties and in your configuration refer to them like, connector