Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin
annotationProcessorPaths are currently not taken into account. I will try to add them in the next version Am Mi., 17. Okt. 2018 um 14:06 Uhr schrieb Thomas Broyer : > How about, say, maven-compiler-plugin's annotationProcessorPaths? > > Le mer. 17 oct. 2018 12:29, Andreas Janning a > écrit : > > > Hello maven users, > > > > I have just released a new open source maven plugin: The Go Offline Maven > > Plugin. > > > > It can be used to download all dependencies and plugins required in a > Maven > > build, so the build can be run without an internet connection afterwards. > > > > This is especially relevant with modern CI-Systems like Gitlab and > > Circle-CI that need a consistent local Maven repository in their cache to > > build efficiently. > > > > Optionally, sources of all transitive dependencies can be downloaded as > > well to have them available in your favourite IDE. > > > > Maven already has an official to do this: The maven-dependency-plugin > > go-offline goal. Unfortunately, the go-offline goal currently suffers > from > > several drawbacks: > > > > - Multi-Module builds are not supported since the plugin tries to > download > > Reactor-Dependencies from the Remote Repository > > - Most parameters simply do not work > > - No option to download dynamic dependencies > > > > The Go Offline Maven Plugin fixes these drawbacks. > > > > The plugin has already been deployed to maven central. Source Code and > > further information can be found on the Github Page: > > https://github.com/qaware/go-offline-maven-plugin > > > > Comments, Bug-Reports and Pull Requests welcome :) > > > > Regards, > > > > Andreas Jannig > > -- > > > -- -- Andreas Janning Softwarearchitekt QAware GmbH Aschauer Str. 32 81549 München, Germany Tel +49 89 232315-133 Mobil +49 160 1492426 Fax +49 89 6008871-29 andreas.jann...@qaware.de www.qaware.de -- Geschäftsführer: Christian Kamm, Bernd Schlüter, Johannes Weigend, Josef Adersberger Registergericht: München Handelsregisternummer: HRB 163761
Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin
How about, say, maven-compiler-plugin's annotationProcessorPaths? Le mer. 17 oct. 2018 12:29, Andreas Janning a écrit : > Hello maven users, > > I have just released a new open source maven plugin: The Go Offline Maven > Plugin. > > It can be used to download all dependencies and plugins required in a Maven > build, so the build can be run without an internet connection afterwards. > > This is especially relevant with modern CI-Systems like Gitlab and > Circle-CI that need a consistent local Maven repository in their cache to > build efficiently. > > Optionally, sources of all transitive dependencies can be downloaded as > well to have them available in your favourite IDE. > > Maven already has an official to do this: The maven-dependency-plugin > go-offline goal. Unfortunately, the go-offline goal currently suffers from > several drawbacks: > > - Multi-Module builds are not supported since the plugin tries to download > Reactor-Dependencies from the Remote Repository > - Most parameters simply do not work > - No option to download dynamic dependencies > > The Go Offline Maven Plugin fixes these drawbacks. > > The plugin has already been deployed to maven central. Source Code and > further information can be found on the Github Page: > https://github.com/qaware/go-offline-maven-plugin > > Comments, Bug-Reports and Pull Requests welcome :) > > Regards, > > Andreas Jannig > -- >
Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin
Just tested it with the example project you provided ( https://github.com/ptahchiev/MDEP-516) and it works :) One of the main goals of this project was to make go-offline work with multi-module projects Ragards, Andreas Janning Am Mi., 17. Okt. 2018 um 13:09 Uhr schrieb Petar Tahchiev < paranoia...@gmail.com>: > We have a issue with the dependencies plugin open for a long time: > > https://issues.apache.org/jira/browse/MDEP-516 > > I would be interested to test if your plugin has the same issue or actually > works :) > > > На ср, 17.10.2018 г. в 13:58 ч. Oliver B. Fischer < > o.b.fisc...@swe-blog.net> > написа: > > > Sounds great. I will test it! > > > > Am 17.10.18 um 12:28 schrieb Andreas Janning: > > > Hello maven users, > > > > > > I have just released a new open source maven plugin: The Go Offline > Maven > > > Plugin. > > > > > > It can be used to download all dependencies and plugins required in a > > Maven > > > build, so the build can be run without an internet connection > afterwards. > > > > > > This is especially relevant with modern CI-Systems like Gitlab and > > > Circle-CI that need a consistent local Maven repository in their cache > to > > > build efficiently. > > > > > > Optionally, sources of all transitive dependencies can be downloaded as > > > well to have them available in your favourite IDE. > > > > > > Maven already has an official to do this: The maven-dependency-plugin > > > go-offline goal. Unfortunately, the go-offline goal currently suffers > > from > > > several drawbacks: > > > > > > - Multi-Module builds are not supported since the plugin tries to > > download > > > Reactor-Dependencies from the Remote Repository > > > - Most parameters simply do not work > > > - No option to download dynamic dependencies > > > > > > The Go Offline Maven Plugin fixes these drawbacks. > > > > > > The plugin has already been deployed to maven central. Source Code and > > > further information can be found on the Github Page: > > > https://github.com/qaware/go-offline-maven-plugin > > > > > > Comments, Bug-Reports and Pull Requests welcome :) > > > > > > Regards, > > > > > > Andreas Jannig > > > -- > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > -- > Regards, Petar! > Karlovo, Bulgaria. > --- > Public PGP Key at: > http://pgp.mit.edu:11371/pks/lookup?op=get=0x19658550C3110611 > Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 > -- -- Andreas Janning Softwarearchitekt QAware GmbH Aschauer Str. 32 81549 München, Germany Tel +49 89 232315-133 Mobil +49 160 1492426 Fax +49 89 6008871-29 andreas.jann...@qaware.de www.qaware.de -- Geschäftsführer: Christian Kamm, Bernd Schlüter, Johannes Weigend, Josef Adersberger Registergericht: München Handelsregisternummer: HRB 163761
Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin
We have a issue with the dependencies plugin open for a long time: https://issues.apache.org/jira/browse/MDEP-516 I would be interested to test if your plugin has the same issue or actually works :) На ср, 17.10.2018 г. в 13:58 ч. Oliver B. Fischer написа: > Sounds great. I will test it! > > Am 17.10.18 um 12:28 schrieb Andreas Janning: > > Hello maven users, > > > > I have just released a new open source maven plugin: The Go Offline Maven > > Plugin. > > > > It can be used to download all dependencies and plugins required in a > Maven > > build, so the build can be run without an internet connection afterwards. > > > > This is especially relevant with modern CI-Systems like Gitlab and > > Circle-CI that need a consistent local Maven repository in their cache to > > build efficiently. > > > > Optionally, sources of all transitive dependencies can be downloaded as > > well to have them available in your favourite IDE. > > > > Maven already has an official to do this: The maven-dependency-plugin > > go-offline goal. Unfortunately, the go-offline goal currently suffers > from > > several drawbacks: > > > > - Multi-Module builds are not supported since the plugin tries to > download > > Reactor-Dependencies from the Remote Repository > > - Most parameters simply do not work > > - No option to download dynamic dependencies > > > > The Go Offline Maven Plugin fixes these drawbacks. > > > > The plugin has already been deployed to maven central. Source Code and > > further information can be found on the Github Page: > > https://github.com/qaware/go-offline-maven-plugin > > > > Comments, Bug-Reports and Pull Requests welcome :) > > > > Regards, > > > > Andreas Jannig > > -- > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Regards, Petar! Karlovo, Bulgaria. --- Public PGP Key at: http://pgp.mit.edu:11371/pks/lookup?op=get=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611
Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin
Sounds great. I will test it! Am 17.10.18 um 12:28 schrieb Andreas Janning: Hello maven users, I have just released a new open source maven plugin: The Go Offline Maven Plugin. It can be used to download all dependencies and plugins required in a Maven build, so the build can be run without an internet connection afterwards. This is especially relevant with modern CI-Systems like Gitlab and Circle-CI that need a consistent local Maven repository in their cache to build efficiently. Optionally, sources of all transitive dependencies can be downloaded as well to have them available in your favourite IDE. Maven already has an official to do this: The maven-dependency-plugin go-offline goal. Unfortunately, the go-offline goal currently suffers from several drawbacks: - Multi-Module builds are not supported since the plugin tries to download Reactor-Dependencies from the Remote Repository - Most parameters simply do not work - No option to download dynamic dependencies The Go Offline Maven Plugin fixes these drawbacks. The plugin has already been deployed to maven central. Source Code and further information can be found on the Github Page: https://github.com/qaware/go-offline-maven-plugin Comments, Bug-Reports and Pull Requests welcome :) Regards, Andreas Jannig -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven Question
On 7/24/2013 9:53 AM, John Dix wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp I'm also a new Maven user. How about: mvn dependency:tree http://maven.apache.org/plugins/maven-dependency-plugin/usage.html . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven Question
Hi John, output the build order of our products based on the poms Is it enough to simply run mvn validate and parse the output? That will show you the build order of your multi-module reactor. If you have multiple projects in multiple reactors, you could create a toplevel pom.xml joining them all into a single reactor, then run mvn validate to get the build order. That assumes that all the POMs have matching versions across the projects though, of course. Regards, Curtis On Wed, Jul 24, 2013 at 11:53 AM, John Dix john@amdocs.com wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitter http://twitter.com/AmdocsInc, LinkedIn http://www.linkedin.com/company/amdocs, YouTube http://www.youtube.com/amdocsinc and Google+ https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
RE: New to Maven Question
Thanks Curtis. I'll take a look at the validate cmd. -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Wednesday, July 24, 2013 10:15 AM To: Maven Users List Subject: Re: New to Maven Question Hi John, output the build order of our products based on the poms Is it enough to simply run mvn validate and parse the output? That will show you the build order of your multi-module reactor. If you have multiple projects in multiple reactors, you could create a toplevel pom.xml joining them all into a single reactor, then run mvn validate to get the build order. That assumes that all the POMs have matching versions across the projects though, of course. Regards, Curtis On Wed, Jul 24, 2013 at 11:53 AM, John Dix john@amdocs.com wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitter http://twitter.com/AmdocsInc, LinkedIn http://www.linkedin.com/company/amdocs, YouTube http://www.youtube.com/amdocsinc and Google+ https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven Question
This may be too simplistic but can't you just run the build and parse the log output? Ron On 24/07/2013 1:05 PM, Mark Eggers wrote: On 7/24/2013 9:53 AM, John Dix wrote: Hello all, I am a new user to Maven and was given the task at my work to come up with a utility in order to output the build order of our products based on the poms. It made sense to me that I would want to do basically the same thing that the Reactor does except output the tree rather than do an actual build so I downloaded the code for Maven and found the class files ProjectSorter.java and ProjectSorterTest.java as a beginning point. What I think I need to do here is modify the reactor code to actually output rather execute a build. Is there another way to do this very thing? If not, am I on the right track? Thanks! John Dix Programming Sr. SME, Digital Commerce Amdocs Digital Services Division o: 206-288-0334 m: 425.351.7340 AMDOCS | EMBRACE CHALLENGE EXPERIENCE SUCCESS Did you know...? Amdocs Mobile Payments enables operators to manage any number of app stores, merchants and aggregators and generate revenues from digital content and mobile commerce Follow Amdocs on Facebookhttp://www.facebook.com/amdocsinc/, Twitterhttp://twitter.com/AmdocsInc, LinkedInhttp://www.linkedin.com/company/amdocs, YouTubehttp://www.youtube.com/amdocsinc and Google+https://plus.google.com/105657940751678445194 - and read the latest on the Amdocs blog networkhttp://blogs.amdocs.com/. This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp I'm also a new Maven user. How about: mvn dependency:tree http://maven.apache.org/plugins/maven-dependency-plugin/usage.html . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven
On Tue, Oct 11, 2011 at 2:51 PM, niyasmansoor niyas.mans...@gmail.com wrote: Hi , I am new to Maven . I have an existing eclipse project which is dependent on a lot of libraries . I would like to use maven to download this for me [ using local repository ]. i would like to know how to write a pom.xml for that. Any working example will be of great help. There are millions of examples, maven itself being a great one. Have you done any reading? Being new to Maven you have tried to educate yourself first right? There are plenty of good (and free) books available to start yourself on the journey at http://maven.apache.org/articles.html - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven
Hi Barrie, Many thanks for your prompt response . I have a project handover with source code . This eclipse project is having dependency and is using maven repository concept . I do not have much time to go through extensively , that was the reason why i asked for a quick solution. -- Regards, Niyas -- View this message in context: http://maven.40175.n5.nabble.com/New-to-Maven-tp4890634p4890678.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to Maven
Niyas, There's really no effective way to use email for a precise solution to your problem. The only way to solve a problem is to know what the problem is in the first place, and if it had already been solved, you could just copy it. But the fact is, the problems are never the same (so there is no answer we can point you toward), and it turns out it really is faster to read a little or hire someone that knows it to come in than to ask one question after another over email for days on end. It will take you forever! http://catb.org/~esr/faqs/smart-questions.html might be a better resource to start with though. You must understand that everyone on the internet wants to go home and do other things just as much as you do. Your respect for their time and presenting concise, interesting, and localized problems that demonstrate gaps in the documentation will get you answers far more quickly. In other words, as the FAQ says: The first thing to understand is that hackers actually like hard problems and good, thought-provoking questions about them. If we didn't, we wouldn't be here. If you give us an interesting question to chew on we'll be grateful to you; good questions are a stimulus and a gift. Good questions help us develop our understanding, and often reveal problems we might not have noticed or thought about otherwise. Among hackers, Good question! is a strong and sincere compliment. Please think about others first, whether you would ask the same question of someone who worked with you in your office, do some reading, and ask smart questions! Cheers, Brian On Oct 11, 2011, at 12:58 AM, niyasmansoor wrote: Hi Barrie, Many thanks for your prompt response . I have a project handover with source code . This eclipse project is having dependency and is using maven repository concept . I do not have much time to go through maven extensively , that was the reason why i asked for a quick solution. -- Regards, Niyas -- View this message in context: http://maven.40175.n5.nabble.com/New-to-Maven-tp4890634p4890682.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New to maven and loving it :) Need a little help please...
Try the cargo plugin or the jboss specific one: http://cargo.codehaus.org/Maven2+plugin http://mojo.codehaus.org/jboss-maven-plugin/ /Anders On Fri, Mar 12, 2010 at 14:06, Yucca Nel yucca...@live.co.za wrote: Hello, google has helped me fantastically up to now and I am in a little need of further info. I am in the process of changing my development environment (JEE5 + JEE6) and have started to utilise Maven. I am looking for a xml pom snippet that can help me deploy directly to Jboss6 or glassfish v3 when building my pom. If no solution exists, I am open to trying geronimo in the hope of better integration with maven.
Re: New to Maven - need help
I went through the book,i donot find any information regarding adding our own dependencies in maven. I read a article as : dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency Maven downloads and use Quartz as a dependency for our project.So whatever dependency we need,maven will download right?but i have some predefined dependency for my project which doesnot exist in maven.Please let me know how should i load my own dependency into maven and call it using dependency tag. Jan K wrote: Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20027612.html 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: New to Maven - need help
Jan, I would first suggest you search the main repository to make sure that the dependency you're looking for is truly not already in there. Here is the site to search: http://www.mvnrepository.com/ If you can't find what you're looking for there, then you can always add dependencies to your local repository using the install command. It goes something like this: mvn install:install-file -DgroupId=grouIp -DartifactId=artifactId -Dversion=version -Dpackaging=jar -Dfile=/path/to/file If you need to share that dependency among a team of developers, then I would suggest looking at Artifactory to set up your own site-wide repository. It will also cache dependencies pulled from the main repository and save you a little bit of network bandwidth: http://www.jfrog.org/sites/artifactory/1.2/ Dave Jan K wrote: I went through the book,i donot find any information regarding adding our own dependencies in maven. I read a article as : dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency Maven downloads and use Quartz as a dependency for our project.So whatever dependency we need,maven will download right?but i have some predefined dependency for my project which doesnot exist in maven.Please let me know how should i load my own dependency into maven and call it using dependency tag. Jan K wrote: Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - 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]
Re: New to Maven - need help
I will explain in detail what i have in my hand. I created a project.I have a folder structure created .Please note,i have client related java files in one folder,Servlet related java files in another folder and so on in my project.So In src/main/java ,i copied all the jave files(with the folder structure such as client ,servlet etc) i have in my project and placed it there.Now in src/main/java,i have nearly 6 folders have java files.I have run it using ant.Now i asked to do the same in Maven.In ant,i have dependency written for each a every thing required and finally will call the dependency in build.xml. How should i do this using maven?Also i read in a article as : maven will download the the dependency required for our project.How can i add my own dependencies in maven?please help. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20027789.html 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: New to Maven - need help
You're rushing too fast. Seriously, Try walking through the sonatype book or one of the other maven tutorials. It will not take as long as you think. You will end up understanding what you are doing and get where you are going faster than playing table tennis with the mailing list -Stephen 2008/10/17 Jan K [EMAIL PROTECTED] I will explain in detail what i have in my hand. I created a project.I have a folder structure created .Please note,i have client related java files in one folder,Servlet related java files in another folder and so on in my project.So In src/main/java ,i copied all the jave files(with the folder structure such as client ,servlet etc) i have in my project and placed it there.Now in src/main/java,i have nearly 6 folders have java files.I have run it using ant.Now i asked to do the same in Maven.In ant,i have dependency written for each a every thing required and finally will call the dependency in build.xml. How should i do this using maven?Also i read in a article as : maven will download the the dependency required for our project.How can i add my own dependencies in maven?please help. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20027789.html 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: New to Maven - need help
Hi dchicks, I will explain in detail what i have in my hand. I created a project in maven.I have a folder structure created .Please note,i have client related java files in one folder,Servlet related java files in another folder and so on in my project.So In src/main/java ,i copied all the jave files(with the folder structure such as client ,servlet etc) i have in my project and placed it there.Now in src/main/java,i have nearly 6 folders having java files.I have run it using ant.Now i asked to do the same in Maven.In ant,i have dependency written for each a every thing required in a xml file and finally will call all the xml files in build.xml. How should i do this using maven?Also i read in a article as : maven will download the the dependency required for our project.How can i add my own dependencies in maven?please help. dchicks wrote: Jan, I would first suggest you search the main repository to make sure that the dependency you're looking for is truly not already in there. Here is the site to search: http://www.mvnrepository.com/ If you can't find what you're looking for there, then you can always add dependencies to your local repository using the install command. It goes something like this: mvn install:install-file -DgroupId=grouIp -DartifactId=artifactId -Dversion=version -Dpackaging=jar -Dfile=/path/to/file If you need to share that dependency among a team of developers, then I would suggest looking at Artifactory to set up your own site-wide repository. It will also cache dependencies pulled from the main repository and save you a little bit of network bandwidth: http://www.jfrog.org/sites/artifactory/1.2/ Dave Jan K wrote: I went through the book,i donot find any information regarding adding our own dependencies in maven. I read a article as : dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency Maven downloads and use Quartz as a dependency for our project.So whatever dependency we need,maven will download right?but i have some predefined dependency for my project which doesnot exist in maven.Please let me know how should i load my own dependency into maven and call it using dependency tag. Jan K wrote: Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven - need help
See Stephen's comment from a previous email. You're getting *way* ahead of yourself. You've got some very basic problems that are going to get in your way long before dependencies are an issue. Either get yourself a copy of Maven: The Definitive Guide or use the online copy - http://www.sonatype.com/community/definitive_guide.html. And, as Stephen pointed out, go slow! It will help you learn if you don't try to do too much all at one time. Good luck! Jan K wrote: Hi dchicks, I will explain in detail what i have in my hand. I created a project in maven.I have a folder structure created .Please note,i have client related java files in one folder,Servlet related java files in another folder and so on in my project.So In src/main/java ,i copied all the jave files(with the folder structure such as client ,servlet etc) i have in my project and placed it there.Now in src/main/java,i have nearly 6 folders having java files.I have run it using ant.Now i asked to do the same in Maven.In ant,i have dependency written for each a every thing required in a xml file and finally will call all the xml files in build.xml. How should i do this using maven?Also i read in a article as : maven will download the the dependency required for our project.How can i add my own dependencies in maven?please help. dchicks wrote: Jan, I would first suggest you search the main repository to make sure that the dependency you're looking for is truly not already in there. Here is the site to search: http://www.mvnrepository.com/ If you can't find what you're looking for there, then you can always add dependencies to your local repository using the install command. It goes something like this: mvn install:install-file -DgroupId=grouIp -DartifactId=artifactId -Dversion=version -Dpackaging=jar -Dfile=/path/to/file If you need to share that dependency among a team of developers, then I would suggest looking at Artifactory to set up your own site-wide repository. It will also cache dependencies pulled from the main repository and save you a little bit of network bandwidth: http://www.jfrog.org/sites/artifactory/1.2/ Dave Jan K wrote: I went through the book,i donot find any information regarding adding our own dependencies in maven. I read a article as : dependency groupIdquartz/groupId artifactIdquartz/artifactId version1.5.1/version scopecompile/scope /dependency Maven downloads and use Quartz as a dependency for our project.So whatever dependency we need,maven will download right?but i have some predefined dependency for my project which doesnot exist in maven.Please let me know how should i load my own dependency into maven and call it using dependency tag. Jan K wrote: Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed
Re: New to Maven - need help
I able to build the project successfully.I get a target folder created.But i donot find any class files created for the project.Here is my sample pom.xml file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcareertales.net/groupId artifactIdcareertales/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameCT/name urlhttp://localhost:8080/ct2/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project Please correct me.Please let me know what i am missing. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20008277.html 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: New to Maven - need help
Based on the information you are providing, it is nearly impossible to tell you what's going on/wrong/missing/etc in your specific project. Are your Java source files in src/main/java? When you run mvn compile, what happens? Does it say BUILD SUCCESSFUL near the bottom of the output? When you look in the target directory, what kinds of files (if any) do you find? You may need to go into target/classes to see your Java class files. The free e-books linked to by Arnaud are basically considered mandatory reading for people posting on this list. If you have not read them yet, you should go do it now. Wayne On Thu, Oct 16, 2008 at 12:06 AM, Jan K [EMAIL PROTECTED] wrote: I able to build the project successfully.I get a target folder created.But i donot find any class files created for the project.Here is my sample pom.xml file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcareertales.net/groupId artifactIdcareertales/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameCT/name urlhttp://localhost:8080/ct2/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project Please correct me.Please let me know what i am missing. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20008277.html 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]
Re: New to Maven - need help
Hi Wayne, Sorry to miss this information.I have a folder called classes in the target folder.It has the entire java files used in my project.I should instead have class files right?Please let me know. Wayne Fay wrote: Based on the information you are providing, it is nearly impossible to tell you what's going on/wrong/missing/etc in your specific project. Are your Java source files in src/main/java? When you run mvn compile, what happens? Does it say BUILD SUCCESSFUL near the bottom of the output? When you look in the target directory, what kinds of files (if any) do you find? You may need to go into target/classes to see your Java class files. The free e-books linked to by Arnaud are basically considered mandatory reading for people posting on this list. If you have not read them yet, you should go do it now. Wayne On Thu, Oct 16, 2008 at 12:06 AM, Jan K [EMAIL PROTECTED] wrote: I able to build the project successfully.I get a target folder created.But i donot find any class files created for the project.Here is my sample pom.xml file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcareertales.net/groupId artifactIdcareertales/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameCT/name urlhttp://localhost:8080/ct2/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project Please correct me.Please let me know what i am missing. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20008277.html 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/New-to-Maven---need-help-tp19971205p20010431.html 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: New to Maven - need help
First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20011195.html 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: New to Maven - need help
Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven - need help
Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20013278.html 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: New to Maven - need help
I went through the site given by arnaud.It is really useful for as i am new maven. It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help Wayne Fay wrote: Based on the information you are providing, it is nearly impossible to tell you what's going on/wrong/missing/etc in your specific project. Are your Java source files in src/main/java? When you run mvn compile, what happens? Does it say BUILD SUCCESSFUL near the bottom of the output? When you look in the target directory, what kinds of files (if any) do you find? You may need to go into target/classes to see your Java class files. The free e-books linked to by Arnaud are basically considered mandatory reading for people posting on this list. If you have not read them yet, you should go do it now. Wayne On Thu, Oct 16, 2008 at 12:06 AM, Jan K [EMAIL PROTECTED] wrote: I able to build the project successfully.I get a target folder created.But i donot find any class files created for the project.Here is my sample pom.xml file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdcareertales.net/groupId artifactIdcareertales/artifactId packagingjar/packaging version1.0-SNAPSHOT/version nameCT/name urlhttp://localhost:8080/ct2/url dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency /dependencies /project Please correct me.Please let me know what i am missing. Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20008277.html 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/New-to-Maven---need-help-tp19971205p20009878.html 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: New to Maven - need help
On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: New to Maven - need help
the maven definitive book is very useful for the beginner of maven ,maybe you should read it through. 2008/10/16 Jan K [EMAIL PROTECTED] Is there any possiblity of adding our own dependencies in maven? Thomas Lutz wrote: Jan K schrieb: First time i created a project using mvn archetype:create -DgroupId=com.careertales -DartifactId=careertales -DarchetypeArtifactId=maven-archetype-webapp. I got a folder structure as : src/main -- resources -- webapp In resources folder,i placed a simple java file(Test.java) which just prints a string.In webapp folder,I got some default index.jsp file and a web-inf folder.Then i executed mvn install command.I got Build Successful in my console.I am able to see a target folder created.Inside this target folder i have war,classes,careertales.war folders.Then i executed mvn compile command.Inside classes folder, my point is i should see the class file of Test.But instead i can see the same Test.java file in classes folder.What is going wrong? resources is not compiled.. it's for resources. place it in src/main/java... follow the maven in 5 minutes guide from http://maven.apache.org ... start with the standard java archetype... makes it easier :-) After that i placed a java file(This file prints a string) matinh wrote: On Thursday 16 October 2008 Jan K wrote: I went through the site given by arnaud.It is really useful for as i am new maven. Through the whole book? Really? It get the following message in the console: [INFO] OldArchetype created in dir: /home/jano/CVS/margadarsi/ct3/src/careertales [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 17 seconds [INFO] Finished at: Thu Oct 16 13:44:21 GMT+05:30 2008 [INFO] Final Memory: 7M/13M The build succeeds. The question is, what did you build? Accoring to the messages above I guess you executed some mvn archetype:create command, right? This does not compile anything, it generates a new project. I have placed my java files in src/main/java.I dont get the class files generated when i compile.What is wrong in my code?please help How do you compile? As I explained earlier you should execute mvn compile to compile your classes. The result can be found in the folder target/classes. hth, - martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p20013278.html 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: New to Maven - need help
What are the mandatory fields(tags) to be used for settings.xml? Arnaud HERITIER wrote: You'll have more information in : - http://www.sonatype.com/community/definitive_guide.html - http://www.exist.com/better-build-maven Arnaud On Tue, Oct 14, 2008 at 12:54 PM, Jan K [EMAIL PROTECTED] wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p19971205.html Sent from the Maven - Users mailing list archive at Nabble.com. -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p19988056.html 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: New to Maven - need help
On Wednesday 15 October 2008 Jan K wrote: What are the mandatory fields(tags) to be used for settings.xml? You don't need a settings.xml file at all. A good overview is available at http://maven.apache.org/settings.html hth, - martin signature.asc Description: This is a digitally signed message part.
Re: New to Maven - need help
You'll have more information in : - http://www.sonatype.com/community/definitive_guide.html - http://www.exist.com/better-build-maven Arnaud On Tue, Oct 14, 2008 at 12:54 PM, Jan K [EMAIL PROTECTED] wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next?How to change it the project i am willing to run? -- View this message in context: http://www.nabble.com/New-to-Maven---need-help-tp19971205p19971205.html Sent from the Maven - Users mailing list archive at Nabble.com. -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ...
Re: New to Maven - need help
On Tuesday 14 October 2008 Jan K wrote: I am very new to maven.I have downloaded apache-maven-2.0.9.I read the doc's and installed maven. I executed the following commands in command prompt, mvn archetype:create \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DgroupId=com.mycompany.app \ -DartifactId=my-app I got a folder as my-app in my local path.I can see the pom.xml.Please help me what should i do next? Depends on what you want to do. You'll find the sources in my-app/src/main/java and the tests in my-app/src/test/java. Adapt both as you need. To compile, package and install into your local repository cd into 'my-app' and run 'mvn compile', 'mvn package' resp. 'mvn install'. As Arnaud poited out, more information can be found in the books Maven, The Definitve Guide and Better Builds with Maven. hth, - martin signature.asc Description: This is a digitally signed message part.
Re: New to Maven, and got frustrated the first time to use it...HELP...
Kevin Tse wrote: Below there are the messages I got when trying to create a Maven project. Please help, your reply will be greatly appreciated. -- D:\Workspace\MavenPrjmvn archetype:create -DgroupId=org.kevin.mavendemo -Dartif act=app [snip] [INFO] Parameter: artifactId, Value: null [snip] Embedded error: Artifact ID must be specified when creating a new project from a n archetype. Looks like maven doesn't see the artifact ID you specified. Looking at your command line, I suspect the command line option is supposed to be -DartifactId=app, double check the docs for the archetype plugin to be sure. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: New to Maven, and got frustrated the first time to use it...HELP...
On 05/12/2007, Kevin Tse [EMAIL PROTECTED] wrote: Below there are the messages I got when trying to create a Maven project. Please help, your reply will be greatly appreciated. try -DartifactId=app rather than -Dartifact=app -- D:\Workspace\MavenPrjmvn archetype:create -DgroupId=org.kevin.mavendemo -Dartif act=app [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [archetype:create] (aggregator-style) [INFO] [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus .velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] ** [INFO] Starting Jakarta Velocity v1.4 [INFO] RuntimeInstance initializing. [INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.pr operties [INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime. resource.ResourceManagerImpl) [INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLo aderResourceLoader [INFO] ClasspathResourceLoader : initialization starting. [INFO] ClasspathResourceLoader : initialization complete. [INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource. ResourceCacheImpl) [INFO] Default ResourceManager initialization complete. [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach [INFO] Created: 20 parsers. [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org .apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'V M_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be glob al in scope if allowed. [INFO] Velocimacro : initialization complete. [INFO] Velocity successfully started. [INFO] [archetype:create] [INFO] Defaulting package to group ID: org.kevin.mavendemo [INFO] - --- [INFO] Using following parameters for creating Archetype: maven-archetype-quicks tart:RELEASE [INFO] - --- [INFO] Parameter: groupId, Value: org.kevin.mavendemo [INFO] Parameter: packageName, Value: org.kevin.mavendemo [INFO] Parameter: package, Value: org.kevin.mavendemo [INFO] Parameter: artifactId, Value: null [INFO] Parameter: basedir, Value: D:\Workspace\MavenPrj [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Artifact ID must be specified when creating a new project from a n archetype. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Dec 05 18:37:46 CST 2007 [INFO] Final Memory: 5M/9M [INFO] -- View this message in context: http://www.nabble.com/New-to-Maven%2C-and-got-frustrated-the-first-time-to-use-it...HELP...-tf4948806s177.html#a14169257 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Cheers, Stuart
Re: New to Maven, and got frustrated the first time to use it...HELP...
Graham Leggett wrote: Kevin Tse wrote: Below there are the messages I got when trying to create a Maven project. Please help, your reply will be greatly appreciated. -- D:\Workspace\MavenPrjmvn archetype:create -DgroupId=org.kevin.mavendemo -Dartif act=app [snip] [INFO] Parameter: artifactId, Value: null [snip] Embedded error: Artifact ID must be specified when creating a new project from a n archetype. Looks like maven doesn't see the artifact ID you specified. Looking at your command line, I suspect the command line option is supposed to be -DartifactId=app, double check the docs for the archetype plugin to be sure. Regards, Graham -- Thank you so much, Graham, the problem solved, it is the command line option that I typed incorrectly...Thanks. -- View this message in context: http://www.nabble.com/New-to-Maven%2C-and-got-frustrated-the-first-time-to-use-it...HELP...-tf4948806s177.html#a14170495 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: new to maven
hi, you can try with the eclipse plugin: http://maven.apache.org/plugins/maven-eclipse-plugin/ Giancarlo 2007/10/25, Ian Godman [EMAIL PROTECTED]: Hi I am new to Maven 2. I have been converting an application consisting of 4 eclipse projects, 3 producing library jars the the final one running the application. I have got to the stage where every thing now compiles and the 3 jar files are deployed in my repository (I am using artifactory). My application also compiles. My issues is that despite a lot of reading I still can not work out how to run my application! There are external jars required, these are set as dependencies in the POM. What I would like to achieve is to be able to run the application from within the eclipse debug environment. To do this I need to get not only the generated jar files but also the library jars and the XML configuration files on the class path. Ideally also in a directory so that I can copy it and run the application on another machine. I am sure this is not difficult to do but at this moment in time I am unable to work it out. Ian ___ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new using maven., please help me
How can i overwrite he default source and webapp drectory? this: my app drectories are: JavaSource for one proyect and java.javs for other (this into the java sorces) and html or WebContent or WebApplication for the web application How can i use maven 2 for using this directories for the sorce files? thanks plese help me Unfortunately the default maven repository does not work, you will have to configure a mirror: create a file ~/.m2/settings.xml: settings mirrors mirror idisu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror mirror idibiblio.org/id urlhttp://www.ibiblio.org/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings Then you must re-arrange your code to match the maven layout. Source code goes in src/main/java/ web app code goes in src/main/webapp Then your pom might look something like this: project modelVersion4.0.0/modelVersion parent groupIdcom.mydomain.myproject/groupId artifactIdmyproject/artifactId version1.0/version /parent artifactIdmyproject/artifactId namemyproject web app/name packagingwar/packaging descriptionWeb App/description dependencies !-- Commons Libraries -- dependency groupIdcommons-email/groupId artifactIdcommons-email/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdcommons-fileupload/groupId artifactIdcommons-fileupload/artifactId version1.1/version scopeprovided/scope /dependency !-- Database Library -- dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.1-404.jdbc3/version scopeprovided/scope /dependency !-- javax -- dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4/version scopeprovided/scope /dependency !-- JSTL -- dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdc/artifactId version1.1.2/version typetld/type /dependency dependency groupIdtaglibs/groupId artifactIdsql/artifactId version1.1.2/version typetld/type /dependency /dependencies /project Alex On 8/19/06, Miren [EMAIL PROTECTED] wrote: hello i am begining using maven. i hve use ant and i am trying using maven but i dont know how towork or beging using maven. i am reading better builds with maven but i cannot begin, i dont work fine with it. i have one proyect in java. the structure of my proyect is this: /myproyect -src -WebContent into ther rc directory i have the java sources into the Webcontent i have the web part (jsp, web.xml, tld...) the output for thi proyect must to be one war file can anyody helps me to make one pom file, correct file for using ths with maven? can anybody send me one example for using with my proyect? for using as demo and with my dcumenttion know how works maven. other questios: 1.- m pryect uses some lib, jar files. i must to put it into the pom file .. but must i to put them into some directories? 2.- when i execute my pom file appears this error: [INFO] the pluging org.apache.maven.plugins:maven-archetype-pluging dos not exist or not valid version could be found. Why pears this error? i have nstall the file from the apache site, maven site (2.0.4 thanks please help me with one example THANKS - 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]
Re: new using maven., please help me
The point of using maven is to use convention over configuration - if you override the conventions, you loose half the benefit of using maven. Move your source directory rather than configuration maven. Alex. On 8/22/06, Miren [EMAIL PROTECTED] wrote: How can i overwrite he default source and webapp drectory? this: my app drectories are: JavaSource for one proyect and java.javs for other (this into the java sorces) and html or WebContent or WebApplication for the web application How can i use maven 2 for using this directories for the sorce files? thanks plese help me Unfortunately the default maven repository does not work, you will have to configure a mirror: create a file ~/.m2/settings.xml: settings mirrors mirror idisu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror mirror idibiblio.org/id urlhttp://www.ibiblio.org/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings Then you must re-arrange your code to match the maven layout. Source code goes in src/main/java/ web app code goes in src/main/webapp Then your pom might look something like this: project modelVersion4.0.0/modelVersion parent groupIdcom.mydomain.myproject/groupId artifactIdmyproject/artifactId version1.0/version /parent artifactIdmyproject/artifactId namemyproject web app/name packagingwar/packaging descriptionWeb App/description dependencies !-- Commons Libraries -- dependency groupIdcommons-email/groupId artifactIdcommons-email/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdcommons-fileupload/groupId artifactIdcommons-fileupload/artifactId version1.1/version scopeprovided/scope /dependency !-- Database Library -- dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.1-404.jdbc3/version scopeprovided/scope /dependency !-- javax -- dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4/version scopeprovided/scope /dependency !-- JSTL -- dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdc/artifactId version1.1.2/version typetld/type /dependency dependency groupIdtaglibs/groupId artifactIdsql/artifactId version1.1.2/version typetld/type /dependency /dependencies /project Alex On 8/19/06, Miren [EMAIL PROTECTED] wrote: hello i am begining using maven. i hve use ant and i am trying using maven but i dont know how towork or beging using maven. i am reading better builds with maven but i cannot begin, i dont work fine with it. i have one proyect in java. the structure of my proyect is this: /myproyect -src -WebContent into ther rc directory i have the java sources into the Webcontent i have the web part (jsp, web.xml, tld...) the output for thi proyect must to be one war file can anyody helps me to make one pom file, correct file for using ths with maven? can anybody send me one example for using with my proyect? for using as demo and with my dcumenttion know how works maven. other questios: 1.- m pryect uses some lib, jar files. i must to put it into the pom file .. but must i to put them into some directories? 2.- when i execute my pom file appears this error: [INFO] the pluging org.apache.maven.plugins:maven-archetype-pluging dos not exist or not valid version could be found. Why pears this error? i have nstall the file from the apache site, maven site (2.0.4 thanks please help me with one example THANKS - 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]
Re: new using maven., please help me
Hi Miren, On 8/22/06, Miren [EMAIL PROTECTED] wrote: How can i overwrite he default source and webapp drectory? something like: build sourceDirectory src/YOUR/DIRECTORY /sourceDirectory ... /build By the way, you should think carefully about adopting maven conventions, which is strongly suggested (not to mention that some plugin could possibly not work). cheers, valerio -- http://valerioschiavoni.blogspot.com http://jroller.com/page/vschiavoni
Re: new using maven., please help me
Unfortunately the default maven repository does not work, you will have to configure a mirror: create a file ~/.m2/settings.xml: settings mirrors mirror idisu.edu/id urlhttp://ibiblio.lsu.edu/main/pub/packages/maven2/url mirrorOfcentral/mirrorOf /mirror mirror idibiblio.org/id urlhttp://www.ibiblio.org/maven2/url mirrorOfcentral/mirrorOf /mirror /mirrors /settings Then you must re-arrange your code to match the maven layout. Source code goes in src/main/java/ web app code goes in src/main/webapp Then your pom might look something like this: project modelVersion4.0.0/modelVersion parent groupIdcom.mydomain.myproject/groupId artifactIdmyproject/artifactId version1.0/version /parent artifactIdmyproject/artifactId namemyproject web app/name packagingwar/packaging descriptionWeb App/description dependencies !-- Commons Libraries -- dependency groupIdcommons-email/groupId artifactIdcommons-email/artifactId version1.0/version scopeprovided/scope /dependency dependency groupIdcommons-fileupload/groupId artifactIdcommons-fileupload/artifactId version1.1/version scopeprovided/scope /dependency !-- Database Library -- dependency groupIdpostgresql/groupId artifactIdpostgresql/artifactId version8.1-404.jdbc3/version scopeprovided/scope /dependency !-- javax -- dependency groupIdjavax.mail/groupId artifactIdmail/artifactId version1.4/version scopeprovided/scope /dependency !-- JSTL -- dependency groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdservlet-api/artifactId version2.4/version scopeprovided/scope /dependency dependency groupIdjavax.servlet/groupId artifactIdjstl/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdstandard/artifactId version1.1.2/version scopeprovided/scope /dependency dependency groupIdtaglibs/groupId artifactIdc/artifactId version1.1.2/version typetld/type /dependency dependency groupIdtaglibs/groupId artifactIdsql/artifactId version1.1.2/version typetld/type /dependency /dependencies /project Alex On 8/19/06, Miren [EMAIL PROTECTED] wrote: hello i am begining using maven. i hve use ant and i am trying using maven but i dont know how towork or beging using maven. i am reading better builds with maven but i cannot begin, i dont work fine with it. i have one proyect in java. the structure of my proyect is this: /myproyect -src -WebContent into ther rc directory i have the java sources into the Webcontent i have the web part (jsp, web.xml, tld...) the output for thi proyect must to be one war file can anyody helps me to make one pom file, correct file for using ths with maven? can anybody send me one example for using with my proyect? for using as demo and with my dcumenttion know how works maven. other questios: 1.- m pryect uses some lib, jar files. i must to put it into the pom file .. but must i to put them into some directories? 2.- when i execute my pom file appears this error: [INFO] the pluging org.apache.maven.plugins:maven-archetype-pluging dos not exist or not valid version could be found. Why pears this error? i have nstall the file from the apache site, maven site (2.0.4 thanks please help me with one example THANKS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven
I think Simon is right, have you setted your proxy correctly? On 4/27/06, ajayasahoo [EMAIL PROTECTED] wrote: Hi alan, I did try with -U option and get back the same error. Thx, Ajaya -- View this message in context: http://www.nabble.com/New-to-Maven-t1512971.html#a4123451 Sent from the Maven - Users forum 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]
Re: New to Maven
On Wed, 2006-04-26 at 09:59 -0700, ajayasahoo wrote: I am new to Maven. I have downloaded maven-2.0.4 and following the Maven Getting Started Guide. I am under How do I make my first Maven project? and issue the following command mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app I get this error: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not exist or no valid version could be found. Try mvn -X . to show debug output. I expect that you're running behind some kind of firewall that is preventing maven from downloading the plugins it needs. The maven download is just the core of maven; many of the plugins it needs to do its job are downloaded on demand. If a firewall is the issue, see the documentation on the maven site re defining proxy settings in a settings.xml file. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven
Hi alan, I did try with -U option and get back the same error. Thx, Ajaya -- View this message in context: http://www.nabble.com/New-to-Maven-t1512971.html#a4123451 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New to Maven
Hi there, Have you tried appending -U to your mvn command? allan ajayasahoo wrote: I am new to Maven. I have downloaded maven-2.0.4 and following the Maven Getting Started Guide. I am under How do I make my first Maven project? and issue the following command mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app I get this error: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not exist or no valid version could be found. -- View this message in context: http://www.nabble.com/New-to-Maven-t1512971.html#a4105333 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new to Maven
You have to add the reports you want to be generatet to your POM, like that: reportmaven-dashboard-plugin/report reportmaven-changelog-plugin/report reportmaven-clover-plugin/report reportmaven-file-activity-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin/report reportmaven-javadoc-plugin/report reportmaven-junit-report-plugin/report reportmaven-simian-plugin/report reportmaven-tasklist-plugin/report reportmaven-checkstyle-plugin/report reportmaven-jdepend-plugin/report reportmaven-jxr-plugin/report Regards, Gisbert Amm Hamza Hydri wrote: Hi, I started using Maven few hours ago I have integrated it to my existing project ... I have some problems with the maven site:generate command it is not creating all the reports ... Change Log, Developer Activity etc are all missing do I have to make any changes somewhere to see all the reports ? Thanks in advance. - 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]
Re: new to Maven
Thnx Gisbert, I have another problem now ... when I enter the foll at the cmd prompt in the project base directory .. maven -D package=com.company.test.dummy genapp it asks for a template, ID and name of application ... I dont understand what template should I give ... I believe the name and ID are the details we describein the project.xml file ... right ? then whats with this template thing ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new to Maven
Hamza, Those reports need to access your SCM to compute this information. Check you've defined repository access in your project.xml (for instance CVS using persver): repository connectionscm:cvs:pserver:[EMAIL PROTECTED]:/yourrepo:yourmodule/connection /repository If you are using CVSNT, check this: http://maven.apache.org/reference/plugins/changelog/ Cheers, Stéphane -Original Message- From: Hamza Hydri [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 10:11 AM To: users@maven.apache.org Subject: new to Maven Hi, I started using Maven few hours ago I have integrated it to my existing project ... I have some problems with the maven site:generate command it is not creating all the reports ... Change Log, Developer Activity etc are all missing do I have to make any changes somewhere to see all the reports ? Thanks in advance. - 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]
RE: New to Maven -- please help
Or you may have a JDK which is sensitive to the index files in the jars. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Kumar, Vaidhyanatha K. [EMAIL PROTECTED] wrote on 06/08/2003 09:49:36 PM: Shelly, You can try installing JDK1.4.2 and maven b10. OR you might have a unsupported proxy server. The email thread below has some pointers. http://www.mail-archive.com/[EMAIL PROTECTED]/thrd2.html#01898 Vaidhy -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 1:35 AM To: Maven Users List Subject: New to Maven -- please help Hi, I get the following exception when I tried to run Maven. The following is the command i tried: maven -o genApp From one of the users in the list, I got the idea that this is happening because I am probably behind firewall ( I do not even have intrnet access ). Please guide me. Any pointers will be most helpful. Thanks in advance, Shelly sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at java.lang.ClassLoader.getResource(ClassLoader.java:734) at java.lang.Class.getResource(Class.java:1249) at org.apache.commons.betwixt.XMLIntrospector. findByXMLDescriptor(XMLInt rospector.java:531) at org.apache.commons.betwixt.XMLIntrospector. introspect(XMLIntrospector .java:256) at org.apache.commons.betwixt.io.BeanReader. registerBeanClass(BeanReader .java:143) at org.apache.maven.MavenUtils.createBeanReader(MavenUtils.java:560) at org.apache.maven.MavenUtils. getProjectBeanReader(MavenUtils.java:324) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:198) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160) at org.apache.maven.MavenSession. initializeRootProject(MavenSession.java :324) at org.apache.maven.MavenSession.initialize(MavenSession.java:234) at org.apache.maven.cli.App.doMain(App.java:514) at org.apache.maven.cli.App.main(App.java:1088) at java.lang.reflect.Method.invoke(Native Method) at com.werken.forehead.Forehead.run(Forehead.java:543) at com.werken.forehead.Forehead.main(Forehead.java:573) -Original Message- From: Kumar, Vaidhyanatha K. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:05 PM To: Maven Users List Subject: RE: New to Maven Shelly, I have been using maven for a month. From what I know, you need web ONLY to do the initial install, CVS updates etc. Beyond that, you really don't need a web connection. Most of the jar files can be kept in the local repository. Maven is the way to go! Vaidhy Kumar -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:04 AM To: Maven Users List Subject: New to Maven Hi All, I am very new to maven. I do not have internet access, but have access to the web documents. Can I use maven, or do I need to have internet access to use maven. Is there a workaround without using internet. Please guide me. Thanks and Regards, Shelly Singh Infosys Technologies Ltd., Pune. Tel: +91 20 2932800 Ext: 2174 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New to Maven -- please help
I am on WIndows NT 4. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 10:26 AM To: Maven Users List Subject: RE: New to Maven -- please help 1.3 is fine. On which platform? We've had this sort of report from people on Solaris 1.3 before -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Shelly_Singh [EMAIL PROTECTED] wrote on 07/08/2003 01:23:47 PM: I have jdk version 1.3.0? Which jdk version can be used with maven? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 7:45 AM To: Maven Users List Subject: RE: New to Maven -- please help Or you may have a JDK which is sensitive to the index files in the jars. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Kumar, Vaidhyanatha K. [EMAIL PROTECTED] wrote on 06/08/2003 09:49:36 PM: Shelly, You can try installing JDK1.4.2 and maven b10. OR you might have a unsupported proxy server. The email thread below has some pointers. http://www.mail-archive.com/[EMAIL PROTECTED]/thrd2.html#01898 Vaidhy -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 1:35 AM To: Maven Users List Subject: New to Maven -- please help Hi, I get the following exception when I tried to run Maven. The following is the command i tried: maven -o genApp From one of the users in the list, I got the idea that this is happening because I am probably behind firewall ( I do not even have intrnet access ). Please guide me. Any pointers will be most helpful. Thanks in advance, Shelly sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at java.lang.ClassLoader.getResource(ClassLoader.java:734) at java.lang.Class.getResource(Class.java:1249) at org.apache.commons.betwixt.XMLIntrospector. findByXMLDescriptor(XMLInt rospector.java:531) at org.apache.commons.betwixt.XMLIntrospector. introspect(XMLIntrospector .java:256) at org.apache.commons.betwixt.io.BeanReader. registerBeanClass(BeanReader .java:143) at org.apache.maven.MavenUtils.createBeanReader(MavenUtils.java:560) at org.apache.maven.MavenUtils. getProjectBeanReader(MavenUtils.java:324) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:198) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160) at org.apache.maven.MavenSession. initializeRootProject(MavenSession.java :324) at org.apache.maven.MavenSession.initialize(MavenSession.java:234) at org.apache.maven.cli.App.doMain(App.java:514) at org.apache.maven.cli.App.main(App.java:1088) at java.lang.reflect.Method.invoke(Native Method) at com.werken.forehead.Forehead.run(Forehead.java:543) at com.werken.forehead.Forehead.main(Forehead.java:573) -Original Message- From: Kumar, Vaidhyanatha K. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:05 PM To: Maven Users List Subject: RE: New to Maven Shelly, I have been using maven for a month. From what I know, you need web ONLY to do the initial install, CVS updates etc. Beyond that, you really don't need a web connection. Most of the jar files can be kept in the local repository. Maven is the way to go! Vaidhy Kumar -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:04 AM To: Maven Users List Subject: New to Maven Hi All, I am very new to maven. I do not have internet access, but have access to the web documents. Can I use maven, or do I need to have internet access to use maven. Is there a workaround without using internet. Please guide me. Thanks and Regards, Shelly Singh Infosys Technologies Ltd., Pune. Tel: +91 20 2932800 Ext: 2174 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: New to Maven -- please help
Thanks fovery useful input. But, I want to run maven in offline mode. The command I am trying is : maven -o In this case the proxy configurations should not interfare with maven. Any pointers? Regards Shelly -Original Message- From: Keld Mikkelsen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:35 AM To: Maven Users List Subject: RE: New to Maven -- please help Hi, I had the same problem, when I startet usng maven some days. I have put an entry i mavenwiki faq: http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-b010b7e0b46fc1304d0815693dd81d3df6ff1b8d This is usually a problem with your firewall. Check the logfiles on your firewall server for errors. Also make sure that your jdk level is 1.4.2 or higher Keld Mikkelsen My problem was that the jdk 1.3 did not dupport the proxy configuration settings I made for maven, and it did not tell what was wrong. The jdk 1.4..2 supports the proxy settings, and maven is doing a better job of telling what goes wrong under this jdk. Do we need an faq regarding supported software levels ? /Keld Mikkelsen - 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]
RE: New to Maven -- please help
Shelly, You can try installing JDK1.4.2 and maven b10. OR you might have a unsupported proxy server. The email thread below has some pointers. http://www.mail-archive.com/[EMAIL PROTECTED]/thrd2.html#01898 Vaidhy -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 1:35 AM To: Maven Users List Subject: New to Maven -- please help Hi, I get the following exception when I tried to run Maven. The following is the command i tried: maven -o genApp From one of the users in the list, I got the idea that this is happening because I am probably behind firewall ( I do not even have intrnet access ). Please guide me. Any pointers will be most helpful. Thanks in advance, Shelly sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at java.lang.ClassLoader.getResource(ClassLoader.java:734) at java.lang.Class.getResource(Class.java:1249) at org.apache.commons.betwixt.XMLIntrospector.findByXMLDescriptor(XMLInt rospector.java:531) at org.apache.commons.betwixt.XMLIntrospector.introspect(XMLIntrospector .java:256) at org.apache.commons.betwixt.io.BeanReader.registerBeanClass(BeanReader .java:143) at org.apache.maven.MavenUtils.createBeanReader(MavenUtils.java:560) at org.apache.maven.MavenUtils.getProjectBeanReader(MavenUtils.java:324) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:198) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java :324) at org.apache.maven.MavenSession.initialize(MavenSession.java:234) at org.apache.maven.cli.App.doMain(App.java:514) at org.apache.maven.cli.App.main(App.java:1088) at java.lang.reflect.Method.invoke(Native Method) at com.werken.forehead.Forehead.run(Forehead.java:543) at com.werken.forehead.Forehead.main(Forehead.java:573) -Original Message- From: Kumar, Vaidhyanatha K. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:05 PM To: Maven Users List Subject: RE: New to Maven Shelly, I have been using maven for a month. From what I know, you need web ONLY to do the initial install, CVS updates etc. Beyond that, you really don't need a web connection. Most of the jar files can be kept in the local repository. Maven is the way to go! Vaidhy Kumar -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:04 AM To: Maven Users List Subject: New to Maven Hi All, I am very new to maven. I do not have internet access, but have access to the web documents. Can I use maven, or do I need to have internet access to use maven. Is there a workaround without using internet. Please guide me. Thanks and Regards, Shelly Singh Infosys Technologies Ltd., Pune. Tel: +91 20 2932800 Ext: 2174 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: New to Maven -- please help
1.3 is fine. On which platform? We've had this sort of report from people on Solaris 1.3 before -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Shelly_Singh [EMAIL PROTECTED] wrote on 07/08/2003 01:23:47 PM: I have jdk version 1.3.0? Which jdk version can be used with maven? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 7:45 AM To: Maven Users List Subject: RE: New to Maven -- please help Or you may have a JDK which is sensitive to the index files in the jars. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Kumar, Vaidhyanatha K. [EMAIL PROTECTED] wrote on 06/08/2003 09:49:36 PM: Shelly, You can try installing JDK1.4.2 and maven b10. OR you might have a unsupported proxy server. The email thread below has some pointers. http://www.mail-archive.com/[EMAIL PROTECTED]/thrd2.html#01898 Vaidhy -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 1:35 AM To: Maven Users List Subject: New to Maven -- please help Hi, I get the following exception when I tried to run Maven. The following is the command i tried: maven -o genApp From one of the users in the list, I got the idea that this is happening because I am probably behind firewall ( I do not even have intrnet access ). Please guide me. Any pointers will be most helpful. Thanks in advance, Shelly sun.misc.InvalidJarIndexException: Invalid index! at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:594) at sun.misc.URLClassPath.getResource(URLClassPath.java:134) at java.net.URLClassLoader$2.run(URLClassLoader.java:349) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findResource(URLClassLoader.java:346) at java.lang.ClassLoader.getResource(ClassLoader.java:734) at java.lang.Class.getResource(Class.java:1249) at org.apache.commons.betwixt.XMLIntrospector. findByXMLDescriptor(XMLInt rospector.java:531) at org.apache.commons.betwixt.XMLIntrospector. introspect(XMLIntrospector .java:256) at org.apache.commons.betwixt.io.BeanReader. registerBeanClass(BeanReader .java:143) at org.apache.maven.MavenUtils.createBeanReader(MavenUtils.java:560) at org.apache.maven.MavenUtils. getProjectBeanReader(MavenUtils.java:324) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:198) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:160) at org.apache.maven.MavenSession. initializeRootProject(MavenSession.java :324) at org.apache.maven.MavenSession.initialize(MavenSession.java:234) at org.apache.maven.cli.App.doMain(App.java:514) at org.apache.maven.cli.App.main(App.java:1088) at java.lang.reflect.Method.invoke(Native Method) at com.werken.forehead.Forehead.run(Forehead.java:543) at com.werken.forehead.Forehead.main(Forehead.java:573) -Original Message- From: Kumar, Vaidhyanatha K. [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 6:05 PM To: Maven Users List Subject: RE: New to Maven Shelly, I have been using maven for a month. From what I know, you need web ONLY to do the initial install, CVS updates etc. Beyond that, you really don't need a web connection. Most of the jar files can be kept in the local repository. Maven is the way to go! Vaidhy Kumar -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 12:04 AM To: Maven Users List Subject: New to Maven Hi All, I am very new to maven. I do not have internet access, but have access to the web documents. Can I use maven, or do I need to have internet access to use maven. Is there a workaround without using internet. Please guide me. Thanks and Regards, Shelly Singh Infosys Technologies Ltd., Pune. Tel: +91 20 2932800 Ext: 2174 - 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] - 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]
RE: New to Maven
you can use it offline by specifying the -o switch (or setting maven.mode.offline in ~/build.properties). However, you will need to manually construct a local repository of JAR files and other artifacts so that Maven can find its dependencies. The structure will need to be identical to http://www.ibiblio.org/maven/ http://www.ibiblio.org/maven/ (although you'll only need the specific JARs you and the maven plugins use). - Brett -Original Message- From: Shelly_Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, 5 August 2003 3:04 PM To: Maven Users List Subject: New to Maven Hi All, I am very new to maven. I do not have internet access, but have access to the web documents. Can I use maven, or do I need to have internet access to use maven. Is there a workaround without using internet. Please guide me. Thanks and Regards, Shelly Singh Infosys Technologies Ltd., Pune. Tel: +91 20 2932800 Ext: 2174