Re: maven to build thin war

2010-11-22 Thread Antonio Petrelli
2010/11/22 Kamran Yadav kamranya...@gmail.com:                                       plugin artifactIdmaven-compiler-plugin/artifactId version2.0/version It seems a bit outdated, the latest version is 2.3.2.   - The war file includes all the classes also but I don't want. I   tried

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Blanca Hernández
Hi!, You are right, I tought I had attached one image. Here it goes. Thank you El 21/11/10 22:39, Ron Wheeler escribió: You do not say what your problem is. No error messages? No tests? %JAVA_HOME%\bin is missing from your path but since you do not show any errors, it is hard to tell what

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Antonio Petrelli
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: Hi!, You are right, I tought I had attached one image. Here it goes. Apache Mailing lists do not support attachments. Antonio - To unsubscribe, e-mail:

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Blanca Hernández
Ok, sorry I didn't know... The error I get is this one: ERROR:M2_HOME is set to an invalid directory. M2_HOME = C:\Program Files\apache-maven-2.2.1 Please set the M2_HOME variable in your enviroment to match the location of the Maven installation I will paste again my enviroment variables to

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Antonio Petrelli
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: ERROR:M2_HOME is set to an invalid directory. M2_HOME = C:\Program Files\apache-maven-2.2.1 Just a shot in the dark: it may be the space in the path, can you try moving it in a different directory without spaces in the name? Notice that, if

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Blanca Hernández
El 22/11/10 09:57, Antonio Petrelli escribió: 2010/11/22 Blanca Hernándezblancahdezni...@gmail.com: ERROR:M2_HOME is set to an invalid directory. M2_HOME = C:\Program Files\apache-maven-2.2.1 Just a shot in the dark: it may be the space in the path, can you try moving it in a different

Re: Fwd: Problem M2_HOME variabla

2010-11-22 Thread Antonio Petrelli
2010/11/22 Blanca Hernández blancahdezni...@gmail.com: With the same error, just changing the path. Somebody told me the could be maybe Windows7 incompatibilities, do you think so?? No, however to be completely sure I have to check it at home this evening (CET) where I have a Win7 machine.

how to add vendor (SAP) specific Manifest to war ?

2010-11-22 Thread torsten . reinhard
Hi, for a *:war running on SAP Netweaver, there´s a file needed called SAP_MANIFEST.MF, parallel to MANIFEST.MF: myproject-1.0-SNAPSHOT.war |-- META-INF | |-- MANIFEST.MF |-- SAP_MANIFEST.MF I thought I could simply configure this file somewhere at the archive configuration, but

Re: Maven in 5 minutes doesn't work

2010-11-22 Thread wasi_shez
Please Download this Book and Enjoy you Build with Maven http://maven.apache.org/apache-maven.pdf Regards Waseem Bokhari CM Analyst 00923214294926 wasi_s...@hotmail.com - Waseem Bokhari CM Analyst wasi_s...@hotmail.com 00923214294926 -- View this message in context:

Re: maven to build thin war

2010-11-22 Thread Kamran Yadav
I am using 2.3.2 now but no improvement. I understand I can create a separate project for the classes only but that is not in my control. Anyway is there anyway to produce the compiled class outside of target/classes folder as in say C:\etc.etc. On Mon, Nov 22, 2010 at 2:07 PM, Antonio Petrelli

Re: maven to build thin war

2010-11-22 Thread Antonio Petrelli
2010/11/22 Kamran Yadav kamranya...@gmail.com: I am using 2.3.2 now but no improvement. I understand I can create a separate project for the classes only but that is not in my control. Anyway is there anyway to produce the compiled class outside of target/classes folder as in say

Re: maven to build thin war

2010-11-22 Thread Jörg Schaible
Hi, Kamran Yadav wrote: I am using 2.3.2 now but no improvement. I understand I can create a separate project for the classes only but that is not in my control. Anyway is there anyway to produce the compiled class outside of target/classes folder as in say C:\etc.etc. Well, please

Re: maven to build thin war

