Re: no suitable driver found error with hibernate hibernate3-maven-plugin

2008-12-01 Thread Gérald Quintana
Place Oracle dependency in plugin dependencies, like this: org.codehaus.mojo hibernate3-maven-plugin 2.1 hbm2doc annotationconfiguration

Proper syntax for referencing dependencies in Ant?

2008-12-01 Thread Chris
At the bottom of this page: http://maven.apache.org/plugins/maven-antrun-plugin/examples/classpaths.html it says that you can use the path to each dependency artifact in your Ant script. I can't get this to work. Can anyone give me the right syntax with an example? This fails: refid=

no suitable driver found error with hibernate hibernate3-maven-plugin

2008-12-01 Thread miro
we are trying to use hibernate3-maven-plugin to generate ddl files and failing with sql exception java.sql.SQLException: No suitable driver here the configration org.codehaus.mojo hibernate3-maven-plugin

Re: Limiting Plugin Inheritence

2008-12-01 Thread Gabriele Columbro
I solved this problem using profiles and working on the fact that a profile is inherited only when it's defined also in the child pom, so not definying your plugin/plugins configuration in the main build. I have a project structure composed of multiple (WAR and JAR) artifacts with cross dependenci

"mvn site" tries to access central

2008-12-01 Thread Hayes, Peter
We use an internal repository to proxy central and therefore don't configure maven to directly connect to the internet. When I run mvn site, I always get a warning that http://repo1.maven.org/maven2 is invalid and will be blacklisted. It seems that the site generation plugin tries to directly acc

Limiting Plugin Inheritence

2008-12-01 Thread euqaz
I'm trying to port a project over to Maven. We've been developing an enterprise application in eclipse and have the following projects: projectname-beans (all session beans and dependent classes) projectname-entities (all jpa entities) projectname-lib (all remote interfaces and dto objects) pr

Re: [Public service announcement] mirrors of Central and considerate repo use

2008-12-01 Thread Alex Athanasopoulos
Thanks. This sheds some light to my darkness, and may explain why my home-made maven mirror wasn't working properly. Alex On Sat, Nov 29, 2008 at 4:33 PM, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On Sat, Nov 29, 2008 at 5:16 AM, Alex Athanasopoulos > <[EMAIL PROTECTED]> wrote: > > > One of the

Re: How to get reference to dependency fileset in Ant?

2008-12-01 Thread Chris
Chris wrote: Wayne Fay wrote: I'd like to copy all of the jar files that my app depends on to a particular directory. Any specific reason you're not just doing this with the dependency plugin? http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Wayne Yes

Re: Dependencies not available in a Maven repository (disabling repository check)

2008-12-01 Thread Wendy Smoak
On Mon, Dec 1, 2008 at 9:45 AM, Ryan Cuprak <[EMAIL PROTECTED]> wrote: > I've got a bunch of dependencies from some open source projects which are > not available in a central Maven repository. Until those projects some day > publish them to a repository I do a 'mvn install ' to populate my local

Re: antrun plugin: include all jars?

2008-12-01 Thread Stephen Connolly
add the optional jars as dependencies *to the antrun plugin* maven-antrun-plugin> ... > When I invoke the antrun plugin, how do I get Maven to include all of the > Ant jars on the classpath, not just the main one? > > There are a ton of Ant optional tasks that I ca

antrun plugin: include all jars?

2008-12-01 Thread Chris
When I invoke the antrun plugin, how do I get Maven to include all of the Ant jars on the classpath, not just the main one? There are a ton of Ant optional tasks that I can't seem to use, and when I add extra Ant jar files to the pom, the antrun plugin isn't picking them up. ---

Re: Any way to create maven1 maven2 dependency data?

2008-12-01 Thread Wayne Fay
> I have a mix of maven1 and maven2 projects. I would like to create > dependency data for all versions of my projects and poms. Is there any > way to do this? For the M2 projects, the m-dependency-p has goals that will probably be helpful to you: http://maven.apache.org/plugins/maven-dependency-p

Re: Third party jars

2008-12-01 Thread Wayne Fay
> consuming - is there an easier way to do this? I.e. Is there a maven Depend on fewer third-party jars... But seriously, the first couple Maven projects are a little painful due to things like this and the usual learning curve with a new tool, but then it gets much easier. Wayne -

Any way to create maven1 maven2 dependency data?

2008-12-01 Thread Chris Helck
I have a mix of maven1 and maven2 projects. I would like to create dependency data for all versions of my projects and poms. Is there any way to do this? It seems to me that maven2 poms would be easier. I have a maven2 repo with all my published components. At first I thought I could write a scrip

Re: How to get reference to dependency fileset in Ant?

2008-12-01 Thread Chris
Wayne Fay wrote: I'd like to copy all of the jar files that my app depends on to a particular directory. Any specific reason you're not just doing this with the dependency plugin? http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Wayne Yes, several. There ar

RE: Dependencies not available in a Maven repository (disabling repository check)

