Re: good tutorial for maven, eclipse3.4 and tomcat

2008-08-19 Thread Peter Horlock
2008/8/19 sam wun <[EMAIL PROTECTED]> > Can anyone provide me a link of tutorial that I can follow to build a > simple web base application using maven, eclipse 3.4, tomcat and mysql? > > Maven: http://www.sonatype.com/community/definitive_guide.html For all other topics, I can't help you, I wou

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-19 Thread Peter Horlock
John, were can I download the latest RC? The link you provided doesn't seem to be working... Thanks, Peter

Re: out of memory error on windows

2008-08-19 Thread Karan Malhi
woops! thanks a lot :) On Wed, Aug 20, 2008 at 12:48 AM, Brett Porter <[EMAIL PROTECTED]>wrote: > It's missing the "m" at the end, so you're attempting to set a maximum > of 1024kb = 1m :) > > - Brett > > 2008/8/20 Karan Malhi <[EMAIL PROTECTED]>: > > So I had a user.home/mavenrc_pre.bat which h

Re: out of memory error on windows

2008-08-19 Thread Brett Porter
It's missing the "m" at the end, so you're attempting to set a maximum of 1024kb = 1m :) - Brett 2008/8/20 Karan Malhi <[EMAIL PROTECTED]>: > So I had a user.home/mavenrc_pre.bat which had the following:- > set MAVEN_OPTS=-Xmx1024 > > Once i removed the mavenrc_pre.bat, it started to work fine. n

Re: out of memory error on windows

2008-08-19 Thread Karan Malhi
So I had a user.home/mavenrc_pre.bat which had the following:- set MAVEN_OPTS=-Xmx1024 Once i removed the mavenrc_pre.bat, it started to work fine. not sure why it would cause an error. On Wed, Aug 20, 2008 at 12:28 AM, Brett Porter <[EMAIL PROTECTED]>wrote: > check MAVEN_OPTS. Something is misc

Re: out of memory error on windows

2008-08-19 Thread Brett Porter
check MAVEN_OPTS. Something is misconfigured - you're only giving it 5M of memory to work in (while the JVM default is either 32M or 64M). 2008/8/20 Karan Malhi <[EMAIL PROTECTED]>: > Maven works fine on my linux machine. On windows, i get an out of memory > error. here is the info about maven:- >

Re: Error in maven dependencies

2008-08-19 Thread Wayne Fay
The complaint "does not work" is not sufficient data to provide assistance. Be more specific if you expect help on this list. What did you do, what happened vs what you thought would happen, copy and paste any errors or exceptions, etc. Wayne On 8/19/08, leopupo <[EMAIL PROTECTED]> wrote: > > I'

out of memory error on windows

2008-08-19 Thread Karan Malhi
Maven works fine on my linux machine. On windows, i get an out of memory error. here is the info about maven:- C:\>mvn --version Maven version: 2.0.9 Java version: 1.6.0_10-rc OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" Whenever I try to run mvn, it gives me an out of memor

Re: Inheriting POM

2008-08-19 Thread Brett Porter
There's discussion both about a short term solution and a long term solution. Nothing certain. It won't be in a 2.0.x release however. - Brett 2008/8/20 mfs <[EMAIL PROTECTED]>: > > Thanks Brett for the followup, any idea as to which release is this being > planned for ? > > Farhan. > > Brett Por

Re: Error in maven dependencies

2008-08-19 Thread leopupo
I've already installed the jar file into the repository using mvn install, but it does not work. Nick Stolwijk-4 wrote: > > Try to use the mvn install:install-file command instead of copying. [1] > Make > sure you specify the right groupId, ArtifactId and version > (javax.transaction:jta:jar:1

Re: Maven Site Resource Inclusion

2008-08-19 Thread Brett Porter
yes, though a patch to the site plugin might be a better long term solution (much like webResources for the war plugin). 2008/8/20 Andrew Hughes <[EMAIL PROTECTED]>: > I might be better off creating a new reporting plugin that does this. Takes > a directory listing.. includes/excludes files and cr

Re: Inheriting POM

2008-08-19 Thread mfs
Thanks Brett for the followup, any idea as to which release is this being planned for ? Farhan. Brett Porter wrote: > > It's a requested feature for the future, but for now you need to make > the change. > > You might like to use the release:branch goal to make the change, and > branch, for yo

Re: Maven Site Resource Inclusion

