Re: [m2] Need to put dependencies into target for jar module

2007-08-17 Thread Tim Kettler
Hi, have a look at the maven-dependency-plugin and its copy-dependencies mojo [1]. If the sole purpose of your ant task is to package your module classes in a jar together with its dependencies you can do this without ant altogether using the assembly-plugin [2]. -Tim [1] http://maven.apach

problem w/ remote deploy - Host key verification failed

2007-08-17 Thread John Cartwright
Hello All, I'm trying to execute "mvn deploy" and getting an error about the "Host key verification failed". I've tried the instructions in various threads on this topic but still haven't had any success (see message below). I can successfully ssh to the remote host w/o a password. I have

Re: File dependency question

2007-08-17 Thread Chris Russell
It always so obvious when someone tells you. That worked great - Thanks Wayne. Chris Wayne Fay wrote: I am assuming Deploy is your EAR project. If so, the file should go in /src/main/application. You can see this in the maven-ear-plugin documentation -- look at "earSourceDirectory". http://ma

Re: File dependency question

2007-08-17 Thread Wayne Fay
I am assuming Deploy is your EAR project. If so, the file should go in /src/main/application. You can see this in the maven-ear-plugin documentation -- look at "earSourceDirectory". http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html Wayne On 8/17/07, Chris Russell <[EMAIL PROTECTED]>

File dependency question

2007-08-17 Thread Chris Russell
Hi All, I have a really silly question. Currently I can build my EAR file via JDeveloper and it deploys and runs just fine. When I build and deploy via Maven, one file is missing from the EAR file. This file should be found at the top level of the EAR (i.e. if you open the EAR with winZip, its

Re: Maven and macker plugin working??[UPDATES]

2007-08-17 Thread Wayne Fay
I've seen enough people asking for a M2 Macker plugin in the last few months/year that I finally decided to go ahead and write one myself. In my limited testing, it works great, but I am not really a Macker user so I'll need some feedback from people to improve it. I will be submitting it to the M

Re: Maven2 newbie help: getting cobertura reports

2007-08-17 Thread Dennis Lundberg
Hi Dan Most of the reporting in Maven is done by plugins. I your case you need to add a couple of plugins to you parent pom: ... org.codehaus.mojo cobertura-maven-plugin org.apache.maven.plugins maven-surefire-report-plugin

Re: customized Site Skin/Template for use in different projects

2007-08-17 Thread Dennis Lundberg
Changes that are made to the site.xml file will *not* be picked up by the site plugin in all cases. You need to do: mvn clean mvn site to get those changes into the generated site. fuvo wrote: Hello Wayne and Dennis, of course, we have our own parent pom which is the parent for all our pro

[m2] Need to put dependencies into target for jar module

2007-08-17 Thread Mick Knutson
OK, I have several dependencies for my jar module like: com.stc stc javax jms Now, I have an ant task that is called from my ant-run plugin, that needs to include those dependencies into its jar archive. So when

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Mathias P.W Nilsson
Thank you all! It's working now! :) -- View this message in context: http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12204851 Sent from the Maven - Users mailing list archive at Nabble.com. - To

Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-17 Thread Mick Knutson
http://jira.codehaus.org/browse/MASSEMBLY-230 On 8/16/07, Wayne Fay <[EMAIL PROTECTED]> wrote: > > Debug it a bit, and let us know. ;-) > > Wayne > > On 8/16/07, Mick Knutson <[EMAIL PROTECTED]> wrote: > > After researching this a bit more: > > > > THIS DOES NOT WORK: > > > > > >

RE: Version Management

2007-08-17 Thread Kusunam, Srinivas
What do you mean by "version management"? We do use maven to add specific tags at the end of project.xml with every Build something like following. 1.0.2 1.0.2 LGB_reFUEL_ServiceOrchestration_DEVGRP_dev_JAVA14_051018_2 1.1 1.1 LGB_reFUEL_ServiceOrchest

Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-08-17 Thread Guillaume Bilodeau
Wendy Smoak-3 wrote: > > On 8/17/07, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote: > >> I am behind no firewall, I have setup no mirrors - this is a clean >> install. >> It's obviously a network error as the SocketException shows. Actually, >> ibiblio.org has a hard time redirecting to mirrors

Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-08-17 Thread Wendy Smoak
On 8/17/07, Guillaume Bilodeau <[EMAIL PROTECTED]> wrote: > I am behind no firewall, I have setup no mirrors - this is a clean install. > It's obviously a network error as the SocketException shows. Actually, > ibiblio.org has a hard time redirecting to mirrors.ibiblio.org - takes 1 or > 2 minute

Re: 5 minute quickstart: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found

2007-08-17 Thread Guillaume Bilodeau
I'm getting a similar error while trying to setup Maven in a new environment: * + Error stacktraces are turned on. Maven version: 2.0.7 Java version: 1.6.0_02 OS name: "windows xp" version: "5.1" arch: "x86" [DEBUG] Building Maven user-level plugin registry from: 'D:\Documents and Settings\T

[announce] Continuum 1.1-beta-2 is released

2007-08-17 Thread Emmanuel Venisse
The maven/Continuum team is pleased to announce the Continuum 1.1-beta-2 release Highlights are: * lot of bug fixes * Installations/profiles screens improvement * screen flow improvement in Add Project part * cancellable builds You can grab the latest release from: http://maven.apache.org/cont

Re: Building JBoss EAR archives with SAR included

2007-08-17 Thread Alan D. Salewski
On Fri, Aug 17, 2007 at 09:19:12AM -0500, Wayne Fay spake thus: > I don't use the SAR plugin but I think I understand the error > message... It looks like your dependencies define the sar as > jboss-sar without a classifier... and then your EAR > configuration says jboss-sar without a packaging. >

Re: Re : Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-17 Thread Wayne Fay
If you put it directly in the pom, then you could call "mvn plugin-name:goal" and it would execute the plugin directly. It should probably work with profiles as well. But really, there is nothing stopping you from just having a build.xml file next to your pom.xml file and then calling ant directly

Re: Building JBoss EAR archives with SAR included

2007-08-17 Thread Wayne Fay
I don't use the SAR plugin but I think I understand the error message... It looks like your dependencies define the sar as jboss-sar without a classifier... and then your EAR configuration says jboss-sar without a packaging. I'd assume one of those is wrong. My guess would be to change to . Wayn

Re: plugin for executing shell script/batch files ?

2007-08-17 Thread Manos Batsis
Hmm. Try the maven-exec-plugin :-) Manos Batsis wrote: Farhan Sarwar wrote: Whats the plugin to use in maven to execute/invoke shell scripts or a batch file? Maybe a more appropriate plugin exists but how about antrun and the exec task? Cheers, Manos ---

