Re: Best practices for java version?

2008-03-28 Thread Stuart McCulloch
On 29/03/2008, Richard Chamberlain <[EMAIL PROTECTED]> wrote: > > If you using java 5 as your JAVA_HOME I would also recommend setting the > executable compiler to use. > > path.to.jdk\1.4.2\bin\javac.exe > > Whilst and go some way to making sure the language is > correct, they won't pick

Re: Best practices for java version?

2008-03-28 Thread Wendy Smoak
On Fri, Mar 28, 2008 at 3:50 PM, Graham Leggett <[EMAIL PROTECTED]> wrote: > Richard Chamberlain wrote: > > > If you using java 5 as your JAVA_HOME I would also recommend setting the > > executable compiler to use. > > > > path.to.jdk\1.4.2\bin\javac.exe > > The side effect of this is th

RE: Best practices for java version?

2008-03-28 Thread Richard Chamberlain
I agree it's not ideal, but I'm open to suggestions as to how to guarantee code from a particular project works in a java 1.4 environment? -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: 29 March 2008 00:25 To: Maven Users List Subject: Re: Best practices for java

Re: [m2] issue running selenium with Tomcat 5 with Cargo plugin.

2008-03-28 Thread Mick Knutson
Ok, I figured out that the context was being set to my 'artifactId-version/' and when I altered my URL, it worked. So how do I set the root context via Tomcat and Cargo? On Fri, Mar 28, 2008 at 7:53 AM, Mick Knutson <[EMAIL PROTECTED]> wrote: > Ok, I am trying to run Selenium tests on my web app

Re: Best practices for java version?

2008-03-28 Thread Wayne Fay
And in response to Martin, in the project I'm recently involved in, the paths are not hard-coded into the build script itself but rather in various build.properties files. It is still a total pain and a hack, IMO. You can't honestly tell me that you enjoy configuring properties files for every envi

Re: Best practices for java version?

2008-03-28 Thread Wayne Fay
On 3/28/08, Graham Leggett <[EMAIL PROTECTED]> wrote: > Hard coding paths is one of the exact things that was rife in ant builds > and that maven moves away from, and that makes code management > significantly less painful and more robust. I just got pulled into a project at my work place where th

RE: Best practices for java version?

2008-03-28 Thread Martin Gainty
Richard and Graham I've been using ANT since 02 placing all environmental (path/classpath) information into buildName.propertiesAnyone who is hardcoding paths in Ant is'nt using it to its full capability and is negating the original design intent please reference Use Property Files from Steve Lo

Re: Best practices for java version?

2008-03-28 Thread Graham Leggett
Richard Chamberlain wrote: It works internally at our company as we all have build tools (jdk etc) in a standard place. This makes it repeatable and guaranteed not to blow up on a 1.4 environment. There is no such thing as a "standard" place for build tools - a new contractor comes in, and s

Re: Best practices for java version?

2008-03-28 Thread david delbecq
Graham Leggett a écrit : david delbecq wrote: What are the best practice when deploying artifact about java version used for compiling? I read somewhere that the purpose of maven release process is to make the build "reproductible", but if that build does not include aimed compiler, we can't

RE: Best practices for java version?

2008-03-28 Thread Richard Chamberlain
It works internally at our company as we all have build tools (jdk etc) in a standard place. This makes it repeatable and guaranteed not to blow up on a 1.4 environment. I agree that this could certainly be a problem. Maybe there's a nicer solution with profiles etc? Regards, Richard -Orig

Re: Best practices for java version?

2008-03-28 Thread Graham Leggett
Richard Chamberlain wrote: If you using java 5 as your JAVA_HOME I would also recommend setting the executable compiler to use. path.to.jdk\1.4.2\bin\javac.exe The side effect of this is that you produce code that now only compiles on one person's machine, and that is *very* un-repea

RE: Best practices for java version?

2008-03-28 Thread Richard Chamberlain
If you using java 5 as your JAVA_HOME I would also recommend setting the executable compiler to use. path.to.jdk\1.4.2\bin\javac.exe Whilst and go some way to making sure the language is correct, they won't pick up the fact that java 1.4 doesn't have a certain version of a runtime libra

Fw: Query on using maven-assembly-plugin.

2008-03-28 Thread logachandru . x . rajamanickam
Hello, Please let me know your ideas on resolving this issue. Thanks & Regards, Logu Rajamanickam - Forwarded by Logachandru X Rajamanickam/JPMCHASE on 03/28/2008 04:02 PM - [EMAIL PROTECTED] 03/28/2008 11:26 AM Please respond to "Maven Users List" To "Maven Users List" cc Subj