2008-08-19 Thread Andrew Hughes
I might be better off creating a new reporting plugin that does this. Takes a directory listing.. includes/excludes files and creates an indexing html of the selected files in that directory. At least that way we could pave the way for something neat? On Wed, Aug 20, 2008 at 12:17 PM, Brett Porte

Re: Maven Site Resource Inclusion

2008-08-19 Thread Brett Porter
I don't believe there is. You might be best using an Ant copy in the site lifecycle to copy them into the target/site directory. - Brett 2008/8/20 Andrew Hughes <[EMAIL PROTECTED]>: > Hi All, > > I'm trying to shove whole directories into the maven site as resources. > but apparently they nee

Maven Site Resource Inclusion

2008-08-19 Thread Andrew Hughes
Hi All, I'm trying to shove whole directories into the maven site as resources. but apparently they need to be added to ./src/site/resources and I can't see a reconfiguration option. Is there such a thing? This is the existing project structure I have to work with. ./Project ./Project/pom.xm

Re: Inheriting POM

2008-08-19 Thread Brett Porter
It's a requested feature for the future, but for now you need to make the change. You might like to use the release:branch goal to make the change, and branch, for you. Cheers, Brett 2008/8/20 mfs <[EMAIL PROTECTED]>: > > I am looking to do the same, so that on cutting the branch we dont have to

Re: How to prevent child pom from exec'ing parent pom ant plugin tasks

2008-08-19 Thread Brett Porter
try adding false to the execution Cheers, Brett 2008/8/20 gotama <[EMAIL PROTECTED]>: > > > I have a parent pom who exec's an ant plugin tasks, but I do not want the > child pom of the parent to exec the same ant plugin when the > child runs the ant plugin. It appears that the child pom's instan

Re: Debugging an application (not tests)

2008-08-19 Thread Brett Porter
exec:exec can still specify the classpath - see the following: http://mojo.codehaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html 2008/8/20 Trevor Harmon <[EMAIL PROTECTED]>: > I've been able to find documentation on how to debug tests in Maven, but I > can't find anything tha

Re: Plugins and way to find the current phase

2008-08-19 Thread Brett Porter
There's nothing in particular to tell the current phase - usually it is handled by configuration to the plugin, or by having different goals that derive from a common base for use at different times. Depending on what you are trying to determine, you might be able to inspect the property you are t

Re: Problem with overlays and the war package plugin

2008-08-19 Thread Brett Porter
It seems like you either need to put the Cargo declaration and WAR plugin dependencies in a project that is not a webapp itself, or to configure Cargo so it doesn't require the WARs as dependencies (as I understand it, using the configuration does this). - Brett 2008/8/19 Paulo Pinto <[EMAIL PR

Re: Publishing an OSGi bundle in maven2 Repository

2008-08-19 Thread Brett Porter
Maven supports any format for the version, however it will revert to a plain string comparison if you deviate from the format below, so you'll need to ensure that the ordering as a string is consistent with what you are expecting in choosing versions (ie 0.10.1.2 < 0.7.0.0, so you basically need to

Re: Versions in a Multiproject

2008-08-19 Thread mfs
Has anyone been able to figure out an alternate solution where doesnt need to specify the "${pom.parent.version}" in every pom ? and be able to inherit/refer the parent pom, so that we can specify the pom version(s) in a multi-module project at one place, and hence make the branching easy.. Pet

Re: Inheriting POM

2008-08-19 Thread mfs
I am looking to do the same, so that on cutting the branch we dont have to go through all the child poms and change their versions. Anyone ? dl123 wrote: > > Now, I have 20 or so POM's that are all taking a top level POM as the > parent shown below: > > > com.mycompay.apps >

How to prevent child pom from exec'ing parent pom ant plugin tasks

2008-08-19 Thread gotama
I have a parent pom who exec's an ant plugin tasks, but I do not want the child pom of the parent to exec the same ant plugin when the child runs the ant plugin. It appears that the child pom's instance of the ant plugin inherits the parent pom's ant plugin executions - but I just want that ant

Re: commons-digester version conflicts

2008-08-19 Thread Michael McCallum
It unfortunately happens when there is a conflict as well... so if you have two ranges that cannot be resolved you get an OverConstrainedException which gets hidden with -X do mvn -X and you will see the exception... and can traceback to the conflict On Wed, 20 Aug 2008 03:18:38 Alex. wrote: >

Re: Building same source with 1.4 and 1.5 jdks

