temporary pom for building project and dependencies?

2008-06-05 Thread Kristian Rink
Folks; not sure whether this is a common use case, I wonder what's a good way to have the following scenario done. We handle our projects using maven2, and we are used to have things split up: - There's a core project (jar) of the application which includes commonly used classes and interfaces

Re: plugin jar: A better way to add custom classpath entries in manifest file?

2008-06-05 Thread Tim Kettler
Hi, Maximilian Eberl schrieb: The problem: I have resources OUTSIDE the jar like config files that have to be edited by the user and resources IN the jar, so that the user cannot accidently delete or willingly replace them. Images, for example. Using those in a (SWT-)class would look

Re: Ant Task - Build maven pom.xml

2008-06-05 Thread Tim Kettler
Hi, halsafar schrieb: I am trying to write an ant script to automate some maven tasks and hopefully decide not to rebuild the entire thing if it detects no changes. Just to give an idea I am working with Jasig CAS Server which has several modules all which are Maven projects. The build time

Re: plugin jar: A better way to add custom classpath entries in manifest file?

2008-06-05 Thread Maximilian Eberl
--- Tim Kettler [EMAIL PROTECTED] schrieb am Do, 5.6.2008: it seems this is a misunderstanding on your side. The constructor you are using is intended to load images out of files on the filesystem and not to load an image from a classpath resource. The correct way to load images from

Re: AW: modifying version number in POM

2008-06-05 Thread Niranjan Deshpande
Hi Chris, So you meant to say that SNAPSHOT will be repaced by a timestamp at the run time? also, can we avoid the chekin of the pom and tagging of the project that happens after mvn release:prepare? i am rather experimenting on things and dnt want to invite the wrath of other developers if ther

Re: temporary pom for building project and dependencies?

2008-06-05 Thread David Delbecq
You can create a modules based pom that will build all your projects. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Aggregation Le Thursday 05 June 2008 08:15:22 Kristian Rink, vous avez écrit : Folks; not sure whether this is a common use case, I wonder

Re: checkstyle problem with maven : Unable to instantiate TreeWalker

2008-06-05 Thread Julien Simon
Thanks for the answer. So, I tried maven-checkstyle-plugin 2.2 and it didn't work either, but that's a good beginning to have the correct plugin version... In the xml checkstyle configuration file where modules are defined, i tried to change module name=TreeWalker by module

Re: AW: modifying version number in POM

2008-06-05 Thread Andreas Christoforides
Niranjan, The maven release plugin allows performing a dry run of the prepare goal [1]. mvn release:prepare -DdryRun=true The dry run performs all the local file changes but without executing any SCM operations (commits and tagging). To revert the file changes from the dry run you can also

How best to determine snapshot dependencies programmatically in a multi-module project

2008-06-05 Thread CDickson
I am looking for a little help with the Maven API. If I have the file path to a pom.xml file that is the top level pom in a multi-module project, how do I (using the Maven API) load that top level pom and also recurse down to the sub-module poms and come up with a list of all of the SNAPSHOT

maven multiproject

2008-06-05 Thread Kalyana Krishnan
Hi,Does the multiproject site works with maven 2.0.9,is there a separate plugin for it?It used to create separate sites for every subproject before,does it still do that.Kindly let me know. Thanks, Kalyana krishnan

Re: java.net.SocketException - need help in getting started

2008-06-05 Thread Gianni Doe
Thank you! that was the problem, all working now. -Gianni On 05/giu/08, at 07:29, Tim Kettler wrote: Hi, googling hints that it's a bug in the java sdk on freebsd. There is a similar bug report like yours for freebsd 6 posted for IDEA [1] which says that IPv6 support in the jdk is the

Re: AW: modifying version number in POM

2008-06-05 Thread Mark Struberg
The release-plugin will replace a version n-SNAPSHOT with n, then tag this version n and replace it again with (n+1)-SNAPSHOT All those versions will be prompted, but prefilled as default. so if you have a myproject-2.17-SNAPSHOT mvn release:prepare will create and tag a myproject-2.17 in the