Re: setting environment variable in pom.xml

2007-08-17 Thread Wayne Fay
You could always write a wrapper plugin around the other plugin, and it could accept parameters and set them as environment properties prior to calling your real plugin. It might not work, but it wouldn't be a ton of effort to find out. Wayne On 8/16/07, Mohan K <[EMAIL PROTECTED]> wrote: > > Wen

Re: plugin for executing shell script/batch files ?

2007-08-17 Thread Manos Batsis
Farhan Sarwar wrote: Whats the plugin to use in maven to execute/invoke shell scripts or a batch file? Maybe a more appropriate plugin exists but how about antrun and the exec task? Cheers, Manos - To unsubscribe, e-mail:

Continuum's handling of add/remove modules

2007-08-17 Thread erik.drolshammer
Hi! I have a multi-module Maven 2 project that is built with Continuum (1.1-beta-1). When we add or remove modules to the Maven project Continuum does not seem to reflect this. Is this how it is supposed to be? Must I manualle add/remove modules or re-add the parentproject? If not, what have I d

Building JBoss EAR archives with SAR included

2007-08-17 Thread Steve Dobson
Hi I have a multi-part project for building a JBoss J2EE system and the client. The common, EJB, Web and SAR sub-projects all build nicely. However the EAR does not build. I get the following: $ mvn install [INFO] Scanning for projects... [INFO] snapshot org.codehaus.mojo:jboss-packaging-

Re: Hibernate and resources

2007-08-17 Thread Johann Reyes
Hello Mathias you should put it in your resources directory and do something like this in your applicationContext.xml in your sessionFactory bean: Regards Johann Reyes

Deploy problem with POMs which have variable in the version tag

2007-08-17 Thread cyril mail
Hi All, I'm working in an enterprise which has its own development workflow based on the SCM Synergy. In order to work efficiently with this workflow, we need to put in the POM some variables related to the version number of artifacts according to these rules : -- the POM is written once at the st

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Johann Reyes
Also you can run manually the plugin like this: mvn hibernate3:hbm2ddl Regards Johann Reyes

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Johann Reyes
can you run this command and then send the output: mvn -X hibernate3:hbm2ddl Regards Johann Reyes

Re : Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-17 Thread Farhan Sarwar
Thanks for the follow-up Steve, I am still hoping that someone has a solution to what I want to achieve but at the same time I think what you have suggested is certainly a good simulation for the same…now am still trying to configure the pom as you suggested (as below) so that I can activate/invoke

