Trying to run both Junit and TestNG tests with Maven 2
I am trying to include some TestNG suites into existing project with Junit tests. Naturally I put TestNG code into src/test/java source folder. After I added dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version5.8/version classifierjdk15/classifier scopetest/scope /dependency Command 'mvn test' executes TestNG code only, completely ignoring Junit code. No matter what I did in surefire plug-in, even if I remove it at all. Could you suggest the way to makeboth Junit and TestNG to be executed? Thanks, Vladimir Kravtsov TeleCommunication Systems 949-453-3491 (desk) 425-443-4502 (cell)
RE: ** Maven Build Error, Please assist **
Hi MVN User community, Turned on the switch which is and attached txt file is having the exception trace mvn_error.txt Regards _ From: Gopilal, Sanjay: IT (SGP) Sent: 29 December 2009 16:33 To: 'users@maven.apache.org' Subject: ** Maven Build Error, Please assist ** Importance: High Hi We are getting below error, im newbie to the maven, please could someone assist what can be done to get rid of the below error. December 28 2009 08:57:44PM GMT EXEC [INFO] -- -- 943 December 28 2009 08:57:44PM GMT EXEC [ERROR] BUILD ERROR 944 December 28 2009 08:57:44PM GMT EXEC [INFO] -- -- 945 December 28 2009 08:57:44PM GMT EXEC [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 946 December 28 2009 08:57:44PM GMT EXEC Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutfl at. 947 Note: Maven Version used is 2.0.8 Regards Sanjay ___ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ___ December 29 2009 03:12:10AM GMT EXEC[INFO] [install:install] 505 December 29 2009 03:12:10AM GMT EXEC[INFO] Installing /home/firstdev/buildforge_service_workstation/service_workstation_DEPLOY/service_workstation_release/../service_workstation_new_common/target/service_workstation_new_common-1.0-SNAPSHOT.jar to /home/firstdev/.m2/repository/com/lb/eq/serviceworkstation/service_workstation_new_common/1.0-SNAPSHOT/service_workstation_new_common-1.0-SNAPSHOT.jar 506 December 29 2009 03:12:10AM GMT EXEC[INFO] 507 December 29 2009 03:12:10AM GMT EXEC[ERROR] BUILD ERROR 508 December 29 2009 03:12:10AM GMT EXEC[INFO] 509 December 29 2009 03:12:10AM GMT EXEC[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 510 December 29 2009 03:12:10AM GMT EXECComponent descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat. 511 December 29 2009 03:12:10AM GMT EXEC[INFO] 512 December 29 2009 03:12:10AM GMT EXEC[INFO] Trace 513 December 29 2009 03:12:10AM GMT EXEC org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 514 December 29 2009 03:12:10AM GMT EXECat org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543) 515 December 29 2009 03:12:10AM GMT EXECat org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) 516 December 29 2009 03:12:10AM GMT EXECat org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) 517 December 29 2009 03:12:10AM GMT EXECat
** Maven Build Error, Please assist **
Hi We are getting below error, im newbie to the maven, please could someone assist what can be done to get rid of the below error. December 28 2009 08:57:44PM GMT EXEC [INFO] 943 December 28 2009 08:57:44PM GMT EXEC [ERROR] BUILD ERROR 944 December 28 2009 08:57:44PM GMT EXEC [INFO] 945 December 28 2009 08:57:44PM GMT EXEC [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 946 December 28 2009 08:57:44PM GMT EXEC Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat . 947 Note: Maven Version used is 2.0.8 Regards Sanjay ___ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ___ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ** Maven Build Error, Please assist **
hello, this error reminds very much to the problems I faced between maven2 and maven3. the flat repository layout is part of maven3 (as far I now) and can only be used with maven3. in case I do not make sense, please ignore what I said. with regards Kristian On Tue, Dec 29, 2009 at 2:20 PM, sanjay.gopi...@barclayscapital.com wrote: Hi MVN User community, Turned on the switch which is and attached txt file is having the exception trace mvn_error.txt Regards _ From: Gopilal, Sanjay: IT (SGP) Sent: 29 December 2009 16:33 To: 'users@maven.apache.org' Subject: ** Maven Build Error, Please assist ** Importance: High Hi We are getting below error, im newbie to the maven, please could someone assist what can be done to get rid of the below error. December 28 2009 08:57:44PM GMT EXEC [INFO] -- -- 943 December 28 2009 08:57:44PM GMT EXEC [ERROR] BUILD ERROR 944 December 28 2009 08:57:44PM GMT EXEC [INFO] -- -- 945 December 28 2009 08:57:44PM GMT EXEC [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 946 December 28 2009 08:57:44PM GMT EXEC Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutfl at. 947 Note: Maven Version used is 2.0.8 Regards Sanjay ___ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered office at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ___ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Kristian Meier + Saumya Sharma + Sanuka Meier Vadakkethu House, Edayanmula West PO - 689532, Pathanamthitta District, Kerala, INDIA tel: +91 468 2319577 protect your privacy while searching the net: www.ixquick.com _=_ q(-_-)p '_) (_` /__/ \ _(_ / )_ (__\_\_|_/__) - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ** Maven Build Error, Please assist **
Your computer is unable to find version 2.5 of the Deploy Plugin. Check to see is it is in your local repository at ~/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/ If your company is using a repository manager, you might need to talk to the admins of that manager to get this plugin installed in the repo manager. sanjay.gopi...@barclayscapital.com wrote: Hi We are getting below error, im newbie to the maven, please could someone assist what can be done to get rid of the below error. December 28 2009 08:57:44PM GMT EXEC [INFO] 943 December 28 2009 08:57:44PM GMT EXEC [ERROR] BUILD ERROR 944 December 28 2009 08:57:44PM GMT EXEC [INFO] 945 December 28 2009 08:57:44PM GMT EXEC [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy': Unable to find the mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy' in the plugin 'org.apache.maven.plugins:maven-deploy-plugin' 946 December 28 2009 08:57:44PM GMT EXEC Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutflat . 947 Note: Maven Version used is 2.0.8 Regards Sanjay ___ This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unless specifically indicated, this e-mail is not an offer to buy or sell or a solicitation to buy or sell any securities, investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Barclays. Any views or opinions presented are solely those of the author and do not necessarily represent those of Barclays. This e-mail is subject to terms available at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent to the foregoing. Barclays Capital is the investment banking division of Barclays Bank PLC, a company registered in England (number 1026167) with its registered of fice at 1 Churchill Place, London, E14 5HP. This email may relate to or be sent from other members of the Barclays Group. ___ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Settings.xml : Maven repositories releases, updatePolicy = utility
hi I am wonder me the utility of the updatePolicy rule for releases repositories. I set i to always for snapshots repository but in my opinion updatePolicy for releases repo is not needed. Except if Maven works like nexus with a request cache ? Fabrice - http://old.nabble.com/file/u1297858/ft.gif Architect Almerys, activité santé d'Orange Business Services, TOULOUSE http://www.orange-business.com http://www.orange-business.com -- View this message in context: http://old.nabble.com/Settings.xml-%3A-Maven-repositories-releases%2C-updatePolicy-%3D%3E-utility-tp26952952p26952952.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
Using Maven Changes plugin for bugzilla
Hi All, Does the mavenchanges plugin is integrated with bugzilla.Mean to say whether it generates the change.xml is getting generated by taking the info from bugzilla between the releases. I have got another plugin i,e-Bugzilla Maven Changes.but don't know how to use it. Thanks, Debasis -- View this message in context: http://old.nabble.com/Using-Maven-Changes-plugin-for-bugzilla-tp26952983p26952983.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: Using Maven Changes plugin for bugzilla
DebasisM wrote: Hi All, Does the mavenchanges plugin is integrated with bugzilla.Mean to say whether it generates the change.xml is getting generated by taking the info from bugzilla between the releases. No, but it is a reported issue: http://jira.codehaus.org/browse/MCHANGES-58 I have got another plugin i,e-Bugzilla Maven Changes.but don't know how to use it. Where did you find that plugin? Perhaps it would be possible to integrate it into the Changes Plugin. Thanks, Debasis -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using Maven Changes plugin for bugzilla
http://sourceforge.net/projects/bugzillachanges http://sourceforge.net/projects/bugzillachanges But no documents available which talks about the goal details and usage. Thanks, Debasis Dennis Lundberg-2 wrote: DebasisM wrote: Hi All, Does the mavenchanges plugin is integrated with bugzilla.Mean to say whether it generates the change.xml is getting generated by taking the info from bugzilla between the releases. No, but it is a reported issue: http://jira.codehaus.org/browse/MCHANGES-58 I have got another plugin i,e-Bugzilla Maven Changes.but don't know how to use it. Where did you find that plugin? Perhaps it would be possible to integrate it into the Changes Plugin. Thanks, Debasis -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Using-Maven-Changes-plugin-for-bugzilla-tp26952983p26953240.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
Maven + JUnit, what's the best approach?
I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. -- Eyal Edri
release:prepare and plugin in snapshot version
Hello, To compile the JSP I use the plugin org.apache.maven.plugins:jspc-maven-plugin:1.4.7-SNAPSHOT. I use version 1.4.7-SNAPSHOT and not 1.4.6 to exclude some JSP from compilation http://jira.codehaus.org/browse/MJSPC-8 http://jira.codehaus.org/browse/MJSPC-8 . To my knowledge there is no release for v1.4.7. I can't make the release of my project. release:prepare detects that the plugin is in SNAPSHOT (There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes / no)), I answer yes or no, the build fails. I don't know how to get out. The solution is it to put it in my enterprise repository plugin version release (v1.4.6.1 for example). Thank you for your help. Remy -- View this message in context: http://old.nabble.com/release%3Aprepare-and-plugin-in-snapshot-version-tp26954720p26954720.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: Maven + JUnit, what's the best approach?
Hi, I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. You should follow the folder structure src/main/java ... src/main/resources src/test/java ... src/test/resources Further details here: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? Just write them as usual JUnit Test Cases Than you can simple do mvn test to run the test cases or use Eclipse/Netbeans etc. run them from the IDE instead... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven + JUnit, what's the best approach?
eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven + JUnit, what's the best approach?
thanks, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: *import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class DbUtilTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public DbUtilTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( DbUtilTest.class ); } /** * Rigorous Test :-) */ public void testApp() { assertTrue( true ); } }* should i change the junit in the pom to 4.7? in some junit examples they use annotations (@Test), which doesn't work with that code.. i'm a bit confused... On Tue, Dec 29, 2009 at 3:58 PM, Ognjen Blagojevic ogn...@etf.bg.ac.rswrote: eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: Maven + JUnit, what's the best approach?
Hi, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? Maven does not create Test Classes... i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: should i change the junit in the pom to 4.7? Yes you should, cause if you use JUnit 4.X instead of 3.8 ? in some junit examples they use annotations (@Test), which doesn't work with that code.. You have to use JUnit 4.X instead and configure to use Java 1.5 at least to be able to use Annotations... Add a part build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target debugtrue/debug /configuration /plugin /plugins /build in your pom to compile with 1.5 or as in this example with 1.6... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven + JUnit, what's the best approach?
On Tue, Dec 29, 2009 at 4:15 PM, Karl Heinz Marbaise khmarba...@gmx.dewrote: Hi, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? Maven does not create Test Classes... It does if you choose 'quickstart' project ... i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: should i change the junit in the pom to 4.7? Yes you should, cause if you use JUnit 4.X instead of 3.8 ? in some junit examples they use annotations (@Test), which doesn't work with that code.. You have to use JUnit 4.X instead and configure to use Java 1.5 at least to be able to use Annotations... i did that, i assume i need to delete the code maven crated and write a new one. i had to use the mvn cli to update the junit from 3.8.1 to 4.7 and run mvn eclipse:eclipse. only then i was able to use the code from the example. thanks. Add a part build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target debugtrue/debug /configuration /plugin /plugins /build in your pom to compile with 1.5 or as in this example with 1.6... Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: release:prepare and plugin in snapshot version
I resolved the problem like this : Add this ligne in the file .m2/settings.xml : usePluginRegistrytrue/usePluginRegistry Create the file .m2/plugin-registry.xml with : ?xml version=1.0 encoding=UTF-8? pluginRegistry xsi:schemaLocation=http://maven.apache.org/PLUGIN_REGISTRY/1.0.0 [url]http://maven.apache.org/xsd/plugin-[/url] registry-1.0.0.xsd xmlns=http://maven.apache.org/PLUGIN_REGISTRY/1.0.0; xmlns: xsi=http://www.w3.org/2001/XMLSchema-instance; plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId useVersion1.4.7-SNAPSHOT/useVersion rejectedVersions rejectedVersion1.4.6/rejectedVersion /rejectedVersions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId useVersion1.0.1-alpha-1/useVersion /plugin /plugins /pluginRegistry I delete the version plugin in the pom.xml. Le goal release:prepare is ok. Is it the best way ? Rémy Rémy wrote: Hello, To compile the JSP I use the plugin org.apache.maven.plugins:jspc-maven-plugin:1.4.7-SNAPSHOT. I use version 1.4.7-SNAPSHOT and not 1.4.6 to exclude some JSP from compilation http://jira.codehaus.org/browse/MJSPC-8 http://jira.codehaus.org/browse/MJSPC-8 . To my knowledge there is no release for v1.4.7. I can't make the release of my project. release:prepare detects that the plugin is in SNAPSHOT (There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes / no)), I answer yes or no, the build fails. I don't know how to get out. The solution is it to put it in my enterprise repository plugin version release (v1.4.6.1 for example). Thank you for your help. Remy -- View this message in context: http://old.nabble.com/release%3Aprepare-and-plugin-in-snapshot-version-tp26954720p26955433.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: release:prepare and plugin in snapshot version
2009/12/29 Rémy remy.tempora...@gmail.com Hello, To compile the JSP I use the plugin org.apache.maven.plugins:jspc-maven-plugin:1.4.7-SNAPSHOT. I use version 1.4.7-SNAPSHOT and not 1.4.6 to exclude some JSP from compilation http://jira.codehaus.org/browse/MJSPC-8 http://jira.codehaus.org/browse/MJSPC-8 . To my knowledge there is no release for v1.4.7. I can't make the release of my project. release:prepare detects that the plugin is in SNAPSHOT (There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes / no)), I answer yes or no, the build fails. I don't know how to get out. The solution is it to put it in my enterprise repository plugin version release (v1.4.6.1 for example). I would go with 1.4.6-yourcompany-1 that is the correct solution Thank you for your help. Remy -- View this message in context: http://old.nabble.com/release%3Aprepare-and-plugin-in-snapshot-version-tp26954720p26954720.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: Maven + JUnit, what's the best approach?
2009/12/29 eyal edri eyal.e...@gmail.com thanks, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) IMHO, accurev is a pile of esp if you want to use Maven. There are some architectural decisions that they made which make use with Maven a pain. Subversion is great with Maven, and it's free too Also having migrated our 11 years worth of source control from Accurev to Subversion (including writing a tool [which my employers will not let me publish] to extract the full history into Subversion) I would not personally touch Accurev with a 1000 foot barge pole. I know others feel differently, and these are my personal opinions, but anywho, just thought you'd appreciate the feedback -Stephen P.S. 1. You cannot export a tree into a subfolder of a workspace (makes using the maven release plugin a nightmare) 2. You cannot have a workspace as a subfolder of another workspace (makes aggregator style projects a pain... You can solve this by using include/exclude rules and some partial view stuff... but that only works if you only use one depot...) 3. Snapshot/workspace names must be unique at any point in time... and you cannot delete snapshots... makes tagging a pain... try re-rolling a release with maven-release-plugin 4. AFAIK, Maven release plugin does not work yet with Accurev (as the SCM support for maven was not where it needed to be before we ditched Accurev) I had written an SCM implementation [which I cannot share] but it was impossible to get it to work with the release-plugin's workflow - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: *import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class DbUtilTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public DbUtilTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( DbUtilTest.class ); } /** * Rigorous Test :-) */ public void testApp() { assertTrue( true ); } }* should i change the junit in the pom to 4.7? in some junit examples they use annotations (@Test), which doesn't work with that code.. i'm a bit confused... On Tue, Dec 29, 2009 at 3:58 PM, Ognjen Blagojevic ogn...@etf.bg.ac.rs wrote: eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: release:prepare and plugin in snapshot version
2009/12/29 Rémy remy.tempora...@gmail.com I resolved the problem like this : Add this ligne in the file .m2/settings.xml : usePluginRegistrytrue/usePluginRegistry Create the file .m2/plugin-registry.xml with : ?xml version=1.0 encoding=UTF-8? pluginRegistry xsi:schemaLocation=http://maven.apache.org/PLUGIN_REGISTRY/1.0.0 [url]http://maven.apache.org/xsd/plugin-[/url] registry-1.0.0.xsdhttp://maven.apache.org/xsd/plugin-%5B/url%5D%0Aregistry-1.0.0.xsd xmlns=http://maven.apache.org/PLUGIN_REGISTRY/1.0.0; xmlns: xsi=http://www.w3.org/2001/XMLSchema-instance; plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId useVersion1.4.7-SNAPSHOT/useVersion rejectedVersions rejectedVersion1.4.6/rejectedVersion /rejectedVersions /plugin plugin groupIdorg.codehaus.cargo/groupId artifactIdcargo-maven2-plugin/artifactId useVersion1.0.1-alpha-1/useVersion /plugin /plugins /pluginRegistry I delete the version plugin in the pom.xml. Le goal release:prepare is ok. Is it the best way ? No It means you have an irreproducible build. Release internally a version with -yourcompanyname-1 as the qualifier, e.g. 1.4.6-yourcompanyname-1 Rémy Rémy wrote: Hello, To compile the JSP I use the plugin org.apache.maven.plugins:jspc-maven-plugin:1.4.7-SNAPSHOT. I use version 1.4.7-SNAPSHOT and not 1.4.6 to exclude some JSP from compilation http://jira.codehaus.org/browse/MJSPC-8 http://jira.codehaus.org/browse/MJSPC-8 . To my knowledge there is no release for v1.4.7. I can't make the release of my project. release:prepare detects that the plugin is in SNAPSHOT (There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes / no)), I answer yes or no, the build fails. I don't know how to get out. The solution is it to put it in my enterprise repository plugin version release (v1.4.6.1 for example). Thank you for your help. Remy -- View this message in context: http://old.nabble.com/release%3Aprepare-and-plugin-in-snapshot-version-tp26954720p26955433.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: release:prepare and plugin in snapshot version
2009/12/29 Stephen Connolly stephen.alan.conno...@gmail.com 2009/12/29 Rémy remy.tempora...@gmail.com Hello, To compile the JSP I use the plugin org.apache.maven.plugins:jspc-maven-plugin:1.4.7-SNAPSHOT. I use version 1.4.7-SNAPSHOT and not 1.4.6 to exclude some JSP from compilation http://jira.codehaus.org/browse/MJSPC-8 http://jira.codehaus.org/browse/MJSPC-8 . To my knowledge there is no release for v1.4.7. I can't make the release of my project. release:prepare detects that the plugin is in SNAPSHOT (There are still some remaining snapshot dependencies.: Do you want to resolve them now? (yes / no)), I answer yes or no, the build fails. I don't know how to get out. The solution is it to put it in my enterprise repository plugin version release (v1.4.6.1 for example). I would go with 1.4.6-yourcompany-1 that is the correct solution alternatively if you are not applying any patches, I would release it as 1.4.6-r837374 where the qualifier is the svn revision number Thank you for your help. Remy -- View this message in context: http://old.nabble.com/release%3Aprepare-and-plugin-in-snapshot-version-tp26954720p26954720.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: Trying to run both Junit and TestNG tests with Maven 2
I have had many issues getting them to work together. So I separated my JUnit into a module, then my TestNG based classes into another module. Never together. Then on my blog, I have encountered issues with DBUnit and hibernate3plugin trying to use both. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Mon, Dec 28, 2009 at 5:01 PM, Vladimir Kravtsov (NIM Contractor) vkravt...@networksinmotion.com wrote: I am trying to include some TestNG suites into existing project with Junit tests. Naturally I put TestNG code into src/test/java source folder. After I added dependency dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version5.8/version classifierjdk15/classifier scopetest/scope /dependency Command 'mvn test' executes TestNG code only, completely ignoring Junit code. No matter what I did in surefire plug-in, even if I remove it at all. Could you suggest the way to makeboth Junit and TestNG to be executed? Thanks, Vladimir Kravtsov TeleCommunication Systems 949-453-3491 (desk) 425-443-4502 (cell)
Re: Pulling transiting test dependencies
I don't understand what could be the use-case for including a test-jar in a production project, imo, test folder should always be useful only for the project it's in. Apart from that, maybe your problem comes from the type tag you're using in the dependency declaration. In the declaration below, I guess there're several flaws: * building a test-jar won't install it in the local repo, and also won't deploy in the remote repo = Did you install manually in the repo ? * once it's been created, are you sure typetest-jar/type is the way to go? I never generated a test-jar myself before. I just tried and saw it generates ${project.artifactId}-{project.version}-tests.jar. = Then shouldn't use classifiertests/classifier and no type (defaults to jar) instead of what you put? HTH Cheers. 2009/12/15 Alan Cassar alan.cas...@ricston.com Hi all, I am new to this list and I have a problem with maven transitive dependencies which cannot quite figure out and would appreciate any help. Well, we have a project, lets call it project-core and it has its own pom with its own dependencies, all test dependencies are marked as scopetest/scope. Also, in the same project, we have the plugin to generate the test jar: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jar-plugin/artifactId executions execution goals goaltest-jar/goal /goals /execution /executions /plugin I have another project which is a war project and as dependencies I have included both project-core as dependency groupIdxxx/groupId artifactIdproject-core/artifactId version${version}/version scopecompile/scope /dependency and also the test jar as: dependency groupIdxxx/groupId artifactIdproject-core/artifactId version${version}/version scopecompile/scope typetest-jar/type /dependency The transitive dependencies of the project-core are correctly added to my lib folder in the war by maven, but the transitive dependencies marked as scopetest/scope are not. I know that by default these dependencies should not be added, but since I added the testing jar, I thought that these dependencies should be added. In fact what happens, when the war file is deployed, the application fails with ClassNotFound exception when classloading the classes in the test jar. Is it possible somehow to pull in the test transitive dependencies? Thanks for your help Alan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Maven Problem
HI since from yesterday i am getting problem in Maven , when i compile my code giving maven-metadata-grrepository.xml': end tag name /head must be the same as start tag meta from line 11 (position: TEXT seen ...equiv=Content-Type content=text/html; charset=utf-8\n /head... @12:10) org.codehaus.mojo:hibernate3-maven-plugin:pom:2.0-SNAPSHOT please give me solution for that , this is very urgent and what is the reason behind this error thanks regards -- View this message in context: http://old.nabble.com/Maven-Problem-tp26957433p26957433.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
Maven Compile Programme
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd; !-- turing_cluster_prod -- html head titlegr-tech.net/title meta name=keywords content=gr-tech.net meta name=description content=gr-tech.net meta name=robots content=INDEX, FOLLOW meta name=revisit-after content=10 meta http-equiv=Content-Type content=text/html; charset=utf-8 /head frameset rows=100%,* frameborder=no border=0 framespacing=0 frame src=http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI; name=gr-tech.net /frameset noframes body http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI Click here to go to gr-tech.net . /body /noframes /html giving Unable to read local copy of metadata: Cannot read metadata from '/home/msr/.m2/repository/com/gr/temp/temp-dir1.0-SNAPSHOT/maven-metadata-grrepository.xml': end tag name /head please provide some solution for this -- View this message in context: http://old.nabble.com/Maven-Compile-Programme-tp26957458p26957458.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: Maven + JUnit, what's the best approach?
I ran away from starteam into accurev :( is there any other good managed (commerical) SCM out there that works with linux? Eyal. On Tue, Dec 29, 2009 at 6:31 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: 2009/12/29 eyal edri eyal.e...@gmail.com thanks, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) IMHO, accurev is a pile of esp if you want to use Maven. There are some architectural decisions that they made which make use with Maven a pain. Subversion is great with Maven, and it's free too Also having migrated our 11 years worth of source control from Accurev to Subversion (including writing a tool [which my employers will not let me publish] to extract the full history into Subversion) I would not personally touch Accurev with a 1000 foot barge pole. I know others feel differently, and these are my personal opinions, but anywho, just thought you'd appreciate the feedback -Stephen P.S. 1. You cannot export a tree into a subfolder of a workspace (makes using the maven release plugin a nightmare) 2. You cannot have a workspace as a subfolder of another workspace (makes aggregator style projects a pain... You can solve this by using include/exclude rules and some partial view stuff... but that only works if you only use one depot...) 3. Snapshot/workspace names must be unique at any point in time... and you cannot delete snapshots... makes tagging a pain... try re-rolling a release with maven-release-plugin 4. AFAIK, Maven release plugin does not work yet with Accurev (as the SCM support for maven was not where it needed to be before we ditched Accurev) I had written an SCM implementation [which I cannot share] but it was impossible to get it to work with the release-plugin's workflow - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: *import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class DbUtilTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public DbUtilTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( DbUtilTest.class ); } /** * Rigorous Test :-) */ public void testApp() { assertTrue( true ); } }* should i change the junit in the pom to 4.7? in some junit examples they use annotations (@Test), which doesn't work with that code.. i'm a bit confused... On Tue, Dec 29, 2009 at 3:58 PM, Ognjen Blagojevic ogn...@etf.bg.ac.rs wrote: eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri -- Eyal Edri
Re: Maven + JUnit, what's the best approach?
Hi, I ran away from starteam into accurev :( is there any other good managed (commerical) SCM out there that works with linux? Why do you need a commerical tool ? Why not using Subversion Greate community, really good documentation (for free)...which is supported by many many tools (IDE, Maven, Hudson, etc. )... And what did you understand under managed ? Support contract ? Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Deploy an old parent pom
Hi, Let's see is I can explain this clearly. 1- Versions 1.1 and 1.2 are deployed in the central maven repository from a rsync of my own repository 2- The maven-metadata.xml of the parent pom only mention 1.2 3- This is because the parent pom was deployed using mvn deploy:deploy-file I do I fix this? A solution would be to fix the maven-metadata.xml manually in my repo. However, I need to regenerate the sha1 and md5. Do you have a solution? How a parent pom should be deployed by itself? Thanks, Henri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
site.xml and maven site archetype
Hi, I've created a maven-site-archetype project in Netbeans. I can see that the site descriptor is site.xml and I can add menu items to build the site navigation on it. Whatever changes I make to the site.xml are not reflected in the index.html page of the site. In the IDE I right click on the Project Site node and hit Generate Site, which generates all the html pages and places them under target/site folder. If I add the following to the site.xml body menu ref=reports / /body It does not show the menu in my index.html. Do I have to mention the site.xml in the pom.xml ? The index.html is supposed to be generated as per the site.xml right? So why aren't even the Maven logos being displayed that are by default in the site.xml ? Thanks- Askar
Re: site.xml and maven site archetype
In version 2.0.1, and earlier, of the Site Plugin changes in the sixe.xml was not reflected in the generated site unless you cleaned the site first. This was fixed in Site Plugin 2.1. Askar Zaidi wrote: Hi, I've created a maven-site-archetype project in Netbeans. I can see that the site descriptor is site.xml and I can add menu items to build the site navigation on it. Whatever changes I make to the site.xml are not reflected in the index.html page of the site. In the IDE I right click on the Project Site node and hit Generate Site, which generates all the html pages and places them under target/site folder. If I add the following to the site.xml body menu ref=reports / /body It does not show the menu in my index.html. Do I have to mention the site.xml in the pom.xml ? The index.html is supposed to be generated as per the site.xml right? So why aren't even the Maven logos being displayed that are by default in the site.xml ? Thanks- Askar -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven + JUnit, what's the best approach?
yea..by managed, i meant support from a vendor. You don't have to convince me.. i'm the developer :) you need to convince the rd manager that going to put all the company's source code in an open source project, which if there is a problem... might not someone to yell at :) btw: don't fall off your chair.. but we've been using starteam 6 (from 2005) so far... but.., i hope i'll managed to convince them... i just need strong points.. if you say it works good with maven hudson.. then it's a good start... On Tue, Dec 29, 2009 at 8:15 PM, Karl Heinz Marbaise khmarba...@gmx.dewrote: Hi, I ran away from starteam into accurev :( is there any other good managed (commerical) SCM out there that works with linux? Why do you need a commerical tool ? Why not using Subversion Greate community, really good documentation (for free)...which is supported by many many tools (IDE, Maven, Hudson, etc. )... And what did you understand under managed ? Support contract ? Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri
Re: Maven + JUnit, what's the best approach?
CollabNet provides support contracts for Subversion. On Dec 29, 2009, at 2:34 PM, eyal edri eyal.e...@gmail.com wrote: yea..by managed, i meant support from a vendor. You don't have to convince me.. i'm the developer :) you need to convince the rd manager that going to put all the company's source code in an open source project, which if there is a problem... might not someone to yell at :) btw: don't fall off your chair.. but we've been using starteam 6 (from 2005) so far... but.., i hope i'll managed to convince them... i just need strong points.. if you say it works good with maven hudson.. then it's a good start... On Tue, Dec 29, 2009 at 8:15 PM, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi, I ran away from starteam into accurev :( is there any other good managed (commerical) SCM out there that works with linux? Why do you need a commerical tool ? Why not using Subversion Greate community, really good documentation (for free)...which is supported by many many tools (IDE, Maven, Hudson, etc. )... And what did you understand under managed ? Support contract ? Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: profile precedence order; skipping tests by default if not specified
Couldn't you just deactivate the profile that disable your tests. Something like mvn -P-notests clean install ? Cheers 2009/12/29 David Smiley @MITRE.org dsmi...@mitre.org Personally, I never want to invoke tests unless through some explicit action. My ~/.m2./settings.xml contains a profile called default, set to be active by default, and which sets skipTeststrue/skipTests in the properties. This works great; my tests aren't run. Now I'm trying to create a profile in my pom named test that runs my tests. No matter what I do, my tests aren't run because my effective pom has the property skipTests set to true from my settings.xml default profile. My test profile even tries to override this value with a property skipTests=false but it is superseded by my settings.xml profile. I'd expect a pom profile to take precedence over my settings.xml. What do I do? I'm using maven v2.2.0. ~ David Smiley -- View this message in context: http://old.nabble.com/profile-precedence-order--skipping-tests-by-default-if-not-specified-tp26958870p26958870.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 -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
Re: Maven Compile Programme
You're not giving very much info making it hard to help. A quick check, does the file '/home/msr/.m2/repository/com/gr/temp/temp-dir1.0-SNAPSHOT/maven-metadata-grrepository.xml' exist? If not, that's the problem. /Anders On Tue, Dec 29, 2009 at 18:36, Krishna_lvr rakhi_...@yahoo.com wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd; !-- turing_cluster_prod -- html head titlegr-tech.net/title meta name=keywords content=gr-tech.net meta name=description content=gr-tech.net meta name=robots content=INDEX, FOLLOW meta name=revisit-after content=10 meta http-equiv=Content-Type content=text/html; charset=utf-8 /head frameset rows=100%,* frameborder=no border=0 framespacing=0 frame src= http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI name=gr-tech.net /frameset noframes body http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI Click here to go to gr-tech.net . /body /noframes /html giving Unable to read local copy of metadata: Cannot read metadata from '/home/msr/.m2/repository/com/gr/temp/temp-dir1.0-SNAPSHOT/maven-metadata-grrepository.xml': end tag name /head please provide some solution for this -- View this message in context: http://old.nabble.com/Maven-Compile-Programme-tp26957458p26957458.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: Maven Compile Programme
Krishna_lvr wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd; !-- turing_cluster_prod -- html head titlegr-tech.net/title meta name=keywords content=gr-tech.net meta name=description content=gr-tech.net meta name=robots content=INDEX, FOLLOW meta name=revisit-after content=10 meta http-equiv=Content-Type content=text/html; charset=utf-8 /head frameset rows=100%,* frameborder=no border=0 framespacing=0 frame src=http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI; name=gr-tech.net /frameset noframes body http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI Click here to go to gr-tech.net . /body /noframes /html giving Unable to read local copy of metadata: Cannot read metadata from '/home/msr/.m2/repository/com/gr/temp/temp-dir1.0-SNAPSHOT/maven-metadata-grrepository.xml': end tag name /head You have been stomped by some friendly proxy that outputs HTML instead of giving proper 404 for errors. Simply remove maven-metadata-grrepository.xml from your local repo and try again. -dirk - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Maven + JUnit, what's the best approach?
I suggest looking at Perforce. It is the best SCM I've used (cvs, svn, vss, clearcase, pvcs, starteam, and a couple other no-names I can't remember). -Original Message- From: eyal edri [mailto:eyal.e...@gmail.com] Sent: Tuesday, December 29, 2009 12:11 PM To: Maven Users List Subject: Re: Maven + JUnit, what's the best approach? I ran away from starteam into accurev :( is there any other good managed (commerical) SCM out there that works with linux? Eyal. On Tue, Dec 29, 2009 at 6:31 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: 2009/12/29 eyal edri eyal.e...@gmail.com thanks, actually i've already setup a few things: - artifactory - hudson - scm (tesing accurev) IMHO, accurev is a pile of esp if you want to use Maven. There are some architectural decisions that they made which make use with Maven a pain. Subversion is great with Maven, and it's free too Also having migrated our 11 years worth of source control from Accurev to Subversion (including writing a tool [which my employers will not let me publish] to extract the full history into Subversion) I would not personally touch Accurev with a 1000 foot barge pole. I know others feel differently, and these are my personal opinions, but anywho, just thought you'd appreciate the feedback -Stephen P.S. 1. You cannot export a tree into a subfolder of a workspace (makes using the maven release plugin a nightmare) 2. You cannot have a workspace as a subfolder of another workspace (makes aggregator style projects a pain... You can solve this by using include/exclude rules and some partial view stuff... but that only works if you only use one depot...) 3. Snapshot/workspace names must be unique at any point in time... and you cannot delete snapshots... makes tagging a pain... try re-rolling a release with maven-release-plugin 4. AFAIK, Maven release plugin does not work yet with Accurev (as the SCM support for maven was not where it needed to be before we ditched Accurev) I had written an SCM implementation [which I cannot share] but it was impossible to get it to work with the release-plugin's workflow - maven2 - issue tracking is currently bugzilla, but might be jira i'm looking at the default test classes maven creates, are they obsolete? i saw that maven added junit 3.8.1 instead of 4.x as a dependency and auto generated this code: *import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class DbUtilTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ public DbUtilTest( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( DbUtilTest.class ); } /** * Rigorous Test :-) */ public void testApp() { assertTrue( true ); } }* should i change the junit in the pom to 4.7? in some junit examples they use annotations (@Test), which doesn't work with that code.. i'm a bit confused... On Tue, Dec 29, 2009 at 3:58 PM, Ognjen Blagojevic ogn...@etf.bg.ac.rs wrote: eyal edri wrote: I'm new to Java and maven and currently in the process of building the entire infrastructure for java development in the company. i'm not quite familiar with JUnit, but i know maven makes it easy for you by creating default test tree and test classes in each project. where can i read about best practices regarding writing unit tests for my java apps using JUnit with MAVEN? thanks. Start with: http://maven.apache.org/guides/getting-started/index.html http://code.google.com/p/t2framework/wiki/JUnitQuickTutorial I you are building an infrastructure, aside from JUnit and Maven knowledge, you will (probably) need to install, in order of importance: 1. Version control system such as Subversion 2. Maven ropository, such as Apache Archiva, Artifactory or Nexus 3. Mailing list manager, such as Mailman 4. Issue tracking system, such as Trac 5. Continuos integration system, such as Apache Continuum Regards, Ognjen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Eyal Edri -- Eyal Edri - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Site generation for multiple modules is not working properly
Hi All, I am having some problem while generating site for multiple modules. 1.I am having 7 modules.I am having a parent pom and i am running install and deploy goal in the parent one which does for all the moduels defined in the parent pom.but i want to generate the sites for only 2 modules .how can i restrict that? 2.I want my modules menu shlud be different.that i have configured in the site.xml .then also it is inheriting form the parent site.xml. 3.Links to the modules is not coming.thats why I am generating the sites individually and manually deploying it to the tomcat.how can i automate this.meaning link should come automatically having different menu(left side) for different modules and it should be deployed to tomcat when hudson will fire the goal site:deploy. 4.I am using pom aggregation as well as pom inheritance together.previously i was using only pom aggregation thats why i was unable to see my modules names in the parent sites.then i did pom inheritance now module names it is showing but it is not giving the link to the modules. 5.I checked in the documentation in site:stage goal we can check the multimodule site generation.but link is not working. Please let me know where i am missing anything. Thanks, Debasis -- View this message in context: http://old.nabble.com/Site-generation-for-multiple-modules-is-not-working-properly-tp26964041p26964041.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: Maven Compile Programme
Hi Thanks for your reply i have removed this file again it is creating , when i compile using maven could you please suggest , how to remove this , even then when i compile thanks regards Krishna Dirk Olmes-4 wrote: Krishna_lvr wrote: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd; !-- turing_cluster_prod -- html head titlegr-tech.net/title meta name=keywords content=gr-tech.net meta name=description content=gr-tech.net meta name=robots content=INDEX, FOLLOW meta name=revisit-after content=10 meta http-equiv=Content-Type content=text/html; charset=utf-8 /head frameset rows=100%,* frameborder=no border=0 framespacing=0 frame src=http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI; name=gr-tech.net /frameset noframes body http://searchportal.information.com?epl=01240051VGsLXARcAAdZB0QHVwgHWg9aB1oGCFATTEFQW1AaXwBBEgVXVjpBUQdVEAZKWEBHEglXBVUHBlFXAAUNHl1COlhbAFFVAA4ER1EBAF0VEmwEWgVYB1xZBlxST1FI Click here to go to gr-tech.net . /body /noframes /html giving Unable to read local copy of metadata: Cannot read metadata from '/home/msr/.m2/repository/com/gr/temp/temp-dir1.0-SNAPSHOT/maven-metadata-grrepository.xml': end tag name /head You have been stomped by some friendly proxy that outputs HTML instead of giving proper 404 for errors. Simply remove maven-metadata-grrepository.xml from your local repo and try again. -dirk - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://old.nabble.com/Maven-Compile-Programme-tp26957458p26964755.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