Re: AW: modifying version number in POM

2008-06-05 Thread Mark Struberg
So long as maven supports your scm... But then it is still much better to get this SCM supported then having hundred of developers tweaking around manually. Which SCM you need isn't supported yet? Since I already wrote the maven-scm-providers-git, I maybe can help you in writing another one.

Re: Profiles and Resources (wsdl)

2008-06-05 Thread Kinski
The solution is to specify resources in maven-war-plugin http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html Kinski wrote: Hi, I am re-factoring a legacy web services app as a Maven project which is now complete apart from one obstacle. I am using

Re: AW: modifying version number in POM

2008-06-05 Thread [EMAIL PROTECTED]
I don't think this information is what Niranjan is really looking for. He appears to have some workflow that he is used to with some other build tool, and is trying to use Maven to reproduce that same workflow. But my guess is that it isn't a workflow that maven is designed to implement, hence

Need advice about adding native dependencies

2008-06-05 Thread Haim Ashkenazi
Hi I'm creating a project that uses qtjambi (QT's java binding - http://trolltech.com/products/qt/features/language-support/java). It has both jar files and native libraries (statically compiled - seems to be working fine at least on a few linuxes I've tried). In their deployment documentation

RE: Need advice about adding native dependencies

2008-06-05 Thread Charlier, Etienne
Hello, I'm busy right now trying to implement Option 3. based on jambi 4.4 preview (they now distribute platform specific jars containing the native code) - I wrote a shell script that - downloads the jambi jar ( linux 32, linux 64, win 32 for now) - unpack them - deploy the java jar to my

Re: AW: modifying version number in POM

2008-06-05 Thread Niranjan Deshpande
Hi Simon, Thanks a lot for that reply. Yes, I have a workflow in ANT (with CVS), which asks the user whether he wants a timestamp or a version build. With that as a mindset, I was looking on Maven. You have identified it right that Maven has its own stuff when it comes to versioning the builds.

Re: Need advice about adding native dependencies

2008-06-05 Thread Haim Ashkenazi
Hi On Thu, Jun 5, 2008 at 3:14 PM, Charlier, Etienne [EMAIL PROTECTED] wrote: Hello, I'm busy right now trying to implement Option 3. based on jambi 4.4 preview (they now distribute platform specific jars containing the native code) - I wrote a shell script that - downloads the jambi jar

RE: Need advice about adding native dependencies

2008-06-05 Thread Charlier, Etienne
Hi, for qt 4.4 one native jar is +/- 17MB ... I think you'd better ask the jambi mailing list as the possibility to create reduced native jar according to the application needs is jambi specific and not maven cheers, Etienne PS: I'll try to make splitted jars when my other todos are solved

Re: temporary pom for building project and dependencies?

2008-06-05 Thread Kristian Rink
David; Am Thu, 5 Jun 2008 09:01:38 +0200 schrieb David Delbecq [EMAIL PROTECTED]: You can create a modules based pom that will build all your projects. http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Aggregation Thanks a bunch, this indeed is quite what I was

RE: Error deploying to a remote respository using scm