Re: Re : Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-17 Thread Farhan Sarwar
I just realized that i have to put in a "" tag in order to make it work, i thought we can still skip it, since we were specifying it anyways on invoking it from the command line, though am still trying to figure out a way i can just invoke a plugin-in/goal that is declared/configured in a pom.. O

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Johann Reyes
Mathis try this: org.codehaus.mojo hibernate3-maven-plugin 2.0-alpha-2 hbm2ddl annotationconfiguration hbm2hbmxml src/main/resources true true src/main/resources/hibernate.cfg.xml schema.sql

Re: hibernate3-maven-plugin not running

2007-08-17 Thread Johann Reyes
Also the phase should be process-classes instead of generate-sources Your java classes need to be compiled first before they can be added to the plugin to create the db schema Regards Johann Reyes

Re: Can't compile

2007-08-17 Thread Johann Reyes
Hello Mathias what you need is to remove the runtime scope from your hibernate dependencies. Just delete the scope line. That is telling maven that you don't need those jars to compile your classes, just to run it. For more info about scopes, you can find it here: http://maven.apache.org/guides/i

Question relating to a build configured within a profile

2007-08-17 Thread Farhan Sarwar
Another quick questions folks.. I have got a profile (in a pom) which has a build configured for maven-ant plugin in it (as below), now my understanding of plugin/goals configured within a build is that if they are not bind to phase they would just run independent of the maven build-cycle-phases,

configuring default phase against a profile

2007-08-17 Thread Farhan Sarwar
How to associate a default phase with a profile, so that when i activate/invoke the profile, i dont have to explicitly specify the phase from the command line...something like "mvn -P someprofile", and hence the profile is activated within whatever the default phase it is configured with.

plugin for executing shell script/batch files ?

2007-08-17 Thread Farhan Sarwar
Whats the plugin to use in maven to execute/invoke shell scripts or a batch file? Farhan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: hibernate3-maven-plugin not running

2007-08-17 Thread mljv
Am Donnerstag, 16. August 2007 19:56 schrieb Mathias P.W Nilsson: > Thanks for you pation but it still doesn't work > > I get this for all my classes. I'm using annotations. Worked perfectly when > I was using ant. > this is my pom snippte and it works with mvn process-resources hibernate3:hb

Re: Maven - selective inclusion of testcases in a package

2007-08-17 Thread mljv
Am Donnerstag, 16. August 2007 18:48 schrieb Vaidya, Supriya A (US - Chicago): > Hi: > > I have the following situation: > > com/mycompany/mypackage/application/ has my class files, while > com/mycompany/testcases has my test cases (Cactus). > > In creating the WAR file, I want to be able to ex

Deploy problem of POMs with variable in the version tag

2007-08-17 Thread [EMAIL PROTECTED]
Hi All, I'm working in an enterprise which has its own development workflow based on the SCM Synergy. In order to work efficiently with this workflow, we need to put in the POM some variables related to the version number of artifacts according to these rules : -- the POM is written once at the

Re: Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread Milos Kleint
yup. that's it! you run this on command line and then attach the netbeans debugger to port 8000. you cannot set the same options to the build running from netbeans as it's maven build is running within the same JVM as the IDE itself. Milos PS: in future versions of maven support, you can delegat

RE: Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread John Coleman
Well I found this tip for Hudson users... $ cd main/war $ export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000" $ mvn -o jetty:run Looks linux, but is there any way to use this with NetBeans/Mavenide+ WinXP? John -Original Message- From: Milos Kleint [mailto:[

Re: Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread Milos Kleint
On 8/17/07, John Coleman <[EMAIL PROTECTED]> wrote: > Thanks for that suggestion, not really a slick solution. Would it be > possible for the plugin to spawn another thread to run jetty in debug, > then perhaps the debug settings could be put in a jetty config file > somewhere? I guess it's as sli

RE: Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread John Coleman
Thanks for that suggestion, not really a slick solution. Would it be possible for the plugin to spawn another thread to run jetty in debug, then perhaps the debug settings could be put in a jetty config file somewhere? It would be nice not to have to set up jetty somewhere else, as the dev team ha

Re: Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread Milos Kleint
John Coleman wrote: There's documentation for "Debugging with the Maven Jetty Plugin in Eclipse", but does such exist for NetBeans? Anyone know how to do this if not? run the jetty plugin externally (not with the embedded version of maven in netbeans, but in different jvm) with the proper

