RE: how maven run its plugin goals through java API????

2008-07-21 Thread Renu Gupta
Hey will b of grt help..:) Can u plz send the contents Thanx Cheers! Renu -Original Message- From: Vikramaditya Garg [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 11:09 AM To: Maven Users List Subject: RE: how maven run its plugin goals through java API I

java code which executes maven goals using maven API

2008-07-21 Thread nehal vyas
I wish to execute the maven plugin goals with the help of a java class. If anyoune could help me out with how to use the maven API classes and functions PLEASE HELP... -- View this message in context:

hibernate3 maven2 plugin problem

2008-07-21 Thread Renu Gupta
Hi, While using hibernate3 maven2 plugin. I m getting this error: [INFO] [hibernate3:hbm2ddl] [DEBUG] Setting context classloader for plugin to: /plugins/org.codehaus.mojo:hibernate3-maven-plugin:[EMAIL PROTECTED]/thread:main (instance is:

Mojo for validating PGP signature

2008-07-21 Thread Chad La Joie
A few months back I asked if there was a Maven plugin for validating PGP signatures, like those created by the gpg plugin, of downloaded artifacts. The answer seemed to be no, so I'd like to try to write such a plugin. However, this will be my first mojo so I have quite a few (probably

Re: dependency plugin

2008-07-21 Thread Infinity
Whether you use assembly or dependency, you will still need to list the version of the artifact. If you put the version in dependencyManagement, you can skip the version in the plugin config for dependency Sent from my iPhone On Jul 18, 2008, at 5:48 PM, Kathryn Huxtable [EMAIL PROTECTED]

Re: hibernate3 maven2 plugin problem

2008-07-21 Thread René Johannes
Caused by: java.sql.SQLException: No suitable driver Set Driver_class in hibernate.properties ? hibernate.connection.driver_class com.mysql.jdbc.Driver - Original Message - From: Renu Gupta [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Monday, July 21, 2008 9:41

RE: JAR and WAR packaging

2008-07-21 Thread Jörg Schaible
Hi Ilya, Ilya Ermolov wrote: Hello, I have the following problem. My web-project have a great number of subprojects which have complex dependencies with each other. I want pack all .class files in JAR and then pack my web-app in WAR file. But how to do it having the only pom.xml? we do

Re: Mojo for validating PGP signature

2008-07-21 Thread Brett Porter
Hi Chad, You might be interested in the work linked from this page: http://docs.codehaus.org/display/MAVEN/Repository+Security It would certainly be a useful addition to add a preliminary check mojo to the existing gpg plugin as well. The code you are referring to is the DefaultWagonManager in

Project setup.

2008-07-21 Thread James Dasher
I am trying to get my hands around how to reconcile the multi-module setup maven seems to suggest for basic webapps with a subversion repository. All the examples seem to show a parent pom with 2 or more child poms. I have a requirement that two separate webapps be built using a common

plugin dependencies in local repository

2008-07-21 Thread Martin Trummer
when I execute maven, it will download all project dependencies to the local repository, including the required plugins: e.g. the org.codehouse..mojo:findbugs-maven-plugin:maven-plugin:2.0-SNAPSHOT will be copied to my local repository. but this plugin itself depends on junit 3.8.2 when I

Re: Project setup.

2008-07-21 Thread Stephen Connolly
The structure your propose is not wrong... depending on your lifecycle, it may not be optimal. Remember that the remote maven repository that you deploy your binary artifacts to will always have commons-1.0 The structure you're suggesting may be easier to work with when you regularly need to go

Does maven1 works with Java5?

2008-07-21 Thread thomas2004
I have a java project built with Java5. Today as I rebuild the project with maven1 I got error. It doesn't recognize the generics. I doubt the maven1 doesn't work with Java5. Is it right? Regards Thomas -- View this message in context:

Re: Does maven1 works with Java5?

2008-07-21 Thread Martijn Dashorst
make sure you set the compiler version correctly. The compiler plugin defaults to java 1.3 Martijn On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 [EMAIL PROTECTED] wrote: I have a java project built with Java5. Today as I rebuild the project with maven1 I got error. It doesn't recognize the

Re: Does maven1 works with Java5?

2008-07-21 Thread thomas2004
How and where can I set the compiler version? Martijn Dashorst wrote: make sure you set the compiler version correctly. The compiler plugin defaults to java 1.3 Martijn On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 [EMAIL PROTECTED] wrote: I have a java project built with Java5.

Maven Repository Browser

2008-07-21 Thread erwin73
The Maven Repository Browser web site provides accurate and detailed information about the contents of the public Maven Repositories found on the net. The site is a valuable tool to find the artifacts for your Maven project. http://www.mavenbrowser.com http://www.mavenbrowser.com The Maven

Re: Does maven1 works with Java5?

2008-07-21 Thread Martijn Dashorst
http://maven.apache.org/maven-1.x/plugins/java/properties.html On Mon, Jul 21, 2008 at 11:46 AM, thomas2004 [EMAIL PROTECTED] wrote: How and where can I set the compiler version? Martijn Dashorst wrote: make sure you set the compiler version correctly. The compiler plugin defaults to

Re: Child site.xml insists on inheriting the parent's site.xml

2008-07-21 Thread Dennis Lundberg
Ed Hillmann wrote: On Sat, Jul 19, 2008 at 2:39 AM, Dennis Lundberg [EMAIL PROTECTED] wrote: This sounds a lot like one of the bugs that was fixed in version 2.0-beta-7 of Maven Site Plugin. Make sure you are using that version of the plugin. Hi Dennis. I've just updated my POMs so that they

Re: Problem using maven-exec-plugin exec:exec command

2008-07-21 Thread seanoc
In case anybody interested, a sample pom.xml that worked: start server using mvn -Pserver and client -Pclient ?xml version=1.0? project modelVersion4.0.0/modelVersion groupIdorg.apache.cxf.samples/groupId artifactIdwsdl_first/artifactId version1.0/version properties

RE: hibernate3 maven2 plugin problem

2008-07-21 Thread Johann Reyes
Hello Renu That stills looks that is looking for the JDBC driver. Refer to the bottom of this page: http://mojo.codehaus.org/hibernate3/hibernate3-maven-plugin/usage.html Johann Reyes -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 6:48 AM

RE: hibernate3 maven2 plugin problem

2008-07-21 Thread Renu Gupta
Hey Johann, Thanx for ur help :) It worked out.But, for ur knowledge I didn't had to add any extension tag in my pom. Just had to add mysql java connector dependency in plugin. Here is my pom: project xmlns=http://maven.apache.org/POM/4.0.0;

RE: scope Optional

2008-07-21 Thread Thomas Darbois
Yes i know that, but I saw people using it for a while for there own project and so I assumed it was an option that can be used (and it has a different behaviour than any other listed in the page you've linked). Why maven doesn't display an error or a warning when using an incorrect scope? And

dependencyManagement and classifier

2008-07-21 Thread nicolas de loof
Hello, I'd like to force a dependency to be used with a classifier. Here is my use case : My business domain model (project-domain) creates a second artifact with classifier instrumented based on Hibernate InstrumentTask. All my project modules depends on domain In my webapp, I'd like to

Re: dependencyManagement and classifier

2008-07-21 Thread nicolas de loof
I've found a (not so ugly) solution : dependencyManagement is used to force domain jar scope to provided, so that it is excluded from the war, and a dependency is added to domain-instrumented.jar with scope runtime. Nicolas 2008/7/21 nicolas de loof [EMAIL PROTECTED]: Hello, I'd like to

Multi Inheritance

2008-07-21 Thread Raffaele
Hi all, I have the following short question: should be possibile define a pom with two or more parent pom? A practical utilization: It would be useful having a pom which specifies db specific dependencies and a pom which specifies web specific dependencies, and my app could be child of both

RE: Multi Inheritance

2008-07-21 Thread Jeudy, Guillaume
Can you explain in more details what you are trying to achieve ? I don't think a pom can have multiple parents. Regards, -Guillaume From: Raffaele [mailto:[EMAIL PROTECTED] Sent: Mon 21/07/2008 11:42 AM To: users@maven.apache.org Subject: Multi Inheritance

RE: Multi Inheritance

2008-07-21 Thread Yanko, Curtis
You would have to serialize these, so that your project calls, lets say the Web one, as it's parent which in turn has the DB one as it's parent. == Curtis Yanko Application Developer Infrastructure Services Source-Build-Deploy W: 860.702.9059 M: 860.881.2050 This e-mail, including

RE: hibernate3 maven2 plugin problem

2008-07-21 Thread Johann Reyes
Hello Renu Yes, that's correct. That's another way, I just posted the form that was documented in the site. Regards Johann -Original Message- From: Renu Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 9:32 AM To: Maven Users List Subject: RE: hibernate3 maven2 plugin

release:prepare performs source generation

2008-07-21 Thread Kallin Nagelberg
I've noticed that when i execute release:prepare on one my projects that generates sources it performs the generation. I don't see why it would do this, as it does it again during release:perform. The plugin config in that artifact's POM looks like the following. Is there a way to prevent

Path length on Windows with M 2.0.5

2008-07-21 Thread Morgovsky, Alexander (US - Glen Mills)
Hi, when I run a clean, I get the following error...Is there a restriction on path length for windows/m2.0.5, and if so, how do I go about solving it? Thanks. Embedded error: E:\development\workspace\ci\platform\deloitte-maven-platform\..\deloitte

maven best practice for multi module projects and version control

2008-07-21 Thread Rick
I'm a bit confused on the best practice for working with maven projects within a version control system. For example assuming we have a company repository setup and we are working on EJB project (ear) with your standard components (war and a few jars). Do people typically set up a FooBar ear

Re: Path length on Windows with M 2.0.5

2008-07-21 Thread Dennis Lundberg
Morgovsky, Alexander (US - Glen Mills) wrote: Hi, when I run a clean, I get the following error...Is there a restriction on path length for windows/m2.0.5, and if so, how do I go about solving it? Thanks. Windows has a 255 (or is it 256?) character limit on a full path name. You can try

Re: Path length on Windows with M 2.0.5

2008-07-21 Thread Morgovsky, Alexander (US - Glen Mills)
Thanks, good point...Is there a way I could bind the call cmd /c rmdir /s /q ${project.build.directory} to the clean phase so this is done on every clean? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected

Re: Path length on Windows with M 2.0.5

2008-07-21 Thread Paul Benedict
Only JDK versions since 1.6 have the limit removed. It deals with the underlying operating system call. Previous versions (= 1.5) used ASCII-only version of the Windows API which limit the size to around 250-260. Since 1.6, the JDK uses the wide-version (Unicode) of the Windows API which does not

[ANN] Clirr Maven Plugin, version 2.2.2 released

2008-07-21 Thread Arnaud HERITIER
The Mojo team is pleased to announce the release of the Maven Clirr Plugin, version 2.2.2 This plugin is used to check Java libraries for binary and source compatibility with older releases. http://mojo.codehaus.org/clirr-maven-plugin/ You can run mvn -up to get the latest version of the

release multi module project

2008-07-21 Thread Taras Lipatov
Does any one know, when releasing a multi-module project from the project parent.. I have two modules: core and webapp core module is version 1.0.0-SNAPSHOT webapp has a dependency on core:1.0.0-SNAPSHOT When running release:prepare... webapp pom is transformed and dependency

How to use ear plugin? Am I stupid??

2008-07-21 Thread Kent Närling
Can anyone please enlighten me how to use the EAR plugin? The documentation is (as usual) a bit cryptic... In the documentation it almost seems like the EAR project packaging can contain sub-modules, but if I try to declare modules inside t I just get errors?!? (aggregator projects require 'pom'

Maven scm:checkout using revision

2008-07-21 Thread logachandru . x . rajamanickam
Hi All, I checkout our Subversion source code using the maven scm:checkout command. For a normal checkout, it works fine. However if I want to checkout the Subversion source code using a specific revision, I get the latest source code instead from the specified revision. The command I

Re: Child site.xml insists on inheriting the parent's site.xml

2008-07-21 Thread Ed Hillmann
Please do http://jira.codehaus.org/browse/MSITE Thanks. http://jira.codehaus.org/browse/MSITE-345 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to use an archetype I deployed

2008-07-21 Thread Archambault, Daniel
Hi, Could you please let me know how to use an archetype that I deploy? I seem to have deployed successfully an archetype but I'm unable to use it, namely the goal mvn archetype:generate is unable to find my archetype. In more details, I created an archetype which I was able to install locally

Need help regarding auto-generated META-INF directory

2008-07-21 Thread Boregowda, Krishna
Hi, We are having Multi module maven project in our application. One of the modules in our application is hibernate based. When I try to import this project from the SVN repository META-INF directory is auto created in hibernate module. We have no plans of having any specific information in

test classes available to plugins?

2008-07-21 Thread Scott MacDonald
I have a plugin which needs to instantiate test classes within the project the plugin is being used in. In a default scenario, maven complains with ClassNotFoundException. IS there any way to configure maven such that plugins being used by a project can see thet test classes used by that