2010-11-22 Thread Ron Wheeler
A single project with 1500 files should be restructured into about 50 functionally independent projects that can be built, tested and deployed individually. All but one will produce JAR files. Use aggregation projects to group the small JARs into larger JARs that can be deployed and used as

problem with transitive dependencies

2010-11-22 Thread banka.ravi
I have following dependencies webService_war : here is all webservice code | |--webServiceClient_jar : this is a dummy project. It takes the webService.war and generates | proxies then builds a jar out of them. |--ClientApps_jar : uses

Re: how to add vendor (SAP) specific Manifest to war ?

2010-11-22 Thread Jesse Farinacci
Hi Torsten, On Mon, Nov 22, 2010 at 4:26 AM, torsten.reinh...@gi-de.com wrote: -- src     `-- main         |-- webResources         |   `-- META-INF         |       `-- SAP_MANIFEST.MF plugin        groupIdorg.apache.maven.plugins/groupId        artifactIdmaven-war-plugin/artifactId  

Re: maven to build thin war

2010-11-22 Thread Ron Wheeler
If you can not reorganize your project, you should probably stick with Ant. Maven is a great tool but you have to use it in the way it was designed to be use. It relies a lot on the fact that your projects follow a set of conventions and if they do not, you will spend a lot of time fighting

Re: problem with transitive dependencies

2010-11-22 Thread Ron Wheeler
In Project properties under Java Build Path do you see the Maven Dependencies entry in the libraries? Did you tell Eclipse that you wanted to use Maven Dependencies (Right click on the Project header = Maven=Use Maven Dependencies (or something like that). Do you have the Maven integration

[m3] extending an existing Mojo from another plug-in

2010-11-22 Thread Lars Fischer
Hello, I would like to create a new maven plug-in to extend another plug-in (P_O) to solve some very special requirements. I defined a dependency to P_O and created a NewMojo by extending an existing BaseMojo from P_O. But parameters defined in the BaseMojo are not injected. They are always

Multiple packages with different configuration files

2010-11-22 Thread ilya.mayzel
Hello, I am new to this list and may just missed this topic discussion. I have a web application that I need to compile and package into war/ear/tar. This app need to be packaged with different configuration files (server names/IP addresses) for Dev/QA/Prod environments. However I don't want

Re: Multiple packages with different configuration files

2010-11-22 Thread Antonio Petrelli
2010/11/22 ilya.may...@ubs.com: This app need to be packaged with different configuration files (server names/IP addresses) for Dev/QA/Prod environments. This kind of info are better put in the server. For example, for JBoss, you can create a .properties file and put it inside:

Re: Multiple packages with different configuration files

2010-11-22 Thread Ron Wheeler
JNDI will do the job on Tomcat. Ron On 22/11/2010 1:47 PM, Antonio Petrelli wrote: 2010/11/22ilya.may...@ubs.com: This app need to be packaged with different configuration files (server names/IP addresses) for Dev/QA/Prod environments. This kind of info are better put in the server. For

RE: Multiple packages with different configuration files

2010-11-22 Thread Haszlakiewicz, Eric
Well those are some rather useless answers. JNDI will only do the job if you configure it that way. You need to get that configuration *into* tomcat somehow in the first place, regardless of whether you use JNDI or a properties file. To suggest some options for the original poster: There

[ANN] Antlr Maven Plugin 2.2 Released

2010-11-22 Thread Paul Gier
Hi, The Mojo team is pleased to announce the release of the Antlr Maven Plugin version 2.2. The Antlr Plugin uses the parser generator Antlr v2 to generate source code based on Antlr grammar files. http://mojo.codehaus.org/antlr-maven-plugin/ To get this update, simply specify the version in

Unable to commit files to SVN after new branch has been created with the maven-release plugin

2010-11-22 Thread edgarosy
Question for all maven gurus. Hope you can help me.. I've been using a maven-release plugin for over a year and it has always work perfectly when creating new branch from source (trunk). Ever since our SVN amdin upgraded the SVN server to use version 1.6 instead of 1.4 I have not been able to

Re: Unable to commit files to SVN after new branch has been created with the maven-release plugin

2010-11-22 Thread Wayne Fay
svn: '/cygdrive/d/build/buildScripts/mvnScripts/branching/D:/build/buildScripts/mvnScripts/branching' is not a working copy svn: '/cygdrive/d/build/buildScripts/mvnScripts/branching/D:/build/buildScripts/mvnScripts/branching' does not exist Probably your problem is related to these lines...

Re: Unable to commit files to SVN after new branch has been created with the maven-release plugin

2010-11-22 Thread Kalle Korhonen
Use regular command prompt, not cygwin when making a release. (If you find a better fix, let me know.) Kalle On Mon, Nov 22, 2010 at 1:00 PM, edgarosy edgar.l...@gmail.com wrote: Question for all maven gurus. Hope you can help me.. I've been using a maven-release plugin for over a year and

Re: Multiple packages with different configuration files

2010-11-22 Thread Ron Wheeler
On 22/11/2010 3:38 PM, Haszlakiewicz, Eric wrote: Well those are some rather useless answers. JNDI will only do the job if you configure it that way. You need to get that configuration *into* tomcat somehow in the first place, regardless of whether you use JNDI or a properties file. I was

Re: Unable to commit files to SVN after new branch has been created with the maven-release plugin

2010-11-22 Thread Jörg Schaible
edgarosy wrote: Question for all maven gurus. Hope you can help me.. I've been using a maven-release plugin for over a year and it has always work perfectly when creating new branch from source (trunk). Ever since our SVN amdin upgraded the SVN server to use version 1.6 instead of 1.4 I

RE: Multiple packages with different configuration files

2010-11-22 Thread ilya.mayzel
Eric, Let me elaborate on the issue. I cannot use profiles as it will create only one distribution for me. I need to have the same compiled cod bundled with different config files for DEV/QA/PROD. Is there are any easy way to create 3 TAR files from one jar or war and include different sets of

Re: Multiple packages with different configuration files

2010-11-22 Thread Brian Smith
I believe you can specify multiple executions. See: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Plugins I think you could use the EAR plugin for example with three separate executions, each with a configuration that excludes different files. Hope this helps.

RE: Multiple packages with different configuration files

2010-11-22 Thread Yanko, Curtis
The Assembly plugin can have multiple assemblies defined. We produce one distribution with ALL configs in it though. Curt Yanko | Continuous Integration Services | UnitedHealth Group IT Making IT Happen, one build at a time, 600 times a day -Original

Re: maven to build thin war

2010-11-22 Thread Kamran Yadav
Thanks everybody The project is legacy so cannot be changed easily. But surely whenever a window of change arises gradually breaking into smaller modules will help. On Mon, Nov 22, 2010 at 7:31 PM, Ron Wheeler rwhee...@artifact-software.com wrote: If you can not reorganize your project, you

Re: Multiple packages with different configuration files

2010-11-22 Thread Barrie Treloar
On Tue, Nov 23, 2010 at 9:49 AM, ilya.may...@ubs.com wrote: Eric, Let me elaborate on the issue. I cannot use profiles as it will create only one distribution for me. I need to have the same compiled cod bundled with different config files for DEV/QA/PROD. Is there are any easy way to

Re: maven to build thin war

2010-11-22 Thread Ron Wheeler
Sticking with Ant is not a bad thing but making these changes will help in the long run. Ron On 22/11/2010 9:50 PM, Kamran Yadav wrote: Thanks everybody The project is legacy so cannot be changed easily. But surely whenever a window of change arises gradually breaking into smaller modules

Re: problem with transitive dependencies

2010-11-22 Thread banka.ravi
I have set all those. but when I expand the maven dependencies. I do not see the webServiceClient.jar in it. any more suggestions? -- View this message in context: http://maven.40175.n5.nabble.com/problem-with-transitive-dependencies-tp3275330p3276360.html Sent from the Maven - Users mailing