2008-12-01 Thread Brian E. Fox
The recommended approach is to use an internal repository for your team. You can do this with a repo manager like Nexus. See the thread this weekend on "Third Party Jars" it covers this in more detail. -Original Message- From: Ryan Cuprak [mailto:[EMAIL PROTECTED] Sent: Monday, December 0

[ANN] JavaCC Maven Plugin 2.5 Released

2008-12-01 Thread Benjamin Bentmann
The Mojo team is pleased to announce the release of the JavaCC Maven Plugin version 2.5. http://mojo.codehaus.org/javacc-maven-plugin/ Apart from updating to JavaCC 4.1, this minor release simplifies usage of customized parser files and provides better inter-op with IDEA's Maven integration

Dependencies not available in a Maven repository (disabling repository check)

2008-12-01 Thread Ryan Cuprak
Hello, I've got a bunch of dependencies from some open source projects which are not available in a central Maven repository. Until those projects some day publish them to a repository I do a 'mvn install ' to populate my local repository. I noticed that every time I do a build Maven chec

maven version as a property

2008-12-01 Thread Nord, James
Hi all, I have a need to embed the maven (core) version inside a manifest. Is there a property that I can reference inside a pom that is in effect the Maven (core) version - or do I need to write a plugin to set a property? Regards, /James *

Re: Mojo's order execution in a plugin

2008-12-01 Thread Nicolas Dordet
2008/12/1 Brett Porter <[EMAIL PROTECTED]> > It's not a defined behaviour to honour the order of the plugin descriptor > (nor is there a way to force that ordering when generating). > I solve my problem by modifiying the plugin.xml by hand (replacing order of the mojo's declaration)... not really

Re: PMD check binding to other lifecycle phase?

2008-12-01 Thread Brett Porter
Adding the phase within the execution you have created for PMD will bind it to the phase that you want to use. validate is a better choice, but is not correct if you are generating sources that you also want to process. - Brett On 01/12/2008, at 9:29 PM, Wim Deblauwe wrote: Hi, I don't

Re: Problem with Maven, Continuum and Archiva

2008-12-01 Thread Brett Porter
500 is an internal server error. Are you receiving anything in your Archiva logs? If not, do you have Apache running in front of the Archiva instance and does it have anything in its logs? - Brett On 01/12/2008, at 7:13 PM, Alexander Vaysberg wrote: Yes, I can, The error messages: ... cou

Re: Mojo's order execution in a plugin

2008-12-01 Thread Brett Porter
It's not a defined behaviour to honour the order of the plugin descriptor (nor is there a way to force that ordering when generating). Reports are not intended to be dependent on each other. Probably what you want to do here is write the common code into a goal that can be run in pre-site,

Mojo's order execution in a plugin

2008-12-01 Thread Nicolas Dordet
Hi all, I'm developing a maven plugin witch contain 2 mojos (abstractMavenReport). I wanted maven to execute mojoA before mojoB when doing a "mvn site". I saw that in the plugin descriptor my mojoB is declared before my mojoA. How can I change that? Is there a way to change the plugin.xml manuall

Re: how to use plexus-maven-plugin to both generate and merge descriptor ?

2008-12-01 Thread nicolas de loof
Thanks ! 2008/11/28 Jason van Zyl <[EMAIL PROTECTED]> > Nicolas, > > You can see an example here: > > http://svn.sonatype.org/nexus/trunk/nexus-parent/pom.xml > > The new plexus-component-metadata plugin will automatically handle: > - generating components.xml from annotations > - generation com

PMD check binding to other lifecycle phase?

2008-12-01 Thread Wim Deblauwe
Hi, I don't really understand why the PMD check is bound to the verify lifecycle phase by default? This means that my unit tests run first and then I get an error that there is a PMD violation. Would it not be better to do this in the validate phase? Other candidates might be process-sources or pr

Re: [Artifactory-users] Artifactory 1.3 has been DOS'ing the Central repository

2008-12-01 Thread ankostis
Hi, Although it is obvious Brian that you did an excellent debugging-job with identifying the root of the DOS, the final 'Note' at the end of your initial mail looked more like a careless call for a flame-war: On Fri 28 Nov 2008 14:50:17 Brian E. Fox wrote: > ... > Note that other tools like the

Re: how to use plexus-maven-plugin to both generate and merge descriptor ?

2008-12-01 Thread Jason van Zyl
Nicolas, You can see an example here: http://svn.sonatype.org/nexus/trunk/nexus-parent/pom.xml The new plexus-component-metadata plugin will automatically handle: - generating components.xml from annotations - generation components.xml from javadoc - merging generated descriptors with static de

Re: [Artifactory-users] Artifactory 1.3 has been DOS'ing the Central repository

2008-12-01 Thread Jason van Zyl
Yoav, If we wanted to tarpit you or be more malicious that would be very easy for us to do. We could completely screw you over and cripple your access forever and there's not really much you could do about it if that was our motivation. Brian is completely open about what happened and act

Retrieve Last Artifact URL from Remote Repository

2008-12-01 Thread Gerrit Brehmer
Hi, I want to do a remote deploy to a jboss server. For that I need the URL from the last deployment to the remote repository (timestamped snapshots e.g., archiva server). The Url will be printed to the output console during/after successful archiva deployment (deploy:deploy). So can I retrieve

Re: Third party jars

2008-12-01 Thread Stephen Connolly
mvn deploy:deploy-file -DgroupId=foo -DartifactId=bar -Dversion=1.0-foo -Dpackaging=jar -DgeneratePom=true -Dfile=foo.jar ... And with newer versions of the maven-deploy-plugin, generatePom defaults to true. It should be trivial for you to write a shell script or batch file that loops through all

Re: Problem with Maven, Continuum and Archiva

2008-12-01 Thread Alexander Vaysberg
Yes, I can, The error messages: ... could not be retrieved from repository: snapshots due to an error: Failed to transfer file: http://firm.archiva/repo/snapshots/2.0.2-SNAPSHOT/maven-metadata.xml. Return code is: 500 But, if I this buildes it self, it work fine. Nick Stolwijk schrieb: Coul

RE: Third party jars

2008-12-01 Thread John.Baker
Hi, Thanks for all the feedback. I guess my reasoning was that inventing the meta data (group/artifactId/version) for 20 jars is a little time consuming - is there an easier way to do this? I.e. Is there a maven command to take a directory full of jars and upload them into my local repository (~