how can we configure a jar project?
hello all, can somebody tell me how can we just configure projets using Maven2?? Like while doing development of a jar module i want all jars should be referred from my local repository. So that compile time errors will be avoided.. In maven1, we do have a goal like configure . Once we run it for a jar module all dependency jars are refereed from local referository.. where as for a war project, jars will be stacked inside lib folder to help during runtime. Could u plz let me know, is there any similiar kind of options in Maven2. Thanks a lot in advance.. Kiran Kodlady. -- View this message in context: http://www.nabble.com/how-can-we-configure-a-jar-project--tf4135832s177.html#a11762562 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven: Creating a JAR in a WAR in an EAR
Hey Supriya, u need to write 4 pom.xmls for this. one @ root level and rest 3 in each of the module u mentioned. for ejb projects u need to generate RMIC code as well.. for that u shud make some significat changes to pom.xml of ejb module. for info on this u can refer this: http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating [let me know if u need any help on this.. as i have successfully generated RMIC] Regarding servlet files[War project] , u need to mention packaging as war in pom.xml. and after that in dependency list mention ejb project along with group id. You can use this plugin @ the end of pom.xml. [you can also make changes related to region specific build over here] plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webXmlwebapp/WEB-INF/web.xml/webXml /configuration /plugin /plugins consider helper classes as a jar module and build this module ahead of war module. Let me know if there are anything i can help u out.. - kiran kodlady Vaidya, Supriya A (US - Chicago) wrote: Hi: I have a single project with multiple packages: 1. Package A - EJB files 2. Package B - Servlet files 3. Package C - Helper classes The objective is to create a JAR of the EJB files, and then a WAR of the servlet files that also includes the JAR (but not the .class files directly) and then package this whole WAR in the EAR. I know we can do this in Ant, but what is the best way of accomplishing this goal in Maven? Should I have created different projects? Or do I have to use filters? Or maybe the ant plugin? Suggestions would really help! This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- View this message in context: http://www.nabble.com/Maven%3A-Creating-a-JAR-in-a-WAR-in-an-EAR-tf4137278s177.html#a11776168 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any tag for customized path ejb-jar.xml?
Dennis.. thanks for replying back.. i am using ejb plugin.. and when i keep ejb-jar.xml in other than src/main/resources/META-INF path it fails to build. I want to know is there any specific tag for ejb-jar.xml, so that i can keep wherever i can.. Hope u got my query?? looking forward to get ur reply, Kiran Kodlady dennisl-2 wrote: Kiran Kodlady wrote: Hello, can anyone tell me - is there any tag for customized path for ejb-jar.xml?? Default value is - src/main/resources/META-INF.. Thanks in advance, Kiran Kodlady What are you trying to do? Which plugin do you need to configure? -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/any-tag-for-customized-path-ejb-jar.xml--tf4127679s177.html#a11742704 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to configure projects using maven2
hello all, can somebody tell me how can we just configure projets using Maven2?? Like while doing development of a jar module i want all jars should be referred from my local repository. So that compile time errors will be avoided.. In maven1, we do have a goal like configure . Once we run it for a jar module all dependency jars are refereed from local referository.. where as for a war project, jars will be stacked inside lib folder to help during runtime. Could u plz let me know, is there any similiar kind of options in Maven2. Thanks a lot in advance.. Kiran Kodlady. -- View this message in context: http://www.nabble.com/how-to-configure-projects-using-maven2-tf4131031s177.html#a11748210 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven: Unable to create a WAR package due to web.xml
hey.. u can also this also .. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webXmlrelative path for web.xml starting from root of war module/webXml /configuration /plugin -- Kiran Kodlady Vaidya, Supriya A (US - Chicago) wrote: Thanks Patrick! I included the following in my pom.xml, and now I can work with the 'web' directory - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.0/version configuration warSourceDirectorysrc\main\web/warSourceDirectory /configuration /plugin Thanks for your help! -Original Message- From: Patrick Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 3:40 PM To: Maven Users List Subject: Re: Maven: Unable to create a WAR package due to web.xml See the default for the warSourceDirectory option in maven-war-plugin: http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#webappDir ectory 'webapp' is the default. Patrick On 7/23/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote: I fixed this by changing my 'web' directory to 'webapp' - just the name. Why is this necessary though? Or did I miss something?!?! From: Vaidya, Supriya A (US - Chicago) Sent: Monday, July 23, 2007 3:16 PM To: users@maven.apache.org Subject: Maven: Unable to create a WAR package due to web.xml Hi: This is very strange... I have the following (legacy!) project structure: src | | main | | config spring java com my package web | | WEB-INF web.xml When packaging this structure to a WAR, the mvn package commands creates the following: target | | classes com my package myjarfile-1.0 META-INF WEB-INF classes com my package lib The problem is, that the web.xml is not being copied over to myjarfile-1.0/WEB-INF. WHich means that the mvn package command fails. What am I doing wrong? This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven%3A-Unable-to-create-a-WAR-package-due-to-web.xml-tf4132265s177.html#a11756827 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
any tag for customized path ejb-jar.xml?
Hello, can anyone tell me - is there any tag for customized path for ejb-jar.xml?? Default value is - src/main/resources/META-INF.. Thanks in advance, Kiran Kodlady -- View this message in context: http://www.nabble.com/any-tag-for-customized-path-ejb-jar.xml--tf4127679s177.html#a11738294 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to run both Maven1 Maven2 in a single machine..
Hey.. can we run both MAven1 maven2 in a single machine?? If yes, could u plz tell me how can we set MAVEN_HOME for both versions.. ANy suggestion is highly appreciated... -Kiran Kodlady -- View this message in context: http://www.nabble.com/how-to-run-both-Maven1---Maven2-in-a-single-machine..-tf3963029s177.html#a11246914 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tag for customized path to META-INF/ejb-jar.xml
Hello, can anyone tell me - is there any tag for customized path for ejb-jar.xml?? Default value is - src/main/resources/META-INF.. Thanks in advance, Kiran Kodlady -- View this message in context: http://www.nabble.com/tag-for-customized-path-to-%22META-INF-ejb-jar.xml%22-tf3927844s177.html#a11139347 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to give change the path for jars in manifest.mf file in ejb.project
Hello, when i add addclasspath in pom.xml of ejb project, all the dependecy jars are listed in manifest.mf file as it is without any path. My question here is , is there any way to give customized path for all the jars in manifest.mf. For example can i get entry for a xyz.jar in manifest.mf file as lib/xyz.jar. Thanks a lot in advance.. Kiran Kodlady. -- View this message in context: http://www.nabble.com/how-to-give-change-the-path-for-jars-in-%22manifest.mf-%22-file-in-ejb.project-tf3927894s177.html#a11139534 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: remote/home interfaces not creating up..
Thanks for response.. but i am into migration of existing ant scripts to Maven scripts. So Using xdoclet i all classes is not achievable.. Could u suggest me any alternative step for creating home/remote interfaces Thanks, Kiran Kodlady Jens Hohl wrote: For this you should use XDoclet! - Jens -Ursprüngliche Nachricht- Von: Kiran Kodlady [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 12. Juni 2007 10:55 An: users@maven.apache.org Betreff: remote/home interfaces not creating up.. Hello all, When i ran mvn ejb:ejb its just packages my class files into jar without creating any remote/home interfaces!!! my understanding on this plugin is it should create those interfaces am i wrong? If not could u plz sugest me what needs to be done to solve this err... Thanks, Kiran Kodlady -- View this message in context: http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11075309 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11094869 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
remote/home interfaces not creating up..
Hello all, When i ran mvn ejb:ejb its just packages my class files into jar without creating any remote/home interfaces!!! my understanding on this plugin is it should create those interfaces am i wrong? If not could u plz sugest me what needs to be done to solve this err... Thanks, Kiran Kodlady -- View this message in context: http://www.nabble.com/remote-home-interfaces-not-creating-up..-tf3906377s177.html#a11075309 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem while creating deployment code RMIC code during ejb build
Hello all, Got struck with one problem with ejb project : In my current ejb project i am doing migration of ant scripts to maven 2.0.6. Project structure is like below : XYZProject--ejbmodule---java META-INF-ejb-jar.xml explanation : XYZProject module consists Home interface, Remote interface Service Bean class. Though I am able to bundle the jar file along with client jar, But i am unable to generate the Deployment code and RMIC code.. one more question - is there any tag to provide custom path for ejb-jar.xml in pom.xml ? Could u plz help in solving this problem ?? Thanks alot in advance Kiran Kodlady -- View this message in context: http://www.nabble.com/Problem-while-creating-deployment-code---RMIC-code-during-ejb-build-tf3900404s177.html#a11057315 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with creating deployment code RMIC code during ejb build
Hell all, Got struck with one problem with ejb project : In my current ejb project i am doing migration of ant scripts to maven 2.0.6. Project structure is like below : XYZProject--ejbmodule---java META-INF-ejb-jar.xml explanation : XYZProject module consists Home interface, Remote interface Service Bean class. Though I am able to bundle the jar file along with client jar, But i am unable to generate the Deployment code and RMIC code.. one more question - is there any tag to provide custom path for ejb-jar.xml in pom.xml ? Could u plz help in solving this problem ?? Thanks alot in advance Kiran Kodlady -- View this message in context: http://www.nabble.com/Problem-with-creating-deployment-code---RMIC-code-during-ejb-build-tf3889218s177.html#a11024762 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Error - is duplicated in the reactor
Hello all, Maven complains when a pom has children with identical groupId:artifactId with the following message: INFO] Project 'com.xyzis duplicated in the reactor. Can somebody tell me is there any solutin for this?? Thanks, Kiran kodlady -- View this message in context: http://www.nabble.com/Maven-Error--%22-is-duplicated-in-the-reactor-%22-tf3840725s177.html#a10874873 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to disable downloading of .pom from central repository.
Hello, can somebody tell me what are the settings need to be done to disable downloading .pom files from central repository. Thanks in advance, Kiran Kodlady -- View this message in context: http://www.nabble.com/How-to-disable-downloading-of-.pom-from-central-repository.-tf3832114s177.html#a10848978 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bundling a particular set of files(Environment) inside War project
Hey.. I have encountered a problem while bundling a particular configuration files inside War project: Let me explain in detail on this : War project structure is like below : xyz_War---config-- IST- A bunch of xmls related to IST phase -- UAT-A bunch of xmls related to UAT phase -- PRD-A bunch of xmls related to PRD phase --src--main--java --target --webapp--WEB-INF--web.xml Explanation : xyz_War consists of folders like config, src,webapp,target. config folder consists of different sub folders related to each testing phase of application(IST,UAT,PRD). These folders contain same set of files with different contents altogether. For a particular build i need to bundle only one set of files among IST, UAT or PRD. Hope u got my question. I need to pass this parameter(IST,UAT or PRD) during runtime of build creation. Thanks, Kiran Kodlady -- View this message in context: http://www.nabble.com/Bundling-a-particular-set-of-files%28Environment%29-inside-War-project-tf3823795s177.html#a10825109 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with filtering files from a specific folder inside War project
Hello, I got some application specific problem while doing build for a enterprise project. There are multiple folders reside in a War project , each consists of different files. I need to include all files from a single folder during a particular build. Can anyone tell me what are tha changes need to be done to achieve this ? Thanks, Kiran kodlady -- View this message in context: http://www.nabble.com/Problem-with-filtering-files-from-a-specific-folder-inside-War-project-tf3815206s177.html#a10800128 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to change the dependency reading order in maven 2.0.6
hello...all, I got some interesting question here.. At our project specific remote repository , below mentioned structure has been followed for storing a particular jar : es-core--jars--es-asynchronous-4.0.8 But latest maven 2.0.6 requires above given jar should be placed in a different way altogether i.e, es-core--4.0.8 -- es-asynchronous-4.0.8 Due to unavailability of access for changing the folder structure @ remote , i need to change the way how the maven works. Could you please help me in solving this problem ?? -- View this message in context: http://www.nabble.com/how-to-change-the-dependency-reading-order-in-maven-2.0.6-tf3789581s177.html#a10716821 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to change the dependency reading order in maven 2.0.6
Hey wayne.. U r right... I am using layout structure similiar to maven1.. Wayne Fay wrote: It sounds like you are dealing with a Maven1 repository layout. Is that correct? Or is this a layout which just happens to be similar to Maven1, but has some small differences etc? Wayne On 5/21/07, Kiran Kodlady [EMAIL PROTECTED] wrote: hello...all, I got some interesting question here.. At our project specific remote repository , below mentioned structure has been followed for storing a particular jar : es-core--jars--es-asynchronous-4.0.8 But latest maven 2.0.6 requires above given jar should be placed in a different way altogether i.e, es-core--4.0.8 -- es-asynchronous-4.0.8 Due to unavailability of access for changing the folder structure @ remote , i need to change the way how the maven works. Could you please help me in solving this problem ?? -- View this message in context: http://www.nabble.com/how-to-change-the-dependency-reading-order-in-maven-2.0.6-tf3789581s177.html#a10716821 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/how-to-change-the-dependency-reading-order-in-maven-2.0.6-tf3789581s177.html#a10731466 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with downloading project specific jars from remote repository. plz help
Hello, Could u plz help me out in solving this error : C:\Workspaces\Copy of RS_latestmvn install [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] EDMS RS migration to OD [INFO] EDMS RS migration to OD [INFO] EDMS RS migration to OD [INFO] EDMS RS migration to OD [INFO] [INFO] Building EDMS RS migration to OD [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://phildcdv07.us.hsbc:8080/repository/proxy/repos/HTSU/Artifact%20Repository/es-presentation/es-taglib/2.1.4/es-taglib-2.1.4.pom Downloading: http://phildcdv07.us.hsbc:8080/repository/proxy/repos/HTSU/Artifact%20Repository/es-presentation/es-taglib/2.1.4/es-taglib-2.1.4.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) es-presentation:es-taglib:jar:2.1.4 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=es-presentation -DartifactId=es-taglib \ -Dversion=2.1.4 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.hsbc.rcc:edmsrc:jar:1.0-edmsrcc 2) es-presentation:es-taglib:jar:2.1.4 -- 1 required artifact is missing. for artifact: com.hsbc.rcc:edmsrc:jar:1.0-edmsrcc from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Mon May 07 20:20:08 GMT+05:30 2007 [INFO] Final Memory: 3M/6M Thanks, Kiran Kodlady -- View this message in context: http://www.nabble.com/Problem-with-downloading-project-specific-jars-from-remote-repository.-plz-help-tf3704188s177.html#a10358772 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with war plugin
hey.. cud u plz help me in solving this error.. The plugin 'org.apache.maven.plugins:maven-war-plugin' does not exist or no valid version could be found Thanks, KK -- View this message in context: http://www.nabble.com/problem-with-war-plugin-tf3707831s177.html#a10370291 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to add project specific dependencies
Hello, I got struck while doing migration of maven 1.0.2 to maven 2.0.6. In maven 1.0.2 we had a file called build.properties, which consists of paths for both remote as well as local repositories. But in maven 2.0.6 i am unable to find any corresponding file which holds these values. Can anyone help me how this can be handled in maven 2.0.6? Thank you. -- View this message in context: http://www.nabble.com/How-to-add-project-specific-dependencies-tf3686150s177.html#a10303903 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]