basepath . rescanned for compiler:testCompile

2008-03-28 Thread Steve Suehs
We are running into an issue with one of our child projects. The compiler:testCompile builds the tests we expect, but wait! then it does more: it starts looking in "." for more tests to compile, revisiting files it has already built via a different path. The compile fails with both a duplicate

Re: file system repo not work

2008-03-28 Thread Alessandro Ferrucci
I am using m2eclipse. thanks alessandro ferrucci Brian E. Fox wrote: Which eclipse plugin are you using? Maven-eclipse-plugin, m2eclipse or q4e? -Original Message- From: Alessandro Ferrucci [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 11:29 AM To: users@maven.apache.org Su

RE: file system repo not work

2008-03-28 Thread Brian E. Fox
Which eclipse plugin are you using? Maven-eclipse-plugin, m2eclipse or q4e? -Original Message- From: Alessandro Ferrucci [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 11:29 AM To: users@maven.apache.org Subject: file system repo not work Hello, I have the relevant pom snippet b

Re: Multi-module archetypes

2008-03-28 Thread Raphaël Piéroni
Hi John, This feature is provided by the 2.0-alpha-3 version of the Archetype plugin. This version is not yet released. But you can try the last snapshot by adding a repository to apache snapshot [1]. 1. The goal to call from the project directory (or parent in case of a multi module) is 'mvn arc

Re: Best practices for java version?

2008-03-28 Thread Graham Leggett
david delbecq wrote: What are the best practice when deploying artifact about java version used for compiling? I read somewhere that the purpose of maven release process is to make the build "reproductible", but if that build does not include aimed compiler, we can't assure a "rebuild" will be

Re: "Cannot execute mojo: eclipse."

2008-03-28 Thread Wayne Fay
On 3/28/08, Attila Szegedi <[EMAIL PROTECTED]> wrote: > > Again, the conclusion I reached based on the observed symptoms was > that this is a Maven issue. Actually, it *is* a Maven issue; why would > Maven2 be allowed to break in such an ugly manner when facing a Maven1- > compliant project? Some s

Re: Best practices for java version?

2008-03-28 Thread Wim Deblauwe
You can use the Maven Enforcer plugin ( http://maven.apache.org/plugins/maven-enforcer-plugin/ ) to force a specifc JDK for the modules you are building yourself. But I don't think there is anything for your dependencies that you can specify. regards, Wim 2008/3/28, david delbecq <[EMAIL PROTECT

Best practices for java version?

2008-03-28 Thread david delbecq
Hello, using maven2, i notice that, while there are options to specify which java version to use when compiling, there is little information on released jars in repo about which version there are compiled for. It's a problem in an environment where the java version has limitation. For example

Re: "Cannot execute mojo: eclipse."

2008-03-28 Thread Attila Szegedi
On 2008.03.28., at 15:35, Wayne Fay wrote: In the future, you might just go right to the source and ask the originating team responsible for the code why it doesn't compile. So in this case, ask Atlassian directly. Not being able to run "mvn eclipse:eclipse" (and several other fairly straigh

resource plugin - does it require a profile?

2008-03-28 Thread Dooing
Hi, I found out that the resource plugin is capable of simply copying files to a directory. I would like to use this to update files in my tomcat webapps project folder (when necessary). However, I am already using the plugin to copy resources to the war file that is generated in the regular bu

Re: apt-get repository

2008-03-28 Thread Jason van Zyl
Yes, both of these IDE integrations support the Nexus indexer which allows you access to all dependency information in the central repository. On 28-Mar-08, at 3:15 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: Maybe you can use Eclipse (m2eclipse [1]) or Netbeans(mevenide [2]) with

Re: Mvn 2 plugin to copy files?

2008-03-28 Thread Dooing
>I use the antrun plugin for copying files around and such. You just put in >the ant equivalent to your xml, which shouldn't be much different from what >you have. Could you give an example of how this is done? I don't know much about antrun and how to use it... Thanks in advance, Stefanie --

Error deploying artifact (Is a directory)

2008-03-28 Thread David Delbecq
Hello, i try to deploy a .war to our release repository, but mvn deploy fails with this message: [INFO] [install:install] [INFO] No primary artifact to install, installing attached artifacts instead. [INFO] Installing /home/delbd/dev/workspaces/intranet/RMI_intranet/target/intranet-1.0-SNAP

Re: Mvn 2 plugin to copy files?

2008-03-28 Thread Lee Meador
I use the antrun plugin for copying files around and such. You just put in the ant equivalent to your xml, which shouldn't be much different from what you have. -- Lee On Fri, Mar 28, 2008 at 10:58 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > While tomcat is running, I would like to move some files

Query on using maven-assembly-plugin.

2008-03-28 Thread logachandru . x . rajamanickam
Hi, I'm using maven-assembly-plugin in my POM and the assembly descriptor as below to generate a JAR package. The resultant artifact package is in the form of artifact-1.0-DEV.jar. But I require the package in the form of artifact-DEV-1.0.jar. What I need here is the assemblyId should get appe

All repos disappear after attempt at "add remote repository"

2008-03-28 Thread David Delbecq
Using archiva 1.0.1, when i try to add a remote repository, after i click the "add", the interface comme back to my form, with all i filled in, without error message, but my list of repositories have now disappeared. I currently have have 4 local repos, and 4 remote repos, with links between re

Mvn 2 plugin to copy files?

2008-03-28 Thread Dooing
Hi, While tomcat is running, I would like to move some files from my source folder to my tomcat/webapps/myproject folder - in case I altered these files - by calling some plugin and or goal. Using Maven 1, we had a custom goal for this:

maven plugin question

2008-03-28 Thread Guillaume Boucherie
Hi all, I want to make a maven2 plugin for selenium-grid. This selenium tools try to read a file named "grid_configuration.yml" at the root of the classpath with ClassLoader.getResources(). In my plugin I create a "grid_configuration.yml" file but how can I had it to the classpath ? Thanks Guilla

maven-archiver

2008-03-28 Thread Urooj Khan
hi.. i get two directories called 'maven-archiver' and 'archive-tmp' in my target directory i dont know how and why these directories are being created.. is there a way to stop this? this is my pom.xml 4.0.0 elections elections Election v3_0_0_4 Election http:///elections/

[m2] How do I start tomcat and deploy my war via cargo manually?

2008-03-28 Thread Mick Knutson
I have the following plugin that starts and stops for my integration tests, but I want to manually start Tomcat, then deploy my war * org.codehaus.cargo cargo-maven2-plugin 0.3.1

file system repo not work

2008-03-28 Thread Alessandro Ferrucci
Hello, I have the relevant pom snippet below. The problem is really with the eclipse plugin. The plugin reports not being able to download the 2 dependencies entity-client-1.0 and newsml-2.0.0.jar which are in my sandbox in the following location: /home/ferucci/europa_workspace/photos/ Th

Multi-module archetypes

2008-03-28 Thread Prystash,John
I'm stepping into my first foray into creating archeyptes. In general, is there support for creating an archetype for a multi-module project? Or is better to build a project with multiple archetypes? My first thought would be I'd have problem injecting the parent project name into the directory

[m2] issue running selenium with Tomcat 5 with Cargo plugin.

2008-03-28 Thread Mick Knutson
Ok, I am trying to run Selenium tests on my web app. Now when I use this jetty plugin and start my webapp via jetty, I can see my app running fine and my index.html (jsf) page displays fine: * org.mortbay.jetty maven-jetty-plugin 6.1.6

RE: How create 2 *.jar

2008-03-28 Thread Chris Helck
I'd like to piggy back on to this discussion. All our production builds are done in a controlled environment. Different projects use make, ant, maven1, maven2, and custom scripts. We would like, when a build is done, for the final artifacts to end up in a dumb file location on the build box. Final

Re: "Cannot execute mojo: eclipse."

2008-03-28 Thread Wayne Fay
In the future, you might just go right to the source and ask the originating team responsible for the code why it doesn't compile. So in this case, ask Atlassian directly. (IMO the Maven users list cannot possibly hope to support every single developer who stumbles across an open-source project th

Re: "Cannot execute mojo: eclipse."

2008-03-28 Thread Attila Szegedi
I can't exactly se how can that help me with my customization of the plugin's code :-) Attila. On 2008.03.28., at 15:27, <[EMAIL PROTECTED]> wrote: Otherwise, you could try the distribution of the plugin ;) http://svn.atlassian.com/svn/public/contrib/jira/jira-calendar-plugin/distributions/

Re: Third Party Jar

2008-03-28 Thread Wayne Fay
There is already an XML plugin in Codehaus which has XSLT functionality. Why don't you just take a look at it before moving too far down this path of possibly re-implementing an existing solution? http://mojo.codehaus.org/xml-maven-plugin/ Wayne On 3/28/08, Cosmin Marginean <[EMAIL PROTECTED]> w

RE: "Cannot execute mojo: eclipse."

2008-03-28 Thread nicklist
Otherwise, you could try the distribution of the plugin ;) http://svn.atlassian.com/svn/public/contrib/jira/jira-calendar-plugin/distributions/ Hth, Nick S. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Fri 3/28/2008 15:23 To: Maven Users List Subject: RE:

RE: "Cannot execute mojo: eclipse."

2008-03-28 Thread nicklist
It seems that version of the jira-plugin still uses maven 1 (You've got a project.xml file, not a pom.xml file), so maven 2 will not work on that plugin. The trunk of the plugin is using m2 instead of m1, so you could try that one (I don't know how stable the trunk is) or you could try using mav

Re: How create 2 *.jar

2008-03-28 Thread Wayne Fay
Tell us more about the remote directory. Is this a "Maven repository" or is it simply a dumb file location? How do the other people get the file, are they running Maven also or something else? The more information you provide, the better the response will be. Generally, I would suggest that you se

"Cannot execute mojo: eclipse."

2008-03-28 Thread Attila Szegedi
(Apologies if this gets received twice; I sent the first copy before I got the registration confirmation back from the mailing list manager) Hi folks, I'm trying to use Maven to build a project that uses it (fwiw, it's the calendar plugin for JIRA:

maven2 assembly plug-in

2008-03-28 Thread Urooj Khan
Sorry if this is a repost... Not sure if the first one got out... -- Forwarded message -- From: Urooj Khan <[EMAIL PROTECTED]> Date: Thu, 27 Mar 2008 20:04:24 -0400 Subject: maven2 assembly plug-in To: users@maven.apache.org i'm using the assembly plug-in to create an assembly i

