Re: Don't add dependency?
Hi Check out this, it should be the reason jta isn't added you have to install it manually! http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html Greetings, 2006/11/21, jiangshachina [EMAIL PROTECTED]: Hi guys, I have a Web application project. I added javax.transaction:jta:jta-1.0.1B.jar to dependency, but in fact my project doesn't need the jar. Namely, I don't need it on compile-time, test-time or runtime. I run mvn package, and the build was sucessful. I checked WEB-INF/lib directory, but don't find jta-1.0.1B.jar. I always think that Maven would add any jar file in dependencies. But the case means that I'm wrong. I don't believe one case, please show me clearly. Maven can identify any useless jar and doesn't add it to war file? a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Don%27t-add-dependency--tf2677027s177.html#a7466108 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === Utan tvivel är man inte riktigt klok. (Tage Danielsson)
SaxParseException when using DBUnit in M2 build
Hi! I'm using maven 2.0.4 with the Surefire plugin 2.2 to test a couple of DAOs set up with Hibernate. At all tests i get the following exception, and I'm not able to find the cause, which I suspect lies within DBUnit 2.1... I realize that this is probably not a Maven2 problem, but as I guess that many of you use DBUnit, som may recognize it and suggest a solution. org.dbunit.dataset.DataSetException: org.xml.sax.SAXNotSupportedException: not supported setting property http://xml.org/sax/properties/lexical-handler at org.dbunit.dataset.xml.FlatXmlProducer.produce(FlatXmlProducer.java:165) at org.dbunit.dataset.CachedDataSet.init(CachedDataSet.java:71) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:200) at org.dbunit.dataset.xml.FlatXmlDataSet.init(FlatXmlDataSet.java:187) at ks.rah.avik2.dao.DBUnitOperationWrapper.getDataSet(DBUnitOperationWrapper.java:74) at ks.rah.avik2.dao.DBUnitOperationWrapper.cleanInsert(DBUnitOperationWrapper.java:84) at ks.rah.avik2.dao.AbstractDaoTestBase.onSetUp(AbstractDaoTestBase.java:65) at ks.rah.avik2.dao.TestFunctionDao.onSetUp(TestFunctionDao.java:45) Grateful for any help! /B-E - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Books
Check this out: http://www.mergere.com/m2book_download.jsp Sincerely, /B-E 2006/9/11, Douglas Ferguson [EMAIL PROTECTED]: Are there any maven books that are in print? I saw this one, Is it any good? http://www.amazon.com/Pro-Apache-Maven-Milind-Parikh/dp/1590595211/sr=1 -1/qid=1157988413/ref=pd_bbs_1/002-4329355-4816846?ie=UTF8s=books This one looks out of date: http://www.amazon.com/Maven-Developer-Notebook-Timothy-Brien/dp/05960075 07/sr=1-2/qid=1157988413/ref=pd_bbs_2/002-4329355-4816846?ie=UTF8s=book s -- === Utan tvivel är man inte riktigt klok. (Tage Danielsson) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]How to get files into test classpath?
Hi I want to add the path /accesscontro/srcl/WEB-INF/*.xml to the test classpath. There I have a sping configuration file. How do I do it? Regards, /B-E == Bengt-Erik Fröberg, Databasadministratör Institutionen för Epidemiologi och Biostatistik (MEB) Karolinska Institutet Box 281 171 77 Stockholm Tel: (08)-524 823 76 Internet: http://www.meb.ki.se/ http://www.meb.ki.se/
SV: [m2]How to get files into test classpath?
Lovely, thanks! /B-E -Ursprungligt meddelande- Från: Kaare Nilsen [mailto:[EMAIL PROTECTED] Skickat: den 24 januari 2006 15:56 Till: Maven Users List Ämne: Re: [m2]How to get files into test classpath? You could do like this in your pom: build ... testResources testResource directory/accesscontro/srcl/WEB-INF/directory includes include*.xml/include /includes /testResource /testResources ... /build But rememeber then you need to add your current test resources in there also.. like .e.g. build ... testResources testResource directory/accesscontro/srcl/WEB-INF/directory includes include*.xml/include /includes /testResource testResource directorysrc/test/resources/directory includes include*.*/include /includes /testResource /testResources ... /build /Kaare On 24/01/06, Bengt-Erik Fröberg [EMAIL PROTECTED] wrote: Hi I want to add the path /accesscontro/srcl/WEB-INF/*.xml to the test classpath. There I have a sping configuration file. How do I do it? Regards, /B-E == Bengt-Erik Fröberg, Databasadministratör Institutionen för Epidemiologi och Biostatistik (MEB) Karolinska Institutet Box 281 171 77 Stockholm Tel: (08)-524 823 76 Internet: http://www.meb.ki.se/ http://www.meb.ki.se/ - 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]
SV: Dependency on hibernate
Hi You're facing the SUN jarmaggeddon. http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html 1) go to http://java.sun.com/products/jta/ and download class files 2) check out http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html 3) Replace path-to-file with the path to your download 4) group-id with javax.transaction 5) artifact-id with jta 6) version with 1.0.1B 7) packaging with jar 8) watch your desired transaction package get installed hopefully... Yes, I know, there should be a tool for this, feels like the 80's entering shitloads of command line arguments.. HTH /B-E -Ursprungligt meddelande- Från: Guenther Schroettner [mailto:[EMAIL PROTECTED] Skickat: den 19 januari 2006 21:30 Till: Maven Users List Ämne: Dependency on hibernate Hello! I added a dependency on hibernate in my pom.xml: dependency groupIdhibernate/groupId artifactIdhibernate/artifactId version3.1rc2/version scopecompile/scope /dependency If I try to compile I get an error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. required artifacts missing: javax.transaction:jta:jar:1.0.1B Hiberante needs JTA. I was at http://www.ibiblio.org/maven2/ and search for the jar-file. There is no JAR on this server. How can I resolve this dependency? Thanks in advance! - Guenther -- Guenther Schroettner [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]
SV: Is it possible?
Hi! The task of deploying to a Tomcat instance is very interesting for me to. However the docs on the install plugin is very rudimentary. How do you configure the deploy plugin to install your generated war-file into, say %CATALINA_HOME%/webapps on your local machine? And, if possible, to the same directory on a remote production ditto? Regards, /B-E -Ursprungligt meddelande- Från: Boden, David [mailto:[EMAIL PROTECTED] Skickat: den 17 januari 2006 19:11 Till: Maven Users List Ämne: RE: Is it possible? Absolutely. 1. scm plugin. 2 - 4. Very standard, check the documentation. 5. deploy plugin. This is bread and butter for Maven 2. -Original Message- From: Lutz Fechner [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 17, 2006 4:52 PM To: Maven Users List Subject: Is it possible? Hello together, I hope I got the scope of Maven correct. I want to perform theese 5 tasks or goals with Maven: 1. Get sources and ressources from a subversion repository. 2. Compile the sources. 3. Construct the web application. (Copy ressources and classes to the right place) 4. Build a war file. (Take the copied files and place them in a war file) 5. Deploy it on a tomcat server. (Copy the war file to the tomcat server) Is it possible - and how? Bye Lutz Fechner LEGAL DISCLAIMER The information in this transmission is privileged and/or contains confidential information intended solely for the addressee! If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. You must not copy, distribute, disclose or take any action in reliance on or in relation to it. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. VIRUS ADVICE E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, which arise as a result of e-mail transmission. The contents of any attachment to this e-mail may contain software viruses wich could damage your own computer system. While we have taken every reasonable precaution to minimze this risk, we cannot rule out the possibility that attachments may contain software viruses. You should carry out your own virus check before opening the attachments. -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. - 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]
SV: Is it possible?
EXCELLENT documentation on cargo! Maybe to take as a rolemodel for other components of Maven2? Examples of minimal, small and full-fledged configuration, not just a cryptic html-table with a intelligent No description in the column Description. Just check out deploy:deploy goal gets you goin'.. Again: cargo; Bravissimo! /B-E -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Skickat: den 17 januari 2006 19:12 Till: Maven Users List Ämne: Re: Is it possible? Yes, you can use Maven for all of the tasks that you mentioned. In fact, it doesn't really require a lot, as long as you set the packaging entry in your pom.xml file to 'war', and as long as you have the sources and resources in the appropriate locations. (If you don't, then you simply add some extra properties to the pom.xml file. Deploying it to Tomcat is a little trickier, but with Cargo (http://cargo.codehaus.org/) it shouldn't be a problem. 1. Get sources and ressources from a subversion repository. +/- yes, although I usually use svn or cvs commandline tools to check things out. 2. Compile the sources. yes! 3. Construct the web application. (Copy ressources and classes to the right place) yes! 4. Build a war file. (Take the copied files and place them in a war file) yes! 5. Deploy it on a tomcat server. (Copy the war file to the tomcat server) yes, using Cargo: http://cargo.codehaus.org/ Is it possible - and how? Bye Lutz Fechner LEGAL DISCLAIMER The information in this transmission is privileged and/or contains confidential information intended solely for the addressee! If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. You must not copy, distribute, disclose or take any action in reliance on or in relation to it. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. VIRUS ADVICE E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, which arise as a result of e-mail transmission. The contents of any attachment to this e-mail may contain software viruses wich could damage your own computer system. While we have taken every reasonable precaution to minimze this risk, we cannot rule out the possibility that attachments may contain software viruses. You should carry out your own virus check before opening the attachments. -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - 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]
SV: Worst documentation in the whole apache projects
I have posted a wish in JIRA on some kind of standard for plugin documentation à la http://cargo.codehaus.org/Maven2+plugin. Under Documentation. Vote for it if you agree! Regards, /B-E -Ursprungligt meddelande- Från: Tim OBrien [mailto:[EMAIL PROTECTED] Skickat: den 19 januari 2006 17:05 Till: Maven Users List Ämne: Re: Worst documentation in the whole apache projects I've have to totally agree. 200% The documentation is a total joke, it's hard to read and the maintainers don't seem to care to create a consolidated reference. And, the book by Vincent Massol and Tim O'Brien is just a total rag. I mean really, full of typos and everything. C'mon, if Maven were so EASY, why wold we need to read anything to know how to use it. How do they expect us to start a multi-project build when the help documentation is TOTALLY BLANK! And, the fact that Maven forces you to use the ibiblio repositorypuh-lease. You are right though, really I'd have to recommend gmake from now on. Maven is for the birds. I mean, seriously, what are we paying these people for!?! :-) Tim O'Brien [EMAIL PROTECTED] --- Nanamura, Roberto [EMAIL PROTECTED] wrote: Hi, Is there any way to improve all the documentation for the Maven. I will not use Maven anymore since there are a bunch of thing missing from the documentation (and a lot of things do not work like the J2EE archetype which is nowhere to be find and I am not the only one to complain about it). It is good for a simple project (then again, why should I need maven for a simple Hello World project?). But if you add a J2EE layer or other components, it simpy does not have document (for example no document for the topic: Guide to creating a multi-module build). Then how should I create a multi-project maven? What is this artifactId and groupID? What the hell it keeps on going to the repo1.maven.org repository for my sub-projects? What are the examples? No samples? The reference is a joke. How can a reference be so laconious? It is a reference so every tag in the XML must have a good description (even the description in the generated xml is better than the reference!). I do not recommend Maven to anyone starting a serious project for lack of documentation and erroneous documentation. I spent the whole day try to make it work for a simple J2EE project, then I had to google it several times for each error (it should be in the document web-site). Whereas I would take one hour to create the directories, my build and deployment ant targets. Thanks but I'd rather do not use it, Roberto - 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]
SV: Worst documentation in the whole apache projects
I use Maven 2, and I agree on the state of the docs, although I realize this is the deal with open-source software, for better or for worse. I've looked into Ivy framework to see if docs were more complete and transparent, but at the time I was so exhausted by looking for answers, reading webpages and docs on M2 with poor layout etc. so I decided to go along with M2. Personally, I don't go along trying to do multiple module builds and stuff, it's just to unclear and buggy unless you want to spend 80% of development time trying to figure out exactly what is wrong. No, I let Maven 2 handle the dependencies which it does well (hrmm, at least when the reflexive dependencies exist in repository or some hot-shot developer uses a red-hot-smoking-fresh version for dependency). The trick as I see it is not to go to the next version of your dependencies at once, just wait and let the bugs and errors be resolved. Use Maven 2 along with the antrun plugin, do your build stuff in ANT, and use M2 together with a good IDE like Eclipse. Then it's really helpful. I've looked into maven 1, and I'm amazed anyone had the stamina to learn and then use it. Thank God (in that perspective) for M2. Regards, /B-E -Ursprungligt meddelande- Från: Arnaud HERITIER [mailto:[EMAIL PROTECTED] Skickat: den 18 januari 2006 22:22 Till: Maven Users List Ämne: Re: Worst documentation in the whole apache projects You can also use maven 1 and you'll find a lot of documentation in the web. There's also : - a book written by Vincent Massol Tim O'Brien *Maven*: A *Developer's Notebook* - an article :http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html A book for maven 2 will be available in some weeks / months !! Arnaud On 1/18/06, Carlos Sanchez [EMAIL PROTECTED] wrote: You can choose: - using it with the documentation it has - create your own system and document it to the extent you want just good luck if you choose second option ;) On 1/18/06, Nanamura, Roberto [EMAIL PROTECTED] wrote: Hi, Is there any way to improve all the documentation for the Maven. I will not use Maven anymore since there are a bunch of thing missing from the documentation (and a lot of things do not work like the J2EE archetype which is nowhere to be find and I am not the only one to complain about it). It is good for a simple project (then again, why should I need maven for a simple Hello World project?). But if you add a J2EE layer or other components, it simpy does not have document (for example no document for the topic: Guide to creating a multi-module build). Then how should I create a multi-project maven? What is this artifactId and groupID? What the hell it keeps on going to the repo1.maven.org repository for my sub-projects? What are the examples? No samples? The reference is a joke. How can a reference be so laconious? It is a reference so every tag in the XML must have a good description (even the description in the generated xml is better than the reference!). I do not recommend Maven to anyone starting a serious project for lack of documentation and erroneous documentation. I spent the whole day try to make it work for a simple J2EE project, then I had to google it several times for each error (it should be in the document web-site). Whereas I would take one hour to create the directories, my build and deployment ant targets. Thanks but I'd rather do not use it, Roberto - 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]
SV: Help!!!
Why use Maven 1 when there is a Maven 2? Regards, /B-E -Ursprungligt meddelande- Från: Dion Gillard [mailto:[EMAIL PROTECTED] Skickat: den 17 januari 2006 15:21 Till: Maven Users List; narayan dhumale Ämne: Re: Help!!! How are you running the jar? It's not clear from your email... On 17 Jan 2006 13:52:59 -, narayan dhumale [EMAIL PROTECTED] wrote: Hello, I have installed the maven 1.0.2 on my PC after which proper environmental variables also set. I am trying to compile the java clasas in my template(a sample application).Also try to create the junit testcases compile them. All these things are happening properly by executing build by following command --C:test\a\b:maven jar. After this if i try to execute the JAR file(say test-application.1.0.jar)by giving command --C:test\a\b:maven ^ ? test-application-1.0.jar mdn.testapp.App ,i am getting Exception in Thread main java.lang.NoclassDefFoundError. Why its happening? The class contains the simple S.O.P of HELLO WORLD! Can anybody help me please Regards, Shailesh -- http://www.multitask.com.au/people/dion/ In order to succeed, your desire for success should be greater than your fear of failure. - Bill Cosby - 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]
SV: Not possible to add multiple test resources
Thanks, it works in the way that M2 doesn't protest, but it still doesn't seems to include the additional directory in the classpath. Is there a way to debug and see what directories are included in the test classpath, or do the surefire plugin just use the local JUnit-settings? Regards, /B-E -Ursprungligt meddelande- Från: Doug Douglass [mailto:[EMAIL PROTECTED] Skickat: den 10 januari 2006 19:26 Till: Maven Users List Ämne: Re: Not possible to add multiple test resources I'm not using m2 in production yet, but with m1 you would define another resource (testResource in your case), one directory per resource. I don't think this model has changed. In other words: testResources testResource directorysrc/test/resources/directory /testResource testResource directorysrc/main/webapp/WEB-INF/directory /testResource /testResources Perhaps check the POM model. Doug Bengt-Erik Fröberg wrote: Hi again! Ive developed a taste for this mailing list Is it really true that this is not possible!? testResource directorysrc/test/resources/directory directorysrc/main/webapp/WEB-INF/directory /testResource M2 chokes on it... kinda' takes the greatness out of XML, don't you think? I need to add another directory to the test classpath how do I do? (Beginning to REALLY look forward to a comprehensive Maven2 book) Regards, /B-E - 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]
How to bind execution of integration tests to integration-test phase
Hi I have a set of JUnit unit tests which are executed during the test lifecycle phase. Now I want to add integration-test classes in another directory to be executed during the integration-test phase. How do I accomplish that? Using Maven2 and ANT. Regards, /B-E - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: How to bind execution of integration tests to integration-test phase
Hi and thanks for answering. I see but what does the integration-test phase actually do today then? Regards, /B-E -Ursprungligt meddelande- Från: Vincent Massol [mailto:[EMAIL PROTECTED] Skickat: den 10 januari 2006 16:12 Till: 'Maven Users List' Ämne: RE: How to bind execution of integration tests to integration-test phase Hi, -Original Message- From: Bengt-Erik Fröberg [mailto:[EMAIL PROTECTED] Sent: mardi 10 janvier 2006 14:34 To: 'Maven Users List' Subject: How to bind execution of integration tests to integration-test phase Hi I have a set of JUnit unit tests which are executed during the test lifecycle phase. Now I want to add integration-test classes in another directory to be executed during the integration-test phase. How do I accomplish that? Using Maven2 and ANT. Right now you can't run both unit tests and integration tests in the same project. We're discussing this and we'll probably modify the surefire plugin to allow it. See http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies Thanks -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.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]
SV: How to bind execution of integration tests to integration-test phase
OK, kinda' weird actually... is it a hard task to extend this surefire plugin to support different kinds of tests? It would be great if you were able to define your own set of directories with tests of different types and to optionally bind each directory to a custom phase. Maybe a tests-tag in the POM? I saw there is already a discussion on these matters in the link you submitted. That's great! Regards, /B-E -Ursprungligt meddelande- Från: Vincent Massol [mailto:[EMAIL PROTECTED] Skickat: den 10 januari 2006 16:38 Till: 'Maven Users List' Ämne: RE: How to bind execution of integration tests to integration-test phase -Original Message- From: Bengt-Erik Fröberg [mailto:[EMAIL PROTECTED] Sent: mardi 10 janvier 2006 16:28 To: 'Maven Users List' Subject: SV: How to bind execution of integration tests to integration- test phase Hi and thanks for answering. I see but what does the integration-test phase actually do today then? It's a phase you can bind to. What I'm simply saying is that the surefire plugin currently only supports running one type of tests at once. -Vincent -Ursprungligt meddelande- Från: Vincent Massol [mailto:[EMAIL PROTECTED] Skickat: den 10 januari 2006 16:12 Till: 'Maven Users List' Ämne: RE: How to bind execution of integration tests to integration-test phase Hi, -Original Message- From: Bengt-Erik Fröberg [mailto:[EMAIL PROTECTED] Sent: mardi 10 janvier 2006 14:34 To: 'Maven Users List' Subject: How to bind execution of integration tests to integration-test phase Hi I have a set of JUnit unit tests which are executed during the test lifecycle phase. Now I want to add integration-test classes in another directory to be executed during the integration-test phase. How do I accomplish that? Using Maven2 and ANT. Right now you can't run both unit tests and integration tests in the same project. We're discussing this and we'll probably modify the surefire plugin to allow it. See http://docs.codehaus.org/display/MAVEN/best+practices+-+testing+strategies Thanks -Vincent __ _ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.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] ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.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]
Not possible to add multiple test resources
Hi again! Ive developed a taste for this mailing list Is it really true that this is not possible!? testResource directorysrc/test/resources/directory directorysrc/main/webapp/WEB-INF/directory /testResource M2 chokes on it... kinda' takes the greatness out of XML, don't you think? I need to add another directory to the test classpath how do I do? (Beginning to REALLY look forward to a comprehensive Maven2 book) Regards, /B-E - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to prevent jar to be included in WEB-INF/lib?
Hi I have a question about preventing jsp-api2.0.jar to be included in /lib in a webapp, since it prevents normal execution of it. The jar in question is a dependency of some of my dependencies. How do I find out which, and how do I exclude this jar in the POM? Documentation is not very clear Regards, /B-E
SV: How to prevent jar to be included in WEB-INF/lib?
Addendum: I've tried dependency groupIdjspapi/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency No luck /B-E -Ursprungligt meddelande- Från: Bengt-Erik Fröberg [mailto:[EMAIL PROTECTED] Skickat: den 9 januari 2006 16:16 Till: 'Maven Users List' Ämne: How to prevent jar to be included in WEB-INF/lib? Hi I have a question about preventing jsp-api2.0.jar to be included in /lib in a webapp, since it prevents normal execution of it. The jar in question is a dependency of some of my dependencies. How do I find out which, and how do I exclude this jar in the POM? Documentation is not very clear Regards, /B-E - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: How to prevent jar to be included in WEB-INF/lib?
Hi Yann and thanks! It seems to be the exact same problem, yes, and it also involves acegisecurity, but version 0.9.0 this time, which has a compile-dependency on jsp.api 2.0. That causes it to be included in WEB-INF/lib, and Tomcat 5.5.11 does not approve. Thanks to all you other helpers out there (i.e Wendy), this snippet in my POM seems to fix the acute problem: dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version1.2.6/version scopecompile/scope exclusions exclusion groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId /exclusion /exclusions /dependency dependency groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.9.0/version scopecompile/scope exclusions exclusion groupIdjavax.servlet/groupId artifactIdjsp-api/artifactId /exclusion exclusion groupIdspringframework/groupId artifactIdspring/artifactId /exclusion exclusion groupIdspringframework/groupId artifactIdspring-mock/artifactId /exclusion /exclusions /dependency (Acegi 0.9 is also depending on Spring 1.2.6, hence the Spring exclusions) Regards, /B-E -Ursprungligt meddelande- Från: Yann Le Du [mailto:[EMAIL PROTECTED] Skickat: den 9 januari 2006 17:42 Till: Maven Users List Ämne: Re: How to prevent jar to be included in WEB-INF/lib? Hi Bengt-Erik, Ran into the same one : http://www.mail-archive.com/users@maven.apache.org/msg31444.html Try and relocate the jspapi:jsp-api to javax.servlet:jsp-api in your local repository - take example on what has been done for servlet-api : http://www.ibiblio.org/maven2/servletapi/servlet-api/2.4/servlet-api-2.4.pom If it's working for you, I'll file an issue to relocate jspapi:jsp-api in central repository. Maybe I'll do it anyway, since it looks like having to be done... -- Yann 2006/1/9, Wendy Smoak [EMAIL PROTECTED]: On 1/9/06, Bengt-Erik Fröberg [EMAIL PROTECTED] wrote: Addendum: I've tried dependency groupIdjspapi/groupId artifactIdjsp-api/artifactId version2.0/version scopeprovided/scope /dependency To find out which of your dependencies is causing the problem, use -X on the mvn command line. If necessary, you can to redirect the output to a file with ' filename.txt' . Then add an exclusion to that dependency in your pom.xml. Here's a post with some examples of exclusions: http://article.gmane.org/gmane.comp.jakarta.tapestry.devel/9103 (Depending on how the dependency was originally declared, and whether I'm remembering correctly, you might need to use either groupId jspapi or javax.servlet for the JSP API.) Finally, open a JIRA ticket under MEV so that the pom for that dependency can be fixed. Or at least reply here and tell us which one it was. :) -- Wendy - 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]
SV: How to specify external jars
Hi I assume you are using Maven2. Can you find the uploaded jars in your repository? Have you checked the internal structure of your installed jars? (for example if foo.jar is installed, and it in its turn contains bar.jar, fu.jar etc maven won't find them) Have you checked that yout dependency is correctly declared? Regards, /B-E -Ursprungligt meddelande- Från: Pagadala Baskar, Kiran Kumar (Cognizant) [mailto:[EMAIL PROTECTED] Skickat: den 3 januari 2006 13:10 Till: Maven Users List Ämne: How to specify external jars Hi, I have a couple of external jars that I need for my Project compilation. I have uploaded them to the local repository using: mvn install:install-file -Dfile=File Path\JAR_NAME.jar -DgroupId=groupId -DartifactId=JAR_NAME -Dversion=1.0 -Dpackaging=jar I tried adding the jar as a dependency to my POM.xml. When I try to compile the project using mvn compile, it is still not detected. I even tried to add the jars to my CLASSPATH manually. Even that doesn't help. Could someone please let me know where I am going wrong? Thanks and Regards, Kiran This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.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] LOTS of dependencies just not found
Hi Looks great, it has the features I was asking for. This is splendid and very, very welcome news! Now I won't be whining anymore about this ;) Regards, /B-E -Ursprungligt meddelande- Från: Brett Porter [mailto:[EMAIL PROTECTED] Skickat: den 28 december 2005 11:51 Till: Maven Users List; [EMAIL PROTECTED] Ämne: Re: SV: LOTS of dependencies just not found All, please refer to the discussions of the repository manager on the dev list. This has been planned for a significant amount of time and is now under way. http://docs.codehaus.org/display/MAVEN/Repository+Manager Contributions welcome :) We discuss it on [EMAIL PROTECTED] - Brett - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Reoccurring problem with library
Hi I keep getting this rather obscure-named library as a dependency. Why can't it's creators put it I Maven2 scope to download as a normal dependency? Project ID: asn1-ber:asn1-codec Reason: Error getting POM for 'asn1-ber:asn1-codec' from the repository: Error transferring file asn1-ber:asn1-codec:pom:0.3 from the specified remote repositories: central (http://repo1.maven.org/maven2) The package is placed here: http://www.ibiblio.org/pub/packages/maven2/directory-asn1/asn1-codec/ Why? Why? Why? I'm getting just a little fed up with finding and manually installing this apparently crucial library. Anyone know why it is not published? Regards, /B-E == Bengt-Erik Fröberg, Databasadministratör Institutionen för Epidemiologi och Biostatistik (MEB) Karolinska Institutet Box 281 171 77 Stockholm Tel: (08)-524 823 76 Internet: http://www.meb.ki.se/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LOTS of dependencies just not found
Trying to introduce Maven2 (2.0.1) in my organization, the idea is great, but alas I find the practice to be somewhat dissatisfying. Trace of a perfectly normal use-case below. POM is very simple with a few dependencies, but still the number of 'WARNING', 'relocated' and 'missing' is far too high for me to dare present it for my fellow programmers. What can you do about this? Should I abandon Maven2 as a tool entirely or just wait for it to mature? I really need advice on this, because right now it feels as if I'm spending most effort in manually installing missing libraries and dependencies and trying to resolve things that just should work. Out of the box. You probably can argue that the dependencies and POMs are the responsibility of the ones publishing their work at ibiblio. True. But if they can't handle it, well then there's has to be some kind of control or validation of the poms to ensure the 'dependencies of the dependencies' really exist. Because if this goes on, I won't be the only one to doubt the usability of Maven2 Regards, /C [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [eclipse:eclipse] [INFO] [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping Downloading: http://repo1.maven.org/maven2/asn1-ber/asn1-codec/0.3/asn1-codec-0.3.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading jcifs:jcifs:1.2.6 This artifact has been relocated to org.samba.jcifs:jcifs:1.2.6. [WARNING] POM for 'springframework:spring-mock:pom:1.2.5' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. Downloading: http://repo1.maven.org/maven2/xdoclet-plugins/xdoclet-plugin-qtags/${pom.cur rentVersion}/xdoclet-plugin-qtags-${pom.currentVersion}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/generama/qdox/20051211.114207/qdox-20051211.11 4207.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading jstl:jstl:1.0.6 This artifact has been relocated to javax.servlet:jstl:1.0.6. Downloading: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1 .pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading icu4j:icu4j:2.6.1 This artifact has been relocated to com.ibm.icu:icu4j:2.6.1. [WARNING] While downloading servletapi:servletapi:2.4 This artifact has been relocated to javax.servlet:servlet-api:2.4. [WARNING] While downloading tagsoup:tagsoup:0.9.7 This artifact has been relocated to org.ccil.cowan.tagsoup:tagsoup:0.9.7. [WARNING] POM for 'picocontainer:picocontainer:pom:1.0' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen .../url\n logohttp://codehaus.org/codehaus-small.gif/... @13:55) [WARNING] POM for 'dom4j:dom4j:pom:1.4-dev-8' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...artifactIdjunitartifactId... @47:36) Downloading: http://repo1.maven.org/maven2/groovy/groovy-all/1.0-jsr-04/groovy-all-1.0-js r-04.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/xpp3/xpp3/1.1.3.4-RC8_min/xpp3-1.1.3.4-RC8_min .pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] POM for 'picocontainer:picocontainer:pom:1.0' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen .../url\n logohttp://codehaus.org/codehaus-small.gif/... @13:55) Downloading: http://repo1.maven.org/maven2/freemarker/freemarker/2.3/freemarker-2.3.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading:
SV: LOTS of dependencies just not found
Hi I actually would prefer that dependencies with incomplete and faulty POMs be discarded. Because today all I get is messages on errors and warnings, and there is not a thing I can do to correct them myself. Spending the minutes that remains of the workday when all the other fixing and trixing around maven publishing issues on a JIRA well, I have to check if that is OK with my employer ;) Better to get a message: Sorry, the dependency you are requesting has an incomplete or non-valid POM. Choose another version Regards, -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Carlos Sanchez Skickat: den 27 december 2005 16:18 Till: Maven Users List Ämne: Re: LOTS of dependencies just not found Well, we could prevent the upload of some artifacts whose dependencies are not available, but then you would complain about them being missing, it's a matter of taste. Some pointers: http://maven.apache.org/guides/mini/guide-maven-evangelism.html http://maven.apache.org/guides/mini/guide-ibiblio-upload.html http://jira.codehaus.org/browse/MNG-1689 On 12/27/05, Bengt-Erik Fröberg [EMAIL PROTECTED] wrote: Trying to introduce Maven2 (2.0.1) in my organization, the idea is great, but alas I find the practice to be somewhat dissatisfying. Trace of a perfectly normal use-case below. POM is very simple with a few dependencies, but still the number of 'WARNING', 'relocated' and 'missing' is far too high for me to dare present it for my fellow programmers. What can you do about this? Should I abandon Maven2 as a tool entirely or just wait for it to mature? I really need advice on this, because right now it feels as if I'm spending most effort in manually installing missing libraries and dependencies and trying to resolve things that just should work. Out of the box. You probably can argue that the dependencies and POMs are the responsibility of the ones publishing their work at ibiblio. True. But if they can't handle it, well then there's has to be some kind of control or validation of the poms to ensure the 'dependencies of the dependencies' really exist. Because if this goes on, I won't be the only one to doubt the usability of Maven2 Regards, /C [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'eclipse'. [INFO] [INFO] Building Maven Webapp Archetype [INFO]task-segment: [eclipse:eclipse] [INFO] [INFO] Preparing eclipse:eclipse [INFO] No goals needed for project - skipping Downloading: http://repo1.maven.org/maven2/asn1-ber/asn1-codec/0.3/asn1-codec-0.3.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading jcifs:jcifs:1.2.6 This artifact has been relocated to org.samba.jcifs:jcifs:1.2.6. [WARNING] POM for 'springframework:spring-mock:pom:1.2.5' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. Downloading: http://repo1.maven.org/maven2/xdoclet-plugins/xdoclet-plugin-qtags/${pom.cur rentVersion}/xdoclet-plugin-qtags-${pom.currentVersion}.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/generama/qdox/20051211.114207/qdox-20051211.11 4207.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading servletapi:servletapi:2.3 This artifact has been relocated to javax.servlet:servlet-api:2.3. [WARNING] While downloading jstl:jstl:1.0.6 This artifact has been relocated to javax.servlet:jstl:1.0.6. Downloading: http://repo1.maven.org/maven2/xerces/xmlParserAPIs/2.6.1/xmlParserAPIs-2.6.1 .pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.pom [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WARNING] While downloading xml-apis:xml-apis:2.0.2 This artifact has been relocated to xml-apis:xml-apis:1.0.b2. [WARNING] While downloading icu4j:icu4j:2.6.1 This artifact has been relocated to com.ibm.icu:icu4j:2.6.1. [WARNING] While downloading servletapi:servletapi:2.4 This artifact has been relocated to javax.servlet:servlet-api:2.4. [WARNING] While downloading tagsoup:tagsoup:0.9.7 This artifact has been relocated to org.ccil.cowan.tagsoup:tagsoup:0.9.7. [WARNING] POM for 'picocontainer:picocontainer:pom:1.0' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: expected START_TAG or END_TAG not TEXT (position: TEXT seen .../url
SV: LOTS of dependencies just not found
Wrote an issue to maven-repository-plugin-JIRA. I don't think you should be allowed to publish to repository if dependencies of the stuff you're publishing does not exist. Regards, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]