2008-06-05 Thread Krishnamurthi, Venkat
Hi, I get the same error when I execute ssh2 -V on my windows XP machine: C:\ssh2 -V 'ssh2' is not recognized as an internal or external command, operable program or batch file. Please help me resolve this. Thanks, Venkat -Original Message- From: Mick Knutson [mailto:[EMAIL

Re: Error deploying to a remote respository using scm

2008-06-05 Thread Mick Knutson
In additional to that, I am trying any way I can to deploy site docs: I keep getting this error: *[INFO] [site:deploy] The authenticity of host '208.96.48.200' can't be established. RSA key fingerprint is 15:6f:d1:60:05:21:dd:43:4b:4d:d6:9e:4f:3b:aa:e4. Are you sure you wan*t to continue

RE: Error deploying to a remote respository using scm

2008-06-05 Thread Krishnamurthi, Venkat
There was an issue with my server path in the last case (I included port no.). Now I removed the port number and gave the path from root. Now, I get the following error: [INFO] [deploy:deploy] [INFO] Retrieving previous build number from scp_inhouse_snapshot [WARNING] repository metadata for:

Re: How to execute a script in maven2 ?

2008-06-05 Thread Kristian Rink
Nicolas; Am Thu, 5 Jun 2008 07:20:04 -0700 (PDT) schrieb nicolas.duminil [EMAIL PROTECTED]: I need to execute a script (bat, cmd, sh, etc.) in maven and I don't find anything. I can execute a Java app but don't know how to launch a .bat file. Please help. I am doing things like that using

How to execute a script in maven2 ?

2008-06-05 Thread nicolas.duminil
Greetings, I need to execute a script (bat, cmd, sh, etc.) in maven and I don't find anything. I can execute a Java app but don't know how to launch a .bat file. Please help. Kind regards, Nicolas -- View this message in context:

RE: Error deploying to a remote respository using scm

2008-06-05 Thread Krishnamurthi, Venkat
This is the output of ssh2 -V: ssh2: SSH Tectia Server 4.4.8 on i686-pc-linux-gnu Build: 21 Crypto library version: SSH Cryptographic Library, version 1.2.6 FIPS certification mode: DISABLED Product: SSH Tectia Server (A) License type: commercial Thanks, Venkat -Original Message- From:

Re: How to execute a script in maven2 ?

2008-06-05 Thread Upul Godage
This shows how to execute a script file in a maven phase using Ant scripting. See the sample. http://maven.apache.org/guides/mini/guide-using-ant.html Upul On Thu, Jun 5, 2008 at 7:50 PM, nicolas.duminil [EMAIL PROTECTED] wrote: Greetings, I need to execute a script (bat, cmd, sh, etc.) in

download maven-antrun-plugin

2008-06-05 Thread Niranjan Deshpande
please give me the link from where I can download this plugin. -- Regards, Niranjan Deshpande Shut yourself from the world and create the reality you want

[m2] Error getting reports from the plugin 'org.apache.maven.plugins:maven-project-info-reports-plugin'

2008-06-05 Thread Mick Knutson
I have the following for my reports declaration: ... Then I noticed Checkstyle 2.2 got downloaded this morning on my build (mvn site actually), but then I got this failure: this realm = plexus.core urls[0] = file:/C:/apache-maven-2.0.8/bin/../lib/maven-2.0.8-uber.jar urls[1] =

Control pom Inheritance

2008-06-05 Thread martinf
Hi all, is it possible to control which elements a pom inherits from its parent pom? Like is there a way to inherit all elements form the dependencyManagement but inherit no element beyond parents pom mailinLists element? Well, and if its possible, how can it be done? Martin -- View this

Re: download maven-antrun-plugin

2008-06-05 Thread Tim Kettler
Hi, Niranjan Deshpande schrieb: please give me the link from where I can download this plugin. You don't need to download a plugin in maven 2 manually, just configure it in your POM and maven will take care of downloading it to your local repository during execution. On the plugin

Re: Control pom Inheritance

2008-06-05 Thread [EMAIL PROTECTED]
martinf schrieb: Hi all, is it possible to control which elements a pom inherits from its parent pom? Like is there a way to inherit all elements form the dependencyManagement but inherit no element beyond parents pom mailinLists element? No.

Calling ant tasks from maven pom

2008-06-05 Thread Niranjan Deshpande
I am trying to execute ant tasks from maven's pom as below. plugin artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution phasegenerate-sources/phase configuration tasks exec executable=AppWeb/src/main/scripts/generate.sh failonerror=true /exec /tasks

Re: [m2] Error getting reports from the plugin 'org.apache.maven.plugins:maven-project-info-reports-plugin'

2008-06-05 Thread Tim Kettler
Hi, Mick Knutson schrieb: I have the following for my reports declaration: ... Then I noticed Checkstyle 2.2 got downloaded this morning on my build (mvn site actually), but then I got this failure: [...] Could this be related to this [1] recent discussion on the dev list. I haven't

Re: download maven-antrun-plugin

2008-06-05 Thread Niranjan Deshpande
done :) On 6/5/08, Tim Kettler [EMAIL PROTECTED] wrote: Hi, Niranjan Deshpande schrieb: please give me the link from where I can download this plugin. You don't need to download a plugin in maven 2 manually, just configure it in your POM and maven will take care of downloading it to

Re: [m2] Error getting reports from the plugin 'org.apache.maven.plugins:maven-project-info-reports-plugin'

2008-06-05 Thread Mick Knutson
Yes, but I do not see a described resolution. On Thu, Jun 5, 2008 at 9:34 AM, Tim Kettler [EMAIL PROTECTED] wrote: Hi, Mick Knutson schrieb: I have the following for my reports declaration: ... Then I noticed Checkstyle 2.2 got downloaded this morning on my build (mvn site actually),

Re: Calling ant tasks from maven pom

2008-06-05 Thread Tim Kettler
Hi, (again :-) ) Niranjan Deshpande schrieb: I am trying to execute ant tasks from maven's pom as below. plugin artifactIdmaven-antrun-plugin/artifactId version1.1/version executions execution phasegenerate-sources/phase configuration tasks exec