"Cannot execute mojo: eclipse."

2008-03-28 Thread Attila Szegedi
Hi folks, I'm trying to use Maven to build a project that uses it (fwiw, it's the calendar plugin for JIRA: ). I just can't seem to be able to get anything to run, let me elaborate further: I downloaded and i

RE: Maven Assembly Plugin

2008-03-28 Thread Brian E. Fox
You need to specify a base directory to search in the fileset element. Take a look at the standard assembly descriptors shown on the plugin site. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 7:52 AM To: users@maven.apache.org Subject: M

RE: RE : [deploy-plugin] Abort deploy when a target is present

2008-03-28 Thread Brian E. Fox
I'd have to check on this. I know in 2.1 it's on by default and there is no way to force it. Perhaps Jason put it in the wagon manager or something and not the plugin. -Original Message- From: MATHUS Baptiste [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2008 2:53 AM To: Maven User

Re: How to delete JSPs after precompilation?

2008-03-28 Thread Olivier Jacob
Hello again :) Now I've the configuration at hand, here it is : org.codehaus.mojo.jspc jspc-maven-plugin compile

Re: RE: Maven Assembly Plugin

2008-03-28 Thread Dooing
I guess I should mention I am not using the default maven project structure - for example, the static source code is under src/war - maybe I will have to adjust the maven assembly default paths? Thanks, Stefanie -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für

Re: RE: Maven Assembly Plugin

2008-03-28 Thread Dooing
> Inside of my fileSet element I have included a: > > ${basedir} > > Element... > > Does this help? nope, unfortunately, it didnt work. This, as I understand it, simple says "take all files from basedir". Thanks, Stefanie -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit

Re: Maven Jetty Plugin and filtered resources

2008-03-28 Thread Bruno Aranda
I have the same problem as explained below. Does someone know of a solution or alternative? Thanks, Bruno On 26/10/2006, Martin Gilday <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to use the Jetty plugin for Maven but have my web.xml > filtered with properties. This is mainly as I have a "s

Re: How create 2 *.jar