2008-08-19 Thread Kevin Kingsbury
Thanks Jorg for the pointer to using multiple executions of the compiler. I tried setting that up and I see it try to run, but the it says the classes are already up to date. I am assuming that this is because it is still looking at the same outputDirectory. How would I configure a different out

Debugging an application (not tests)

2008-08-19 Thread Trevor Harmon
I've been able to find documentation on how to debug tests in Maven, but I can't find anything that explains how to debug an application (that is, a Java program launched using exec-maven-plugin). I tried passing the debug arguments to the application (- agentlib:jdwp=transport=dt_socket,ser

RE: newby problem with using artifacts in repository

2008-08-19 Thread kkmca
I guess more what i am looking for is a url i can use to get the latest snapshot from the nexus repository- I have tried fetching from the repository but the http request i built to get latest snapshot does not resolve - my best bet looks to be to resolve the metadata, parse it for the build time

Re: Re: simple online order form

2008-08-19 Thread Wayne Fay
You should be asking these questions in a "Java Newbie/Programming Help" type forum, not the Maven Users email list. http://java.sun.com/new2java/ http://forums.sun.com/forum.jspa?forumID=54 http://forums.sun.com/forum.jspa?forumID=31 Wayne On 8/18/08, sam wun <[EMAIL PROTECTED]> wrote: > Hi, >

maven eclipse:eclipse plugin: multiproject parent of the parent modules generated incorrectly

2008-08-19 Thread Vytautas Civilis
Hello. Problem is with the maven eclipse:eclipse plugin. To make it simpler, I have following modules structure: Parent A -> extends -> Parent B Parent B defines modules: B.m1 and B.m2 Parent A defines modules: A.m3 and A.m4 Using flat layout, if that matters, so B, m1, m2, A, m3, m4 are in th

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-19 Thread John Casey
Actually, probably the best thing you could do is boil the problem down to the simplest build you can think of that expresses the problem, and file a JIRA ticket with the project attached. Then, let me know what the JIRA # is, and I'll have a look. I can put it up on the debugger to see why the

Re: commons-digester version conflicts

2008-08-19 Thread Alex.
This happen when Maven don't know whitch artifact version to use. [INFO] Failed to resolve artifact. >> >> Couldn't find a version in [1.6] to match range [1.7,) >> commons-digester:commons-digester:jar:null 2008/8/19 Alfred Chan <[EMAIL PROTECTED]> > > Hi Alexandre, > > I encountered the sa

Plugins and way to find the current phase

2008-08-19 Thread Thomas Darbois
Hello I'm writing a plugin that can do stuff at any phase, by default it's at process-sources, but the user can use this plugin at any phase. For one specific case, the plugin need to know in which phase he currently is, because one specific parameter is only "settable" if the current phase is a

Re: can we use classifier here?

2008-08-19 Thread Lin Sun
Yes, when reading the link you supplied, I could not differentiate the difference between classifier and attached artifacts. Seems they are both used for javadocs, sources, etc. We are proposing to use classfiers to solve the probs we mentioned in the above posts but we 'd like to get your feedb

good tutorial for maven, eclipse3.4 and tomcat

2008-08-19 Thread sam wun
Hi, Can anyone provide me a link of tutorial  that I can follow to build a simple web base application using maven, eclipse 3.4, tomcat and mysql? Thanks

Re: including jars in a jar

2008-08-19 Thread sairndain
Hi Nick Thanks for the input. I've tried the "Maven Assembly Plugin" and some else has suggested the "maven-shade-plugin". Both, pretty much, do the job...But, the "maven-shade-plugin" names the artifact the way I want. I will post the entire pom, below, so that new comers to Maven2 -- like

Problem with overlays and the war package plugin

2008-08-19 Thread Paulo Pinto
Hi everyone, I am having a few problems with overlays while using the war packaging plugin. I have a war project and I intended to start two applications (war) using the cargo plugin, from inside this project. Now, in order for this to function, the cargo plugin requires that all war files to be

Publishing an OSGi bundle in maven2 Repository

2008-08-19 Thread rajkumar
Hi, I want to publish an OSGi bundle in maven2 repository. The version format for OSGi supports , major[.minor[.micro]][.qualifier] but maven supports something like ..([ - ] | [ - ]) where: the qualifier section is optional (and is SNAPSHOT, alpha-1, alpha-2) Is there anyway to have t

Re: Building AppFuse with mvn

2008-08-19 Thread Martijn Dashorst
This is not a question for the maven list, please ask at the appfuse forums/lists. Martijn On Tue, Aug 19, 2008 at 12:44 PM, sam wun <[EMAIL PROTECTED]> wrote: > Thanks for the quick fix. > > It built successfully. > > Now from the README.txt file in the project directory, it said: > > D:\DEV\sam

Re: Error in maven dependencies

2008-08-19 Thread Nick Stolwijk
Try to use the mvn install:install-file command instead of copying. [1] Make sure you specify the right groupId, ArtifactId and version (javax.transaction:jta:jar:1.0.1B) [1] http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html Hth, Nick Stolwijk ~Java Developer~ Iprofs B

Re: Error in maven dependencies

2008-08-19 Thread lbp
The error message is: Error message: Missing: > -- > 1) javax.transaction:jta:jar:1.0.1B It´s missing the jar file. I installed it in the repo just copying and pasting the jar file (jta-1.01B.jar it in the repo). Wayne Fay wrote: > > What is the exact error message? Are you missing