Re: Error deploying to a remote respository using scm

2008-06-05 Thread Mick Knutson
So I get this again: *The authenticity of host '208.96.48.200' can't be established. RSA key fingerprint is 15:6f:d1:60:05:21:dd:43:4b:4d:d6:9e:4f:3b:aa:e4. Are you sure you want to continue connecting? (yes/no): y* And I do NOT see anything in my security logs: Jun 5 08:07:13 12825-42150

WEB-INF/classes/META-INF

2008-06-05 Thread Jerry Thome
I need to add a META-INF/services/org.apache.commons.logging.LogFactory to tell commons-logging to use log4j (a pretty basic thing I think). I thought I was suppose to add it to the main/resources/ directory. As many of you know, it copies everything from here to the WEB-INF/classes

Re: Control pom Inheritance

2008-06-05 Thread Geoffrey Wiseman
On Thu, Jun 5, 2008 at 12:15 PM, martinf [EMAIL PROTECTED] wrote: Hi all, is it possible to control which elements a pom inherits from its parent pom? Like is there a way to inherit all elements form the dependencyManagement but inherit no element beyond parents pom mailinLists element?

Re: WEB-INF/classes/META-INF

2008-06-05 Thread Brett Porter
This isn't a bug - resources is class path resources in the context of Java, which happens to be in WEB-INF/classes for a web app, and / for a JAR. You have two options: - add the files directly to src/main/webapp - use the war plugin's webResources configuration to add a new location (this is

Re: Control pom Inheritance

2008-06-05 Thread martinf
Not uncommon for people to solve this problem by putting together a 'parent' POM that contains only those inheritable bits, and subbing that for all actual projects. hm... but that only works if one is in control of all the participating poms. I'd like to use a given pom as parent pom. mf --

[m2] how can I set a jndi datasource inside embedded tomcat with cargo?

2008-06-05 Thread Mick Knutson
how can I set a jndi datasource inside embedded tomcat with cargo? -- --- Thank You… Mick Knutson BASE Logic, inc. Website: http://baselogic.com Blog: http://baselogic.com/blog BLiNC Magazine: http://blincmagazine.com Linked IN: http://linkedin.com/in/mickknutson DJ Mick: http://djmick.com

Re: WEB-INF/classes/META-INF

2008-06-05 Thread Jerry Thome
Thanks (and sorry for submitting this request to the wrong group earlier). If I wasn't clear, I do need the result to be: -- target |-- classes `-- AppServices |-- META-INF | `-- services | `-- org.apache.commons.logging.LogFactory `-- WEB-INF

Re: [m2] how can I set a jndi datasource inside embedded tomcat with cargo?

2008-06-05 Thread Geoffrey Wiseman
On Thu, Jun 5, 2008 at 2:37 PM, Mick Knutson [EMAIL PROTECTED] wrote: how can I set a jndi datasource inside embedded tomcat with cargo? There isn't really good documentation on this subject that I'm aware of. Here's an example, though:

Re: Calling ant tasks from maven pom

2008-06-05 Thread Niranjan Deshpande
Tim i indeed wht u suggested tasks ant antfile/ /tasks but the build xmls just dont seem to to reached.. On Thu, Jun 5, 2008 at 6:53 PM, Tim Kettler [EMAIL PROTECTED] wrote: Hi, (again :-) ) Niranjan Deshpande schrieb: I am trying to execute ant tasks from maven's pom as below.