Re: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread Werner Guttmann
Thanks for cross-checking this. And to my knowledge, all Maven artefacts uploaded to Codehaus Maven repository will be synced to public Maven repos. Werner Jörg Schaible wrote: > Werner Guttmann wrote on Friday, August 17, 2007 10:15 AM: > >> Hi, >> >> I am not 100% sure, but it could be that s

Re: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread Werner Guttmann
Nicolas, the binaries in http://dist.codehaus.org/castor/ definitely have not been built using Maven, but using Ant. And as far as I remember, there's still an open issue with the use of source/target attributes in the Ant build file(s). Werner nicolas de loof wrote: > The maven pom for castor s

Re: Where is the source code of "maven-release"

2007-08-17 Thread Maria Odea Ching
Just go up one directory from the maven-release-plugin svn URL you specified :) -Deng Michael Meyer wrote: Hi I've checked out the latest sources of the maven-release-plugin from http://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin I tried loading the sources into eclips

Re: Generating EJB home/remote interfaces with maven

2007-08-17 Thread Manos Batsis
For the OP: you can also find an example using ejbdoclet (xdoclet-maven-plugin) at the bottom of [1]. Generates local and remote interfaces, as well as util objects. [1] http://fisheye1.cenqua.com/browse/~raw,r=1.3/md4j/md4j-quickstarter-ejb/pom.xml Cheers, Manos ---

Debugging with the Maven Jetty Plugin in Netbeans

2007-08-17 Thread John Coleman
There's documentation for "Debugging with the Maven Jetty Plugin in Eclipse", but does such exist for NetBeans? Anyone know how to do this if not? TIA John Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mail

Re: annotations are not supported in -source 1.3

2007-08-17 Thread Gisbert Amm
Just for the reference: http://jira.codehaus.org/browse/MCOMPILER-57 -Gisbert Mathias P.W Nilsson wrote: I get this error message when I run "mvn compile" annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) How is that? When I check "java -version" I get jav

Deploy problem of POMs with variable in the version tag

2007-08-17 Thread [EMAIL PROTECTED]
Hi All, I'm working in an enterprise which has its own development workflow based on the SCM Synergy. In order to work efficiently with this workflow, we need to put in the POM some variables related to the version number of artifacts according to these rules : -- the POM is written once at the

RE: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread Jörg Schaible
Werner Guttmann wrote on Friday, August 17, 2007 10:15 AM: > Hi, > > I am not 100% sure, but it could be that somebody uploaded > these JARs to > the ibiblio repos manually, as we (the Castor team) switched to Maven > uploads slightly later. Since they are available on Castor's repo at Codehaus

Re: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread nicolas de loof
The maven pom for castor set the compiler plugin for 1.4. According to CASTOR-1485, 1.0.4+ should be java 1.3 compliant. The maven config has been updated to configure compiler for 1.3 in castor-1.1.pom Seems the binaries in http://dist.codehaus.org/castor/ have not been built using maven. 2007

Where is the source code of "maven-release"

2007-08-17 Thread Michael Meyer
Hi I've checked out the latest sources of the maven-release-plugin from http://svn.apache.org/repos/asf/maven/release/trunk/maven-release-plugin I tried loading the sources into eclipse by executing eclipse:eclipse on the project. The error message I get is: [INFO] Failed to resolve artifact

RE: expand war deps

2007-08-17 Thread John Coleman
Thanks for these tips I now have it working just right. The method as follows... com.eurobase common-wac 1.3-SNAPSHOT provided jar I have to mark the dependency as "provided", so the jar is not left in /lib - to me thi

Re: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread Werner Guttmann
Hi, I am not 100% sure, but it could be that somebody uploaded these JARs to the ibiblio repos manually, as we (the Castor team) switched to Maven uploads slightly later. Regards Werner Castor, committer Jörg Schaible wrote: > nicolas de loof wrote on Friday, August 17, 2007 9:20 AM: > >> I've

RE: castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread Jörg Schaible
nicolas de loof wrote on Friday, August 17, 2007 9:20 AM: > I've got an issue with castor jar : > > artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled > for 1.3, and the ones published at > http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4 / > require java > 1.4 > >

castor-1.0.4.jar on maven repo is not same as the one distributed by codehaus

2007-08-17 Thread nicolas de loof
I've got an issue with castor jar : artifacts from http://dist.codehaus.org/castor/1.0.4/ are compiled for 1.3, and the ones published at http://repo1.maven.org/maven2/org/codehaus/castor/castor/1.0.4/ require java 1.4 Jars are not the same. What's wrong ? Who published those jars ? Where do they