apache-jar-resource-bundle 1.4 issues

2008-08-19 Thread Stefano Bagnara
I don't know where to submit issues against this bundle. The 1.4 version removed at all the possibility to customize the NOTICE content adding an header and a footer making it de facto useless for many ASF projects. NOTICE requirements in ALv2 are strong, so whenever a project include some s

Re: Building AppFuse with mvn

2008-08-19 Thread sam wun
Thanks for the quick fix. It built successfully. Now from the README.txt file in the project directory, it said: D:\DEV\samples\AppFuse\phonecards>type README.txt AppFuse Basic JSF Archetype --- If you're reading this

Re: Building AppFuse with mvn

2008-08-19 Thread Martijn Dashorst
add a minus character before your DartifactId= Martijn On Tue, Aug 19, 2008 at 12:30 PM, sam wun <[EMAIL PROTECTED]> wrote: > Hi, I tried to build my first AppFuse project following the link I shown > below, > > http://appfuse.org/display/APF/AppFuse+QuickStart > > > > But I hit the first err

Building AppFuse with mvn

2008-08-19 Thread sam wun
Hi, I tried to build my first AppFuse project following the link I shown below, http://appfuse.org/display/APF/AppFuse+QuickStart But I hit the first error: D:\DEV\samples>mkdir AppFuse D:\DEV\samples>cd AppFuse D:\DEV\samples\AppFuse>mvn archetype:create -DarchetypeGroupId=org.appfuse.a

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-19 Thread nicolas de loof
I get an issue with 2.0.10 RC9 and CXF plugin -this works with 2.0.9 : [INFO] [cxf-codegen:wsdl2java {execution: generate-sources}] 19 ao¹t 2008 11:08:16 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading plugin jar:file:/D:/platina/repository/org/apache/cxf/cxf-tools-wsdlto-

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-19 Thread Martin Höller
On Monday 18 August 2008 John Casey wrote: > Please, if you have the time, take 2.0.10-RC9 for a spin and tell us > what you think! Works without any problems here. - martin signature.asc Description: This is a digitally signed message part.

Re: including jars in a jar

2008-08-19 Thread Nick Stolwijk
Hi, Take a look at the Maven Assembly Plugin [1], especially its unpack goal [2] in combination with the predefined descriptor "jar-with-dependencies" [3]. I think this does exactly what you want. Hth, [1] http://maven.apache.org/plugins/maven-assembly-plugin/ [2] http://maven.apache.org/plugins

RE: SCM report generation failed due to scm provider

2008-08-19 Thread De Smet Ringo
Brett, > -Original Message- > From: Brett Porter [mailto:[EMAIL PROTECTED] > Sent: dinsdag 19 augustus 2008 3:08 > To: Maven Users List > Subject: Re: SCM report generation failed due to scm provider > > The project info reports plugin is using the java version > explicitly (Since it d

Re: Problem using Plugin Management

2008-08-19 Thread Stefan Groschupf
Great! Thanks for the hint! Stefan On Aug 19, 2008, at 12:22 AM, Jean-Marc Desprez wrote: Hi, I found a solution to this problem after reading this page : http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin Modification for the main project (important part is the executions block) :

Re: Problem using Plugin Management

2008-08-19 Thread Jean-Marc Desprez
Hi, I found a solution to this problem after reading this page : http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin Modification for the main project (important part is the executions block) : org.apache.maven.plugins