Trouble with import scope

2008-06-05 Thread Timothy Reilly
I don't think I'm understanding the docs here regarding how to use import scope: http://maven.apache.org/guides/introduction/introduction-to-dependency-m echanism.html#Importing_Dependencies Here is what I have - must be incorrect I think... parent + testapp + testimports (not a module)

ARchetype

2008-06-05 Thread Jon Strayer
I'm having trouble getting the archetype plugin to update. I deleted all the versions in my personal repository. But when I run mvn archetype:generate it downloads version 1.0-aplha-4 instead of the latest version 2.0-alpha-3. Looking at the meta data at

Re: Trouble with import scope

2008-06-05 Thread Wayne Fay
I haven't used it yet myself, but from my reading of the documentation, I believe it really only brings in the dependencyManagement section of the imported pom. So you will still need to declare struts-core in the project you need to use it, but you can leave off the version (and scope). The real

Re: Trouble with import scope

2008-06-05 Thread simon
On Thu, 2008-06-05 at 15:41 -0400, Timothy Reilly wrote: I don't think I'm understanding the docs here regarding how to use import scope: http://maven.apache.org/guides/introduction/introduction-to-dependency-m echanism.html#Importing_Dependencies Here is what I have - must be incorrect I

Re: Trouble with import scope

2008-06-05 Thread simon
On Thu, 2008-06-05 at 15:32 -0500, Wayne Fay wrote: I haven't used it yet myself, but from my reading of the documentation, I believe it really only brings in the dependencyManagement section of the imported pom. So you will still need to declare struts-core in the project you need to use it,

RE: Trouble with import scope

