RE: Add pom tags into Eclipse?
Hi Replace the top of you pom with this: ?xml version=1.0 encoding=UTF-8? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; Then you will get it Hermod -Original Message- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 4:13 AM To: users@maven.apache.org Subject: Add pom tags into Eclipse? Hello guys, Can I add Maven pom tags into Eclipse? Then I would get content assist when I'm writing pom.xml in Eclipse. The same as that about Ant build.xml. a cup of Java, cheers! Sha Jiang -- View this message in context: http://www.nabble.com/Add-pom-tags-into-Eclipse--tf2565506s177.html#a7150908 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven rant
Why not use the central repo for documentation aswell? E.g. in http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ant-plugin/2.0-alpha-2/ could exist a bundle named user-manual.zip, containing the sources for the user-manual. There could be a reference-manual.zip, a developers-manual.zip and so on. The Wiki pages could be generated out of these sources. One step of the release process of a plugin (or the Maven core) would be to integrate possible user comments from the wiki into the documentation sources and regenerate the respective wiki pages. A Maven plugin could be written to download all document sources of a certain category, bring them into a reasonable order (defined by models within the plugin), add introductionary material from common bundles, table of contents, indexes etc. and produce a users manual, reference manual and so on in a format the user can choose (HTML, PDF ...) Even the Maven website could be produced by such a plugin; it would just be defined by another documentation model. Just applying the same principles used for software production to documentation ... I hope I was able to make myself understood (sorry for my English) and am not dreaming too far into the blue ... -Gisbert Gregory Kick wrote: Ok, this is think outside the box time... I like Thomas' comments on centralizing documentation. I really, really like Thomas' comments on centralizing documentation. However, I think the logistics may be off. I'm thinking of the documentation problem as similar to the build problem. Before there was maven, users had to go from site to site downloading jars and collecting them into a useful, coherent code base every time they wanted to build because a bunch of different groups contributed a bunch of small, but useful artifacts. That got fixed. Unfortunately, we're now finding that users are going from site to site browsing documentation and collecting it into a useful, coherent knowledge base every time they want to understand something because a bunch of different groups contributed a bunch of small, but useful bits of documentation. So, here's what I propose: Lets create a repository for documentation. The docs will exist within the projects, as they do now, and we'll use an APT/Wiki hybrid that allows for linking between projects (e.g. [[groupId:artifactID]]) and documents (e.g. guides, javadocs, etc.) within those projects. That way, there's quality control because the docs have to be committed, we avoid the unrealistic make-a-giant-book-that-somebody's-going-to-be-in-charge-of-because-I-don't-want-to plan, and we get the centralized feel with out having to duplicate the little bits of usefulness that already exist. Obviously, there will be a lot of gaps, broken links, etc. in the early stages, but I don't think that it would be any worse than with a typical wiki. There may be a slower turnaround in updates, but that might be balanced out by the fact that current documentation could be reused. Later, if we want something more interactive there could be a tool for generating and submitting documentation patches via this online repository. So that's my little bit of brainstorming. There are obvious issues like hosting, but for now I dare to dream... :-) Thoughts? On 11/2/06, Thomas Van de Velde [EMAIL PROTECTED] wrote: The problem, as I see it, is that the documentation is fragmented. Unlike Hibernate and Spring, which provide a single reference manual which is kept up to date with every release, Maven documentation is spread all over the place (wiki, generated sites, better builds with Maven, etc.). The problem gets worse with the isolated documentation for plugins. Plugins may make sense from a technical point of view, but an end-user can care less about plugin seperation from the core. They want to see consistent documentation for all features, whether those are provided by the core or by plugins. By forcing ALL documentation to be centralized (e.g. in a reference manual), you naturally get better consistency and logical flow between the different pieces (Instead of a bunch of isolated how-to's and plugin pages). What a mess Spring's documentation would be if they'd start generating seperate web sites for each framework they integrate with! Users have been complaining for years about Maven documentation and I agree with those who say that this is a break on wider Maven adoption. As an experienced user, I have no trouble finding what I am looking for but I can tell you from my experience dealing with many new users, that the newbies have big trouble finding their way through the documentation jungle. More than once have I seen projects giving up just because they didn't find an easy way to get started. This is highly regrettable as they are missing out on a great tool! So my recommendation would be: 1) Centralize documentation (prefereably on a wiki so that users can comment on
[m2] need short Help: switching settings.xml with -D ?!
Hi, there was a possibility to switch the settings xml with a option mvn -Dsettins=c:\temp\settings.xml Does anybody knows the correct syntax? i can't find it on the web and i cant't realy handle the new maven documentation site ;-) Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich �ber unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anh�nge enthalten vertrauliche und/oder rechtlich gesch�tzte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschlie�end diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] need short Help: switching settings.xml with -D ?!
mvn -h ... -s,--settings Alternate path for the user settings file ... -- Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 3 novembre 2006 09:47 À : users@maven.apache.org Objet : [m2] need short Help: switching settings.xml with -D ?! Hi, there was a possibility to switch the settings xml with a option mvn -Dsettins=c:\temp\settings.xml Does anybody knows the correct syntax? i can't find it on the web and i cant't realy handle the new maven documentation site ;-) Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich ber unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhnge enthalten vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschlieend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [m2] need short Help: switching settings.xml with -D ?!
sorry, I don't mean the user settings! I will temporarily overwrite the global settings under M2_HOME/conf/settings.xml. Fredy -Ursprüngliche Nachricht- Von: LAMY Olivier [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. November 2006 10:21 An: Maven Users List Betreff: RE: [m2] need short Help: switching settings.xml with -D ?! mvn -h ... -s,--settings Alternate path for the user settings file ... -- Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 3 novembre 2006 09:47 À : users@maven.apache.org Objet : [m2] need short Help: switching settings.xml with -D ?! Hi, there was a possibility to switch the settings xml with a option mvn -Dsettins=c:\temp\settings.xml Does anybody knows the correct syntax? i can't find it on the web and i cant't realy handle the new maven documentation site ;-) Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich ber unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhnge enthalten vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschlieend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mirrors and repositories
Mykel is correct. In addition, until MNG-714, when the mirror fails to deliver, the mirrored repository is not used. So are mirrors of the same repository id. Mykel Alvis wrote: NEEDED WIKI TOPIC My understanding is that mirrors simply override the URLs for the repos they're mirroring. Therefore, it's URL effectively replaces the URL configured in the repository that it's listed as a mirrorOf There are a number of reasons for doing this. The ones that come to mind at present are 1. You're running a maven-aware proxy (like proximity or maven-proxy) and that proxy knows about central and you want to override the URL for central to your proxy. 2. You know of a geographically closer mirror to some repo (often central) and you want to use that mirror rather than the original one. On 11/2/06, Emmanuel Hugonnet [EMAIL PROTECTED] wrote: Edwin Punzalan a écrit : repositories stores artifacts and lets mvn download from it. mirrors are like copies of a repository... you use it when a repository is inaccessible or too slow. Hope that helps ^_^ Emmanuel Hugonnet wrote: Hi, I am wondering about the difference between defining a mirror and defining a repository. What is the use case for each one ? Which is taking precedence over the other ? Thanks for your help. Emmanuel - 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] Yep but what happens when a mirror is done ? Does Maven check the repository ? If I proxy central or codehaus is it better to declare my proxy as a mirror (so in the settings.xml) or as the repository (in my POM or with a profile in my settings.xml) ? What are the consequences of this choice ? Thanks Emmanuel - 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: [m2] Recommended way to generate a report with maven LF
Hi First of all, thanks for your answers. It is appreciated. I've found a quick and xml-based way which matches my environment much better. I noticed that the plugin-plugin generated some XDOC and that they were converted very nicely like in maven1. Which brings me to this question, is xdoc officialy supported? Will that change in the foreseable future? Everything seemed to have move to APT, yet-another-wiki-style stuff or the programmatic Sink stuff... Thanks Benoit Arnaud Bailly-3 wrote: Gisbert Amm [EMAIL PROTECTED] writes: I've written some documentation about that recently: http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin Always have a warm feeling being quoted :-) I updated the confluence page with the expanded sink API usage example I gave in the mail. Regards -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m2--Recommended-way-to-generate-a-report-with-maven-L-F-tf2557088s177.html#a7154489 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven rant
+1 This would make it even possible to create a user/project dedicated manuals. The project pom-file already has all plugins being used by the project. The generated manual will then just include the docs for these plugins and use the actual plugin version. Regards, Minto -Oorspronkelijk bericht- Van: Gisbert Amm [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 3 november 2006 9:43 Aan: Maven Users List Onderwerp: Re: Maven rant Why not use the central repo for documentation aswell? E.g. in http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-ant-plugin/2.0-alpha-2/ could exist a bundle named user-manual.zip, containing the sources for the user-manual. There could be a reference-manual.zip, a developers-manual.zip and so on. The Wiki pages could be generated out of these sources. One step of the release process of a plugin (or the Maven core) would be to integrate possible user comments from the wiki into the documentation sources and regenerate the respective wiki pages. A Maven plugin could be written to download all document sources of a certain category, bring them into a reasonable order (defined by models within the plugin), add introductionary material from common bundles, table of contents, indexes etc. and produce a users manual, reference manual and so on in a format the user can choose (HTML, PDF ...) Even the Maven website could be produced by such a plugin; it would just be defined by another documentation model. Just applying the same principles used for software production to documentation ... I hope I was able to make myself understood (sorry for my English) and am not dreaming too far into the blue ... -Gisbert Gregory Kick wrote: Ok, this is think outside the box time... I like Thomas' comments on centralizing documentation. I really, really like Thomas' comments on centralizing documentation. However, I think the logistics may be off. I'm thinking of the documentation problem as similar to the build problem. Before there was maven, users had to go from site to site downloading jars and collecting them into a useful, coherent code base every time they wanted to build because a bunch of different groups contributed a bunch of small, but useful artifacts. That got fixed. Unfortunately, we're now finding that users are going from site to site browsing documentation and collecting it into a useful, coherent knowledge base every time they want to understand something because a bunch of different groups contributed a bunch of small, but useful bits of documentation. So, here's what I propose: Lets create a repository for documentation. The docs will exist within the projects, as they do now, and we'll use an APT/Wiki hybrid that allows for linking between projects (e.g. [[groupId:artifactID]]) and documents (e.g. guides, javadocs, etc.) within those projects. That way, there's quality control because the docs have to be committed, we avoid the unrealistic make-a-giant-book-that-somebody's-going-to-be-in-charge-of-because-I-d on't-want-to plan, and we get the centralized feel with out having to duplicate the little bits of usefulness that already exist. Obviously, there will be a lot of gaps, broken links, etc. in the early stages, but I don't think that it would be any worse than with a typical wiki. There may be a slower turnaround in updates, but that might be balanced out by the fact that current documentation could be reused. Later, if we want something more interactive there could be a tool for generating and submitting documentation patches via this online repository. So that's my little bit of brainstorming. There are obvious issues like hosting, but for now I dare to dream... :-) Thoughts? On 11/2/06, Thomas Van de Velde [EMAIL PROTECTED] wrote: The problem, as I see it, is that the documentation is fragmented. Unlike Hibernate and Spring, which provide a single reference manual which is kept up to date with every release, Maven documentation is spread all over the place (wiki, generated sites, better builds with Maven, etc.). The problem gets worse with the isolated documentation for plugins. Plugins may make sense from a technical point of view, but an end-user can care less about plugin seperation from the core. They want to see consistent documentation for all features, whether those are provided by the core or by plugins. By forcing ALL documentation to be centralized (e.g. in a reference manual), you naturally get better consistency and logical flow between the different pieces (Instead of a bunch of isolated how-to's and plugin pages). What a mess Spring's documentation would be if they'd start generating seperate web sites for each framework they integrate with! Users have been complaining for years about Maven documentation and I agree with those who say that this is a break on wider Maven
Increase maven runtime heap space
Hi there, Maven is currently hanging and I was advised to increase the available heap space in the Maven runtime, but executing the following command: export MAVEN_OPTS=-Xmx1024m I am just not sure in which file to put this. Do I have to put this in mvn.bat in my parent pom? Any help will be much appreciated. Thanks :-) To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer.
[m2] Server settings ignored when stage-deploying maven site
Hi, I've got a settings.xml stating something like: ... server idmaven-sites/id usernamemaven/username /server ... and a POM with: ... distributionManagement site idmaven-sites/id urlscpexe://some-server/srv/www/maven-sites/${groupId}/${version}//url /site /distributionManagement ... Now, when I deploy a site, Maven connects with the remote server using the given user-id maven (see settings.xml above). But if I want to use the stage-deploy feature, that user-id is ignored and Maven wants to deploy the staging site using my local user account - which fails of cause. My questions: Is this a feature or a bug? Is there a work around giving me the chance to deploy by using the maven-user? Any hints appreciated! -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Continuum Uninstall
Hi, I am facing an issue, I am very new to the Continuum Tool. The issues is, I removed continuum from the box, and even clear the registry also for conitinuum service. I tried to reinstall, unpacked it under the C://... and i ran the command run.bat. JAVA_HOME, M2_HOME is also set in both system user environment. Here is the error log I am getting: --- C:\continuum-1.0.3\bin\win32run.bat wrapper | -- Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | java.lang.NoClassDefFoundError: Files\Crimson jvm 1 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 2 | java.lang.NoClassDefFoundError: Files\Crimson jvm 2 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 3 | java.lang.NoClassDefFoundError: Files\Crimson jvm 3 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 4 | java.lang.NoClassDefFoundError: Files\Crimson jvm 4 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 5 | java.lang.NoClassDefFoundError: Files\Crimson jvm 5 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. wrapper | There may be a configuration problem: please check the logs. wrapper | -- Wrapper Stopped Press any key to continue . . . -- I got stuck at this point, let me know if anybody knows the solution how to unInstall reInstall. Thanks Regards Jacob Thomas -- View this message in context: http://www.nabble.com/Continuum-Uninstall-tf2567514.html#a7156301 Sent from the Continuum - Users mailing list archive at Nabble.com.
Nullpointer-Exception addPlugin
Hi! I'm new with Maven - i created a simple sample-project, if i compile the project i get a nullpointer-Exception! I'm behind a firewall, a proxy is configured... Any Idea? Bernie [INFO] Building Maven Default Project [INFO]task-segment: [compile] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-r plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plug 1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom . [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [DEBUG] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292) -- View this message in context: http://www.nabble.com/Nullpointer-Exception-addPlugin-tf2567630s177.html#a7156625 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] execute different testng suites in different phases
Hi folks! I'm trying to execute TestNG Suites in different maven2 phases. For that i defined two different testng.xml files a) unit-tests.xml b) integration-tests.xml Now i want surefire to execute the unit-tests in the test phase and the integration-tests in the integration-test phase. So i added the following lines to my pom: build ... plugins plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFiles suiteXmlFilesrc/test/resources/unit-tests.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin plugin artifactIdmaven-surefire-plugin/artifactId executions execution idintegration-test/id phaseintegration-test/phase goals goaltest/goal /goals configuration suiteXmlFiles suiteXmlFileintegration-tests.xml/suiteXmlFile /suiteXmlFiles /configuration /execution /executions /plugin /plugins ... /build When i run 'mvn test' surefire executes the unit tests as desired. But when i run 'mvn integration-test' surefire does not execute the integration-tests in the integration-phase. Instead of that it runs the unit-tests a second time! Does anybody know how to execute testng suites in different maven phases? best regards Jan P.S. build ... plugins plugin artifactIdmaven-surefire-plugin/artifactId executions execution idtest/id phasetest/phase goals goaltest/goal /goals configuration suiteXmlFiles suiteXmlFileunit-tests.xml/suiteXmlFile /suiteXmlFiles /configuration /execution execution idintegration-test/id phaseintegration-test/phase goals goaltest/goal /goals configuration suiteXmlFiles suiteXmlFileintegration-tests.xml/suiteXmlFile /suiteXmlFiles /configuration /execution /executions /plugin /plugins ... /build This does not work, too. In this case surefire runs the unit and the integration tests in the test phase, which is even worse for me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Testing EJB3
Hi Marco, Actually, I am using your examples and helped to test that solution with embed-ejb3-RC8 on the SUREFIRE-2.2-SNAPSHOT plugin, which worked fine. Unfortunately, Surefire 2.2 official and 2.3-snapshot are having issues with javax.management packages and the JBossMXServerConfig classnotfoundexceptions (regardless of the childDelegation flag) and I'm getting NO responses from Embed EJB3 or Surefire developers to help resolve the issue. References === http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loa ding.html childDelegation property to true: Classes in the java.* and javax.* packages can never be overridden. http://jira.jboss.com/jira/browse/EJBTHREE-534 JBossMXServerConfig issue http://mail-archives.apache.org/mod_mbox/maven-users/200606.mbox/%3CPine [EMAIL PROTECTED] similar problems http://jira.codehaus.org/browse/SUREFIRE-38 Alpha-6, configuring surefire with forkModepertest/forkModechildDelegationfalse/childDelegation http://docs.codehaus.org/display/MAVENUSER/How+to+use+the+JBoss+Embedded +EJB3+Container+for+Unit+testing Sample setup (older surefire that maybe didn't mind overriding javax.* packages) Personally tested on RC8 and Surefire 2.2-SNAPSHOT with success. My tests are dead in the water - which is why I'm back to looking at alternatives. I've done the Cargo route in the past, but would really prefer using the embed EJB3 route to avoid container-started port-conflicts on a continuous integration build machine. -- Darren Hartford Senior Software Engineer, CDIA+ GHS Data Management (formerly Goold Health Systems) ph: (207) 622-7153 x1150 --- Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) or their authorized representatives only, 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 e-mail and destroy all copies of the original message. --- -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 9:01 AM To: Maven Users List Subject: Re: Testing EJB3 Hello, i use jbossmicrocontainer and testNG (testNG purely because i got it from some other examples you can as well start your ejb container with a base junit test).. i had problems with version of surefire plugin i can send you my pom.xmlthis eve (i have it @home) if you need it... hth marco On 11/2/06, Darren Hartford [EMAIL PROTECTED] wrote: I've asked through a couple of requests about embedded-EJB3 and surefire testing, but haven't received any feedback at all on some of the issues I keep running into. So...how do most of you test your EJB3's? Thanks, -D - 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: Testing EJB3
Right darren, i m afraid i forgot to send you yesterday latest code i have (works with rc9 too) because after struggling i found out that there were problems with testng version and surefire version.. try to google testng and surefire, if i remember correctly i took out the version from surefire, but i have upgraded testng to be 5. something.. ==wait a sec i found mail that was sent to me when i was enquiring about same problem this was dependencies i got.. dependencies dependency groupIdorg.testng/groupId artifactIdtestng/artifactId version5.1/version scopetest/scope classifierjdk15/classifier /dependency /dependencies build plugins plugin artifactIdmaven-surefire-plugin/artifactId configuration suiteXmlFiles suiteXmlFilesrc/test/resources/testing.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin /plugins /build this works for me @ home, i'll give you confrim by private email this eve when i get home hth marco pls google testng and surefire, as well as check archive of testng and maven2 because On 11/3/06, Darren Hartford [EMAIL PROTECTED] wrote: Hi Marco, Actually, I am using your examples and helped to test that solution with embed-ejb3-RC8 on the SUREFIRE-2.2-SNAPSHOT plugin, which worked fine. Unfortunately, Surefire 2.2 official and 2.3-snapshot are having issues with javax.management packages and the JBossMXServerConfig classnotfoundexceptions (regardless of the childDelegation flag) and I'm getting NO responses from Embed EJB3 or Surefire developers to help resolve the issue. References === http://maven.apache.org/plugins/maven-surefire-plugin/examples/class-loa ding.html childDelegation property to true: Classes in the java.* and javax.* packages can never be overridden. http://jira.jboss.com/jira/browse/EJBTHREE-534 JBossMXServerConfig issue http://mail-archives.apache.org/mod_mbox/maven-users/200606.mbox/%3CPine [EMAIL PROTECTED] similar problems http://jira.codehaus.org/browse/SUREFIRE-38 Alpha-6, configuring surefire with forkModepertest/forkModechildDelegationfalse/childDelegation http://docs.codehaus.org/display/MAVENUSER/How+to+use+the+JBoss+Embedded +EJB3+Container+for+Unit+testing Sample setup (older surefire that maybe didn't mind overriding javax.* packages) Personally tested on RC8 and Surefire 2.2-SNAPSHOT with success. My tests are dead in the water - which is why I'm back to looking at alternatives. I've done the Cargo route in the past, but would really prefer using the embed EJB3 route to avoid container-started port-conflicts on a continuous integration build machine. -- Darren Hartford Senior Software Engineer, CDIA+ GHS Data Management (formerly Goold Health Systems) ph: (207) 622-7153 x1150 --- Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) or their authorized representatives only, 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 e-mail and destroy all copies of the original message. --- -Original Message- From: Marco Mistroni [mailto: [EMAIL PROTECTED] Sent: Thursday, November 02, 2006 9:01 AM To: Maven Users List Subject: Re: Testing EJB3 Hello, i use jbossmicrocontainer and testNG (testNG purely because i got it from some other examples you can as well start your ejb container with a base junit test).. i had problems with version of surefire plugin i can send you my pom.xmlthis eve (i have it @home) if you need it... hth marco On 11/2/06, Darren Hartford [EMAIL PROTECTED] wrote: I've asked through a couple of requests about embedded-EJB3 and surefire testing, but haven't received any feedback at all on some of the issues I keep running into. So...how do most of you test your EJB3's? Thanks, -D - 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]
maven magic in effective-pom and exported-pom
I'm trying to fix my manifest to contain an Application-Vendor-Id. I'm using the maven-osgi-plugin to create the manifest (this is stuff I have inherited, so don't assume I have expertise here) I can see in my pom the following plugin groupIdorg.apache.felix.plugins/groupId artifactIdmaven-osgi-plugin/artifactId extensionstrue/extensions configuration osgiManifest !-- content ... -- bundleVendor${pom.organization.name }/bundleVendor !-- content ... -- /osgiManifest /configuration /plugin and running this pom through mvn help:effective-pom translates this to plugin groupIdorg.apache.felix.plugins/groupId artifactIdmaven-osgi-plugin/artifactId version0.8.0-20061102.022735-9/version extensionstrue/extensions configuration osgiManifest !-- content ... -- bundleVendorApache Software Foundation/bundleVendor !-- content ... -- /osgiManifest /configuration /plugin There are two things I'd like to know ... 1) I can't see a field in the documentation ( http://cwiki.apache.org/FELIX/osgi-plugin-for-maven-2.html) for the osgi plugin to contain the application vendor id (I tried bundleVendorId). Is there a way to set this manifest property via the plugin? 2) I've done extensive recursive greps on my file system to find where the value of ${pom.organization.name} is set, as I'd like to be able to handle the app vendor id value in a similar way to the app vendor, but I can't for the life of me find it. Can someone enlighten me regarding this piece of maven magic please? Regards, Kelvin.
RE: Increase maven runtime heap space
Hi, I actually increase the heap space by setting the MAVEN_OPTS variable in the mvn.bat script, it works fine. I've just added the following line at the top of the script (after the two first paragraphs of comments): set MAVEN_OPTS=-DXms_1024M -DXmx=1024M Sebastien -Original Message- From: Van Niekerk, Ida [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 11:29 AM To: users@maven.apache.org Subject: Increase maven runtime heap space Hi there, Maven is currently hanging and I was advised to increase the available heap space in the Maven runtime, but executing the following command: export MAVEN_OPTS=-Xmx1024m I am just not sure in which file to put this. Do I have to put this in mvn.bat in my parent pom? Any help will be much appreciated. Thanks :-) To read FirstRand Bank's Disclaimer for this email click on the following address or copy into your Internet browser: https://www.fnb.co.za/disclaimer.html If you are unable to access the Disclaimer, send a blank e-mail to [EMAIL PROTECTED] and we will send you a copy of the Disclaimer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surefire plugin release?
Hi, in the last 2 months, only 1 issue was solved in the surefire plugin (See http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truemode=hidepid=11148status=5status=6updated:previous=-8wsorter/field=updatedsorter/order=DESC). There are currently still 32 issues unresolved. Are there plans to release version 2.3 or is nobody working on that anymore? regards, Wim
Is there any plugin available to test after deployment to Application servers?
Hi All I have multi module project which i'm building using maven2(contains ejbs and others), and i have test cases for this which we have to run after deploying the ear file to weblogic servers, Right now i'm doing 2 different build one for creating application ear and other build for packaging test cases for this, then i use java-exec plugin to test it, that works good but what i am looking for is some thing like surefile plugin, to havewell good looking test results, is there anything available like that??? so when i run test it will run the test and creates test results page like sure file plugin?? Thanks, Raghurajan Gurunathan - This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Where is the Plugin documentation gone?
Hi, is it just me, or is the plugin documentation on the maven site gone? There used to be a Plugins page, where i could at least see which plugins are available and get some basic help about them. Now this is gone. Any hints where i might look for it? Best regards, Jan -- Jan Thomä insOMnia - We never sleep... http://www.insomnia-hq.de pgpReJeIn8B86.pgp Description: PGP signature
Re: Where is the Plugin documentation gone?
Jan Thomä wrote: Hi, is it just me, or is the plugin documentation on the maven site gone? There used to be a Plugins page, where i could at least see which plugins are available and get some basic help about them. Now this is gone. Any hints where i might look for it? Best regards, Jan The page is still here, like it used to: http://maven.apache.org/plugins/index.html The link on the front page has moved down a bit. You'll find it at Get Maven Plugins By Category -- Dennis Lundberg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven magic in effective-pom and exported-pom
although it may seem like it but ${pom.organization.name} only translates to a path to your project's pom.xml content which is projectorganizationname. hope that helped, ^_^ kelvin goodson wrote: I'm trying to fix my manifest to contain an Application-Vendor-Id. I'm using the maven-osgi-plugin to create the manifest (this is stuff I have inherited, so don't assume I have expertise here) I can see in my pom the following plugin groupIdorg.apache.felix.plugins/groupId artifactIdmaven-osgi-plugin/artifactId extensionstrue/extensions configuration osgiManifest !-- content ... -- bundleVendor${pom.organization.name }/bundleVendor !-- content ... -- /osgiManifest /configuration /plugin and running this pom through mvn help:effective-pom translates this to plugin groupIdorg.apache.felix.plugins/groupId artifactIdmaven-osgi-plugin/artifactId version0.8.0-20061102.022735-9/version extensionstrue/extensions configuration osgiManifest !-- content ... -- bundleVendorApache Software Foundation/bundleVendor !-- content ... -- /osgiManifest /configuration /plugin There are two things I'd like to know ... 1) I can't see a field in the documentation ( http://cwiki.apache.org/FELIX/osgi-plugin-for-maven-2.html) for the osgi plugin to contain the application vendor id (I tried bundleVendorId). Is there a way to set this manifest property via the plugin? 2) I've done extensive recursive greps on my file system to find where the value of ${pom.organization.name} is set, as I'd like to be able to handle the app vendor id value in a similar way to the app vendor, but I can't for the life of me find it. Can someone enlighten me regarding this piece of maven magic please? Regards, Kelvin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven equivalent of ant depend optional task
I have been searching for the Maven2 equivalent of the ant depend task but I can't seem to find it. Can someone help me out with a link? -- View this message in context: http://www.nabble.com/Maven-equivalent-of-ant-%3Cdepend%3E-optional-task-tf2568454s177.html#a7159353 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven equivalent of ant depend optional task
On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I have been searching for the Maven2 equivalent of the ant depend task but I can't seem to find it. Can someone help me out with a link? Everything in Maven centers around the build lifecycle. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Because of that, tasks don't 'depend' on other tasks, instead they are bound to different phases of the lifecycle. What are you trying to get Maven to do? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mechanism to import common depdencies into your pom files?
I have a client with many different maven projects. I am trying to figure out a way to manage the versions of common libraries across these projects without duplicating the version number in each project. For example, commons-lang-1.1.jar is used in 50 projects. I know that I can use a parent pom file to do this, but I don't want all of my projects to include everything in the parent pom. Is there a way to import or include a dependency in your pom... So for example, define a file with common-lang dependency and include that in all pom files that need to reference it? Thanks, jp4 -- View this message in context: http://www.nabble.com/Mechanism-to-import-common-depdencies-into-your-pom-files--tf2568584s177.html#a7159759 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] need short Help: switching settings.xml with -D ?!
Try: -Dorg.apache.maven.global-settings=/path/to/global/settings.xml HTH, John On 11/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sorry, I don't mean the user settings! I will temporarily overwrite the global settings under M2_HOME/conf/settings.xml. Fredy -Ursprüngliche Nachricht- Von: LAMY Olivier [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 3. November 2006 10:21 An: Maven Users List Betreff: RE: [m2] need short Help: switching settings.xml with -D ?! mvn -h ... -s,--settings Alternate path for the user settings file ... -- Olivier -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 3 novembre 2006 09:47 À : users@maven.apache.org Objet : [m2] need short Help: switching settings.xml with -D ?! Hi, there was a possibility to switch the settings xml with a option mvn -Dsettins=c:\temp\settings.xml Does anybody knows the correct syntax? i can't find it on the web and i cant't realy handle the new maven documentation site ;-) Fredy Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich ber unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhnge enthalten vertrauliche und/oder rechtlich geschtzte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschlieend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein (this message) are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après le message ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus einer Hand. Informieren Sie sich über unsere Produkte unter www.kabeldeutschland.de Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind, benachrichtigen Sie bitte den Absender und vernichten Sie anschließend diese Mail und die Anlagen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mechanism to import common depdencies into your pom files?
On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I have a client with many different maven projects. I am trying to figure out a way to manage the versions of common libraries across these projects without duplicating the version number in each project. This is typically done with dependencyManagement. You specify version numbers there, then just declare the groupId and artifactId in the module that needs it. (There have been some issues with dependency management and transitive dependencies, so check JIRA or the list archives if it doesn't seem to be working right.) For example, commons-lang-1.1.jar is used in 50 projects. I know that I can use a parent pom file to do this, but I don't want all of my projects to include everything in the parent pom. Is there a way to import or include a dependency in your pom... So for example, define a file with common-lang dependency and include that in all pom files that need to reference it? To inherit it without ever declaring it again, just put it in dependencies in a top-level pom. Many organizations have a 'master pom' (with no modules) that the various [project]-parent poms inherit from. If you do this, be sure the dependencies are *really* common to all projects. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven equivalent of ant depend optional task
The depend task is used to determine java class file dependencies From the ant docs... The depend task works by determining which classes are out of date with respect to their source and then removing the class files of any other classes which depend on the out-of-date classes. For example, if you have Foo.java and Bar.java... Initially, BAR = BAR... The first compilation prints BAR in both A B If you change BAR = FOO and recompile it only compiles Bar.java... As a result Foo prints BAR and Bar prints FOO... You can get around this with clean, but for big projects, clean takes too long. public class Foo { public static void main(String[] args) { System.out.println(Bar.BAR); } } public class Bar { public static final String BAR = FOO; public static void main(String[] args) { System.out.println(BAR); } } Wendy Smoak-3 wrote: On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I have been searching for the Maven2 equivalent of the ant depend task but I can't seem to find it. Can someone help me out with a link? Everything in Maven centers around the build lifecycle. http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Because of that, tasks don't 'depend' on other tasks, instead they are bound to different phases of the lifecycle. What are you trying to get Maven to do? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-equivalent-of-ant-%3Cdepend%3E-optional-task-tf2568454s177.html#a7159988 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Mechanism to import common depdencies into your pom files?
This is essentially why the dependencyManagement node was created. Take a look at it. You'll probably want to make a single corporate-wide super parent that all your projects point to, and include the depMgmt node in that pom. Then in projects that need to use various dependencies, you can declare the dependency without any version information and it will use the version declared in the super parent depMgmt node. Wayne On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I have a client with many different maven projects. I am trying to figure out a way to manage the versions of common libraries across these projects without duplicating the version number in each project. For example, commons-lang-1.1.jar is used in 50 projects. I know that I can use a parent pom file to do this, but I don't want all of my projects to include everything in the parent pom. Is there a way to import or include a dependency in your pom... So for example, define a file with common-lang dependency and include that in all pom files that need to reference it? Thanks, jp4 -- View this message in context: http://www.nabble.com/Mechanism-to-import-common-depdencies-into-your-pom-files--tf2568584s177.html#a7159759 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there any plugin available to test after deployment to Application servers?
[EMAIL PROTECTED] writes: Hi, but what i am looking for is some thing like surefile plugin, to havewell good looking test results, is there anything available like that??? so when i run test it will run the test and creates test results page like sure file plugin?? You could create a project for holding your functional test suites, packgae them in surefire executable test cases then run it and generate report. That's the way I do it, at least. I think there is also something in the lifecycle about integration tests but I am not sure of what it means. HTH -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Increase maven runtime heap space
You can use the $HOME/.mavenrc under Unices to store your MAVEN_OPTS variable. This script is sourced by the mvn executable script. -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] wagon-scm Unsupported protocol
Hello, I'm getting the following error when I try to run site:deploy Unsupported protocol: 'scm' Here are the extensions I'm using for in my build: extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-scm/artifactId version1.0-beta-1-SNAPSHOT/version /extension /extensions I saw a post talking about http://jira.codehaus.org/browse/MNG-2227. I followed the workaround of MNG-2227 and changed the order of my repositories, but I was still unable to get past this error message. Is there something else I must include in the extensions list to get this working? Here is my latest repositories list: repositories repository idmavenSnapshots/id nameMaven Snapshots Repository/name urlhttp://people.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases / /repository repository idmavenCentral/id nameMaven Main Repository/name urlhttp://www.ibiblio.org/maven2/url snapshots/ releases / /repository repository idcodehausSnapshots/id nameCodehaus Snapshot Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots/ releases / /repository /repositories Thanks for the help, -Nate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
replace surefire with ant task
I want to replace the surefire tests with the ant junit tests. I also want to run ant junitreport instead of the surefire report. Does anybody have a way to do this? Many of our tests won't run under surefire, others fail when they shouldn't. Excluding tests is not an option. Thanks Liz Sommers [EMAIL PROTECTED]
Re: Mechanism to import common depdencies into your pom files?
Exactly what I was looking for and it works quite well! Thanks, jp4 Wendy Smoak-3 wrote: On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I have a client with many different maven projects. I am trying to figure out a way to manage the versions of common libraries across these projects without duplicating the version number in each project. This is typically done with dependencyManagement. You specify version numbers there, then just declare the groupId and artifactId in the module that needs it. (There have been some issues with dependency management and transitive dependencies, so check JIRA or the list archives if it doesn't seem to be working right.) For example, commons-lang-1.1.jar is used in 50 projects. I know that I can use a parent pom file to do this, but I don't want all of my projects to include everything in the parent pom. Is there a way to import or include a dependency in your pom... So for example, define a file with common-lang dependency and include that in all pom files that need to reference it? To inherit it without ever declaring it again, just put it in dependencies in a top-level pom. Many organizations have a 'master pom' (with no modules) that the various [project]-parent poms inherit from. If you do this, be sure the dependencies are *really* common to all projects. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Mechanism-to-import-common-depdencies-into-your-pom-files--tf2568584s177.html#a7160595 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Versioning problems
I' ve a project so structured. ---aaa.progettoPilota-|- progettoCommons | |__ pom.xml | | progettoBusiness | |__ pom.xml | |- progettoSistema | |__ pom.xml | |- progettoWeb | |__ pom.xml | |_ pom.xml Top level pom has versioned in this way: ... modelVersion4.0.0/modelVersion groupIdaaa.progettoPilota/groupId artifactIdprogettoPilota/artifactId packagingpom/packaging version2.0-SNAPSHOT/version ... All child projects inherit the version in this way: ... parent artifactIdprogettoPilota/artifactId groupIdaaa.progettoPilota/groupId version2.0-SNAPSHOT/version /parent ... I've a local central snapshot repository. Maven try to download new snapshots versions each 60 seconds. The dependencies are: progettoWeb depend from progettoSistema progettoSistema depend from progettoBusiness progettoBusinessdepend from progettoCommons I'm using dependency management, such as dependencyManagement dependencies dependency groupIdaaa.progettoPilota/groupId artifactIdcommons/artifactId version${project.version}/version /dependency dependency groupIdaaa.progettoPilota/groupId artifactIdbusiness/artifactId version${project.version}/version /dependency dependency groupIdaaa.progettoPilota/groupId artifactIdsistema/artifactId version${project.version}/version /dependency dependency groupIdaaa.progettoPilota.web/groupId artifactIdprogettoWeb/artifactId version${project.version}/version /dependency ... Now, let go to the problem. 1) Deploy all the projects on the repository (clear at the beginning) using mvn deploy command at the top pom.xml level. All projects in the repository have the same format, for example: business-2.0-20061103.154755-1.jar. In particular build number is 1 for all. 2) Let go into progettoWeb directory and try to compile with mvn clean compile command. Maven checks for dependency, eventually update and it's all right. 3) Let go into progettoSistema and deploy only this project (mvn deploy). In the snapshot repository I'll have: sistema-2.0-20061103.155109-2.jar (buil number 2) 4) Let go into progettoWeb and compile (mvn clean compile). It's all rights. 5) Now, try to use maven from another machine or clean your local repository (%user_HOME%\m2\repository...). Go into progettoWeb and try to compile (mvn clean compile). Maven SHOULD BE downloads all snapshots from local central repository and compile progettoWeb. Instead I get an error such as: *** W:\workspace\Maven\progettoWebmvn clean compile [INFO] Scanning for projects... [INFO] [INFO] Building progettoPilotaWeb [INFO]task-segment: [clean, compile] [INFO] [INFO] [clean:clean] [INFO] Deleting directory W:\workspace\Maven\progettoWeb\target [INFO] Deleting directory W:\workspace\Maven\progettoWeb\target\classes [INFO] Deleting directory W:\workspace\Maven\progettoWeb\target\test-classes [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot aaa.progettoPilota:sistema:2.0-SNAPSHOT: checking for updates from repository-inhouse_snapshot Downloading: http://propus:8081/maven-proxy-webapp/repository/aaa/progettoPilota/sistema/2.0-SNAPSHOT/sistema-2.0-20061103.155109-2.pom 657b downloaded [INFO] snapshot aaa.progettoPilota:progettoPilota:2.0-SNAPSHOT: checking for updates from repository-inhouse_snapshot Downloading: http://propus:8081/maven-proxy-webapp/repository/aaa/progettoPilota/progettoPilota/2.0-SNAPSHOT/progettoPilota-2.0-20061103.154755-1.pom 7K downloaded Downloading: http://propus:8081/maven-proxy-webapp/repository/aaa/progettoPilota/business/2.0-SNAPSHOT/business-2.0-20061103.155109-2.pom [WARNING] Unable to get resource from repository repository-inhouse_snapshot (http://propus:8081/maven-proxy-webapp/repository) Downloading: http://propus:8081/maven-proxy-webapp/repository/aaa/progettoPilota/sistema/2.0-SNAPSHOT/sistema-2.0-20061103.155109-2.jar 2K downloaded Downloading: http://propus:8081/maven-proxy-webapp/repository/aaa/progettoPilota/business/2.0-SNAPSHOT/business-2.0-20061103.155109-2.jar [WARNING] Unable to get resource from repository repository-inhouse_snapshot (http://propus:8081/maven-proxy-webapp/repository) [INFO]
moving maven local .m2 repository
How do I move the .m2 local repository to a different location -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
RE: moving maven local .m2 repository
Create ~/.m2/settings.xml and add the following to that file: settings localRepositoryc:\dev\m2repo/localRepository /settings Of course, adjust the path appropriately. -- Kevin Menard Servprise International WebReboot -- Remote Reboot Without Pulling the Plug 800.832.3823 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 12:07 PM To: maven Subject: moving maven local .m2 repository How do I move the .m2 local repository to a different location -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: replace surefire with ant task
Some thoughts: 1. You might try experimenting with the forkMode setting for Surefire. Ant's junit task defaults to perTest, but the default for Surefire is once. Poorly written tests sometimes rely on the perTest behavior, but well-written tests should be able to run with once (IMHO). For that matter, Surefire isn't really doing anything particularly special as a unit test runner, so if certain tests won't run, that smells. 2. Here's a plugin configuration we use to generate old junitreport HTML files for a data gathering tool we still have to support: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idjunitreport/id phasetest/phase configuration tasks junitreport todir=target/surefire-reports fileset dir=target/surefire-reports include name=TEST-*.xml / /fileset report todir=target/surefire-reports / /junitreport /tasks /configuration goals goalrun/goal /goals /execution /executions dependencies dependency groupIdant/groupId artifactIdant-junit/artifactId version1.6.2/version /dependency /dependencies /plugin This relies on the surefire plugin running the tests and finding the xml test results in the surefire-reports directly. You should be able to insert your own Ant junit task (and configure Surefire to skip tests), if necessary, and modify the rest appropriately. Chris -Original Message- From: Sommers, Elizabeth [mailto:[EMAIL PROTECTED] Sent: Friday, 03 November, 2006 10:17 To: Maven Users List (E-mail) Subject: replace surefire with ant task I want to replace the surefire tests with the ant junit tests. I also want to run ant junitreport instead of the surefire report. Does anybody have a way to do this? Many of our tests won't run under surefire, others fail when they shouldn't. Excluding tests is not an option. Thanks Liz Sommers [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2 project type for a standalone utility
I have a Java project that I want to build using Maven 2. This particular project doesn't really produce a jar as its main artifact, but instead needs to produce a zip file containing all of the runtime dependencies along with a batch file that users use to run the utility. Before I try to create a new plugin that will build this kind of project, I'm wondering if anyone out there has already built this kind of thing and what you used to build it. Thanks, ..David..
Re: M2 project type for a standalone utility
I have used the maven assembly plugin before to build an executable jar file that contains all of the necessary runtime libraries. In order to run the app all you have to do is type java -jar foo.jar arg1 arg2... If this sounds like something you want, I can post the pom.xml jp4 David Jackman wrote: I have a Java project that I want to build using Maven 2. This particular project doesn't really produce a jar as its main artifact, but instead needs to produce a zip file containing all of the runtime dependencies along with a batch file that users use to run the utility. Before I try to create a new plugin that will build this kind of project, I'm wondering if anyone out there has already built this kind of thing and what you used to build it. Thanks, ..David.. -- View this message in context: http://www.nabble.com/M2-project-type-for-a-standalone-utility-tf2569649s177.html#a7163227 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 project type for a standalone utility
You might want to checkout the assembly plugin. http://maven.apache.org/plugins/maven-assembly-plugin This plugin can do what you want, plus much more. Also, there is a new release coming out soon (as soon as I can finish the documentation, which should happen in the next week or so), which will include several new features and fix many bugs. There is a snapshot version of the plugin available using the pluginRepository: http://people.apache.org/repo/m2-snapshot-repository. If you need more specific help, let me know. Cheers, John On 11/3/06, David Jackman [EMAIL PROTECTED] wrote: I have a Java project that I want to build using Maven 2. This particular project doesn't really produce a jar as its main artifact, but instead needs to produce a zip file containing all of the runtime dependencies along with a batch file that users use to run the utility. Before I try to create a new plugin that will build this kind of project, I'm wondering if anyone out there has already built this kind of thing and what you used to build it. Thanks, ..David..
Re: M2 project type for a standalone utility
I think you should be able to construct this the Assembly plugin, without creating your own plugin type etc which is a lot more work. Various people on this list have created special artifacts similar to what you're describing using Assembly. Give it a try before heading down the new plugin path. Wayne On 11/3/06, David Jackman [EMAIL PROTECTED] wrote: I have a Java project that I want to build using Maven 2. This particular project doesn't really produce a jar as its main artifact, but instead needs to produce a zip file containing all of the runtime dependencies along with a batch file that users use to run the utility. Before I try to create a new plugin that will build this kind of project, I'm wondering if anyone out there has already built this kind of thing and what you used to build it. Thanks, ..David.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: moving maven local .m2 repository
Thanks so much! On 11/3/06, Kevin Menard [EMAIL PROTECTED] wrote: Create ~/.m2/settings.xml and add the following to that file: settings localRepositoryc:\dev\m2repo/localRepository /settings Of course, adjust the path appropriately. -- Kevin Menard Servprise International WebReboot -- Remote Reboot Without Pulling the Plug 800.832.3823 -Original Message- From: Mick Knutson [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 12:07 PM To: maven Subject: moving maven local .m2 repository How do I move the .m2 local repository to a different location -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks DJ MICK http://www.djmick.com http://www.myspace.com/mickknutson
Re: Nullpointer-Exception addPlugin
You can run with mvn -X ...to get more specific debugging information about what plugin is causing your problems etc. However, I'd just delete your local Maven2 repository (~/.m2/repository) and try again. Maven will automatically download the files it needs to construct your project. I'd suspect that you have simply managed to get a bad plugin JAR in your repo somewhere. Especially given that you're behind a firewall -- many people attempt to run Maven without configuring things at first and end up with corrupt JARs etc. Then they realize they need to configure their firewall proxy and the old corrupt artifacts are still waiting in your ~/.m2 repo to bite you in the future. Wayne On 11/3/06, bernulfiskus [EMAIL PROTECTED] wrote: Hi! I'm new with Maven - i created a simple sample-project, if i compile the project i get a nullpointer-Exception! I'm behind a firewall, a proxy is configured... Any Idea? Bernie [INFO] Building Maven Default Project [INFO]task-segment: [compile] [INFO] [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-r plugin:2.2 from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plug 1 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom . [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [DEBUG] Trace java.lang.NullPointerException at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:292) -- View this message in context: http://www.nabble.com/Nullpointer-Exception-addPlugin-tf2567630s177.html#a7156625 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mave project interdependencies
I have a quick question about sub projects and when one depends on another. We have one project who's artifact is a war file, and another one that depends on the jars in this first project. How do you set this up? Every way I've tried it still complains about not being able to find the classes it needs.
building sakai with maven
I ran into the following errors when I used maven 2 to build sakai. Does any one know what is wrong with settings of moven 2? Thanks! sakai-src]# mvn sakai [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'sakai': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Fri Nov 03 13:05:26 CST 2006 [INFO] Final Memory: 1M/2M [INFO]
Re: building sakai with maven
Seems like you're missing a Sakai Maven2 plugin or something. Make sure you're following the build instructions provided by Sakai. And if you are, you should probably contact the Sakai developers and ask them to help you resolve this issue -- its not strictly a Maven problem, but rather a Sakai issue. Wayne On 11/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran into the following errors when I used maven 2 to build sakai. Does any one know what is wrong with settings of moven 2? Thanks! sakai-src]# mvn sakai [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'sakai': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Fri Nov 03 13:05:26 CST 2006 [INFO] Final Memory: 1M/2M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mave project interdependencies
You'll need to split the WAR file up into a separate WAR and JAR project. Basically, you can't have any cyclical dependencies. Wayne On 11/3/06, EJ Ciramella [EMAIL PROTECTED] wrote: I have a quick question about sub projects and when one depends on another. We have one project who's artifact is a war file, and another one that depends on the jars in this first project. How do you set this up? Every way I've tried it still complains about not being able to find the classes it needs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: building sakai with maven
Thank you, Wayne. John. Wayne Fay [EMAIL PROTECTED] 11/03/2006 01:30 PM Please respond to Maven Users List users@maven.apache.org To Maven Users List users@maven.apache.org cc Subject Re: building sakai with maven Seems like you're missing a Sakai Maven2 plugin or something. Make sure you're following the build instructions provided by Sakai. And if you are, you should probably contact the Sakai developers and ask them to help you resolve this issue -- its not strictly a Maven problem, but rather a Sakai issue. Wayne On 11/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran into the following errors when I used maven 2 to build sakai. Does any one know what is wrong with settings of moven 2? Thanks! sakai-src]# mvn sakai [INFO] Scanning for projects... [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Invalid task 'sakai': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Fri Nov 03 13:05:26 CST 2006 [INFO] Final Memory: 1M/2M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven project interdependencies
So I should have a project with just the java source and another one that depends on that with all the web app related files (jsps/static html/etc)? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:39 PM To: Maven Users List Subject: Re: mave project interdependencies You'll need to split the WAR file up into a separate WAR and JAR project. Basically, you can't have any cyclical dependencies. Wayne On 11/3/06, EJ Ciramella [EMAIL PROTECTED] wrote: I have a quick question about sub projects and when one depends on another. We have one project who's artifact is a war file, and another one that depends on the jars in this first project. How do you set this up? Every way I've tried it still complains about not being able to find the classes it needs. - 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]
Test Director Integration
Is there a Test Director integration plugin for Maven 2? If yes, please let me know where I could acquire it. Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
Site reporting problem
Hi. I am trying to max. the memory on the checkstyle plugin. However, the memory settings I provided are not getting picked. Does anyone see what is wrong here? Thanks. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.1/version configuration minmemory512m/minmemory maxmemory1024m/maxmemory /configuration /plugin This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]
To whoever is cleaning up the Maven website
THANK YOU THANK YOU THANK YOU
RE: [M2]weblogic:appc classpath issue
I am glad that it is working now. I am anxious to push it up onto the snapshot server. Feel free to let me know what else I can add to help you out. You can enter JIRA tickets in the mojo section so I can track what you need. If you can clarify what you mean by autotypes I will look into that. I hope this weekend to add service gen and jwsc support. Also specify which version of Weblogic you are running. The code it different for 9.0 and 8.1 so that helps me know where to start. Keep the bug reports and feature requests coming and I will work on them as I have time. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 8:55 PM To: users@maven.apache.org Subject: RE: [M2]weblogic:appc classpath issue I downloaded the code from codehaus SNV and it working fine now. Thanks again! Any plans to include autotypes and servicegen goals in the plugin? :) Currently i'm using maven-antrun-plugin to use weblogic servicegen task. Scott Ryan-2 wrote: I would love to push it but I only have access to SVN at codehaus. I do not have the authority to push up a snapshot any longer and the people who can don't seem to have access to the Weblogic jars required to build the code. I hope I can get this worked out this week. Until then you can just download the code from SVN and run mvn install to place it in your local repository to test. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 9:06 PM To: users@maven.apache.org Subject: RE: [M2]weblogic:appc classpath issue Thanks Scott. It would be great if you can push the latest snapshot to the repository now. Scott Ryan-2 wrote: I have refactored the 2.8.0 plugin to fix that problem. I have changed some of the parameters and since the website can only support one version of the plugin I need to add a page to describe the new settings for the 2.8.0 plugin. I will be pushing the latest snapshot up to the repository once I have completed that documentation. This fixes the classpath issue both in appc and the client gen mojos. I have not updated the 2.9.0 version as the 9.2 release broke all the apis I was using so i need to refactor to use the new API's. Let me know if you would prefer I push up the 2.8.0 version now and just post the changes on a note to the user list. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Manu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 12:07 PM To: Maven Users List Subject: Re: [M2]weblogic:appc classpath issue Hi, I have the same problem. I need to explicitly set the entire classpath by hand to have it worked. In other words, I'm defining another time all the dependencies that already are in the pom. The plugin does not seem to take into account the dependencies. By the way, i'm using version 2.8.0-SNAPSHOT Thxs Manu 2006/10/31, Dmystery [EMAIL PROTECTED]: Alos, looking at AppcMojo.class file, i dont see any default classpath being set. Here is the stack trace when i try to run the plugin. [INFO] Detailed Appc settings information AppcMojo[basicClientJar = false classpath = null compiler = null debugging = true deprecation = false forceGeneration = false idl = false idlDirectory = null idlFactrories = false idlMethodSignatures = null idlNoAbstractInterfaces = true idlNoValueTypes = true idlOrbix = false idlOverwrite = false idlVerbose = false idlVisiBroker = false iiop = false iiopDirectory = null javaOptions = null keepGenerated = true lineNumbers = true nowarnings = false objectPath = D:\Castle-maven\castle\server\server-ejb\target/castle-server-ejb- 1.0.jar optimization = false outputFile = null verbose = true version = false] [INFO] Argument List for Appc settings [-lineNumbers, -keepgenerated, -g, -verb ose, D:\Castle-maven\castle\server\server-ejb\target/castle-server-ejb-1.0.jar] [appc] Created working directory: C:\DOCUME~1\DEEP_M~1.INF\LOCALS~1\Temp\appcgen [J2EE:160119]Appc is unable to process the file 'D:\Castle-maven\castle\server\s erver-ejb\target\castle-server-ejb-1.0.jar'. The following error occurred: java.lang.NoClassDefFoundError: cadvf2/server/AbstractEJB This is a compile dependency in the POM at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(Generic ClassLoader.java:480)
Anybody tried building with the latest code something with the latest code (2.0.5ish)
I pulled down maven the maven source yesterday (maybe the day before) and built it. No problem, it built fine. I unzip the 2.05 snapshot zip file and point my maven home to it. do a --version, just to be sure. Then tried to do a build of the latest geronimo source tree. It took over 300 minutes with a million (maybe exageration, maybe not) WARNING messages. So, the question is, has anyone tried running with the latest greatest bleeding edge codeline? Below is a sampling of the messges (BTW, using 2.04 geronimo builds in about 20 minutes for me) The messages I get with 2.05 (current codeline) that I don't get with 2.04 are like the following. [WARNING] Unable to get resource from repository apache-snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository codehaus-snapshots (http://snap shots.repository.codehaus.org) [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository apache-snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository codehaus-snapshots (http://snap shots.repository.codehaus.org) [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository apache-snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository codehaus-snapshots (http://snap shots.repository.codehaus.org) [WARNING] Unable to get resource from repository apache.snapshots (http://people .apache.org/repo/m2-snapshot-repository) [WARNING] Unable to get resource from repository apache-snapshots (http://people .apache.org/repo/m2-snapshot-repository) John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven project interdependencies
That's exactly correct. I include non-shared Java classes in WAR and shared Java classes in what is essentially SHARED_LIB. Then I add a dependency in WAR on SHARED_LIB etc. Wayne On 11/3/06, EJ Ciramella [EMAIL PROTECTED] wrote: So I should have a project with just the java source and another one that depends on that with all the web app related files (jsps/static html/etc)? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:39 PM To: Maven Users List Subject: Re: mave project interdependencies You'll need to split the WAR file up into a separate WAR and JAR project. Basically, you can't have any cyclical dependencies. Wayne On 11/3/06, EJ Ciramella [EMAIL PROTECTED] wrote: I have a quick question about sub projects and when one depends on another. We have one project who's artifact is a war file, and another one that depends on the jars in this first project. How do you set this up? Every way I've tried it still complains about not being able to find the classes it needs. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Continuum Uninstall
You have a quote in your PATH, remove it and all will work fine. Emmanuel jacob thomas a écrit : Hi, I am facing an issue, I am very new to the Continuum Tool. The issues is, I removed continuum from the box, and even clear the registry also for conitinuum service. I tried to reinstall, unpacked it under the C://... and i ran the command run.bat. JAVA_HOME, M2_HOME is also set in both system user environment. Here is the error log I am getting: --- C:\continuum-1.0.3\bin\win32run.bat wrapper | -- Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | java.lang.NoClassDefFoundError: Files\Crimson jvm 1 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 2 | java.lang.NoClassDefFoundError: Files\Crimson jvm 2 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 3 | java.lang.NoClassDefFoundError: Files\Crimson jvm 3 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 4 | java.lang.NoClassDefFoundError: Files\Crimson jvm 4 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | Launching a JVM... jvm 5 | java.lang.NoClassDefFoundError: Files\Crimson jvm 5 | Exception in thread main wrapper | JVM exited while loading the application. wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up. wrapper | There may be a configuration problem: please check the logs. wrapper | -- Wrapper Stopped Press any key to continue . . . -- I got stuck at this point, let me know if anybody knows the solution how to unInstall reInstall. Thanks Regards Jacob Thomas
Re: Deploy trunk on tomcat
A sample tomcat 5.X conf is there : http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/src/test/tomcat5x/conf/Catalina/localhost/continuum.xml Emmanuel Brian E. Fox a écrit : I have seen some recent messages that indicate the trunk should work on tomcat. I built the war and dropped it into tomcat but I'm getting some exceptions that are related (i'm guessing) to data sources not being setup. Any guidance would be appreciated. 2006-11-02 13:34:35 StandardContext[/continuum]Exception sending context initialized event to listener instance of class org.codehaus.plexus.xwork.PlexusLifecycleListener org.jpox.exceptions.ConnectionFactoryNotFoundException: Connection Factory java:comp/env/jdbc/continuum not found at org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPers istenceManagerFactory.java:175) at org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP ersistenceManagerFactory.java:212) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers istenceManagerFactoryImpl.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abstr actConfigurableJdoFactory.java:108) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstrac tConfigurableJdoFactory.java:75) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceMan agerFactory(AbstractConfigurableJdoFactory.java:43) at org.apache.maven.continuum.store.JdoContinuumStore.initialize(JdoContinu umStore.java:106) NestedThrowablesStackTrace: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:347) at org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPers istenceManagerFactory.java:171) at org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(AbstractP ersistenceManagerFactory.java:212) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pers istenceManagerFactoryImpl.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abstr actConfigurableJdoFactory.java:108)
Where can I get the nightly Maven2 build?
I was hoping to get a nightly build so that I can see if my unit test cases will run twice when I run mvn site. I am hoping it's fixed in the new version, but I haven't been able to find a link to the nightly builds. Thanks, jp4 -- View this message in context: http://www.nabble.com/Where-can-I-get-the-nightly-Maven2-build--tf2571186s177.html#a7167649 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed?
Hello, I have the following setup: 1. Defined internal , external profiles in settings.xml and set internal as active. external profile has plugin repository configuration. (this play important role for some reason) 2. Defined jsp-comp profile to activate jsp compilation for the build in compile goal in parent-pom.xml 3, webapp pom.xml uses the parent pom. $mvn -Pinternal, jsp-compile compile - I can see that internal and jsp-compile profiles are being used (jsps are compiled) $mvn -Pexternal, jsp-compile compile - I can see that external is used but jsp-compile is ignored!. (jsps are not compiled) Anybody has any clue why this might be the case? Plugin help does not seem to be helpful since it appears to simply print out settings.xml (or it's portions) and can present flat pom.xml but seem to ignore information in parent's pom.xml with respect to profiles. I also noticed that jsp-compile does work in conjunction with external profile if I comment out this section in external profile definition. pluginRepositories pluginRepository idibiblio.org/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://www.ibiblio.org/maven2/url snapshots updatePolicyinterval:60/updatePolicy enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository Executing commands in webapp dir $mvn help:effective-settingprints internal is active. $mvn -Pexternal help:effective-settingprints internal is active again. - is this wrong? The book says that -P option should overwrite active profile? When I build application I do see that external profile is being used. Thanks Leonard
mvn site running test cases twice
I am using the surefire report plugin as well as coberatura, javadoc and checkstyle.. When I do a mvn site it runs my test cases twice. I have read other threads on this issue, but I haven't seen a definitive resolution... Is there one? We have a done of tests that get run nightly and now I know why the build takes so long. Any feedback would be greatly appreciated. jp4 -- View this message in context: http://www.nabble.com/mvn-site-running-test-cases-twice-tf2571386s177.html#a7168325 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: supported databases ?
Hi, Thanks a lot. I didn't yet try. I'll do it the next week. Arnaud On 11/3/06, Glenn J Gonzales [EMAIL PROTECTED] wrote: Hi Arnaud, I tried this with MySQL 5.0.27 with Connector/J 5.04. Worked without a hitch. Cheers, Glenn FromArnaud HERITIER [EMAIL PROTECTED] Subject Re: supported databases ? DateThu, 12 Oct 2006 19:59:03 GMT There's certainly (I hope) another setting somewhere in archiva to tell it which database we want to use and how the SQL must be generated. I'll try to have a look at it if no developer reply. Arnaud On 10/12/06, Mohni, Daniel [EMAIL PROTECTED] wrote: Hi Arnaud What databases are supported ? Only Derby or I can try to connect archiva to another one like mySQL ? I tryed with mySQL using this ressource definition: Resource name=jdbc/users auth=Container type=javax.sql.DataSource username=archiva password=archiva driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/archiva?autoReconnect=true / with a local mysql instance with catalog archiva and user archiva/archiva when accesing localhost:8080/archiva I get an exception, the logs will show this: 2006-10-12 10:02:52,078 [http-8080-Processor24] INFO Interceptor:pssSecureActionInterceptor - org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor initialized! 2006-10-12 10:02:52,078 [http-8080-Processor24] INFO Interceptor:pssSecureActionInterceptor - org.codehaus.plexus.security.ui.web.interceptor.SecureActionInterceptor initialized! 2006-10-12 10:02:52,421 [http-8080-Processor24] ERROR VelocityComponent - ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. 2006-10-12 10:02:55,281 [http-8080-Processor24] WARN General - SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead 2006-10-12 10:02:55,812 [http-8080-Processor24] WARN General - SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead 2006-10-12 10:02:56,515 [http-8080-Processor24] ERROR RDBMS - Error thrown executing CREATE TABLE `OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without a key length java.sql.SQLException: BLOB/TEXT column 'NAME' used in key specification without a key length at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2975) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695) at com.mysql.jdbc.Connection.execSQL(Connection.java:2998) at com.mysql.jdbc.Connection.execSQL(Connection.java:2927) at com.mysql.jdbc.Statement.execute(Statement.java:535) at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.execute (DelegatingStatem ent.java:261) at
Re: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed?
Have you tried mvn -X ... to see additional debugging information? I'd assume something is just not working right, and the stacktrace might help you see/find it. Wayne On 11/3/06, Leonard Gestrin [EMAIL PROTECTED] wrote: Hello, I have the following setup: 1. Defined internal , external profiles in settings.xml and set internal as active. external profile has plugin repository configuration. (this play important role for some reason) 2. Defined jsp-comp profile to activate jsp compilation for the build in compile goal in parent-pom.xml 3, webapp pom.xml uses the parent pom. $mvn -Pinternal, jsp-compile compile - I can see that internal and jsp-compile profiles are being used (jsps are compiled) $mvn -Pexternal, jsp-compile compile - I can see that external is used but jsp-compile is ignored!. (jsps are not compiled) Anybody has any clue why this might be the case? Plugin help does not seem to be helpful since it appears to simply print out settings.xml (or it's portions) and can present flat pom.xml but seem to ignore information in parent's pom.xml with respect to profiles. I also noticed that jsp-compile does work in conjunction with external profile if I comment out this section in external profile definition. pluginRepositories pluginRepository idibiblio.org/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://www.ibiblio.org/maven2/url snapshots updatePolicyinterval:60/updatePolicy enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository Executing commands in webapp dir $mvn help:effective-settingprints internal is active. $mvn -Pexternal help:effective-settingprints internal is active again. - is this wrong? The book says that -P option should overwrite active profile? When I build application I do see that external profile is being used. Thanks Leonard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Site reporting problem
Looking at the code... https://svn.apache.org/repos/asf/maven/plugins/tags/maven-checkstyle-plugin-2.1/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleReport.java I don't see any configuration parameters for min/max memory in the plugin. Where did you get these parameters -- or did you just make them up? Try adjusting the Java memory (-Xmx etc) in MAVEN_OPTS in your mvn.bat file instead. Wayne On 11/3/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Hi. I am trying to max. the memory on the checkstyle plugin. However, the memory settings I provided are not getting picked. Does anyone see what is wrong here? Thanks. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.1/version configuration minmemory512m/minmemory maxmemory1024m/maxmemory /configuration /plugin This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] wagon-scm Unsupported protocol
I realize I should be beat for not running with X before posting to the users list, but better late then never. After running with debugging enabled, I found the wagon-scm snapshot version used by maven was 1.0-beta-1-20060509.172247-7. However, maven cannot find a wagon-providers-api POM with that version. I looked in the repository manually and didnt find that version of the POM. Does this matter? What does using stub model mean? Can snapshot versions be build separately and still work? Here is a snippet from the debug trace: ... [DEBUG] apache: resolved to version 2-20060311.221834-2 from repository mavenSnapshots [DEBUG] org.apache.maven.wagon:wagon-scm:jar:1.0-beta-1-SNAPSHOT:runtime (selected for runtime) [DEBUG] Trying repository mavenSnapshots Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/maven/wagon/wagon-provider-api/1.0-beta-1-SNAPSHOT/wagon-provider-api-1.0-beta-1-20060509.172247-7.pom [WARNING] Unable to get resource from repository mavenSnapshots (http://people.apache.org/maven-snapshot-repository) [DEBUG] Trying repository mavenCentral Downloading: http://www.ibiblio.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-beta-1-SNAPSHOT/wagon-provider-api-1.0-beta-1-20060509.172247-7.pom [WARNING] Unable to get resource from repository mavenCentral (http://www.ibiblio.org/maven2) [DEBUG] Trying repository codehausSnapshots Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-beta-1-SNAPSHOT/wagon-provider-api-1.0-beta-1-20060509.172247-7.pom [WARNING] Unable to get resource from repository codehausSnapshots (http://snapshots.maven.codehaus.org/maven2) [DEBUG] Skipping disabled repository central [DEBUG] Artifact not found - using stub model: Unable to download the artifact from any repository org.apache.maven.wagon:wagon-provider-api:pom:1.0-beta-1-20060509.172247-7 from the specified remote repositories: mavenSnapshots (http://people.apache.org/maven-snapshot-repository), central (http://repo1.maven.org/maven2), codehausSnapshots (http://snapshots.maven.codehaus.org/maven2), mavenCentral (http://www.ibiblio.org/maven2) [DEBUG] Using defaults for missing POM org.apache.maven.wagon:wagon-provider-api:pom:1.0-beta-1-SNAPSHOT:runtime [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-1-20060509.172247-7:runtime (selected for runtime) [DEBUG] Skipping disabled repository central [DEBUG] maven-scm-api: resolved to version 1.0-20061031.134419-8 from repository mavenSnapshots [DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-SNAPSHOT for project: null:maven-scm-api:jar:1.0-20061031.134419-8 from the repository. [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-1-20060509.172247-7:runtime (selected for runtime) [DEBUG] Skipping disabled repository central ... Thanks for the help, -Nate Hello, I'm getting the following error when I try to run site:deploy Unsupported protocol: 'scm' Here are the extensions I'm using for in my build: extensions extension groupIdorg.apache.maven.wagon/groupId artifactIdwagon-scm/artifactId version1.0-beta-1-SNAPSHOT/version /extension /extensions I saw a post talking about http://jira.codehaus.org/browse/MNG-2227. I followed the workaround of MNG-2227 and changed the order of my repositories, but I was still unable to get past this error message. Is there something else I must include in the extensions list to get this working? Here is my latest repositories list: repositories repository idmavenSnapshots/id nameMaven Snapshots Repository/name urlhttp://people.apache.org/maven-snapshot-repository/url snapshots enabledtrue/enabled /snapshots releases / /repository repository idmavenCentral/id nameMaven Main Repository/name urlhttp://www.ibiblio.org/maven2/url snapshots/ releases / /repository repository idcodehausSnapshots/id nameCodehaus Snapshot Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url snapshots/ releases / /repository /repositories Thanks for the help, -Nate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dbunit plugin - how to consolidate and not run when skipping tests
Matt, Where is this dbunit hosted? I couldn't find it under http://snapshots.repository.codehaus.org/ Cheers, Thomas On 11/1/06, mraible [EMAIL PROTECTED] wrote: I have the following configuration for the dbunit plugin: plugins plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration driver${jdbc.driverClassName}/driver username${jdbc.username}/username password${jdbc.password}/password url${jdbc.url}/url sourceData${basedir}/src/test/data/sample-data.xml/sourceData sourceDataFormatxml/sourceDataFormat /configuration executions execution idtest-compile/id phasetest-compile/phase goals goalclean-insert/goal /goals /execution execution idpre-integration-test/id phasepre-integration-test/phase goals goalclean-insert/goal /goals /execution /executions dependencies dependency groupId${jdbc.groupId}/groupId artifactId${jdbc.artifactId}/artifactId version${jdbc.version}/version /dependency /dependencies /plugin I'm using this in several poms in my application. Is it possible to consolidate this so it only resides in one location? I'm guessing I can put it into a top-level pom? If I do that, where should my sample-data.xml reside so all child modules can see it? Also, what phase should I use (instead of test-compile) so clean-insert is skipped when maven.test.skip=true? Thanks, Matt -- http://raibledesigns.com -- View this message in context: http://www.nabble.com/dbunit-plugin---how-to-consolidate-and-not-run-when-skipping-tests-tf2553978s177.html#a7116451 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dbunit plugin - how to consolidate and not run when skipping tests
dbunit plugin source was checked in sometimes ago to the mojo sanbox, but i beleive no one is working on it and no snapshot is ever deployed. -D On 11/3/06, Thomas Van de Velde [EMAIL PROTECTED] wrote: Matt, Where is this dbunit hosted? I couldn't find it under http://snapshots.repository.codehaus.org/ Cheers, Thomas On 11/1/06, mraible [EMAIL PROTECTED] wrote: I have the following configuration for the dbunit plugin: plugins plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration driver${jdbc.driverClassName}/driver username${jdbc.username}/username password${jdbc.password}/password url${jdbc.url}/url sourceData${basedir}/src/test/data/sample-data.xml/sourceData sourceDataFormatxml/sourceDataFormat /configuration executions execution idtest-compile/id phasetest-compile/phase goals goalclean-insert/goal /goals /execution execution idpre-integration-test/id phasepre-integration-test/phase goals goalclean-insert/goal /goals /execution /executions dependencies dependency groupId${jdbc.groupId}/groupId artifactId${jdbc.artifactId}/artifactId version${jdbc.version}/version /dependency /dependencies /plugin I'm using this in several poms in my application. Is it possible to consolidate this so it only resides in one location? I'm guessing I can put it into a top-level pom? If I do that, where should my sample-data.xml reside so all child modules can see it? Also, what phase should I use (instead of test-compile) so clean-insert is skipped when maven.test.skip=true? Thanks, Matt -- http://raibledesigns.com -- View this message in context: http://www.nabble.com/dbunit-plugin---how-to-consolidate-and-not-run-when-skipping-tests-tf2553978s177.html#a7116451 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dbunit plugin - how to consolidate and not run when skipping tests
We've compiled it and deployed it to the the AppFuse repo: http://static.appfuse.org/repository/ We hope to figure out a way to get it released before we release AppFuse 2.0 final. We're more than happy to contribute to the plugin. AFAIK, Brian Topping built the plugin when we converted an Ant-based AppFuse project to Maven 2. Matt thomasvdv wrote: Matt, Where is this dbunit hosted? I couldn't find it under http://snapshots.repository.codehaus.org/ Cheers, Thomas On 11/1/06, mraible [EMAIL PROTECTED] wrote: I have the following configuration for the dbunit plugin: plugins plugin groupIdorg.codehaus.mojo/groupId artifactIddbunit-maven-plugin/artifactId version1.0-SNAPSHOT/version configuration driver${jdbc.driverClassName}/driver username${jdbc.username}/username password${jdbc.password}/password url${jdbc.url}/url sourceData${basedir}/src/test/data/sample-data.xml/sourceData sourceDataFormatxml/sourceDataFormat /configuration executions execution idtest-compile/id phasetest-compile/phase goals goalclean-insert/goal /goals /execution execution idpre-integration-test/id phasepre-integration-test/phase goals goalclean-insert/goal /goals /execution /executions dependencies dependency groupId${jdbc.groupId}/groupId artifactId${jdbc.artifactId}/artifactId version${jdbc.version}/version /dependency /dependencies /plugin I'm using this in several poms in my application. Is it possible to consolidate this so it only resides in one location? I'm guessing I can put it into a top-level pom? If I do that, where should my sample-data.xml reside so all child modules can see it? Also, what phase should I use (instead of test-compile) so clean-insert is skipped when maven.test.skip=true? Thanks, Matt -- http://raibledesigns.com -- View this message in context: http://www.nabble.com/dbunit-plugin---how-to-consolidate-and-not-run-when-skipping-tests-tf2553978s177.html#a7116451 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/dbunit-plugin---how-to-consolidate-and-not-run-when-skipping-tests-tf2553978s177.html#a7169427 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed?
Thanks, that was a good suggestion. Apparently, when plugin directory is configured, the latest plugin version for jspc is .. [DEBUG] jspc-maven-plugin: resolved to version 1.4.6 from repository ibiblio.org .. If I don't use biblio, mvn uses 1.4.5, and it also prints this line in debug output .. [DEBUG] org.codehaus.mojo:jspc-maven-plugin:maven-plugin:1.4.5:runtime (selected for runtime) ... I don't get this line for version 1.4.6 Both plugins are installed in my local repository, but for some reason 1.4.6 is not get invoked for compilation. P.S. am I correct in my observations for help plugin with active profiles? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:26 PM To: Maven Users List Subject: Re: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed? Have you tried mvn -X ... to see additional debugging information? I'd assume something is just not working right, and the stacktrace might help you see/find it. Wayne On 11/3/06, Leonard Gestrin [EMAIL PROTECTED] wrote: Hello, I have the following setup: 1. Defined internal , external profiles in settings.xml and set internal as active. external profile has plugin repository configuration. (this play important role for some reason) 2. Defined jsp-comp profile to activate jsp compilation for the build in compile goal in parent-pom.xml 3, webapp pom.xml uses the parent pom. $mvn -Pinternal, jsp-compile compile - I can see that internal and jsp-compile profiles are being used (jsps are compiled) $mvn -Pexternal, jsp-compile compile - I can see that external is used but jsp-compile is ignored!. (jsps are not compiled) Anybody has any clue why this might be the case? Plugin help does not seem to be helpful since it appears to simply print out settings.xml (or it's portions) and can present flat pom.xml but seem to ignore information in parent's pom.xml with respect to profiles. I also noticed that jsp-compile does work in conjunction with external profile if I comment out this section in external profile definition. pluginRepositories pluginRepository idibiblio.org/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://www.ibiblio.org/maven2/url snapshots updatePolicyinterval:60/updatePolicy enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository Executing commands in webapp dir $mvn help:effective-settingprints internal is active. $mvn -Pexternal help:effective-settingprints internal is active again. - is this wrong? The book says that -P option should overwrite active profile? When I build application I do see that external profile is being used. Thanks Leonard - 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]
partial answer to first part: RE: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed?
Apparently, 1.4.6 version of jspc-maven-plugin is invoked for goals that after compile (like install) And 1.4.5 version of jspc-maven-plugin is invoked for compile also. It's defined like this in pom.xml plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId !--version1.4.5/version-- executions execution idjspc/id goals goalcompile/goal /goals /execution /executions !-- configuration warSourceDirectory${basedir}/target/webapp-panel/warSourceDirectory /configuration -- /plugin -Original Message- From: Leonard Gestrin [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 3:32 PM To: Maven Users List Subject: RE: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed? Thanks, that was a good suggestion. Apparently, when plugin directory is configured, the latest plugin version for jspc is .. [DEBUG] jspc-maven-plugin: resolved to version 1.4.6 from repository ibiblio.org .. If I don't use biblio, mvn uses 1.4.5, and it also prints this line in debug output .. [DEBUG] org.codehaus.mojo:jspc-maven-plugin:maven-plugin:1.4.5:runtime (selected for runtime) ... I don't get this line for version 1.4.6 Both plugins are installed in my local repository, but for some reason 1.4.6 is not get invoked for compilation. P.S. am I correct in my observations for help plugin with active profiles? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:26 PM To: Maven Users List Subject: Re: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed? Have you tried mvn -X ... to see additional debugging information? I'd assume something is just not working right, and the stacktrace might help you see/find it. Wayne On 11/3/06, Leonard Gestrin [EMAIL PROTECTED] wrote: Hello, I have the following setup: 1. Defined internal , external profiles in settings.xml and set internal as active. external profile has plugin repository configuration. (this play important role for some reason) 2. Defined jsp-comp profile to activate jsp compilation for the build in compile goal in parent-pom.xml 3, webapp pom.xml uses the parent pom. $mvn -Pinternal, jsp-compile compile - I can see that internal and jsp-compile profiles are being used (jsps are compiled) $mvn -Pexternal, jsp-compile compile - I can see that external is used but jsp-compile is ignored!. (jsps are not compiled) Anybody has any clue why this might be the case? Plugin help does not seem to be helpful since it appears to simply print out settings.xml (or it's portions) and can present flat pom.xml but seem to ignore information in parent's pom.xml with respect to profiles. I also noticed that jsp-compile does work in conjunction with external profile if I comment out this section in external profile definition. pluginRepositories pluginRepository idibiblio.org/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://www.ibiblio.org/maven2/url snapshots updatePolicyinterval:60/updatePolicy enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository Executing commands in webapp dir $mvn help:effective-settingprints internal is active. $mvn -Pexternal help:effective-settingprints internal is active again. - is this wrong? The book says that -P option should overwrite active profile? When I build application I do see that external profile is being used. Thanks Leonard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deploy trunk on tomcat
Perfect, this is exactly what I needed. I would like to point this at a mssql database. This should be straightforward because I also have a jira instance pointed there and the configuration is also though the datasources. Are there any other known issues using mssql? -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 3:24 PM To: continuum-users@maven.apache.org Subject: Re: Deploy trunk on tomcat A sample tomcat 5.X conf is there : http://svn.apache.org/repos/asf/maven/continuum/trunk/continuum-webapp-test/src/test/tomcat5x/conf/Catalina/localhost/continuum.xml Emmanuel Brian E. Fox a écrit : I have seen some recent messages that indicate the trunk should work on tomcat. I built the war and dropped it into tomcat but I'm getting some exceptions that are related (i'm guessing) to data sources not being setup. Any guidance would be appreciated. 2006-11-02 13:34:35 StandardContext[/continuum]Exception sending context initialized event to listener instance of class org.codehaus.plexus.xwork.PlexusLifecycleListener org.jpox.exceptions.ConnectionFactoryNotFoundException: Connection Factory java:comp/env/jdbc/continuum not found at org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPe rs istenceManagerFactory.java:175) at org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(Abstrac tP ersistenceManagerFactory.java:212) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pe rs istenceManagerFactoryImpl.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abs tr actConfigurableJdoFactory.java:108) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.configure(Abstr ac tConfigurableJdoFactory.java:75) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.getPersistenceM an agerFactory(AbstractConfigurableJdoFactory.java:43) at org.apache.maven.continuum.store.JdoContinuumStore.initialize(JdoConti nu umStore.java:106) NestedThrowablesStackTrace: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:768) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:138) at org.apache.naming.NamingContext.lookup(NamingContext.java:779) at org.apache.naming.NamingContext.lookup(NamingContext.java:151) at org.apache.naming.SelectorContext.lookup(SelectorContext.java:136) at javax.naming.InitialContext.lookup(InitialContext.java:347) at org.jpox.AbstractPersistenceManagerFactory.lookupDataSource(AbstractPe rs istenceManagerFactory.java:171) at org.jpox.AbstractPersistenceManagerFactory.freezeConfiguration(Abstrac tP ersistenceManagerFactory.java:212) at org.jpox.PersistenceManagerFactoryImpl.getPersistenceManagerFactory(Pe rs istenceManagerFactoryImpl.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j av a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess or Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:534) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:478) at org.codehaus.plexus.jdo.AbstractConfigurableJdoFactory.doConfigure(Abs tr actConfigurableJdoFactory.java:108)
Re: partial answer to first part: RE: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed?
I actually use the test or package phases myself by default when I'm working on webapps, not compile, so I haven't noticed this myself. You could dig into the jspc-maven-plugin to find out what phase(s) the plugin is configured to run in by default. And of course you can tell the plugin to execute in a particular phase (in addition to its default) in your own pom. Perhaps you could start using a phase other than compile when you run mvn and you want to have your JSPs compiled? Wayne On 11/3/06, Leonard Gestrin [EMAIL PROTECTED] wrote: Apparently, 1.4.6 version of jspc-maven-plugin is invoked for goals that after compile (like install) And 1.4.5 version of jspc-maven-plugin is invoked for compile also. It's defined like this in pom.xml plugin groupIdorg.codehaus.mojo/groupId artifactIdjspc-maven-plugin/artifactId !--version1.4.5/version-- executions execution idjspc/id goals goalcompile/goal /goals /execution /executions !-- configuration warSourceDirectory${basedir}/target/webapp-panel/warSourceDirectory /configuration -- /plugin -Original Message- From: Leonard Gestrin [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 3:32 PM To: Maven Users List Subject: RE: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed? Thanks, that was a good suggestion. Apparently, when plugin directory is configured, the latest plugin version for jspc is .. [DEBUG] jspc-maven-plugin: resolved to version 1.4.6 from repository ibiblio.org .. If I don't use biblio, mvn uses 1.4.5, and it also prints this line in debug output .. [DEBUG] org.codehaus.mojo:jspc-maven-plugin:maven-plugin:1.4.5:runtime (selected for runtime) ... I don't get this line for version 1.4.6 Both plugins are installed in my local repository, but for some reason 1.4.6 is not get invoked for compilation. P.S. am I correct in my observations for help plugin with active profiles? -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, November 03, 2006 2:26 PM To: Maven Users List Subject: Re: selecting active profiles and maven-help-plugin does not work as expected/configuring plugin-repository cauze plugin to be not executed? Have you tried mvn -X ... to see additional debugging information? I'd assume something is just not working right, and the stacktrace might help you see/find it. Wayne On 11/3/06, Leonard Gestrin [EMAIL PROTECTED] wrote: Hello, I have the following setup: 1. Defined internal , external profiles in settings.xml and set internal as active. external profile has plugin repository configuration. (this play important role for some reason) 2. Defined jsp-comp profile to activate jsp compilation for the build in compile goal in parent-pom.xml 3, webapp pom.xml uses the parent pom. $mvn -Pinternal, jsp-compile compile - I can see that internal and jsp-compile profiles are being used (jsps are compiled) $mvn -Pexternal, jsp-compile compile - I can see that external is used but jsp-compile is ignored!. (jsps are not compiled) Anybody has any clue why this might be the case? Plugin help does not seem to be helpful since it appears to simply print out settings.xml (or it's portions) and can present flat pom.xml but seem to ignore information in parent's pom.xml with respect to profiles. I also noticed that jsp-compile does work in conjunction with external profile if I comment out this section in external profile definition. pluginRepositories pluginRepository idibiblio.org/id nameMaven Plugin Repository/name layoutdefault/layout urlhttp://www.ibiblio.org/maven2/url snapshots updatePolicyinterval:60/updatePolicy enabledfalse/enabled /snapshots releases updatePolicynever/updatePolicy /releases /pluginRepository Executing commands in webapp dir $mvn help:effective-settingprints internal is active. $mvn -Pexternal help:effective-settingprints internal is active again. - is this wrong? The book says that -P option should overwrite active profile? When I build application I do see that external profile is being used. Thanks Leonard - 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
RE: Continuum can't connect to CVS?
That was the problem. Thanks Emmanual!! Daren -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 7:00 AM To: continuum-users@maven.apache.org Subject: Re: Continuum can't connect to CVS? I think you don'trun continuum with the same user. You need to define CVS_RSH to ssh for the user that run continuum. Emmanuel Drummond Daren - dadrum a écrit : Continuum Experts, When I try to build my Continuum project it fails during the scm update step. I am connecting to a CVS server via ssh configured to use key pair authentication. Here is my continuum scm url (user ID and host omitted): scm:cvs:ext:myUserID@theCVShost:/cvsroot/impact/:di-common When I copy the cvs command out of the continuum console (see below - User ID and host removed.) and execute it directly from the command line, the checkout operation works! So how come it doesn't work when it is executed by Continuum? cvs -z3 -f -d :ext:myID@myhost:/cvsroot/impact -q checkout -d 6 di-common I'm running cygwin bash on Windows XP, sp2, with JDK 1.5. The build error I receive is pasted below. I'd greatly appreciate any help you can offer. Thanks, Daren The error displayed in the Continuum console is: jvm 1| 2006-11-01 11:23:51,692 [Thread-2] WARN SQL - Object with id 0 not found ! jvm 1| 2006-11-01 11:23:51,692 [Thread-2] INFO ContinuumScm - Checking out project: '7.2-SNAPSHOT di-common', id: '6' to 'C:\continuum-1. 0.3\bin\win32\..\..\apps\continuum\Impact\6'. jvm 1| 2006-11-01 11:23:51,692 [Thread-2] INFO ScmManager - Executing: cvs -z3 -f -d :ext:myID@myhost:/cvsroot/impact / -q checkout -d 6 di-common jvm 1| 2006-11-01 11:23:51,692 [Thread-2] INFO ScmManager - Working directory: C:\continuum-1.0.3\apps\continuum\Impact jvm 1| 2006-11-01 11:23:51,817 [Thread-2] WARN ContinuumScm - Error while checking out the code for project: '7.2-SNAPSHOT di-common', id : '6' to 'C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\Impact\6'. jvm 1| 2006-11-01 11:23:51,817 [Thread-2] WARN ContinuumScm - Command output: jvm 1| jvm 1| Runs commands on remote hosts running the RSH service. jvm 1| jvm 1| jvm 1| jvm 1| RSH host [-l username] [-n] command jvm 1| jvm 1| jvm 1| jvm 1| hostSpecifies the remote host on which to run command. jvm 1| jvm 1| -l username Specifies the user name to use on the remote host. If jvm 1| jvm 1| omitted, the logged on user name is used. jvm 1| jvm 1| -n Redirects the input of RSH to NULL. jvm 1| jvm 1| command Specifies the command to run. jvm 1| jvm 1| jvm 1| jvm 1| cvs [checkout aborted]: end of file from server (consult above messag es if any) jvm 1| jvm 1| 2006-11-01 11:23:51,817 [Thread-2] WARN ContinuumScm - Provider message: The cvs command failed. * The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. 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. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. *
Re: Where can I get the nightly Maven2 build?
On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I was hoping to get a nightly build so that I can see if my unit test cases will run twice when I run mvn site. I am hoping it's fixed in the new version, but I haven't been able to find a link to the nightly builds. Snapshots are published here: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where can I get the nightly Maven2 build?
On 11/3/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/3/06, jp4 [EMAIL PROTECTED] wrote: I was hoping to get a nightly build so that I can see if my unit test cases will run twice when I run mvn site. I am hoping it's fixed in the new version, but I haven't been able to find a link to the nightly builds. Snapshots are published here: http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/ On second thought, if you're trying to test a fix for the site plugin, that won't help. See: http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html It looks like the most recent snapshot for the site plugin was published in late May. http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-site-plugin/ When was the fix you're looking for committed? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [M2]weblogic:appc classpath issue
By autotpes i meant the weblogic.ant.taskdefs.webservices.javaschema.JavaSchema task to generate xml based on Java types. I'm using wls 8.1 sp4. Scott Ryan-2 wrote: I am glad that it is working now. I am anxious to push it up onto the snapshot server. Feel free to let me know what else I can add to help you out. You can enter JIRA tickets in the mojo section so I can track what you need. If you can clarify what you mean by autotypes I will look into that. I hope this weekend to add service gen and jwsc support. Also specify which version of Weblogic you are running. The code it different for 9.0 and 8.1 so that helps me know where to start. Keep the bug reports and feature requests coming and I will work on them as I have time. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Thursday, November 02, 2006 8:55 PM To: users@maven.apache.org Subject: RE: [M2]weblogic:appc classpath issue I downloaded the code from codehaus SNV and it working fine now. Thanks again! Any plans to include autotypes and servicegen goals in the plugin? :) Currently i'm using maven-antrun-plugin to use weblogic servicegen task. Scott Ryan-2 wrote: I would love to push it but I only have access to SVN at codehaus. I do not have the authority to push up a snapshot any longer and the people who can don't seem to have access to the Weblogic jars required to build the code. I hope I can get this worked out this week. Until then you can just download the code from SVN and run mvn install to place it in your local repository to test. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Dmystery [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 9:06 PM To: users@maven.apache.org Subject: RE: [M2]weblogic:appc classpath issue Thanks Scott. It would be great if you can push the latest snapshot to the repository now. Scott Ryan-2 wrote: I have refactored the 2.8.0 plugin to fix that problem. I have changed some of the parameters and since the website can only support one version of the plugin I need to add a page to describe the new settings for the 2.8.0 plugin. I will be pushing the latest snapshot up to the repository once I have completed that documentation. This fixes the classpath issue both in appc and the client gen mojos. I have not updated the 2.9.0 version as the 9.2 release broke all the apis I was using so i need to refactor to use the new API's. Let me know if you would prefer I push up the 2.8.0 version now and just post the changes on a note to the user list. Scott Ryan Chief Technology Officer Soaring Eagle L.L.C. [EMAIL PROTECTED] www.soaringeagleco.com (303) 263-3044 -Original Message- From: Manu [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 12:07 PM To: Maven Users List Subject: Re: [M2]weblogic:appc classpath issue Hi, I have the same problem. I need to explicitly set the entire classpath by hand to have it worked. In other words, I'm defining another time all the dependencies that already are in the pom. The plugin does not seem to take into account the dependencies. By the way, i'm using version 2.8.0-SNAPSHOT Thxs Manu 2006/10/31, Dmystery [EMAIL PROTECTED]: Alos, looking at AppcMojo.class file, i dont see any default classpath being set. Here is the stack trace when i try to run the plugin. [INFO] Detailed Appc settings information AppcMojo[basicClientJar = false classpath = null compiler = null debugging = true deprecation = false forceGeneration = false idl = false idlDirectory = null idlFactrories = false idlMethodSignatures = null idlNoAbstractInterfaces = true idlNoValueTypes = true idlOrbix = false idlOverwrite = false idlVerbose = false idlVisiBroker = false iiop = false iiopDirectory = null javaOptions = null keepGenerated = true lineNumbers = true nowarnings = false objectPath = D:\Castle-maven\castle\server\server-ejb\target/castle-server-ejb- 1.0.jar optimization = false outputFile = null verbose = true version = false] [INFO] Argument List for Appc settings [-lineNumbers, -keepgenerated, -g, -verb ose, D:\Castle-maven\castle\server\server-ejb\target/castle-server-ejb-1.0.jar] [appc] Created working directory: C:\DOCUME~1\DEEP_M~1.INF\LOCALS~1\Temp\appcgen [J2EE:160119]Appc is unable to process the file 'D:\Castle-maven\castle\server\s erver-ejb\target\castle-server-ejb-1.0.jar'. The following error occurred: java.lang.NoClassDefFoundError: cadvf2/server/AbstractEJB This is a compile dependency in the POM at java.lang.ClassLoader.defineClass0(Native Method) at