Blog entry
Hi, I saw this blog entry: http://jroller.com/page/robwilliams?entry=continuum_interface_inanity maybe someone should reply? regards, Wim
Re: Blog entry
I think it's too late to debate the existance of continuum. I can probably understand why this new project was started. In fact, despite my agreement w/ the blog and a few quirks I experienced myself, I still deployed continuum here at work. I think the important thing for continuum now is to continue to improve and catch up w/ some great-to-have features. The least I want is to have it fade away like Scarab ray, On 4/20/06, Barrie Treloar [EMAIL PROTECTED] wrote: On 4/20/06, Rinku [EMAIL PROTECTED] wrote: By that logic - just one development language/platform should be enough for all s/w development, why re-invent and invest in other languages/platforms?? I don't suppose there's anything stopping anyone from raising feature requests for Cruisecontrol on cruisecontrol lists. Questioning Continuum's existence IMHO is just silly. It is not silly. CruiseControl is an open source project, you can take that project and add additional features to it and no one can stop you. Continuum would have benefited from an existing architecture, with an existing user base, to extend that platform to support Maven2. And this would have removed the need to re-invent the plumbing of a continuous integration system. I'm not questioning the new features of Continuum, as people believe they are of value, I am questioning the need to re-invent the plumbing part.
Re: Mojo File array parameter and system properties
I would get around this by having a Mojo property of type String and then pass comma-separated list to it - should work from both command line and pom.xml configuration. No doubt there is some boiler-plate involved to create a File array but a.t.m seems like the only work around IMHO. I'd be interested if any one else has a cleaner solution that works both for CLI and pom.xml. HTH, Rahul - Original Message - From: Wayne Fay [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Wednesday, April 19, 2006 3:11 PM Subject: Re: Mojo File array parameter and system properties First off, I haven't done a lot of Maven plugin development, so take this with a grain of salt. I don't believe this error is simply due to the fact that you're trying to pass a string value into a File property. I think its also because your mojo is expecting an array of files. Other people have asked how to pass in an array of values from the command line on this list, and the general response was you just can't. So I'd just plan on putting all your file values etc in the pom.xml file itself for this mojo, and not trying to pass the properties thru the command line. Wayne On 4/18/06, Beyer,Nathan [EMAIL PROTECTED] wrote: I'm building a Maven 2 Plugin (as a MOJO) and I have a parameter that's a java.io.File array and I'm trying to figure out how I would create an expression for passing this as a system property. Currently, the parameter is configured as follows. /** * p * The list of report file paths (relative to the project root). * /p * * @parameter expression=${reportPaths} * @required */ private File[] reportPaths; The parameter will get setup as I expect (an array of File instances) when I use either of the following configurations in a POM. configuration reportPaths reportPathtest_report_1.xml/reportPath /reportPaths /configuration configuration reportPaths java.io.Filetest_report_1.xml/java.io.File /reportPaths /configuration How would I setup this parameter via a System Property on the command line? I've tried a couple of things, like the following, but I get an error about not being able to assign the entry because the input is a String and the expected class is a File[]. mvn mygroup:myartifact:mygoal -DreportPaths=test_report_1.xml Additionally, I've tried changing the type to an ArrayList and can setup the parameter via the POM, but I still can't get the system property to parse anything. Any suggestions? Are there any documents for plugin development that are more detailed than the Mojo API, the development mini guide and the configuring a plugin mini guide? I've tried searching, but I haven't found much. Thanks. -Nathan - CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --- - 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]
unpack only a single dependency
Hi, I trying to use the assemply:unpack mojo to extract sources from a dependency into the source directory. When I add the dependency in the main section of the pom it works, but then the unpack mojo also extracts all the other dependencies. And when I try to specify the dependency for the assemply plugin only, I'm getting a build error. How can this be resolved? build sourceDirectorysrc/main/java/oss_om_spec_model-1.0-SNAPSHOT-sources/sourceDirectory plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration workDirectory${project.build.sourceDirectory}/../workDirectory dependencies dependency groupIdossj.jsr264/groupId artifactIdoss_om_spec_model/artifactId version1.0-SNAPSHOT/version typejar/type classifiersources/classifier scopecompile/scope /dependency /dependencies /configuration executions execution phasegenerate-sources/phase goals goalunpack/goal /goals /execution /executions /plugin /plugins /build --- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error configuring: org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot over ride read-only parameter: dependencies in goal: assembly:unpack Thanks, _ ___ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `-` Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-9412-3838 Heltorfer Straße 1, 40472 Düsseldorf, Germany -- This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1] AspectJ plugin and Clover
You are right, the test project does not compile. If I find the time, i will add a different one (it is also not following conventions very much). I tried your suggestion in my project (which is too big to add as a testcase), but it did not work. regards, Wim 2006/4/18, Lukas Theussl [EMAIL PROTECTED]: Wim, I am not a clover nor an aspectj expert, that's why I am probably confused by the test project attached to MPCLOVER-47. First, just running 'aspectj' fails the build, so I cannot reproduce already half the alleged bug. Second, the aspectj:compile is defined as a preGoal of java:compile, but this is never called before clover starts to work. Just putting aspectj:compile as a preGoal to, say, clover, I get the desired result, ie the clover report is generated when running 'site'. Maybe you can clarify that with a clearer test project, and comment on MPCLOVER-47? Thanks, -Lukas Wim Deblauwe wrote: Hi, is any work being done to get AspectJ plugin to work with Clover? I am testing with the latest version of the aspectj plugin and I also get bug MPCLOVER-47 (http://jira.codehaus.org/browse/MPCLOVER-47). This bug is a real blocker to add aspectj support to my module. I don't want to lose the Clover reports! regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 uberjar (assembly jar-with-dependency-jars)
Thanks Torsten, As soon as it's available in svn and if you're interested, let me know and I 'll test it with spring-richclient and supply you with some feed-back (and maybe even patches). Torsten Curdt wrote: ...on my disk :) give it a few more days and I will send a patch I 'd like to use some kind of uberjar: jar-with-dependency-jars, basically a jar with all the other jars inside. Is there any support for this planned in Maven 2? In assembly or with a separate plugin? As part of the dependency plugin cheers -- Torsten -- With kind regards, Geoffrey De Smet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jira Changes plugin
thanks for the info Mike . You are right the URL gives the project description in terms of an html page not an xml doc cheers, javed On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote: The JIRA changes report does not work with JIRA 3.x. Try downloading by hand the URL it prints out below. JIRA is returning an HTML error page instead of the expected XML content. -Original Message- From: javed mandary [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 4:50 AM To: Maven Users List Subject: Jira Changes plugin Hi , am getting a problem with the changes-maven-plugin , i keep getting a stack trace error each time i execute mvn site Here is the configuration in my POM -POM-- [...] issueManagement systemJira/system urlhttps://thisis.mycompany.com/issues/browse/MYPROJECT/url /issueManagement [...] reporting [...] plugin groupIdorg.codehaus.mojo/groupId artifactIdchanges-maven-plugin/artifactId /plugin [...] /reporting END POM This is the stack trace am getting: --ERROR TRACE-- [INFO] Downloading https://thisis.mycompany.com/issues/browse/secure/IssueNavigator. jspa?view=rsspid=sorter/field=createdsorter/order=DESCsorter/field=p riorityso rter/order=DESCtempMax=100reset=truedecorator=none [WARNING] Received: [407] org.xml.sax.SAXParseException: White spaces are required between publicId and syst emId. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXPa rseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError( ErrorHandlerWrapper.java:215) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM LErrorReporter.java:386) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XM LErrorReporter.java:316) at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XML Scanner.java:1438) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanExternalID (XMLSc anner.java:1024) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.scanDoct END ERROR TRACE-- Does anyone who why am getting this error message? thanks, Javed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Plugin repository issue
How did you initialize your plugin repository? If you copied the files from your local repository, you have to rename the metadata-files in the plugin-repository. Details are described here: http://www.nabble.com/Re%3A-Internal-%28intranet%29-repositories-p3876819.html Gunther Mark Misurak schrieb: Thanks for the reply. Unfortunately, I do not believe this is the problem. I cleaned out my local repository, then ran mvn clean on my project. The same error appeared: [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found The only pluginRepository listed in my pom was the development server. Nothing downloaded before the error appeared, so my central repository was definitely not overridden. Is there some additional configuration that I'm not aware of that plugin repositories require? For example, do I need to specify some sort of metadata in the repo somewhere? [EMAIL PROTECTED] 04/18/06 12:39 pm From Wayne Fay: I think the problem is that some of these Maven poms are defining new Repos which are added to the Repos list when they are added as dependencies. maven-help-plugin-2.0 has none defined but it specifies maven-plugin-parent-2.0 as a dependency which specifies repositories repository idsnapshots/id nameMaven Central Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idsnapshots/id nameMaven Central Plugins Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories See here: http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom And then it has a bunch of other dependencies, which all have their own poms and dependencies etc... So in all likelihood, somewhere in that chain, I'm guessing that you are getting several new Repos and PluginRepos added to your list. This is certainly a bug in those poms. We've seen this before and I believe it was agreed that it was not proper for hosted poms to add/change Repos on the user out of the blue. It would be great if there was an easy code solution to this problem, but I haven't looked into it, and at the time the fix was to simply repair that one specific pom. So if we can find all the poms like this on Central and open a bunch of MEV Jira bugs, Carlos will love us (not), but it should get rid of your problems, EJ. Wayne -Original Message- From: Mark Misurak [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:40 AM To: users@maven.apache.org Subject: Plugin repository issue Hello. I'm having an issue with setting up a plugin repository on a development server (I'm setting up this repository so that our organization's developers will use the development server's repository instead of Ibiblio). In my pom.xml for my project saved locally, I have the following: project ... repositories repository idcentral/id urlhttp://myorg.ca/maven2/url /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://myorg.ca/maven2/url /pluginRepository /pluginRepositories ... /project When I run mvn clean on the project, I see the following error: [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found When I set the plugin repository back to Ibiblio, clean works fine. Essentially, the dev server's repository works fine (ordinary jars download just fine), but the server's plugin repository does not. How do I set up my plugin repository correctly? This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or
Re: unpack only a single dependency
Hello Andreas, please try the dependency-maven-plugin from mojo. Here is an example from the http://svn.apache.org/repos/asf/myfaces/tobago/trunk/contrib/facelets/pom.xml plugin groupIdorg.codehaus.mojo/groupId artifactIddependency-maven-plugin/artifactId executions execution idunpack-sources/id phasegenerate-sources/phase goalsgoalunpack/goal/goals configuration artifactItems artifactItem groupIdorg.apache.myfaces.tobago/groupId artifactIdtobago-core/artifactId version${version}/version typejar/type classifiersources/classifier /artifactItem /artifactItems outputDirectory${project.build.directory}/tobago-core-sources/outputDirectory /configuration /execution /executions /plugin Regards Bernd [EMAIL PROTECTED] schrieb: Hi, I trying to use the assemply:unpack mojo to extract sources from a dependency into the source directory. When I add the dependency in the main section of the pom it works, but then the unpack mojo also extracts all the other dependencies. And when I try to specify the dependency for the assemply plugin only, I'm getting a build error. How can this be resolved? build sourceDirectorysrc/main/java/oss_om_spec_model-1.0-SNAPSHOT-sources/sourceDirectory plugins plugin artifactIdmaven-assembly-plugin/artifactId configuration workDirectory${project.build.sourceDirectory}/../workDirectory dependencies dependency groupIdossj.jsr264/groupId artifactIdoss_om_spec_model/artifactId version1.0-SNAPSHOT/version typejar/type classifiersources/classifier scopecompile/scope /dependency /dependencies /configuration executions execution phasegenerate-sources/phase goals goalunpack/goal /goals /execution /executions /plugin /plugins /build --- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error configuring: org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot over ride read-only parameter: dependencies in goal: assembly:unpack Thanks, _ ___ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `-` Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-9412-3838 Heltorfer Straße 1, 40472 Düsseldorf, Germany -- This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: unpack only a single dependency
Hi Bernd, -Original Message- From: ext Bernd Bohmann [mailto:[EMAIL PROTECTED] Hello Andreas, please try the dependency-maven-plugin from mojo. Works perfectly, thanks for the hint! _ ___ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `-` Andreas Ebbert-Karroum Software Design Engineer - Nokia Networks Services / Middleware phone: +49-211-94123928, fax: +49-211-9412-3838 Heltorfer Straße 1, 40472 Düsseldorf, Germany -- This message is confidential. If you have received this message in error, please delete it from your system. You should not copy it for any purpose, or disclose its contents to any other person. Internet communications are not secure and therefore Nokia GmbH does not accept legal responsibility for the contents of this message as it has been transmitted over a public network. Thank you. Nokia GmbH, Nokia Networks is a German Company. Further information about the Company is available from its principal offices at Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the website at http://www.nokia.com/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat plugin
This plugin wasn't publish by the maven team. You'll have a better help if you directly contact its team. An alternative is to use cargo http://cargo.codehaus.org Arnaud On 4/19/06, lsacco [EMAIL PROTECTED] wrote: I'm attempting to use your plug-in for deploying to Tomcat. It says it's successful but I don't see the application deployed in any way. Can you advise? My pertinent information: Tomcat 5.0.28 (note that I'm not trying to precompile JSP so this should be ok, no?) Maven 1.0.2 plugin version 1.2.1 Project.properties: maven.tomcat.manager.url=http://localhost:8080/manager maven.tomcat.username=admin maven.tomcat.password=admin maven.tomcat.jsp.precompile=false maven.xml: goal name=deploy description=Deploy everything to the tomcat server j:forEach items=${web_projects} var=web_project indexVar=projectNumber echodeploy/echo m:reactor basedir=${basedir}/.. includes=${web_project}/project.xml postProcessing=true ignoreFailures=true goals=tomcat:deploy / /j:forEach /goal Output: __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: deploy: [echo] deploy Starting the reactor... Our processing order: QCTPCNCustomerLogWeb + | Processing QCTPCNCustomerLogWeb | Memory: 3M/4M + build:start: war:init: tomcat:init: [echo] Found context file c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\ QCTPCNCustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/src/webapp/META -INF/context.xml [echo] found /QCTPCN in context file war:war-resources: [copy] Copying 1 file to C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\Q CTPCNCustomerLog\QCTPCNCustomerLogWeb\WebContent [copy] Copying 1 file to C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\Q CTPCNCustomerLog\QCTPCNCustomerLogWeb\WebContent\WEB-INF tomcat:_jspc: [echo] maven.tomcat.jsp.precompile = 'false' skipping pre-compile java:prepare-filesystem: java:compile: [echo] Compiling to c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\QCTPCN CustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/build [echo] == NOTE: Targetting JVM 1.4, classes will not run on earlier JVMs == java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: [echo] No test source files to compile. $ [echo] No tests to run. war:webapp: [echo] Assembling webapp QCTPCNCustomerLogWeb tomcat:jspc: war:war: [echo] Building WAR QCTPCNCustomerLogWeb [jar] Building jar: C:\PVCS\Agile9\ProductDataManagement\J2EEProjects\QCTPCN CustomerLog\QCTPCNCustomerLogWeb\dist\QCTPCN.war tomcat:_deploy: [echo] ctx '/QCTPCN' file:c:\PVCS\Agile9\ProductDataManagement\J2EEProjects\ QCTPCNCustomerLog\QCTPCNCustomerLogMaven\..\QCTPCNCustomerLogWeb/dist/QCTPCNCust omerLogWeb/QCTPCN.war BUILD SUCCESSFUL Total time: 8 seconds Finished at: Tue Apr 18 10:49:36 PDT 2006 -- View this message in context: http://www.nabble.com/Tomcat-plugin-t1386937.html#a3978438 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] MWAR-12 Changes to maven-war-plugin
The latest version of the source for this plugin has a webResources property which appears to allow you to specify resources to be copied into the webapp directory during packaging. However, there is no get/set method for this property? How does one use this? Thanks, Stephen -- View this message in context: http://www.nabble.com/-m2-MWAR-12-Changes-to-maven-war-plugin-t1473295.html#a3984339 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven for NON Java environments
Hi Guys, I am currently working for a Russian company in St Petersburg which do lot of projects with c# .net technology. How maven can be used with such kind of environments? I am convinced by Maven and I want do promotion for it here but I need some advise and experiences feedback (if any) about c#.net and maven integration. Thanks in advance. Gianfranco OLDANI Mob: +89602726351 _ Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! http://search.msn.ch/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependency Management, Prioritize Repositories - Internal, Central, etc.
Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. There was another thread about this topic a while back: http://mail-archives.apache.org/mod_mbox/maven-users/200604.mbox/%3cC0D4 [EMAIL PROTECTED] This message and any attachments are confidential, proprietary, and may be privileged. If this message was misdirected, Barclays Global Investors (BGI) does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BGI, unless the author is authorized by BGI to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BGI. Although BGI operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.
Re: Dependency Management, Prioritize Repositories - Internal, Central, etc.
On 4/19/06, Roye, Suhneel BGI SF [EMAIL PROTECTED] wrote: Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. There was another thread about this topic a while back: http://mail-archives.apache.org/mod_mbox/maven-users/200604.mbox/%3cC0D4 [EMAIL PROTECTED] I also don't like this behaviour (it slows down the build) but haven't found a solution. Another potential solution could be to have Maven only check for updates on repositories where it has previously found the artifact. Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running junit test with maven
I have defined two module A and B with a common parent module because B depend on A. I have imported the module as Eclipse project. The problem i have a TestCase class into the B module which extends a TestCase into the A module. When I run the test suite with the Eclipse console all is ok, but when I run the mvn test command into the B module, I have java.lang.NoClassDefFoundError with TestCase into A. How can I indicate to surefire plugin to include depend test classpath into it's classpath, to avoid to duplicate the TestCase into the A module?
RE: Dependency Management, Prioritize Repositories - Internal, Central, etc.
Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM: Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. This will not really help, for SNAPSHOTs Maven has to look in every repository. A solution would be a configuration section for repository definitions with includes and excludes to match groupIds e.g.: ... repository !-- merge with central definition, exclude stuff from own company or other commercial vendors -- idcentral/id configuration excludes excludecom.mycompany.*/exclude excludecom.commercial.vendor.*/exclude /excludes /configuration /repository repository !-- repo for stuff from commercial vendors -- idlocal-repo/id ... configuration includes includecom.commercial.vendor.*/include /includes /configuration /repository repository !-- repo for stuff from own company -- idproducts/id ... configuration includes includecom.mycompany.*/include /includes /configuration /repository ... - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven for NON Java environments
We have a start of work in sandbox for dotnet project and nunit tests : http://svn.apache.org/viewcvs.cgi/maven/sandbox/plugins/ Emmanuel Gianfranco Oldani a écrit : Hi Guys, I am currently working for a Russian company in St Petersburg which do lot of projects with c# .net technology. How maven can be used with such kind of environments? I am convinced by Maven and I want do promotion for it here but I need some advise and experiences feedback (if any) about c#.net and maven integration. Thanks in advance. Gianfranco OLDANI Mob: +89602726351 _ Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! http://search.msn.ch/ - 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] MWAR-12 Changes to maven-war-plugin
Ignore this now.. Figured it out.. As it was defined as Resource[] i assumed the config was resourcesresource../resource/resources when in fact it should be webResources/webResources -- View this message in context: http://www.nabble.com/-m2-MWAR-12-Changes-to-maven-war-plugin-t1473295.html#a3984919 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running junit test with maven
You need a third module that will contain your share test classes (under src/main/java) and you'll add it as a dependency of module a and b with test scope. Emmanuel Patrick GIRY a écrit : I have defined two module A and B with a common parent module because B depend on A. I have imported the module as Eclipse project. The problem i have a TestCase class into the B module which extends a TestCase into the A module. When I run the test suite with the Eclipse console all is ok, but when I run the mvn test command into the B module, I have java.lang.NoClassDefFoundError with TestCase into A. How can I indicate to surefire plugin to include depend test classpath into it's classpath, to avoid to duplicate the TestCase into the A module? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Merge static generated files in WAR?
Hi, I'd appreciate any suggestions as to the best way to do the above... I've got some generated files (web.xml, weblogic.xml, taglib.tld) that I generate to target/xdoclet/META-INF/, but I've also got some static files, in src/main/webapp/, so can't simply use the target folder as the warSourceDirectory value. I can pickup the web.xml via the maven-war-plugin's webXml config, but don't know how I could get the other generated files into the WAR. Options seem to be: 1) Get the war-plugin to also pull them in 2) Generate them into the exploded war 3) Generate them into src/main/webapp/ (I suspect all of the above will need some form of special filtering for web.xml...) Any suggestions? /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3984999 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge static generated files in WAR?
If you need to do merging of web.xml, you may want to look at cargo http://cargo.codehaus.org/Merging+WAR+Files On 19/04/06, Gwyn [EMAIL PROTECTED] wrote: Hi, I'd appreciate any suggestions as to the best way to do the above... I've got some generated files (web.xml, weblogic.xml, taglib.tld) that I generate to target/xdoclet/META-INF/, but I've also got some static files, in src/main/webapp/, so can't simply use the target folder as the warSourceDirectory value. I can pickup the web.xml via the maven-war-plugin's webXml config, but don't know how I could get the other generated files into the WAR. Options seem to be: 1) Get the war-plugin to also pull them in 2) Generate them into the exploded war 3) Generate them into src/main/webapp/ (I suspect all of the above will need some form of special filtering for web.xml...) Any suggestions? /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3984999 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Customized directory structure to produce artifacts / classes ?
Dear Maven Users! M2 build produces standard directory structure as a result of build process, is it possible to override the same and customize --- compile, package, JAR, WAR, JavaDocs etc to the folder structure as per the organization specific directory standard ? or is it customizable in POMs ? Thanks for your help! Regards, Jaikumar - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Merge static generated files in WAR?
Thanks, but I'm not sure that's quite what I need - There's no actual merging of WARs needed, just the creation of a single one. The web.xml special case would just be in case the war plugin would throw it's toys out of the pram if it found an existing web.xml when it came to copy one into the exploded WAR, as might happen with my workarounds (it would be the same file, though, so it would be OK if one copy was to overwrite the other). /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3985125 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency Management, Prioritize Repositories - Internal, Central, etc.
On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote: Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM: Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. This will not really help, for SNAPSHOTs Maven has to look in every repository. True, for SNAPSHOT files. If you're getting this problem with something other than SNAPSHOT files, then did you use -DgeneratePom=true when installing the files? I've been working on doing exactly this kind of thing today, and it's working fine. However if there is no pom file next to the jarfile in the local repository, then maven tries to fetch the *pom* (and only the pom) from the central repository, then gets the jar from the local one. Putting a pom in the local repository fixes that. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 How to add generated source to the compilation path from a new pl
See http://maven.apache.org/guides/mini/guide-generating-sources.html Namely : project.addCompileSourceRoot( outputDirectory ); at the end of the code sample. Gilles Scokart -- View this message in context: http://www.nabble.com/m2-How-to-add-generated-source-to-the-compilation-path-from-a-new-plugin-t1471998.html#a3985251 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Customized directory structure to produce artifacts / classes ?
On Wed, 2006-04-19 at 12:43 +0200, Sharma, Jaikumar wrote: Dear Maven Users! M2 build produces standard directory structure as a result of build process, is it possible to override the same and customize --- compile, package, JAR, WAR, JavaDocs etc to the folder structure as per the organization specific directory standard ? or is it customizable in POMs ? Yes, Maven2 can be configured via the POM to handle just about any directory structure. Of course that's more complicated than using the standard structures, but it's not too bad. See the documentation on the maven site for: sourceDirectory testSourceDirectory outputDirectory etc as well as config attributes for specific plugins. This page lists all the possible xml elements in a POM: http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html One thing you will find very hard to work against, though, is maven's desire to create one artifact (eg jar or war) per pom.xml file. Even that's possible to work around in some cases, but only with significant effort. There are very good reasons for maven's approach here of course. So in practice if you want to apply Maven to existing projects you are likely to need to make at least some changes in the project structure. If you're just starting with maven2 then there's a great maven2 book available via the mergere.com site: http://www.mergere.com/products.jsp Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running junit test with maven
You could also produce a test-jar from the tests from A and include them as test-scope dependency to B. See http://maven.apache.org/guides/mini/guide-attached-tests.html Tom On 4/19/06, Emmanuel Venisse [EMAIL PROTECTED] wrote: You need a third module that will contain your share test classes (under src/main/java) and you'll add it as a dependency of module a and b with test scope. Emmanuel Patrick GIRY a écrit : I have defined two module A and B with a common parent module because B depend on A. I have imported the module as Eclipse project. The problem i have a TestCase class into the B module which extends a TestCase into the A module. When I run the test suite with the Eclipse console all is ok, but when I run the mvn test command into the B module, I have java.lang.NoClassDefFoundError with TestCase into A. How can I indicate to surefire plugin to include depend test classpath into it's classpath, to avoid to duplicate the TestCase into the A module? - 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: Need to Package w/o executing Test
mvn -Dmaven.test.skip=true package -Stephen On 4/12/06, RobJac [EMAIL PROTECTED] wrote: I have a src/main and src/test folders in my project. All the Test classes will not pass if i execute them. But I still would want package my project even if my Test does not execute . When i run mvn package command, it tries to execute my test which fails and will not allow me to create a jar. Is there a way i can over ride this so that i can package atleast the files under my src/main folder? Thanks in advance. Robin -- View this message in context: http://www.nabble.com/Need-to-Package-w-o-executing-Test-t1438538.html#a3883045 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Customized directory structure to produce artifacts / classes ?
Yes, Simon, it is difficult though to go for a new structure for existing projects, from organizational point of view. Of course there are good reaons and best practices for maven to follow its standard folder structure. Thanks for your help! Regards, Jaikumar -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 4:27 PM To: Maven Users List Subject: Re: Customized directory structure to produce artifacts / classes ? On Wed, 2006-04-19 at 12:43 +0200, Sharma, Jaikumar wrote: Dear Maven Users! M2 build produces standard directory structure as a result of build process, is it possible to override the same and customize --- compile, package, JAR, WAR, JavaDocs etc to the folder structure as per the organization specific directory standard ? or is it customizable in POMs ? Yes, Maven2 can be configured via the POM to handle just about any directory structure. Of course that's more complicated than using the standard structures, but it's not too bad. See the documentation on the maven site for: sourceDirectory testSourceDirectory outputDirectory etc as well as config attributes for specific plugins. This page lists all the possible xml elements in a POM: http://maven.apache.org/ref/2.0.3-SNAPSHOT/maven-model/maven.html One thing you will find very hard to work against, though, is maven's desire to create one artifact (eg jar or war) per pom.xml file. Even that's possible to work around in some cases, but only with significant effort. There are very good reasons for maven's approach here of course. So in practice if you want to apply Maven to existing projects you are likely to need to make at least some changes in the project structure. If you're just starting with maven2 then there's a great maven2 book available via the mergere.com site: http://www.mergere.com/products.jsp Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - - - - - - - DISCLAIMER- - - - - - - - Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.
Re: Tomcat plugin
On 4/19/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: This plugin wasn't publish by the maven team. You'll have a better help if you directly contact its team. An alternative is to use cargo http://cargo.codehaus.org Arnaud Ok I tried getting the maven 1 plugin as follows : 1)Edited my build.properties file and added http://cargo.codehaus.org/maven in my maven.repo.remote property 2)executed maven plugin:download -DgroupId=cargo -DartifactId=cargo-maven-plugin -Dversion=0.9 and got the error message : [echo] trying to download http://cargo.codehaus.org/maven/cargo/plugins/cargo-maven-plugin-0.9.jar BUILD FAILED blah blah... Unable to find plug-in I know that my repo is incorrect.What is the correct name for the repo.I also tried http://cargo.codehaus.org/dist2-snapshot with version set to 0.8 and still failed to get the plugin. Jeff GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1] AspectJ plugin and Clover
I have updated MPCLOVER-47 with a new test case which should allow you to reproduce the problem easily. regards, Wim 2006/4/18, Lukas Theussl [EMAIL PROTECTED]: Wim, I am not a clover nor an aspectj expert, that's why I am probably confused by the test project attached to MPCLOVER-47. First, just running 'aspectj' fails the build, so I cannot reproduce already half the alleged bug. Second, the aspectj:compile is defined as a preGoal of java:compile, but this is never called before clover starts to work. Just putting aspectj:compile as a preGoal to, say, clover, I get the desired result, ie the clover report is generated when running 'site'. Maybe you can clarify that with a clearer test project, and comment on MPCLOVER-47? Thanks, -Lukas Wim Deblauwe wrote: Hi, is any work being done to get AspectJ plugin to work with Clover? I am testing with the latest version of the aspectj plugin and I also get bug MPCLOVER-47 (http://jira.codehaus.org/browse/MPCLOVER-47). This bug is a real blocker to add aspectj support to my module. I don't want to lose the Clover reports! regards, Wim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: m2 How to add generated source to the compilation path from a new pl
How to do the same in Ant MOJO? Is it currently possible? -Original Message- From: Gilles Scokart [mailto:[EMAIL PROTECTED] Sent: mercredi 19 avril 2006 12:54 To: users@maven.apache.org Subject: Re: m2 How to add generated source to the compilation path from a new pl See http://maven.apache.org/guides/mini/guide-generating-sources.html Namely : project.addCompileSourceRoot( outputDirectory ); at the end of the code sample. Gilles Scokart -- View this message in context: http://www.nabble.com/m2-How-to-add-generated-source-to-the-compilation- path-from-a-new-plugin-t1471998.html#a3985251 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 How to add generated source to the compilation path from a new pl
On 4/19/06, DELHOSTE Fabrice [EMAIL PROTECTED] wrote: How to do the same in Ant MOJO? Is it currently possible? http://maven.apache.org/plugins/maven-antrun-plugin/usage.html -Original Message- From: Gilles Scokart [mailto:[EMAIL PROTECTED] Sent: mercredi 19 avril 2006 12:54 To: users@maven.apache.org Subject: Re: m2 How to add generated source to the compilation path from a new pl See http://maven.apache.org/guides/mini/guide-generating-sources.html Namely : project.addCompileSourceRoot( outputDirectory ); at the end of the code sample. Gilles Scokart -- View this message in context: http://www.nabble.com/m2-How-to-add-generated-source-to-the-compilation- path-from-a-new-plugin-t1471998.html#a3985251 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to execute/call a specific class (main method) with maven2?
Short Question: Is it possible to execute/call a specific class (main method) with maven2? Something like mvn execute -Dclazz=com.mycompany.app.App? ;-) Regards Burkhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to execute/call a specific class (main method) with maven2?
Take a look at http://mojo.codehaus.org/exec-maven-plugin/ Tom On 4/19/06, Burkhard Graves [EMAIL PROTECTED] wrote: Short Question: Is it possible to execute/call a specific class (main method) with maven2? Something like mvn execute -Dclazz=com.mycompany.app.App? ;-) Regards Burkhard - 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: Maven for NON Java environments
Hi Gianfranco, The plugins that are available for dotnet are only for C# at the moment. If you'd like some advice on how to set up projects for dotnet use then I can give you the help you require. Thanks, Chris -Original Message- From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] Sent: 19 April 2006 11:27 To: Maven Users List Subject: Re: Maven for NON Java environments We have a start of work in sandbox for dotnet project and nunit tests : http://svn.apache.org/viewcvs.cgi/maven/sandbox/plugins/ Emmanuel Gianfranco Oldani a écrit : Hi Guys, I am currently working for a Russian company in St Petersburg which do lot of projects with c# .net technology. How maven can be used with such kind of environments? I am convinced by Maven and I want do promotion for it here but I need some advise and experiences feedback (if any) about c#.net and maven integration. Thanks in advance. Gianfranco OLDANI Mob: +89602726351 _ Faites de MSN Search votre page d'accueil: Toutes les réponses en un clic! http://search.msn.ch/ - 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] -- The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven2: Class-Path from dependencies for EJB packaging
Hi I am building a packagingejb/packaging project (with WTP project layout), which has scopeprovided/scope and scopecompile/scope dependencies. I was expecting the scopecompile/scope dependencies to be included in the ejb jar files manifest Class-Path - but that didn't happen. Acutally, there was no Class-Path attribute generated at all. Does m2 not support Class-Path attribute generation from the dependency list, or is a special configuration needed? Thanks a lot, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: m2 How to add generated source to the compilation path from a new pl
Thanks but I mean in a Ant MOJO, not in the use of the Antrun plugin. In other words, I'd like to build a plugin, relying on Ant, and add some sources generated by the plugin ant script. -Original Message- From: Tom Huybrechts [mailto:[EMAIL PROTECTED] Sent: mercredi 19 avril 2006 14:37 To: Maven Users List Subject: Re: m2 How to add generated source to the compilation path from a new pl On 4/19/06, DELHOSTE Fabrice [EMAIL PROTECTED] wrote: How to do the same in Ant MOJO? Is it currently possible? http://maven.apache.org/plugins/maven-antrun-plugin/usage.html -Original Message- From: Gilles Scokart [mailto:[EMAIL PROTECTED] Sent: mercredi 19 avril 2006 12:54 To: users@maven.apache.org Subject: Re: m2 How to add generated source to the compilation path from a new pl See http://maven.apache.org/guides/mini/guide-generating-sources.html Namely : project.addCompileSourceRoot( outputDirectory ); at the end of the code sample. Gilles Scokart -- View this message in context: http://www.nabble.com/m2-How-to-add-generated-source-to-the-compilatio n- path-from-a-new-plugin-t1471998.html#a3985251 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: How to request: Creating custom notifiers
We don't have documentation yet about this part, but it's easy to create a new notifier. You can look at other notifiers code as sample (http://svn.apache.org/viewcvs.cgi/maven/continuum/branches/continuum-1.0.x/continuum-notifiers/) You notifier must depend on notifier-api and implement AbstractContinuumNotifier. When your notifier will be implemented, you'll define a new component for it in application.xml so it will be available in continuum. Emmanuel Ryan C. Payne a écrit : I have just began using Continuum on a new project and it has proven to be a very cool tool in our arsenal. At this point I am in the initial stages of creating our own specialized notifier. I was wondering if there is any documentation on creating custom notifiers? I am wondering about how the notifier type gets mapped to the correct Java class, how you can specifiy notifier specific config values, etc. Thanks! Ryan -- View this message in context: http://www.nabble.com/How-to-request%3A-Creating-custom-notifiers-t1471476.html#a3979016 Sent from the Continuum - Users forum at Nabble.com.
AW: Maven2: Class-Path from dependencies for EJB packaging
Found the solution myself. Had to add plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin to the build section. Pitty though that this is not the default ... Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] CSharp Resource/localisation and Licence file handling in Ma ven. Recommendations please
Dear Maven Users/CSharp Bods, I've been approached by a number of people over the last few weeks about adding CSharp resource handling and licence file handling into the Maven CSharp plugins. Unfortunately because I'm a java bod who delves intgo CSharp rather than a MS bod who delves in Java I don't know what the best practice scenario is for resource handling in dotnet. So... I was wondering if anyone had any suggestions? What would you guys like to see as clients? Would you like to add resources using csc or build satellite assemblies and add these as build artifacts equivalent to java source? I'm happy to write the code but I need some pointers on how people would like maven to: a) wrap resgen.exe? b) compile resources into main or sattelite assemblies... c) handle localised resources... Any pointers will be much appreciated and will help the plugins work better for you, Thanks, Chris Chris Stevenson Dresdner Kleinwort Wasserstein The information contained herein is confidential and is intended solely for the addressee. Access by any other party is unauthorised without the express written permission of the sender. If you are not the intended recipient, please contact the sender either via the company switchboard on +44 (0)20 7623 8000, or via e-mail return. If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender.
Re: Maven and WSAD or RAD
Thanks for the responses. I did actually find a few things in the archives about this subject. However, it appears that no one has a great solution. WSAD and RAD really aren't that different, for the most part. So whatever works in one will probably work in the other. Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. It's not a real big issue, though. I'll agree that the eclipse:eclipse command works great for Java projects. Once you have the M2_REPO variable defined the classpaths get set properly. But, it doesn't seem to do much good for Web projects. If you use the eclipse:eclipse command, it always sets up a java project and will not create the .project file properly for a Web project or Ear project. It also doesn't deal with the runtime path issues that I discussed above. What I'm planning to do is to create an ArcheType that will create all the necessary .classpath, .websettings, and .project files for each of the types to work properly. I'll also be added something to the POM for WAR and EAR projects that will copy the Maven dependencies to he lib and EAR folders as needed, so the runtime class path of the local environment will have what it needs. This seems to be the best solution. Thanks again. On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think you've got a couple options here. You could define a new JRE System library in your workspace and switch to that for the project or you could manually install the necessary JARs using mvn install:install-file (see the maven site for docs) and then define these dependencies on your POM.xml. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Gautham Pamu [EMAIL PROTECTED] 04/18/2006 11:17 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Hi Justin, When you create the web project in rad, it add following variables to .classpath but mvn eclipse does not seem to add these variables.. is it possible to configure the eclipse plugin to add these variables.. classpathentry kind=con path=com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/ Thanks Gautham Pamu On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've found that the eclipse:eclipse task works very nicely at setting up your workspace as WSAD is built upon Eclipse. I would imagine RAD is no different but I have no exposure to RAD. The only other things you'll need to do are: Add a Java - classpath variable in your settings to M2_REPO pointing to your local repository Change the settings in Java - Compiler to allow using multiple output locations for source folders HTH... also Mike, in all fairness, the nabble archives and whatnot are not all that easy to find or use (and not spidered all that well in google). If you have nothing good to say, don't say anything at all. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Serge Emmanuel Pagop [EMAIL PROTECTED] 04/18/2006 06:53 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Which local env. do u like to get at (runtime, compile, ...) ? On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote: Please check the archives. This has been discussed ad infinitum. -Original Message- From: Aaron Freeman [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 10:54 PM To: Maven Subject: Maven and WSAD or RAD Is anyone using Maven with either WebSphere Studio Applicaiton Developer or Rational Application Developer? If so, how do you get the local environments to work properly? There are some things that the local environment needs to run, that are different than the way you would do it for a Maven project. For instance, if you have a web project, you have to put all the JAR files in the src/main/webapp/web-inf/lib folder in order for them to be included in the runtime path for the local environment. But as far as Maven goes, you shouldn't be putting these files in that fold because it does that for you when it generates the target. There is a similar
[m2] Xdoclet fails
Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2 How to add generated source to the compilation path from a new plugin
project.addCompileSourceRoot(foo); that will tell the project where to pickup these new sources and when it comes to compile phase will throw them in the bucket jesse On 4/18/06, dan tran [EMAIL PROTECTED] wrote: see build-helper-maven-plugin source. -D On 4/18/06, Gautham Pamu [EMAIL PROTECTED] wrote: Hi Everyone, I am new to maven plugin development. I developed a plugin which generates source code, how do i add the output directory of the generated code to the compilation path. Is there some annotation I need to set in the MOJO ? axistools-maven-plugin does generate code and adds to the compilation path but I dont know how they do it. Thanks -Gautham Pamu -- jesse mcconnell
Re: [m2] Xdoclet fails
On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Xdoclet fails
Kenney, I added the mkdir, but still don't get any output (no file generated) For info, here is the log: [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running remoteinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running homeinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localhomeinterface/ INFO:Some classes refer to other classes that were not found among the sourc es or on the classpath. (Perhaps the referred class doesn't exist? Hasn't been generated yet?) The referring classes do not import any fully qualified classes matchin g these classes. However, since no packages are imported, xjavadoc has assumed that the referred classes belong to the same package as the referring class. The classes are: F:\common\projects\m2\logic\ejb\src\main\java\be\banksys\tams\logic\TestServiceB ean.java -- TestService qualified to be.banksys.tams.logic.TestService [INFO] Executed tasks On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - 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: Tomcat plugin
Hi Jeff, -Original Message- From: Jeff Mutonho [mailto:[EMAIL PROTECTED] Sent: mercredi 19 avril 2006 13:27 To: Maven Users List Subject: Re: Tomcat plugin On 4/19/06, Arnaud HERITIER [EMAIL PROTECTED] wrote: This plugin wasn't publish by the maven team. You'll have a better help if you directly contact its team. An alternative is to use cargo http://cargo.codehaus.org Arnaud Ok I tried getting the maven 1 plugin as follows : 1)Edited my build.properties file and added http://cargo.codehaus.org/maven in my maven.repo.remote property This is not the correct location. Actually cargo artifacts are available on ibiblio so you don't even need to add a new remote repo. 2)executed maven plugin:download -DgroupId=cargo -DartifactId=cargo-maven-plugin -Dversion=0.9 The latest released version is 0.8. 0.9 is still in development but you can get it from our CI build: http://ci.codehaus.org/beetlejuice/viewBuildArtifacts.action?buildNumber=411 projectName=Cargo and got the error message : [echo] trying to download http://cargo.codehaus.org/maven/cargo/plugins/cargo-maven-plugin-0.9.jar BUILD FAILED blah blah... Unable to find plug-in I know that my repo is incorrect.What is the correct name for the repo.I also tried http://cargo.codehaus.org/dist2-snapshot with version set to 0.8 and still failed to get the plugin. The http://cargo.codehaus.org/dist2-snapshot repo is a m2 snapshot repo so you'll find only snapshots there. The release repo is on http://cargo.codehaus.org/dist2 and you should be able to get version 0.8 there. As I mentionned you should normally not need to define any remote repo as cargo artifacts are available on ibiblio. However I've noticed that the cargo 0.8 plugin wasn't there... :-( I'm working on adding it. For now you can grab it here http://cargo.codehaus.org/dist2/org/codehaus/cargo/cargo-maven-plugin/0.8/ca rgo-maven-plugin-0.8.jar and install it manually by dropping it in your MAVEN_HOME/plugins directory. Sorry for the trouble. Thanks -Vincent ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger. Appelez le monde entier à partir de 0,012 /minute ! Téléchargez sur http://fr.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Plugin repository issue
Thanks for you help - the problem is fixed. [EMAIL PROTECTED] 04/18/06 12:39 pm From Wayne Fay: I think the problem is that some of these Maven poms are defining new Repos which are added to the Repos list when they are added as dependencies. maven-help-plugin-2.0 has none defined but it specifies maven-plugin-parent-2.0 as a dependency which specifies repositories repository idsnapshots/id nameMaven Central Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /repository /repositories pluginRepositories pluginRepository idsnapshots/id nameMaven Central Plugins Development Repository/name urlhttp://snapshots.maven.codehaus.org/maven2/url releases enabledfalse/enabled /releases /pluginRepository /pluginRepositories See here: http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom And then it has a bunch of other dependencies, which all have their own poms and dependencies etc... So in all likelihood, somewhere in that chain, I'm guessing that you are getting several new Repos and PluginRepos added to your list. This is certainly a bug in those poms. We've seen this before and I believe it was agreed that it was not proper for hosted poms to add/change Repos on the user out of the blue. It would be great if there was an easy code solution to this problem, but I haven't looked into it, and at the time the fix was to simply repair that one specific pom. So if we can find all the poms like this on Central and open a bunch of MEV Jira bugs, Carlos will love us (not), but it should get rid of your problems, EJ. Wayne -Original Message- From: Mark Misurak [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 11:40 AM To: users@maven.apache.org Subject: Plugin repository issue Hello. I'm having an issue with setting up a plugin repository on a development server (I'm setting up this repository so that our organization's developers will use the development server's repository instead of Ibiblio). In my pom.xml for my project saved locally, I have the following: project ... repositories repository idcentral/id urlhttp://myorg.ca/maven2/url /repository /repositories pluginRepositories pluginRepository idcentral/id urlhttp://myorg.ca/maven2/url /pluginRepository /pluginRepositories ... /project When I run mvn clean on the project, I see the following error: [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid version could be found When I set the plugin repository back to Ibiblio, clean works fine. Essentially, the dev server's repository works fine (ordinary jars download just fine), but the server's plugin repository does not. How do I set up my plugin repository correctly? This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
Re: Maven2: Class-Path from dependencies for EJB packaging
Yea they could (should?) make this the default for Jar (inc EJB), War, and Ear imho. And then require the user to turn it OFF if they don't want it. We get a good number of emails like this on the User list... Wayne On 4/19/06, Gunzenreiner Simon [EMAIL PROTECTED] wrote: Found the solution myself. Had to add plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin to the build section. Pitty though that this is not the default ... Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Merge static generated files in WAR?
There's another email thread talking about recent changes to WAR, specifically MWAR-12, perhaps the new webResources tag helps you? See this thread: [m2] MWAR-12 Changes to maven-war-plugin Wayne On 4/19/06, Gwyn [EMAIL PROTECTED] wrote: Thanks, but I'm not sure that's quite what I need - There's no actual merging of WARs needed, just the creation of a single one. The web.xml special case would just be in case the war plugin would throw it's toys out of the pram if it found an existing web.xml when it came to copy one into the exploded WAR, as might happen with my workarounds (it would be the same file, though, so it would be OK if one copy was to overwrite the other). /Gwyn -- View this message in context: http://www.nabble.com/Merge-static-generated-files-in-WAR--t1473530.html#a3985125 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency Management, Prioritize Repositories - Internal, Central, etc.
Shoot... I've got a bunch of poms to go generate, or jars to reinstall. ;-) Wayne On 4/19/06, Simon Kitching [EMAIL PROTECTED] wrote: On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote: Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM: Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. This will not really help, for SNAPSHOTs Maven has to look in every repository. True, for SNAPSHOT files. If you're getting this problem with something other than SNAPSHOT files, then did you use -DgeneratePom=true when installing the files? I've been working on doing exactly this kind of thing today, and it's working fine. However if there is no pom file next to the jarfile in the local repository, then maven tries to fetch the *pom* (and only the pom) from the central repository, then gets the jar from the local one. Putting a pom in the local repository fixes that. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Xdoclet fails
On Wed, 19 Apr 2006, J-F Daune wrote: Kenney, I added the mkdir, but still don't get any output (no file generated) Ok. You're telling xdoclet to generate local/remote/home/localhome interfaces. Did you specify @ejb.home etc. too in the *Bean.java sources? -- Kenney For info, here is the log: [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running remoteinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running homeinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localhomeinterface/ INFO:Some classes refer to other classes that were not found among the sourc es or on the classpath. (Perhaps the referred class doesn't exist? Hasn't been generated yet?) The referring classes do not import any fully qualified classes matchin g these classes. However, since no packages are imported, xjavadoc has assumed that the referred classes belong to the same package as the referring class. The classes are: F:\common\projects\m2\logic\ejb\src\main\java\be\banksys\tams\logic\TestServiceB ean.java -- TestService qualified to be.banksys.tams.logic.TestService [INFO] Executed tasks On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - 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] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
M2: Assembling modules in an ear
I am trying to create an ear by assembling multiple other projects in Maven 2.0.4. My ear config files are located in a separate project with packagingear/packaging. All dependent projects are listed as dependency with scope scopecompile/scope. In addition, I added the modules configuration as described here: http://maven.apache.org/plugins/maven-ear-plugin/howto.html. I am facing two problems now: - I get an Error message if I add my EJB project to the modules list: Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project. although I added this project to the dependency list as well as to the module list. - Java (client) modules are not added to the generated application.xml Any hints really appreciated. Thanks Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fetch project using Maven
I am using maven 2.0. All my projects have been baselined in Merant(Configuration Management Tool). Is there any way i can make maven get project from this location to another location in my PC and then build it? Could some one provide me a link from which i can get some documentation on this or some commands for doing this? Thanks in advance Robin -- View this message in context: http://www.nabble.com/Fetch-project-using-Maven-t1475096.html#a3990142 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Retrotranslation and the everpresent 1 artifact
I'm wondering if anyone has ever encountered this or what the suggested best practice is from the maven team. We have a project, JBoss Webservices. This project has one source tree and is set up as a single project.We build a jar using jdk1.5. Next we retrotranslate that jar to run on a 1.4 version jvm which produces a second artifact webservices1.4 version.Of course, this defies the one artifact rule for the project structure. What would be the best practice for something like this?? I'm not sure how I could do two projects as there is only one source tree.. Ruel Loehr JBoss QA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2]
Hi For the site report generation I am using the jira integration. I can see that it is downloading the rss document from jira without any complaint (I have also checked that it returns ok by pasting the url in my browser), but the generated report is empty ie - just the header for the table but no content. Is there any setting that I need add here? Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR 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 virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] XDoclet does not work
Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2: Class-Path from dependencies for EJB packaging
If it doesn't hurt anything, I +1 that. At least for ejbs. On 4/19/06, Wayne Fay [EMAIL PROTECTED] wrote: Yea they could (should?) make this the default for Jar (inc EJB), War, and Ear imho. And then require the user to turn it OFF if they don't want it. We get a good number of emails like this on the User list... Wayne On 4/19/06, Gunzenreiner Simon [EMAIL PROTECTED] wrote: Found the solution myself. Had to add plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration archive manifest addClasspathtrue/addClasspath /manifest /archive /configuration /plugin to the build section. Pitty though that this is not the default ... Thanks, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fetch project using Maven
it would have been grate to be able to use it through the scm plugin, unfortunalty Meran CMTool , AKA PVCS, AKA Serena dimension is not supported yet ... -- View this message in context: http://www.nabble.com/Fetch-project-using-Maven-t1475096.html#a3990195 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2: Assembling modules in an ear
On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: - Drop the scopecompile/scope - it's the default anyway, and not needed for compilation of the ear - the modules section is only needed for modules that need special configuration, like a war module usually gets a contextRoot - do you provide your own application.xml somewhere or do you use the GenerateApplicationXmlMojo? - Did you specify the configuration at the global level or in executions? If you could paste your plugin configuration in the mail, that would be helpful. -- Kenney I am trying to create an ear by assembling multiple other projects in Maven 2.0.4. My ear config files are located in a separate project with packagingear/packaging. All dependent projects are listed as dependency with scope scopecompile/scope. In addition, I added the modules configuration as described here: http://maven.apache.org/plugins/maven-ear-plugin/howto.html. I am facing two problems now: - I get an Error message if I add my EJB project to the modules list: Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project. although I added this project to the dependency list as well as to the module list. - Java (client) modules are not added to the generated application.xml Any hints really appreciated. Thanks Simon - 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] Xdoclet fails
Ok. You're telling xdoclet to generate local/remote/home/localhome interfaces. Did you specify @ejb.home etc. too in the *Bean.java sources? -- Kenney Kenney, thank you for your time. Here is the class: package be.banksys.tams.logic; import javax.ejb.CreateException; import org.springframework.ejb.support.AbstractStatelessSessionBean; /** * @ejb.bean * name=TestService * description=Test service * local-jndi-name=ejb/local/tams/TestService * jndi-name=ejb/tams/TestService * type=Stateless * view-type=both * @ejb.interface * extends=javax.ejb.EJBObject * local-extends=javax.ejb.EJBLocalObject, be.banksys.tams.logic.TestService * @ejb.home * extends=javax.ejb.EJBHome * local-extends=javax.ejb.EJBLocalHome */ public class TestServiceBean extends AbstractStatelessSessionBean implements TestService { private TestService delegate; /** * @ejb.interface-method * view-type=both */ public String echo(String s) { return delegate.echo(s); } protected void onEjbCreate() throws CreateException { delegate = (TestService ) getBeanFactory().getBean(testService); } } For info, here is the log: [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running remoteinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running homeinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localhomeinterface/ INFO:Some classes refer to other classes that were not found among the sourc es or on the classpath. (Perhaps the referred class doesn't exist? Hasn't been generated yet?) The referring classes do not import any fully qualified classes matchin g these classes. However, since no packages are imported, xjavadoc has assumed that the referred classes belong to the same package as the referring class. The classes are: F:\common\projects\m2\logic\ejb\src\main\java\be\banksys\tams\logic\TestServiceB ean.java -- TestService qualified to be.banksys.tams.logic.TestService [INFO] Executed tasks On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fetch project using Maven
We want to add them in Maven-SCM but we need contributions. We don't have access to these tools. Emmanuel G. B. a écrit : it would have been grate to be able to use it through the scm plugin, unfortunalty Meran CMTool , AKA PVCS, AKA Serena dimension is not supported yet ... -- View this message in context: http://www.nabble.com/Fetch-project-using-Maven-t1475096.html#a3990195 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Restricting A Plugin Transitive Dependency?
Hi, I have a problem where I am using the XDoclet2 plugin to generate Hibernate mappings for my DAOs, which works fine for all but one mapping. An (invalid) stray element is being written to the mapping file because of two (optional) attributes are missing from the Hibernate/Xdoclet tag in the classfile. I've tracked the problem down to be a problem with Jexl (used to parse/execute Xdoclet's Jelly script when generating the mappings), where it seems it's empty() function doesn't work in version 1.0-beta-2, but does in 1.0. The problem is that maven2-xdoclet2-plugin is pulled in from the Codehaus repository as a snapshot version, which in turn pulls in a snapshot version of XDoclet2, which itself uses the broken (1.0-beta-2) version of Jexl. Is there a simple way to restrict the version of the Jexl dependency? The only way I can think at the moment, is to have custom versions of the dependencies on our own internal repository and hack the pom's to force the use of specific versions all along the dependency chain? Thanks for your help! Brian Wainwright Developer Burns E-Commerce Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK http://www.burnsecs.com mailto:[EMAIL PROTECTED]
Re: [m2] Xdoclet fails
On Wed, 19 Apr 2006, J-F Daune wrote: Ah, ok. I think I remember someone on this list saying that XDoclet doesn't work well if you don't directly implement javax.ejb.SessionBean. Try adding an 'implements' to the class and see if that works. -- Kenney Ok. You're telling xdoclet to generate local/remote/home/localhome interfaces. Did you specify @ejb.home etc. too in the *Bean.java sources? -- Kenney Kenney, thank you for your time. Here is the class: package be.banksys.tams.logic; import javax.ejb.CreateException; import org.springframework.ejb.support.AbstractStatelessSessionBean; /** * @ejb.bean * name=TestService * description=Test service * local-jndi-name=ejb/local/tams/TestService * jndi-name=ejb/tams/TestService * type=Stateless * view-type=both * @ejb.interface * extends=javax.ejb.EJBObject * local-extends=javax.ejb.EJBLocalObject, be.banksys.tams.logic.TestService * @ejb.home * extends=javax.ejb.EJBHome * local-extends=javax.ejb.EJBLocalHome */ public class TestServiceBean extends AbstractStatelessSessionBean implements TestService { private TestService delegate; /** * @ejb.interface-method * view-type=both */ public String echo(String s) { return delegate.echo(s); } protected void onEjbCreate() throws CreateException { delegate = (TestService ) getBeanFactory().getBean(testService); } } For info, here is the log: [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running remoteinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running homeinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localhomeinterface/ INFO:Some classes refer to other classes that were not found among the sourc es or on the classpath. (Perhaps the referred class doesn't exist? Hasn't been generated yet?) The referring classes do not import any fully qualified classes matchin g these classes. However, since no packages are imported, xjavadoc has assumed that the referred classes belong to the same package as the referring class. The classes are: F:\common\projects\m2\logic\ejb\src\main\java\be\banksys\tams\logic\TestServiceB ean.java -- TestService qualified to be.banksys.tams.logic.TestService [INFO] Executed tasks On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions /plugin /plugins /build I have a TestServiceBean.java declaring ejb.bean and one ejb.interface-method. Unfortunately, when invoking mvn package, no code is generated. Any help is welcome, as for me, everything has been configured correctly. Cheers, J-F - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: M2: Assembling modules in an ear
Hi Kenny Thanks a lot. I removed the modules config, and set generateApplicationXml to true. Please find my pom.xml attached. Now the ear is created with the dependent libraries, but the generated application.xml is simply ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-namesample/display-name /application I expected it to list my ejb module. Thanks, Simon -Ursprüngliche Nachricht- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. April 2006 17:41 An: Maven Users List Betreff: Re: M2: Assembling modules in an ear On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: - Drop the scopecompile/scope - it's the default anyway, and not needed for compilation of the ear - the modules section is only needed for modules that need special configuration, like a war module usually gets a contextRoot - do you provide your own application.xml somewhere or do you use the GenerateApplicationXmlMojo? - Did you specify the configuration at the global level or in executions? If you could paste your plugin configuration in the mail, that would be helpful. -- Kenney I am trying to create an ear by assembling multiple other projects in Maven 2.0.4. My ear config files are located in a separate project with packagingear/packaging. All dependent projects are listed as dependency with scope scopecompile/scope. In addition, I added the modules configuration as described here: http://maven.apache.org/plugins/maven-ear-plugin/howto.html. I am facing two problems now: - I get an Error message if I add my EJB project to the modules list: Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project. although I added this project to the dependency list as well as to the module list. - Java (client) modules are not added to the generated application.xml Any hints really appreciated. Thanks Simon - 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] project modelVersion4.0.0/modelVersion groupIdwinterthur.jackpot.sample/groupId artifactIdsample/artifactId packagingear/packaging version1.0-SNAPSHOT/version dependencies dependency groupIdwinterthur.jackpot/groupId artifactIdjp-base/artifactId version5.0.1/version /dependency dependency groupIdwinterthur.jackpot.sample/groupId artifactIdsample-ejb-client-view/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdwinterthur.jackpot.sample/groupId artifactIdsample-ejb/artifactId version1.0-SNAPSHOT/version /dependency dependency groupIdwinterthur.jackpot.sample/groupId artifactIdsample-ejb-client/artifactId version1.0-SNAPSHOT/version /dependency /dependencies build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ear-plugin/artifactId configuration earSourceDirectoryEarContent/earSourceDirectory generateApplicationXml true /generateApplicationXml /configuration /plugin /plugins /build /project- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Xdoclet fails
Kenney Westerhof a écrit : On Wed, 19 Apr 2006, J-F Daune wrote: Ah, ok. I think I remember someone on this list saying that XDoclet doesn't work well if you don't directly implement javax.ejb.SessionBean. Try adding an 'implements' to the class and see if that works. -- Kenney That 'works', in the sense that XDoclet now tries to generate something. But I unfortunately got other exceptions. What strikes me, is that the example is taken from a project using M1, to evaluate impact of switching to M2. With M1, it works without the 'implements', and I am reluctant changing my source code for M2. Could it be a classpath issue? J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: M2: Assembling modules in an ear
That has helped a lot - was not aware of the type in dependency. Regarding not having to include typeejb-client/type: I think generateClient is false for the ejb goal. Anyway, I have my client interfaces in a separate project (and I think as long as deployed in the same ear and referenced through Class-Path this is still ok with the spec ..). So I tried with to add my client module with either 1) typeejb-client/type in the dependency, and get Missing: -- 1) winterthur.jackpot.sample:sample-ejb-client:ejb-client:client:1.0-SNAPSHOT 2) typejar/type in the dependency and modules javaModule groupIdwinterthur.jackpot.sample/groupId artifactIdsample-ejb-client/artifactId /javaModule /modules where the java client module is not added to the generated application.xml Any ideas? Thanks a lot again. Simon -Ursprüngliche Nachricht- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. April 2006 18:18 An: Maven Users List Betreff: Re: AW: M2: Assembling modules in an ear On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: Hi Kenny Thanks a lot. I removed the modules config, and set generateApplicationXml to true. Please find my pom.xml attached. Now the ear is created with the dependent libraries, but the generated application.xml is simply ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-namesample/display-name /application I expected it to list my ejb module. Ok. Normal 'jar' dependencies are NOT added to the EAR by default; for those you need to specify a modulesjavaModule (and add them as a dependency). Next, you don't seem to add any J2EE jars at all - the dependencies don't specify a type tag. If you want to include a .war you have to specify typewar/type for the dependency. If you want to include an ejb archive you need to specify typeejb/type. You should NOT include any ejb-client (typeejb-client/type) dependencies: if you have a project with packagingejb/packaging, the contents of the ejb-client version are already present in the main ejb artifact. That is a J2EE requirement: the bean implementations and the local/home/remote interfaces should all be in one jar. That said, I don't think you'll need to include any jars at all. Hope this helps a bit! -- Kenney Thanks, Simon -Ursprngliche Nachricht- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. April 2006 17:41 An: Maven Users List Betreff: Re: M2: Assembling modules in an ear On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: - Drop the scopecompile/scope - it's the default anyway, and not needed for compilation of the ear - the modules section is only needed for modules that need special configuration, like a war module usually gets a contextRoot - do you provide your own application.xml somewhere or do you use the GenerateApplicationXmlMojo? - Did you specify the configuration at the global level or in executions? If you could paste your plugin configuration in the mail, that would be helpful. -- Kenney I am trying to create an ear by assembling multiple other projects in Maven 2.0.4. My ear config files are located in a separate project with packagingear/packaging. All dependent projects are listed as dependency with scope scopecompile/scope. In addition, I added the modules configuration as described here: http://maven.apache.org/plugins/maven-ear-plugin/howto.html. I am facing two problems now: - I get an Error message if I add my EJB project to the modules list: Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project. although I added this project to the dependency list as well as to the module list. - Java (client) modules are not added to the generated application.xml Any hints really appreciated. Thanks Simon - 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] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Xdoclet fails
On Wed, 19 Apr 2006, J-F Daune wrote: That 'works', in the sense that XDoclet now tries to generate something. But I unfortunately got other exceptions. What strikes me, is that the example is taken from a project using M1, to evaluate impact of switching to M2. With M1, it works without the 'implements', and I am reluctant changing my source code for M2. Could it be a classpath issue? I've looked at the code for xjavadoc, and any dependencies are not used. Each source class is represented by an XClass instance, which knows about implementing interfaces and such. The dependency is represented by an UnknownClass, and does not contain any information. A big shortcoming of XDoclet, since this information can easily be extracted using reflection. Nothing I can do, I'm sorry. I really don't know why/how that worked in Maven 1 - maybe it used an old version of XDoclet that worked differently. Maybe the XDoclet2 plugin is something to look at? -- Kenney J-F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M203] Writing tests for Plugins (Java Mojos)
Hi, is there any documentation around about writing tests for maven plugins? I saw that some plugins subclass org.codehaus.plexus.PlexusTestCase for theire tests but a simple example of a typical maven plugin test would be helpful. michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: M2: Assembling modules in an ear
On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: That has helped a lot - was not aware of the type in dependency. Regarding not having to include typeejb-client/type: I think generateClient is false for the ejb goal. Anyway, I have my client interfaces in a separate project (and I think as long as deployed in the same ear and referenced through Class-Path this is still ok with the spec ..). No it is not. The spec says that ejb modules must have impl + api in the same jar. But you can try, maybe your container doesn't honor the spec :) So I tried with to add my client module with either 1) typeejb-client/type in the dependency, and get Missing: -- 1) winterthur.jackpot.sample:sample-ejb-client:ejb-client:client:1.0-SNAPSHOT That can be right - you don't have an artifact with that type. You need generateClient=true in an ejb-packaging project for that. I first started out by separating the client classes from the bean classes, but soon had to merge them. I think you will have to do that too after you find out that your beans don't work.. 2) typejar/type in the dependency and modules javaModule groupIdwinterthur.jackpot.sample/groupId artifactIdsample-ejb-client/artifactId Add includeInApplicationXmltrue/includeInApplicationXml /javaModule /modules where the java client module is not added to the generated application.xml You see, this is false by default, another indication that this is not the normal way to do things.. ;) Any ideas? Thanks a lot again. No problem! -- Kenney Simon -Ursprüngliche Nachricht- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. April 2006 18:18 An: Maven Users List Betreff: Re: AW: M2: Assembling modules in an ear On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: Hi Kenny Thanks a lot. I removed the modules config, and set generateApplicationXml to true. Please find my pom.xml attached. Now the ear is created with the dependent libraries, but the generated application.xml is simply ?xml version=1.0 encoding=UTF-8? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN http://java.sun.com/dtd/application_1_3.dtd; application display-namesample/display-name /application I expected it to list my ejb module. Ok. Normal 'jar' dependencies are NOT added to the EAR by default; for those you need to specify a modulesjavaModule (and add them as a dependency). Next, you don't seem to add any J2EE jars at all - the dependencies don't specify a type tag. If you want to include a .war you have to specify typewar/type for the dependency. If you want to include an ejb archive you need to specify typeejb/type. You should NOT include any ejb-client (typeejb-client/type) dependencies: if you have a project with packagingejb/packaging, the contents of the ejb-client version are already present in the main ejb artifact. That is a J2EE requirement: the bean implementations and the local/home/remote interfaces should all be in one jar. That said, I don't think you'll need to include any jars at all. Hope this helps a bit! -- Kenney Thanks, Simon -Ursprngliche Nachricht- Von: Kenney Westerhof [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. April 2006 17:41 An: Maven Users List Betreff: Re: M2: Assembling modules in an ear On Wed, 19 Apr 2006, Gunzenreiner Simon wrote: - Drop the scopecompile/scope - it's the default anyway, and not needed for compilation of the ear - the modules section is only needed for modules that need special configuration, like a war module usually gets a contextRoot - do you provide your own application.xml somewhere or do you use the GenerateApplicationXmlMojo? - Did you specify the configuration at the global level or in executions? If you could paste your plugin configuration in the mail, that would be helpful. -- Kenney I am trying to create an ear by assembling multiple other projects in Maven 2.0.4. My ear config files are located in a separate project with packagingear/packaging. All dependent projects are listed as dependency with scope scopecompile/scope. In addition, I added the modules configuration as described here: http://maven.apache.org/plugins/maven-ear-plugin/howto.html. I am facing two problems now: - I get an Error message if I add my EJB project to the modules list: Artifact[myGroupId:sample-ejb:ejb] is not a dependency of the project. although I added this project to the dependency list as well as to the module list. - Java (client) modules are not added to the generated application.xml Any hints really appreciated. Thanks Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: Maven and WSAD or RAD
Sounds like a good plan. If possible, perhaps you can even contribute those Archetypes back to the Maven project, so others can benefit from your work? Wayne On 4/19/06, Aaron Freeman [EMAIL PROTECTED] wrote: Thanks for the responses. I did actually find a few things in the archives about this subject. However, it appears that no one has a great solution. WSAD and RAD really aren't that different, for the most part. So whatever works in one will probably work in the other. Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. It's not a real big issue, though. I'll agree that the eclipse:eclipse command works great for Java projects. Once you have the M2_REPO variable defined the classpaths get set properly. But, it doesn't seem to do much good for Web projects. If you use the eclipse:eclipse command, it always sets up a java project and will not create the .project file properly for a Web project or Ear project. It also doesn't deal with the runtime path issues that I discussed above. What I'm planning to do is to create an ArcheType that will create all the necessary .classpath, .websettings, and .project files for each of the types to work properly. I'll also be added something to the POM for WAR and EAR projects that will copy the Maven dependencies to he lib and EAR folders as needed, so the runtime class path of the local environment will have what it needs. This seems to be the best solution. Thanks again. On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think you've got a couple options here. You could define a new JRE System library in your workspace and switch to that for the project or you could manually install the necessary JARs using mvn install:install-file (see the maven site for docs) and then define these dependencies on your POM.xml. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Gautham Pamu [EMAIL PROTECTED] 04/18/2006 11:17 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Hi Justin, When you create the web project in rad, it add following variables to .classpath but mvn eclipse does not seem to add these variables.. is it possible to configure the eclipse plugin to add these variables.. classpathentry kind=con path=com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/ Thanks Gautham Pamu On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've found that the eclipse:eclipse task works very nicely at setting up your workspace as WSAD is built upon Eclipse. I would imagine RAD is no different but I have no exposure to RAD. The only other things you'll need to do are: Add a Java - classpath variable in your settings to M2_REPO pointing to your local repository Change the settings in Java - Compiler to allow using multiple output locations for source folders HTH... also Mike, in all fairness, the nabble archives and whatnot are not all that easy to find or use (and not spidered all that well in google). If you have nothing good to say, don't say anything at all. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Serge Emmanuel Pagop [EMAIL PROTECTED] 04/18/2006 06:53 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Which local env. do u like to get at (runtime, compile, ...) ? On 4/18/06, Mike Perham [EMAIL PROTECTED] wrote: Please check the archives. This has been discussed ad infinitum. -Original Message- From: Aaron Freeman [mailto:[EMAIL PROTECTED] Sent: Monday, April 17, 2006 10:54 PM To: Maven Subject: Maven and WSAD or RAD Is anyone using Maven with either WebSphere Studio Applicaiton Developer or Rational Application Developer? If so, how do you get the local environments to work properly? There are some things that the local environment needs to run, that are different than the way you would do it for a Maven project. For
Re: Retrotranslation and the everpresent 1 artifact
We have a project, JBoss Webservices. This project has one source tree and is set up as a single project.We build a jar using jdk1.5. Next we retrotranslate that jar to run on a 1.4 version jvm which produces a second artifact webservices1.4 version.Of course, this defies the one artifact rule for the project structure. Technically, webservices1.4 would _depend_ on webservices1.5 and the build goal for 1.4 would run this magic process upon the artifact from 1.5 and (presumably) stash the output in ${maven.build.dir}, to await installation and deployment via their respective goals. IMHO, of course. -- /v\atthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dependency Management, Prioritize Repositories - Internal,Central, etc.
Excellent. That fixed my problem. It would be nice if the documentation was updated to indicate what needs to be done to prevent this situation: http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html It would still be nice, however, to be able to specify the order in which various repositories are searched. Thanks for the suggestion. -Original Message- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 3:47 AM To: Maven Users List Subject: RE: Dependency Management, Prioritize Repositories - Internal,Central, etc. On Wed, 2006-04-19 at 12:27 +0200, Jörg Schaible wrote: Roye, Suhneel BGI SF wrote on Wednesday, April 19, 2006 12:06 PM: Problem: I have a custom JAR (built by our team) installed in my local repository, and yet every time I do a build, Maven attempts to download it from Central (iBiblio) before realizing it's located in my local repository. I would like to prevent Maven from attempting to download this JAR from Central every time I do a build. Existing Solution: Has anyone successfully dealt with this problem? I've seen several threads on this topic without any resolution. I do not want to override Central or disable downloading of JAR's from Central. Potential Solution: I would like to be able to specify the order in which Maven looks up repositories. I would like for it to first look in my local repository, then at a shared (corporate) repository, and finally go out to the Central (iBiblio) repository. This will not really help, for SNAPSHOTs Maven has to look in every repository. True, for SNAPSHOT files. If you're getting this problem with something other than SNAPSHOT files, then did you use -DgeneratePom=true when installing the files? I've been working on doing exactly this kind of thing today, and it's working fine. However if there is no pom file next to the jarfile in the local repository, then maven tries to fetch the *pom* (and only the pom) from the central repository, then gets the jar from the local one. Putting a pom in the local repository fixes that. Regards, Simon This message and any attachments are confidential, proprietary, and may be privileged. If this message was misdirected, Barclays Global Investors (BGI) does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BGI, unless the author is authorized by BGI to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BGI. Although BGI operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
@execute goal=....
Hi, I wrote a simple webstart plugin. There are three goals: webstart:sign webstart:jnlp webstart:webstart sign and jnlp can be executed independently. But the webstart goal should execute the sign and the jnlp goal. I tried the @execute annotation but I couldn't find out how to execute two goals. Cheers, michael This is what I've tried till now: /** * @goal webstart * @execute phase=jnlp * @execute phase=sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp, sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Restricting A Plugin Transitive Dependency?
Have you tried specifying the specific Jexl version you want in the plugin configuration? Too lazy to insert the proper artifactIds and groupIds, but you should get the idea... build plugins plugin maven2-xdoclet2-plugin dependencies dependency jexl version1.0/version /dependency /dependencies /plugin /plugins /build This might work? If not, try version[1.0]/version instead. Wayne On 4/19/06, Brian Wainwright [EMAIL PROTECTED] wrote: Hi, I have a problem where I am using the XDoclet2 plugin to generate Hibernate mappings for my DAOs, which works fine for all but one mapping. An (invalid) stray element is being written to the mapping file because of two (optional) attributes are missing from the Hibernate/Xdoclet tag in the classfile. I've tracked the problem down to be a problem with Jexl (used to parse/execute Xdoclet's Jelly script when generating the mappings), where it seems it's empty() function doesn't work in version 1.0-beta-2, but does in 1.0. The problem is that maven2-xdoclet2-plugin is pulled in from the Codehaus repository as a snapshot version, which in turn pulls in a snapshot version of XDoclet2, which itself uses the broken (1.0-beta-2) version of Jexl. Is there a simple way to restrict the version of the Jexl dependency? The only way I can think at the moment, is to have custom versions of the dependencies on our own internal repository and hack the pom's to force the use of specific versions all along the dependency chain? Thanks for your help! Brian Wainwright Developer Burns E-Commerce Mansion House, Manchester Road, Altrincham, Cheshire, WA14 4RJ, UK http://www.burnsecs.com mailto:[EMAIL PROTECTED]
Re: [m2] XDoclet does not work
Is ${basedir} valid - that looks more like an Ant property. This is what I'm using... plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration generatedSourcesDirectory${project.build.directory}/xdoclet/generatedSourcesDirectory tasks ejbdoclet destDir=${project.build.directory}/xdoclet addedtags=@xdoclet-generated at ${NOW_UK},@author XDoclet excludedtags=@version,@author verbose=true force=false ejbSpec=2.1 fileset dir=${project.build.sourceDirectory} include name=**/*Bean.java/include include name=**/*MDB.java/include /fileset remoteinterface / localinterface / homeinterface / utilobject kind=physical cacheHomes=true includeGUID=true / localhomeinterface / dataobject/ entitypk/ deploymentdescriptor destDir=${project.build.outputDirectory}/META-INF/ !-- Xdoclet doesn't support weblogic 9 out of the box, so try with 8.1 descriptors. -- weblogic destDir=${project.build.outputDirectory}/META-INF datasource=jdbc/TxTopUpDB version=8.1 validateXML=true createtables=Disabled databaseType=ORACLE / /ejbdoclet /tasks /configuration /execution /executions /plugin -- View this message in context: http://www.nabble.com/-m2-XDoclet-does-not-work-t1475109.html#a3992532 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven and WSAD or RAD
Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. I beg to disagree. In WSAD 5.1.0, you can do: Window - Preferences - Java (Expand the tree) - Compiler - Build Path (click the tab) - Enable using multiple output locations for source folders (checkbox) HTH, -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Aaron Freeman [EMAIL PROTECTED] 04/19/2006 06:55 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Thanks for the responses. I did actually find a few things in the archives about this subject. However, it appears that no one has a great solution. WSAD and RAD really aren't that different, for the most part. So whatever works in one will probably work in the other. Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. It's not a real big issue, though. I'll agree that the eclipse:eclipse command works great for Java projects. Once you have the M2_REPO variable defined the classpaths get set properly. But, it doesn't seem to do much good for Web projects. If you use the eclipse:eclipse command, it always sets up a java project and will not create the .project file properly for a Web project or Ear project. It also doesn't deal with the runtime path issues that I discussed above. What I'm planning to do is to create an ArcheType that will create all the necessary .classpath, .websettings, and .project files for each of the types to work properly. I'll also be added something to the POM for WAR and EAR projects that will copy the Maven dependencies to he lib and EAR folders as needed, so the runtime class path of the local environment will have what it needs. This seems to be the best solution. Thanks again. On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think you've got a couple options here. You could define a new JRE System library in your workspace and switch to that for the project or you could manually install the necessary JARs using mvn install:install-file (see the maven site for docs) and then define these dependencies on your POM.xml. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Gautham Pamu [EMAIL PROTECTED] 04/18/2006 11:17 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Hi Justin, When you create the web project in rad, it add following variables to .classpath but mvn eclipse does not seem to add these variables.. is it possible to configure the eclipse plugin to add these variables.. classpathentry kind=con path=com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/ Thanks Gautham Pamu On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've found that the eclipse:eclipse task works very nicely at setting up your workspace as WSAD is built upon Eclipse. I would imagine RAD is no different but I have no exposure to RAD. The only other things you'll need to do are: Add a Java - classpath variable in your settings to M2_REPO pointing to your local repository Change the settings in Java - Compiler to allow using multiple output locations for source folders HTH... also Mike, in all fairness, the nabble archives and whatnot are not all that easy to find or use (and not spidered all that well in google). If you have nothing good to say, don't say anything at all. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Serge Emmanuel Pagop [EMAIL PROTECTED] 04/18/2006 06:53 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Which local env. do u like to get at (runtime, compile, ...) ? On 4/18/06, Mike Perham
Surefire test reports
I'm having a small issue with Surefire test reports. When I run the Maven site plugin, for some reason my Surefire test reports aren't included. In my pom.xml, I have the following: reports plugins ... plugin artifactIdmaven-surefire-plugin/artifactId /plugin ... /plugins /reports Is there something I'm missing? Thanks. This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
Re: @execute goal=....
Hi, I don't know about @execute annotation, but you could also use Maven Embedder to execute the two goals. Cheers, Rahul - Original Message - From: Michael Meyer [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, April 20, 2006 5:15 AM Subject: @execute goal= Hi, I wrote a simple webstart plugin. There are three goals: webstart:sign webstart:jnlp webstart:webstart sign and jnlp can be executed independently. But the webstart goal should execute the sign and the jnlp goal. I tried the @execute annotation but I couldn't find out how to execute two goals. Cheers, michael This is what I've tried till now: /** * @goal webstart * @execute phase=jnlp * @execute phase=sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp, sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo - 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: Maven and WSAD or RAD
Thanks, I didn't know that was there. That helps because I still have some developers on 5.1 and some on 6.0. On 4/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. I beg to disagree. In WSAD 5.1.0, you can do: Window - Preferences - Java (Expand the tree) - Compiler - Build Path (click the tab) - Enable using multiple output locations for source folders (checkbox) HTH, -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Aaron Freeman [EMAIL PROTECTED] 04/19/2006 06:55 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Thanks for the responses. I did actually find a few things in the archives about this subject. However, it appears that no one has a great solution. WSAD and RAD really aren't that different, for the most part. So whatever works in one will probably work in the other. Except that WSAD is base on Eclipse 2.1 so it does not have the ability to specify multiple output paths for compiled classes, but RAD does. This is necessary is you want it to compile the to both the classes and test-classes directories in the target folder. It's not a real big issue, though. I'll agree that the eclipse:eclipse command works great for Java projects. Once you have the M2_REPO variable defined the classpaths get set properly. But, it doesn't seem to do much good for Web projects. If you use the eclipse:eclipse command, it always sets up a java project and will not create the .project file properly for a Web project or Ear project. It also doesn't deal with the runtime path issues that I discussed above. What I'm planning to do is to create an ArcheType that will create all the necessary .classpath, .websettings, and .project files for each of the types to work properly. I'll also be added something to the POM for WAR and EAR projects that will copy the Maven dependencies to he lib and EAR folders as needed, so the runtime class path of the local environment will have what it needs. This seems to be the best solution. Thanks again. On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think you've got a couple options here. You could define a new JRE System library in your workspace and switch to that for the project or you could manually install the necessary JARs using mvn install:install-file (see the maven site for docs) and then define these dependencies on your POM.xml. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Gautham Pamu [EMAIL PROTECTED] 04/18/2006 11:17 AM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: Maven and WSAD or RAD Our Ref: Your Ref: Hi Justin, When you create the web project in rad, it add following variables to .classpath but mvn eclipse does not seem to add these variables.. is it possible to configure the eclipse plugin to add these variables.. classpathentry kind=con path=com.ibm.wtp.server.java.core.container /com.ibm.etools.websphere.portal.runtime.core.runtimeTarget.v51/wps.base.v51/ Thanks Gautham Pamu On 4/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've found that the eclipse:eclipse task works very nicely at setting up your workspace as WSAD is built upon Eclipse. I would imagine RAD is no different but I have no exposure to RAD. The only other things you'll need to do are: Add a Java - classpath variable in your settings to M2_REPO pointing to your local repository Change the settings in Java - Compiler to allow using multiple output locations for source folders HTH... also Mike, in all fairness, the nabble archives and whatnot are not all that easy to find or use (and not spidered all that well in google). If you have nothing good to say, don't say anything at all. -j --- Justin Fung [EMAIL PROTECTED] Sr. Analyst, Business Systems IT Banking Systems, e-Business HSBC Bank Canada http://www.hsbc.ca p: (604) 643-6605 f: (604) 643-6727 Serge Emmanuel Pagop [EMAIL PROTECTED] 04/18/2006 06:53 AM
RE: [m2.0.1] ambiguous subtask definition
Any workarounds for this? -- View this message in context: http://www.nabble.com/-m2.0.1-ambiguous-subtask-definition-t743087.html#a3994431 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M203] Writing tests for Plugins (Java Mojos)
Mojo testing is something I have been wanting to raise on this list for last couple of days as well ;-) Following is the only reference available, I have been digging into sources last couple of days to code up mojo tests. http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Harness Apparently there are different posssible approaches to unit testing Mojos/Plugins. This is what I found: a) Simple JUnit test case. b) extend PlexusTestCase (see Continuum IT sources) c) extend AbstractMojoTestCase (see maven-install-plugin sources). d) use Maven Embedder, Plexus Commandline utils (see under maven-eclipse-plugin sources - master project test) e) use JMockObjects (see maven-clover-plugin or Cargo Maven extension sources). It would be great if Maven devs (or others) can chip in notes/thoughts on these approaches and what might be the appropriate scenarios for each approach :-) - I am happy to document them! Cheers, Rahul - Original Message - From: Michael Meyer [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Thursday, April 20, 2006 5:04 AM Subject: [M203] Writing tests for Plugins (Java Mojos) Hi, is there any documentation around about writing tests for maven plugins? I saw that some plugins subclass org.codehaus.plexus.PlexusTestCase for theire tests but a simple example of a typical maven plugin test would be helpful. michael - 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: Surefire test reports
That should be: reporting plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdsurefire-report-maven-plugin/artifactId /plugin Wayne On 4/19/06, Mark Misurak [EMAIL PROTECTED] wrote: I'm having a small issue with Surefire test reports. When I run the Maven site plugin, for some reason my Surefire test reports aren't included. In my pom.xml, I have the following: reports plugins ... plugin artifactIdmaven-surefire-plugin/artifactId /plugin ... /plugins /reports Is there something I'm missing? Thanks. This email and/or any documents in this transmission is intended for the addressee(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. Ce courriel et tout document dans cette transmission est destiné à la personne ou aux personnes à qui il est adressé. Il peut contenir des informations privilégiées ou confidentielles. Toute utilisation, divulgation, distribution, copie, ou diffusion non autorisée est strictement défendue. Si vous n'êtes pas le destinataire de ce message, veuillez en informer l'expéditeur immédiatement et lui remettre l'original.
Re : [m2] Xdoclet fails
Hi, If you want your EJB to implement AbstractStatelessSessionBean (from spring framework) you have to declare spring as a dependency of your xdoclet plugin. Your POM must look like that : plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset dir=${basedir}/src/main/java includes=**/*Bean.java/ remoteinterface/ homeinterface/ localinterface/ localhomeinterface/ /ejbdoclet /tasks /configuration /execution /executions dependencies dependency groupIdorg.springframework/groupId arctefactIdspring/arctefactId version1.2.6/version !-- for example -- /dependency /dependencies /plugin Yan. - Message d'origine De : J-F Daune [EMAIL PROTECTED] À : Maven Users List users@maven.apache.org Envoyé le : Mercredi, 19 Avril 2006, 5h51mn 31s Objet : Re: [m2] Xdoclet fails Ok. You're telling xdoclet to generate local/remote/home/localhome interfaces. Did you specify @ejb.home etc. too in the *Bean.java sources? -- Kenney Kenney, thank you for your time. Here is the class: package be.banksys.tams.logic; import javax.ejb.CreateException; import org.springframework.ejb.support.AbstractStatelessSessionBean; /** * @ejb.bean * name=TestService * description=Test service * local-jndi-name=ejb/local/tams/TestService * jndi-name=ejb/tams/TestService * type=Stateless * view-type=both * @ejb.interface * extends=javax.ejb.EJBObject * local-extends=javax.ejb.EJBLocalObject, be.banksys.tams.logic.TestService * @ejb.home * extends=javax.ejb.EJBHome * local-extends=javax.ejb.EJBLocalHome */ public class TestServiceBean extends AbstractStatelessSessionBean implements TestService { private TestService delegate; /** * @ejb.interface-method * view-type=both */ public String echo(String s) { return delegate.echo(s); } protected void onEjbCreate() throws CreateException { delegate = (TestService ) getBeanFactory().getBean(testService); } } For info, here is the log: [INFO] [xdoclet:xdoclet {execution: default}] [INFO] Initializing DocletTasks!!! [INFO] Executing tasks 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running remoteinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running homeinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localinterface/ 19-avr.-2006 16:24:05 xdoclet.XDocletMain start INFO: Running localhomeinterface/ INFO:Some classes refer to other classes that were not found among the sourc es or on the classpath. (Perhaps the referred class doesn't exist? Hasn't been generated yet?) The referring classes do not import any fully qualified classes matchin g these classes. However, since no packages are imported, xjavadoc has assumed that the referred classes belong to the same package as the referring class. The classes are: F:\common\projects\m2\logic\ejb\src\main\java\be\banksys\tams\logic\TestServiceB ean.java -- TestService qualified to be.banksys.tams.logic.TestService [INFO] Executed tasks On Wed, 19 Apr 2006, J-F Daune wrote: I don't know what the output is you get, but I think you have to add an mkdir dir=${project.build.directory}/generated-sources/xdoclet/ before the ejbdoclet tag. I'm hoping to streamline this in future versions. -- Kenney Hi, I am starting with M2, and am trying to use XDoclet to generate EJB stuff. I followed instructions found on this mailing list, and declare this: build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-ejb-plugin/artifactId configuration generateClienttrue/generateClient /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdxdoclet-maven-plugin/artifactId executions execution phasegenerate-sources/phase goals goalxdoclet/goal /goals configuration tasks ejbdoclet destDir=${project.build.directory}/generated-sources/xdoclet excludedtags=@version,@author force=true verbose=true fileset
Re: @execute goal=....
you could define a custom lifecycle 'webstart' that includes the sign and jnlp mojos, and then let the webstart mojo fork this lifecycle with: @execute phase=jnlp lifecycle=webstart See http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html (at the end) Never tried it myself... On 4/19/06, Michael Meyer [EMAIL PROTECTED] wrote: Hi, I wrote a simple webstart plugin. There are three goals: webstart:sign webstart:jnlp webstart:webstart sign and jnlp can be executed independently. But the webstart goal should execute the sign and the jnlp goal. I tried the @execute annotation but I couldn't find out how to execute two goals. Cheers, michael This is what I've tried till now: /** * @goal webstart * @execute phase=jnlp * @execute phase=sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp, sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo /** * @goal webstart * @execute phase=jnlp sign * @description Create a war archive */ public class WebstartMojo extends AbstractMojo - 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.0.1] ambiguous subtask definition
If you read all the messages in the thread, you'll see this was found to be an Xdoclet bug. ## It's a XDoclet bug, not Maven's, see http://opensource2.atlassian.com/projects/xdoclet/browse/XDT-1435 http://opensource2.atlassian.com/projects/xdoclet/browse/XDT-86 ## Assuming Xdoclet fixed the issue, and the Xdoc Maven plugin hasn't been updated, then I'd ask the XDoc team to consider updating the plugin with newer code. Wayne On 4/19/06, Gwyn [EMAIL PROTECTED] wrote: Any workarounds for this? -- View this message in context: http://www.nabble.com/-m2.0.1-ambiguous-subtask-definition-t743087.html#a3994431 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m203] Get names of all transitive dependencies in a mojo
On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote: Thanks, I guess I'll have to build my own utility class with some of the code of the dependency-plugin. I agree with you that this functionality should be pushed into the core code. It would be cool if there was a simple method like getTransitiveDependencies() somewhere :-) Cheers michael Ruel Loehr schrieb: Check out the dependency plugin. It has all the code you need. This seems to be a common need though (I do it in at least 3 plugins). Maybe it is something that should be pushed into the core code? Ruel Loehr JBoss QA - 512-342-7840 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -Original Message- From: Michael Meyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 2:57 AM To: Maven Users List Subject: [m203] Get names of all transitive dependencies in a mojo Hi, how can I retrive the names of all dependencies including the transitive dependencies in a Java Plugin (Mojo)? I took a look at the code of the eclipse plugin but the dependency part seemed a bit complicated for just getting all transitive dependencies. And I'm not familier with the term reactor that made understanding the code a bit awkward ;-) michael - 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] Did anyone file a JIRA issue requesting this? -- Jamie Bisotti
Re: [m2.0.1] ambiguous subtask definition
Wayne Fay wrote: If you read all the messages in the thread, you'll see this was found to be an Xdoclet bug. ## It's a XDoclet bug, not Maven's, see http://opensource2.atlassian.com/projects/xdoclet/browse/XDT-1435 ... Hmm, the comments in XDT-1435 above suggest that they view it as being a Maven (plugin?) bug... Having seen that, I was only asking for a workaround, not a fix! :-) /Gwyn -- View this message in context: http://www.nabble.com/-m2.0.1-ambiguous-subtask-definition-t743087.html#a3995356 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat plugin
Hi Vincent, I tried your alternatives per the last thread, but to no avail. Any ideas? Here's my latest try: $ maven plugin:download -DgroupId=org.codehaus.cargo -DartifactId=cargo-maven-p lugin -Dversion=0.8 __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 build:start: plugin:download-artifact: [echo] repo is ' http://www.ibiblio.org/maven' [echo] trying to download http://www.ibiblio.org/maven/org.codehaus.cargo/p lugins/cargo-maven-plugin-0.8.jar [echo] repo is 'http://cargo.codehaus.org/dist2' [echo] trying to download http://cargo.codehaus.org/dist2/org.codehaus.cargo /plugins/cargo-maven-plugin-0.8.jar BUILD FAILED -- View this message in context: http://www.nabble.com/Tomcat-plugin-t1386937.html#a3996264 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat plugin
Vincent did say the plugin was not there in ibiblio and that you can grab it ,by downloading straight from http://cargo.codehaus.org/dist2/org/codehaus/cargo/cargo-maven-plugin/0.8/ca rgo-maven-plugin-0.8.jar You can then install it by copying it to your $MAVEN_HOME/plugin directory Jeff Mutonho GoogleTalk : ejbengine Skype: ejbengine Registered Linux user number 366042 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat plugin
LOL...did you notice how I tried to take my message back? At any rate, I have the jar now in $MAVEN_HOME/plugins. I'm assuming that suffices the install requirement and now I can start adding the properties and goals to my code? Thanks, Lou -- View this message in context: http://www.nabble.com/Tomcat-plugin-t1386937.html#a3996500 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
archetype with site-resources
Hi, I created a archetype and added resources, sources, testResources and site-resources to it. When i create a project based on this archetype, the resources, sources and testResources are generated as i expected. But none of the site-resources can be found in the src/ dir. The site-resources I added to the archetype: archetype ... site-resources resourcesrc/site/site.xml/resource resourcesrc/site/resources/css/site.css/resource resourcesrc/site/resources/images/bg_verloop.gif/resource resourcesrc/site/resources/images/continuum_logo_75.gif/resource resourcesrc/site/resources/images/kop.jpg/resource /site-resources ... /archetype Suggestion: May be the tag site-resources is incorrect. In the Guide to creating archetypeshttp://maven.apache.org/guides/mini/guide-creating-archetypes.html, section 2 the example shows the 'test-sources' tag as testSources. But in the text it is typed as test-sources. So maybe the site-resources is also wrong. Thanks -- Johan
Re: archetype with site-resources
Did you try siteResources ? I have no idea if this works, but assume it based on your experiences with test-sources vs testSources. Wayne On 4/19/06, Johan Vogelzang [EMAIL PROTECTED] wrote: Hi, I created a archetype and added resources, sources, testResources and site-resources to it. When i create a project based on this archetype, the resources, sources and testResources are generated as i expected. But none of the site-resources can be found in the src/ dir. The site-resources I added to the archetype: archetype ... site-resources resourcesrc/site/site.xml/resource resourcesrc/site/resources/css/site.css/resource resourcesrc/site/resources/images/bg_verloop.gif/resource resourcesrc/site/resources/images/continuum_logo_75.gif/resource resourcesrc/site/resources/images/kop.jpg/resource /site-resources ... /archetype Suggestion: May be the tag site-resources is incorrect. In the Guide to creating archetypeshttp://maven.apache.org/guides/mini/guide-creating-archetypes.html, section 2 the example shows the 'test-sources' tag as testSources. But in the text it is typed as test-sources. So maybe the site-resources is also wrong. Thanks -- Johan
Re: [m203] Get names of all transitive dependencies in a mojo
Me neither. michael Ruel Loehr schrieb: I didn't. Feel free to open it. Ruel Loehr JBoss QA - 512-342-7840 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -Original Message- From: Jamie Bisotti [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 19, 2006 3:05 PM To: Maven Users List Subject: Re: [m203] Get names of all transitive dependencies in a mojo On 4/12/06, Michael Meyer [EMAIL PROTECTED] wrote: Thanks, I guess I'll have to build my own utility class with some of the code of the dependency-plugin. I agree with you that this functionality should be pushed into the core code. It would be cool if there was a simple method like getTransitiveDependencies() somewhere :-) Cheers michael Ruel Loehr schrieb: Check out the dependency plugin. It has all the code you need. This seems to be a common need though (I do it in at least 3 plugins). Maybe it is something that should be pushed into the core code? Ruel Loehr JBoss QA - 512-342-7840 ext 2011 Yahoo: ruelloehr Skype: ruelloehr AOL: dokoruel -Original Message- From: Michael Meyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 12, 2006 2:57 AM To: Maven Users List Subject: [m203] Get names of all transitive dependencies in a mojo Hi, how can I retrive the names of all dependencies including the transitive dependencies in a Java Plugin (Mojo)? I took a look at the code of the eclipse plugin but the dependency part seemed a bit complicated for just getting all transitive dependencies. And I'm not familier with the term reactor that made understanding the code a bit awkward ;-) michael - 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] Did anyone file a JIRA issue requesting this? -- Jamie Bisotti - 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: archetype with site-resources
Fay, you're wright But it results in another problem. The gif's and jpg's seems to be parsed and end up corupted. I found this issue registered as ARCHETYPE-32.http://jira.codehaus.org/browse/ARCHETYPE-32 Thanks. 2006/4/19, Wayne Fay [EMAIL PROTECTED]: Did you try siteResources ? I have no idea if this works, but assume it based on your experiences with test-sources vs testSources. Wayne On 4/19/06, Johan Vogelzang [EMAIL PROTECTED] wrote: Hi, I created a archetype and added resources, sources, testResources and site-resources to it. When i create a project based on this archetype, the resources, sources and testResources are generated as i expected. But none of the site-resources can be found in the src/ dir. The site-resources I added to the archetype: archetype ... site-resources resourcesrc/site/site.xml/resource resourcesrc/site/resources/css/site.css/resource resourcesrc/site/resources/images/bg_verloop.gif/resource resourcesrc/site/resources/images/continuum_logo_75.gif/resource resourcesrc/site/resources/images/kop.jpg/resource /site-resources ... /archetype Suggestion: May be the tag site-resources is incorrect. In the Guide to creating archetypes http://maven.apache.org/guides/mini/guide-creating-archetypes.html, section 2 the example shows the 'test-sources' tag as testSources. But in the text it is typed as test-sources. So maybe the site-resources is also wrong. Thanks -- Johan -- Johan Vogelzang
Re: How to get the url of submodules
Thanks for your reply, I have site.xml at my top level under Top level Project directory But i don't see any thing happening here, my site pages are same as exactly when in didn't have site.xml, or in other words, my site.xml is getting used.. i guess i'm missing some configuration here , but don't know where is it? Please advise Thanks, Raghu Wayne Fay [EMAIL PROTECTED] 04/16/2006 10:45 PM Please respond to Maven Users List To: Maven Users List users@maven.apache.org cc: Subject:Re: How to get the url of submodules Yes, right now the site plugin does not automatically provide links to the submodules etc. So the easiest way to handle this is to simple provide a site.xml file with links to the various submodules. You'll want to add something like this: menu name=Submodules item name=Module A href=/ModuleA/index.html/ item name=Module B href=/ModuleB/index.html/ /menu Wayne On 4/16/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All I have project like Project -Module A -pom.xml -Module-B -pom.xml - pom.xml For this when i create a site and when i acess the Projec\index.html i don't see the link to Module-A and Module-B even though i have url metioned in my pom.xml How can i add that in site webpage so user can navigate thru other modules in project??? do i need to have site.xml??? please advise Thanks, Raghu
maven2 jira report - maven-changes-report ?
I've found tempting references to a maven2 plugin that is apparently capable of generating reports of Jira issues... However, I cannot persuade it to run without crashing and I cannot find anything useful about it with Google. If anyone out there has it working for them and could post an example, I would be very grateful. I tried adding : plugin groupIdorg.codehaus.mojo/groupId !--groupIdorg.apache.maven.plugins/groupId-- artifactIdchanges-maven-plugin/artifactId /plugin to my reporting plugins - but my site build falls over as the plugin pulls in a webpage from Jira. I dl-ed the page and took a look at it. It seems that the plugin is failing to get my project name into the url, so is getting back an error page... log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient). log4j:WARN Please initialize the log4j system properly. [INFO] Jira lives at: http://jira.codehaus.org/browse [INFO] Downloading http://jira.codehaus.org/browse/secure/IssueNavigator.jspa?view=rsspid=sorter/field=createdsorter/order=DESCsorter/field=prioritysorter/order=DESCtempMax=100reset=truedecorator=none [WARNING] Received: [404] org.xml.sax.SAXParseException: Expected /meta to terminate element starting on line 5. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3370) I'm running against : http://jira.codehaus.org/browse/WADI which is Jira version 3.4.2-#108 - apparently recent versions of the plugin require 3.3 - so I should be OK ? The changes plugin page seems to be missing: http://maven.apache.org/plugins/maven-changes-plugin any help would be much appreciated. Jules -- Open Source is a self-assembling organism. You dangle a piece of string into a super-saturated solution and a whole operating-system crystallises out around it. /** * Jules Gosnell * Partner * Core Developers Network (Europe) * *www.coredevelopers.net * * Open Source Training Support. **/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OutOfMemoryError causing build failure that doesn't occur from cmd l
Setting the MAVEN_OPTS to -Xms32m -Xmx256m did the trick. Thanks. -- View this message in context: http://www.nabble.com/OutOfMemoryError-causing-build-failure-that-doesn%27t-occur-from-cmd-line-t1469294.html#a3997443 Sent from the Continuum - Users forum at Nabble.com.
Re: EJB3/J2EE project using Maven2
I'm also interested in this project. On 3/11/06, Marco Mistroni [EMAIL PROTECTED] wrote: Hello all, i have done a J2EE project which includes some EJB3, using Maven2. as of now, main limitation (due to its simplicity) is that i am NOT using maven-ejb-plugin since i am letting jboss figure out the ejb-jar.xml from the deployed package the current project does not use any maven-ejb3 plugins, nor any maven-par-plugins... but it's a very simple example of a J2EE project using maven2 Btw, i have copied from a sample that i have downloaded from some maven repositories i'd like to send it to the whole list, but i guess it's impractical if someone is interested, please let me know email and i send it privately alternatively, if i can post it to some maven guy so that it ends up in some repositories, i will be glad to do so regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]