2008-03-28 Thread author
My project (my *.jar file) used by others team-members. When i use 'mvn package' goal, i recive 1 *.jar file in my project folder in folder target. Then i copy my *.jar file to remote directory, which shared for all others team member. How can i do it automatically (for example using pom.xml or ec

RE: Maven Assembly Plugin

2008-03-28 Thread Matthew Tordoff
Inside of my fileSet element I have included a: ${basedir} Element... Does this help? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 March 2008 11:52 To: users@maven.apache.org Subject: Maven Assembly Plugin Hi, I am trying to create a zip file

RE: switch by profile? How to switch between (Archiva) environments?

2008-03-28 Thread nicklist
What I've done on my laptop: I created multiple settings.xml (settings.xml.home, settings.xml.work, etc) and with a script I make a symlink to the right settings.xml.x to settings.xml. Just run the command once and I am set for that environment. Hth, Nick S. -Original Message- From:

Maven Assembly Plugin

2008-03-28 Thread Dooing
Hi, I am trying to create a zip file containing all static web content, to be put on a separate Apache server. The Maven Assembly plugin seems to be meant to be used for such a task - http://maven.apache.org/plugins/maven-assembly-plugin/ According to the instructions given, I added: ... ma

Re: switch by profile? How to switch between (Archiva) environments?

2008-03-28 Thread Maria Odea Ching
Hi Torsten, The cannot be configured with profiles. What you could do instead is set each repository in different profiles using the section, and just activate which profile you want to use for a specific build. This might help too: http://maven.apache.org/archiva/docs/1.0.1/userguide/using-rep

RE: apt-get repository

2008-03-28 Thread nicklist
Maybe you can use Eclipse (m2eclipse [1]) or Netbeans(mevenide [2]) with their maven plugin. Those plugins index the central repository and allow you to search and add dependencies. [1] http://m2eclipse.codehaus.org [2] http://mevenide.codehaus.org Hth, Nick S. -Original Message- Fro

RE: apt-get repository

2008-03-28 Thread MATHUS Baptiste
I you use eclipse, give a try to m2eclipse, there's an "add dependency" that has a autocomplete feature. Cheers. > -Message d'origine- > De : neo anderson [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 28 mars 2008 10:58 > À : users@maven.apache.org > Objet : apt-get repository > > > I

Re: Deploy artifact to archiva for the first time - error

2008-03-28 Thread Paul G
Brett, I have tried adding a user with repository observer and manager roles and have also tried giving the guest user the repository manager role as well. But still it does not work. I have even tried putting a wrong password/wrong user name in my settings.xml to see what sort of error I get bac

apt-get repository

2008-03-28 Thread neo anderson
I have one question. Does any maven command or plugin support serach and add dependency automatically (a bit like Debian apt-get)? For instance, I use archetype to create an ejb project. Then I want to use jboss as my ejb container. So I need to add a lot of dependencies. Is there any command or p

switch by profile? How to switch between (Archiva) environments?

2008-03-28 Thread torsten . reinhard
Hi, actually we have a file-based Repository, so for that I have the following section in my settings.xml: GDCAMS-2.5-Main - mirror of central repo1.maven.org/maven2 GD proxy for central repository file:/V:/3L_Solutions/08. Entwicklungsprojekte/PDV CMS/40_Builds/Reposit

Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.

2008-03-28 Thread Sowmya . R
Welcome :) I am also don't know which build is correct. I am using build 2.0.7 to build jar and war. I don't have idea about web service. On Fri, Mar 28, 2008 at 12:46 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Thank you so much for your help. I was working until very late last night

Re: Third Party Jar

2008-03-28 Thread Cosmin Marginean
It seems that this goes deeper. What I actually need to do is create a Maven plugin that performs an XSL transformation using Saxon 9. I unpacked the Saxon 9 jar and added the classes to my plugin jar to make sure the transformer is loaded. However, it seems that the transformer won't get loaded, e

Re: jboss data-source not included in jboss-app.xml

2008-03-28 Thread elaroche
thanks mate, later is better than never :handshake: Ernesto Salgado wrote: > > This response arrives a bit late :wistle:, i know ... but here is the > solution. > > The problem is that the latest release of maven-ear-plugin at the moment > is 2.3.1, and this version don't implement this feature

Re: How to checkout the Project from cvs in Maven2.0.7 without using eclipse.

2008-03-28 Thread [EMAIL PROTECTED]
Thank you so much for your help. I was working until very late last night and I was executing the command that you sent me at the wrong directory level! - so, now I have got the maven build checking the project out. I do have a question now, whats the correct maven model to build and ear that

Third Party Jar

2008-03-28 Thread Cosmin Marginean
Hello guys, Sorry to bother you with such issues, but I've googling my brains out with this without any relevant results. I have a question regarding bundling a 3rd party jar in a Maven Plugin. I am a bit new to Maven and Maven plugins. I tried bundling it in the plugin jar and adding it to the Cl