2008-06-05 Thread Timothy Reilly
Wayne Fay wrote: The real use case for import scope IMO is where a company does not want to use a single shared corporate parent pom, but they do want to enforce versions on all projects. So you manage versions in the imported pom (one place), force all your projects to import it (can

RE: Trouble with import scope

2008-06-05 Thread Timothy Reilly
Hi Simon, I'm aware of the difference btw dependencies and dependencyManagement. When I first heard about the feature proposal I thought it was to inline dependencies into poms. My line of thinking was of course into the dependencies section. When I read that you put that scope only in the

Re: Trouble with import scope

2008-06-05 Thread Wayne Fay
So in our case we are trying to manage the Websphere runtime classpath as a single set of dependencies. The case for doing this is pretty strong and we've been using it to aggregate the container library into a single dependency in our projects for while. I was hoping the import scope would

Advice how to structure a project I want to move to maven...

2008-06-05 Thread Kent Närling
We have a project in SVN that is made of several projects, something like this: - core - core project - common - common libraries - pluginA - pluginB ... etc - doc - for documentation) - tools - some command line tools - dist - distribution project which packages all of the above projects

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Mick Knutson
dist should be src/assemble for assemblies. On Thu, Jun 5, 2008 at 2:41 PM, Kent Närling [EMAIL PROTECTED] wrote: We have a project in SVN that is made of several projects, something like this: - core - core project - common - common libraries - pluginA - pluginB ... etc - doc - for

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Kent Närling
Sorry, didn't get what you mean by that? You mean dist should not be a project on its own, or? 2008/6/5 Mick Knutson [EMAIL PROTECTED]: dist should be src/assemble for assemblies. On Thu, Jun 5, 2008 at 2:41 PM, Kent Närling [EMAIL PROTECTED] wrote: We have a project in SVN that is made

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Mick Knutson
dist is usually going to be an assembly, and you add assembly descriptors into src/assemble/*.xml You do not store the rpm's or bin's there. They do not end up in svn in other words. I have: root pom.xml |--common 1..* jar's |--core |--src |--assemble |--main/resources

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Kent Närling
2008/6/6 Mick Knutson [EMAIL PROTECTED]: dist is usually going to be an assembly, and you add assembly descriptors into src/assemble/*.xml You do not store the rpm's or bin's there. They do not end up in svn in other words. I have: root pom.xml |--common 1..* jar's |--core |--src

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Mick Knutson
I always use multi-module, but I always am working on J2EE apps. If you want common shared projects, then split this up, but you still might have multi-modules if you are creating j2ee apps. On Thu, Jun 5, 2008 at 3:22 PM, Kent Närling [EMAIL PROTECTED] wrote: 2008/6/6 Mick Knutson [EMAIL

Re: Advice how to structure a project I want to move to maven...

2008-06-05 Thread Kent Närling
Well, this is actually an J2EE project (EJB3 to be specific)... But my questions remain even for a J2EE project? 2008/6/6 Mick Knutson [EMAIL PROTECTED]: I always use multi-module, but I always am working on J2EE apps. If you want common shared projects, then split this up, but you still

Managing SCM branching of large, multiple-releasable-artifacts Maven projects: ideas?

2008-06-05 Thread Bryan Loofbourrow
I'm working with Maven on a large project == many, many Maven projects, and multiple, separately releasable artifacts. Managing this is pretty reasonable, but the part I haven't figured out how to manage efficiently has to do with branching in my source control manager. Let's take a typical

Re: Managing SCM branching of large, multiple-releasable-artifacts Maven projects: ideas?

2008-06-05 Thread Sebastian Johnck
we manage the versioning problem by using one version for all projects. for a maven release we let maven auto increment the version number. merging back into the trunk we use svn merge, but sometimes there are conflicts with poms. --- On Thu, 6/5/08, Bryan Loofbourrow [EMAIL PROTECTED] wrote:

Simple question - but totally frustrated - best way to define internal repo - but easily not use this repo when not at work?

2008-06-05 Thread Rick
I'm totally confused and could use some help... I have an internal company repo setup fine. Currently, following the artifcatory docs, I defined this repo in my mavenhome/conf/settings.xml file such as: profile idacme-company/id repositories repository

Re: Simple question - but totally frustrated - best way to define internal repo - but easily not use this repo when not at work?

2008-06-05 Thread Wayne Fay
The easiest would be to simply rename settings.xml to settings.x when you get home. This assumes that you don't have any special settings for your projects. But this would disable the artifactory repo. Or if you're on an operating system with symbolic links, you could adjust the link to

Re: Simple question - but totally frustrated - best way to define internal repo - but easily not use this repo when not at work?

2008-06-05 Thread Rick
On Thu, Jun 5, 2008 at 11:43 PM, Wayne Fay [EMAIL PROTECTED] wrote: Or if you're on an operating system with symbolic links, you could adjust the link to settings.xml when you change locations. Ok, thanks. I can do the above. -- Rick

Re: java.net.SocketException - need help in getting started

2008-06-05 Thread Gianni
Thank you! that was exactly the issue, all working now. -Gianni On 05/giu/08, at 07:29, Tim Kettler wrote: Hi, googling hints that it's a bug in the java sdk on freebsd. There is a similar bug report like yours for freebsd 6 posted for IDEA [1] which says that IPv6 support in the jdk is

Re: Simple question - but totally frustrated - best way to define internal repo - but easily not use this repo when not at work?

2008-06-05 Thread Rick
I'm still a bit confused though... can't I define my repository in a parent.pom ? Why isn't this the preferred approach? Would seem to make sense to me - users check out a parent project from cvs. Run mvn install, put the parent pom in their repo. All new projects use this parent pom definition