Re: XDoc and in a URL...
Thanks. I do not have firebug installed but I just noticed that the bit;ly history does not seem to contain links created by the key (although it is kind of implied) but shows the links only for the last hour of people who clicked on them. It seems that replacing the with 38; do the trick... but I need to re-check amp; and let you know Thanks for your help Benoit Dominic Mitchell wrote: On 19 Aug 2009, at 18:22, BenoitX wrote: Thanks for your email. There is more to it than what you think... Yes we are using bit.ly but the bit.ly APIs and the javascript way to shorten the current page on-the-fly. So that way StatCVS/StatSVN can put a Twitter button on any page and the current URl will be automatically bit.ly-fied This is explained at http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten And the suggested link by bit.ly for importing the javascript does contain '' May be we could try to shortify that one and use it in our code but that sounds a bit weird... I'll try it... I was just wondering why it seems that the javascript did not login properly... (i.e. any links creaed do not seem to appear under our account... Just one further thought. When you generate the URL containing ampersands, do you see any errors in the firebug console? If you look at the Net tab in firebug, does that give you any clue about whether it's downloading OK? -Dom - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://n2.nabble.com/XDoc-and-in-a-URL-tp3473248p3480173.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
XDoc and in a URL...
Hi *, I need to generate an XDOC with a header that contains a link to a javascript. So far, no problem. However, the URL where the code is contains a script type=text/javascript charset=utf-8 src=http://bit.ly/javascript-api.js?version=latestlogin=statsvnapiKey=R_2c362b417d0517c27876cbaca1bb68cc;/script This causes the xdoc plugin to fail (not valid XML). If I replace this by amp; the xdoc does not complain BUT I end up with amp; in the html generated and this means that the link does not work as planned... I've tried to read as much a possible on xdoc format... and I tried: 1/ escapeXml : it fails 2/ !CDATA[[ ... : the script is NOT included in the HTML at the end... How could I do this? Thanks a lot Benoit -- View this message in context: http://n2.nabble.com/XDoc-and-%22-%22-in-a-URL...-tp3473248p3473248.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XDoc and in a URL...
Hi Dominic, Thanks for the reply. Indeed it needs to be escaped but FireFox 3.5 does not seem to download the script correctly. If I change the amp; to be in the generated HTML file, it then works. I do not think that the issue is with bit.ly but the browser then? Generated and not working: script type=text/javascript charset=utf-8 src=http://bit.ly/javascript-api.js?version=latestamp;login=statsvnamp;apiKey=R_2c362b417d0517c27876cbaca1bb68cc;/script Modified and working: script type=text/javascript charset=utf-8 src=http://bit.ly/javascript-api.js?version=latestlogin=statsvnapiKey=R_2c362b417d0517c27876cbaca1bb68cc;/script Any suggestion so that the html geneated by xdoc would match the second form? or another type of encoding/escaping? Thanks Benoit Dominic Mitchell wrote: On 19 Aug 2009, at 16:48, BenoitX wrote: I need to generate an XDOC with a header that contains a link to a javascript. So far, no problem. However, the URL where the code is contains a script type=text/javascript charset=utf-8 src=http://bit.ly/javascript-api.js?version=latestlogin=statsvnapiKey=R_2c362b417d0517c27876cbaca1bb68cc /script This causes the xdoc plugin to fail (not valid XML). That's correct behaviour — you have to escape all ampersands in XML in order for it to be well-formed. If I replace this by amp; the xdoc does not complain BUT I end up with amp; in the html generated and this means that the link does not work as planned... It certainly should do. Which browser is interpreting the link incorrectly? I've tried to read as much a possible on xdoc format... and I tried: 1/ escapeXml : it fails 2/ !CDATA[[ ... : the script is NOT included in the HTML at the end... How could I do this? You can't. You have to escape the ampersand. -Dom -- View this message in context: http://n2.nabble.com/XDoc-and-%22-%22-in-a-URL...-tp3473248p3473830.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XDoc and in a URL...
Hi Wayne, Thanks for your email. There is more to it than what you think... Yes we are using bit.ly but the bit.ly APIs and the javascript way to shorten the current page on-the-fly. So that way StatCVS/StatSVN can put a Twitter button on any page and the current URl will be automatically bit.ly-fied This is explained at http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten And the suggested link by bit.ly for importing the javascript does contain '' May be we could try to shortify that one and use it in our code but that sounds a bit weird... I'll try it... I was just wondering why it seems that the javascript did not login properly... (i.e. any links creaed do not seem to appear under our account... Thanks Benoit Wayne Fay wrote: Any suggestion so that the html geneated by xdoc would match the second form? or another type of encoding/escaping? You're dealing with bit.ly... and asking how to deal with problematic ampersands in your URL... are you missing something really obvious? ;-) http://www.google.com/search?hl=enq=is+this+a+testaq=foq=aqi=g10 becomes http://bit.ly/e1GLN Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://n2.nabble.com/XDoc-and-%22-%22-in-a-URL...-tp3473248p3474001.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: XDoc and in a URL...
Furthermore, it appears that one cannot use bit.ly to shorten the URL for the bit.ly javascript; it complains that it is already a bit.ly URL (eventhough it is rather large and has '') Benoit BenoitX wrote: Hi Wayne, Thanks for your email. There is more to it than what you think... Yes we are using bit.ly but the bit.ly APIs and the javascript way to shorten the current page on-the-fly. So that way StatCVS/StatSVN can put a Twitter button on any page and the current URl will be automatically bit.ly-fied This is explained at http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten And the suggested link by bit.ly for importing the javascript does contain '' May be we could try to shortify that one and use it in our code but that sounds a bit weird... I'll try it... I was just wondering why it seems that the javascript did not login properly... (i.e. any links creaed do not seem to appear under our account... Thanks Benoit Wayne Fay wrote: Any suggestion so that the html geneated by xdoc would match the second form? or another type of encoding/escaping? You're dealing with bit.ly... and asking how to deal with problematic ampersands in your URL... are you missing something really obvious? ;-) http://www.google.com/search?hl=enq=is+this+a+testaq=foq=aqi=g10 becomes http://bit.ly/e1GLN Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://n2.nabble.com/XDoc-and-%22-%22-in-a-URL...-tp3473248p3474020.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[m1] JAXB SchemaGen and JDK1.6 - isSubtype 15
Dear *, I know that jaxb is a subject that pops up on aregular basis but I do not seem to find a related message all the way back to 2007... We're still using Maven 1 (ok...) and intend to move from JDK 1.5 to 1.6. Our task to generate a schema from classes not longer works with JDK1.6 and this is probably due to the fact that JDK1.6 comes with an 'old' version of JAXB (we're using 2.1.5). I am aware of the article from Kohsuke (http://weblogs.java.net/blog/kohsuke/archive/2007/02/running_jaxbws.html) but mustbe blind as of how to use it in the context of Maven 1. project.xml !-- JAXB 2.1.5 and transitive dependencies -- dependency groupIdjaxb/groupId artifactIdjaxb-api/artifactId version2.1.5/version typejar/type /dependency dependency groupIdjaxb/groupId artifactIdjaxb-impl/artifactId version2.1.5/version typejar/type /dependency dependency groupIdjaxb/groupId artifactIdjsr173_1.0_api/artifactId version2.1.5/version typejar/type /dependency dependency groupIdcom.sun.xml.bind/groupId artifactIdjaxb-xjc/artifactId version2.1.10/version typejar/type /dependency maven.xml preGoal name=java:compile echoGenerating XML-Schema for JAXB-mapped classes/echo taskdef name=schemagen classname=com.sun.tools.jxc.SchemaGenTask classpath refid=maven.dependency.classpath / /taskdef schemagen destdir=${maven.build.dest} classpath refid=maven.dependency.classpath / src refid=maven.compile.src.set / include name=**/package-info.java / include name=com/x/ClientRelationshipStaging.java / schema namespace=urn:com::util file=X-util.xsd / /schemagen It works fine with JDK 1.5.0_18 but with JDK 1.6.0_13 I get: java:compile: [echo] Generating XML-Schema for JAXB-mapped classes [schemagen] Generating schema from 31 source files [schemagen] Problem encountered during annotation processing; [schemagen] see stacktrace below for more information. [schemagen] java.lang.AssertionError: isSubtype 15 [schemagen] at com.sun.tools.javac.code.Types$5.visitType(Types.java:347) [schemagen] at com.sun.tools.javac.code.Types$5.visitType(Types.java:328) [schemagen] at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visitWildcardType(Types.java:3163) [schemagen] at com.sun.tools.javac.code.Type$WildcardType.accept(Type.java:416) [schemagen] at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:3161) [schemagen] at com.sun.tools.javac.code.Types.isSubtype(Types.java:324) [schemagen] at com.sun.tools.javac.code.Types.isSubtype(Types.java:308) [schemagen] at com.sun.tools.apt.mirror.util.TypesImpl.isSubtype(TypesImpl.java:56) [schemagen] at com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:205) [schemagen] at com.sun.tools.jxc.model.nav.APTNavigator.isSubClassOf(APTNavigator.java:85) [schemagen] at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.isApplicable(PropertyInfoImpl.java:218) It also seems related to: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6738538 But this says it is fixed and delivered... Any suggestion? Anyone faced the same issue Many thanks Benoit - Thanks Regards, Benoit http://www.Appendium.com http://objectlab.blogspot.com -- View this message in context: http://www.nabble.com/-m1--JAXB-SchemaGen-and-JDK1.6--%3E-isSubtype-15-tp23133529p23133529.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to generate !-- from an XDOC?
Hi I'm trying to add a script in the footer of my maven site. The script MUST contain !-- 1) If I add this in the navigation.xml, the comment gets ignored in the output. 2) If I put the script with comment between ![CDATA[ ]], the !-- is changed to lt;-- How could I get the xdoc generation to KEEP my !-- as is? or generate it? Thanks Benoit -- View this message in context: http://www.nabble.com/How-to-generate-%3C%21---from-an-XDOC--tf3446635s177.html#a9611808 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can the xDoc plug-in pass the #169; entity into the XHTML without conversion?
Hi Lance co, Sorry to relaunch this thread. Your workaround is fine but how would you get xdoc to generate a !-- INSIDE a script itself. I need to add this **AS-IS** in a footer... any suggestion? Many thanks script type=text/javascript!-- google_ad_client = pub-XX; google_ad_width = 728; google_ad_height = 90; google_ad_format = 728x90_as; google_ad_type = text; //2007-03-22: XXX Demo google_ad_channel = X; //-- /script Benoit Lance Bader wrote: Thanks Lukas. Here is my solution. It's not pretty but it does the job. script type=text/javascriptdocument.write('\xA9')/script Just place this where you want the copyright symbol to appear. I'm already using a customized copy of site.jsl, so I just replaced each of the 4 occurrences of the #169; entity with a copy of the above Javascript segment. I can publish with WebDAV and the symbol appears correctly. - Lance On 12/9/05, Lukas Theussl [EMAIL PROTECTED] wrote: Hi Lance, I tried a few things but I couldn't get it work like you want, so I'm afraid the preliminary answer to your question is no. Unfortunately, jelly is not very consistent with the treatment of entities, we've had several related problems in the past. -Lukas Lance Bader wrote: By default, the jelly style language file, site.jsl, used by the xDoc plug-in to convert the xDoc XML source into XHTML, supplies a footer that includes a copyright symbol. The site.jsl file specifies the symbol using the #169; entity notation, but the XHTML file generated contains the real copyright character. If you deploy your web site using WebDAV protocols, this character is mangled into a question mark. Is there a way to modify the site.jsl file so that the #169; entity notation appears in the XHTML output instead of the copyright symbol? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can-the-xDoc-plug-in-pass-the---169--entity-into-the-XHTML-without-conversion--tf706123s177.html#a9611835 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can the xDoc plug-in pass the #169; entity into the XHTML without conversion?
Yes... this is exactly my situation! Quite bad that you did not find a solution... Would there be any workaround if the JS was hosted somewhere and that could contain the comment? Benoit ltheussl wrote: This reminds me of the same problem I had a long time ago: http://marc.info/?l=turbine-maven-userm=108984870613874w=2 I never figured out a solution... -Lukas Benoitx wrote: Hi Lance co, Sorry to relaunch this thread. Your workaround is fine but how would you get xdoc to generate a !-- INSIDE a script itself. I need to add this **AS-IS** in a footer... any suggestion? Many thanks script type=text/javascript!-- google_ad_client = pub-XX; google_ad_width = 728; google_ad_height = 90; google_ad_format = 728x90_as; google_ad_type = text; //2007-03-22: XXX Demo google_ad_channel = X; //-- /script Benoit Lance Bader wrote: Thanks Lukas. Here is my solution. It's not pretty but it does the job. script type=text/javascriptdocument.write('\xA9')/script Just place this where you want the copyright symbol to appear. I'm already using a customized copy of site.jsl, so I just replaced each of the 4 occurrences of the #169; entity with a copy of the above Javascript segment. I can publish with WebDAV and the symbol appears correctly. - Lance On 12/9/05, Lukas Theussl [EMAIL PROTECTED] wrote: Hi Lance, I tried a few things but I couldn't get it work like you want, so I'm afraid the preliminary answer to your question is no. Unfortunately, jelly is not very consistent with the treatment of entities, we've had several related problems in the past. -Lukas Lance Bader wrote: By default, the jelly style language file, site.jsl, used by the xDoc plug-in to convert the xDoc XML source into XHTML, supplies a footer that includes a copyright symbol. The site.jsl file specifies the symbol using the #169; entity notation, but the XHTML file generated contains the real copyright character. If you deploy your web site using WebDAV protocols, this character is mangled into a question mark. Is there a way to modify the site.jsl file so that the #169; entity notation appears in the XHTML output instead of the copyright symbol? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can-the-xDoc-plug-in-pass-the---169--entity-into-the-XHTML-without-conversion--tf706123s177.html#a9618944 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can the xDoc plug-in pass the #169; entity into the XHTML without conversion?
Hi Lukas, Thanks for your reply. We only have 36,356 files... ouch! yes, it is big: www.statsvn.org/demo I'll try to spend some time to investigate... Could a javscript hosted on a site, write the commented out stuff for another javascript? (what a bad way to script by Google Adsense by the way..)... Or may be an iFrame that would embed the ad? Cheers Benoit ltheussl wrote: I don't know. One possible workaround I could think of now (I don't remember if I tried at the time) is to use the second approach mentioned in my posting, and filter the output file in a post-goal to replace the escaped html entities, something like: ant:replace file=${file} token=amp;amp;gt; value=gt;/ ant:replace file=${file} token=amp;amp;lt; value=lt;/ An ugly hack, but it might work (if you don't have too many files to process...) HTH, -Lukas Benoitx wrote: Yes... this is exactly my situation! Quite bad that you did not find a solution... Would there be any workaround if the JS was hosted somewhere and that could contain the comment? Benoit ltheussl wrote: This reminds me of the same problem I had a long time ago: http://marc.info/?l=turbine-maven-userm=108984870613874w=2 I never figured out a solution... -Lukas Benoitx wrote: Hi Lance co, Sorry to relaunch this thread. Your workaround is fine but how would you get xdoc to generate a !-- INSIDE a script itself. I need to add this **AS-IS** in a footer... any suggestion? Many thanks script type=text/javascript!-- google_ad_client = pub-XX; google_ad_width = 728; google_ad_height = 90; google_ad_format = 728x90_as; google_ad_type = text; //2007-03-22: XXX Demo google_ad_channel = X; //-- /script Benoit Lance Bader wrote: Thanks Lukas. Here is my solution. It's not pretty but it does the job. script type=text/javascriptdocument.write('\xA9')/script Just place this where you want the copyright symbol to appear. I'm already using a customized copy of site.jsl, so I just replaced each of the 4 occurrences of the #169; entity with a copy of the above Javascript segment. I can publish with WebDAV and the symbol appears correctly. - Lance On 12/9/05, Lukas Theussl [EMAIL PROTECTED] wrote: Hi Lance, I tried a few things but I couldn't get it work like you want, so I'm afraid the preliminary answer to your question is no. Unfortunately, jelly is not very consistent with the treatment of entities, we've had several related problems in the past. -Lukas Lance Bader wrote: By default, the jelly style language file, site.jsl, used by the xDoc plug-in to convert the xDoc XML source into XHTML, supplies a footer that includes a copyright symbol. The site.jsl file specifies the symbol using the #169; entity notation, but the XHTML file generated contains the real copyright character. If you deploy your web site using WebDAV protocols, this character is mangled into a question mark. Is there a way to modify the site.jsl file so that the #169; entity notation appears in the XHTML output instead of the copyright symbol? - 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] -- View this message in context: http://www.nabble.com/Can-the-xDoc-plug-in-pass-the---169--entity-into-the-XHTML-without-conversion--tf706123s177.html#a9623753 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Repository plugin not found?
Hi *, Trying to prepare an upload bundle... C:\project\qalab\maven2-qalab-pluginmvn repository:create-bundle [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'repository'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-repository-plugin' does not exist or no valid version could be found It seems the repository plugin is not downloaded by default with 2.0.4. I have added this to my POM: dependencies dependency groupIdorg.apache.maven.plugins/groupId artifactIdmaven-repository-plugin/artifactId version2.0/version /dependency And mvn install downloaded it. Unfortunately, the exception is still there... mvn repository:create-bundle ... The plugin 'org.apache.maven.plugins:maven-repository-plugin' does not exist or no valid version could be found What am I doing wrong? I'm trying to follow: http://maven.apache.org/guides/mini/guide-central-repository-upload.html Many thanks Benoit -- View this message in context: http://www.nabble.com/-m2--Repository-plugin-not-found--tf2617344s177.html#a7304362 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Repository plugin not found?
Thanks Wendy, I saw both and had the feeling that I had tried both... obviously not. Thanks for your reply Benoit Wendy Smoak-3 wrote: On 11/12/06, Benoitx [EMAIL PROTECTED] wrote: C:\project\qalab\maven2-qalab-pluginmvn repository:create-bundle It's repository:bundle-create (not create-bundle) and you shouldn't need to add it to your pom. mvn repository:create-bundle ... The plugin 'org.apache.maven.plugins:maven-repository-plugin' does not exist or no valid version could be found What am I doing wrong? I'm trying to follow: http://maven.apache.org/guides/mini/guide-central-repository-upload.html That's odd, it downloads and executes just fine for me with 2.0.4. Try it with -U (and the correct goal) and see if that works. -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m2--Repository-plugin-not-found--tf2617344s177.html#a7304782 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Repository documentation obsolete?
Hi From http://maven.apache.org/plugins/index.html there is no link to the Repository Plugin, however, there is a page: http://maven.apache.org/plugins/maven-repository-plugin/index.html But the FAQ and usage pages are missing... What is happening with this plugin? Is there a replacement? Is it supported? thanks Benoit -- View this message in context: http://www.nabble.com/-m2--Repository-documentation-obsolete--tf2618613s177.html#a7307838 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] QALab 0.9.1 and Maven plugin released
Dear David, We really need to have 188 fixed... http://jira.codehaus.org/browse/MSITE-188 It is the last hurdle for QALab. I will keep an eye on 189 too but we cannot become too specific to Maven 2, QALab works accross ant, Maven 1 and now (in beta soon) Maven 2. I find QALab complementary to the dashboard as we keep track of similar stats over time rather than snapshot. We've been using it for a few years and only released it open source in June 05. As I said, we will keep an eye but I prefer to be frank and say that it will be difficult to dedicate a lot of time to it due to massive amount of work (real work and open source: QALab, JTreeMap, ObjectLabKit etc all on sourceforge by the way...). Sorry, Benoit dvicente wrote: could you join this effort = http://jira.codehaus.org/browse/MSITE-189 ? Thanks David Benoitx wrote: Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java
Re: [m2] How to ensure order of reports?
It is a known issue: http://jira.codehaus.org/browse/MSITE-188 Vote for it :-) Has anyone developed a patch? Benoitx wrote: Hi The report re-ordering seems to happen when a root POM with packagingpom is defined.. (thanks to Shelby for spotting this) Is there any reason why it should happen? Is there a way around this? Many thanks Benoit Benoitx wrote: Hi *, Under m2.0.4, how do you ensure the order of reports? Assuming that they all have the same @phase, are they run in the order of declaration in reportingplugins... I seem to have the case where I would like qalab (a proto) to run AFTER checkstyle/pmd etc but it seems to run before... Is there a better way, or any way to ensure run order? Many thanks reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetJdk1.5/targetJdk /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation config/objectlab_checks.xml /configLocation /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-beta-1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration formatxml/format /configuration /plugin plugin groupIdnet.objectlab/groupId artifactIdmvn-qalab-plugin/artifactId !--version2.2/version-- reportSets reportSet reports reportreport-merge-chart/report reportreport-movers-all/report /reports /reportSet /reportSets /plugin /plugins /reporting -- View this message in context: http://www.nabble.com/-m2--How-to-ensure-order-of-reports--tf2582000s177.html#a7220256 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M1.1-RC1 Oct] Issue -- Duplicated tag: 'project'
Hi *, I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). When I try to compile, jar:install or any other goal a project which is part of a multi-project setup, I get the following exception: BUILD FAILED Errors stack : Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' Duplicated tag: 'project' Exception stack traces : org.apache.maven.MavenException: Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:173) at org.apache.maven.cli.App.doMain(App.java:292) at org.apache.maven.cli.App.main(App.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' at org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) at org.apache.maven.project.Project.init(Project.java:151) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) ... 13 more C:\project\qalab\m1-common-build\project.xml does NOT contain project twice... Here is the common-build project.xml: project !-- the version of maven's project object model -- pomVersion3/pomVersion !-- a unique name for this project -- !--idqalab:qalab/id-- !-- a short but descriptive name for the project -- artifactIdqalab/artifactId nameQALab Stats for Builds/name !-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT -- groupIdnet.objectlab/groupId currentVersion1.0-b1/currentVersion !-- details about the organization that 'owns' the project -- organization nameObjectLab Financial Ltd/name urlhttp://www.objectlab.co.uk//url logo http://www.objectlab.co.uk/images/objectlab-web-noblue.gif /logo /organization !-- the year the project started -- licenses license nameGNU General Public License/name urlhttp://www.gnu.org/copyleft/gpl.html/url /license /licenses reports reportmaven-faq-plugin/report reportmaven-checkstyle-plugin/report reportmaven-findbugs-plugin/report reportmaven-pmd-plugin/report reportmaven-simian-plugin/report reportmaven-cobertura-plugin/report reportmaven-qalab-plugin/report !--reportmaven-ydoc-plugin/report-- reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-jxr-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report !--reportmaven-linkcheck-plugin/report-- reportmaven-tasklist-plugin/report !--reportmaven-dashboard-plugin/report-- reportmaven-license-plugin/report /reports inceptionYear2004/inceptionYear packagenet.objectlab.qalab/package logohttp://www.objectlab.co.uk/images/qalab.gif/logo description This project collects data from several QA tools, like pmd, checkstyle, FindBugs, Cobertura and Simian and#xD; keeps track of them overtime. This allows developers, architects and project managers alike to be presented#xD; with a trend of the QA statistics of their project. /description !-- a short description of what the project does -- shortDescription QA Statistics aggregation and trend analysis. /shortDescription !-- the project home page -- urlhttp://qalab.sourceforge.net/url issueTrackingUrl http://www.sourceforge.net/tracker/?group_id=140880 /issueTrackingUrl siteAddresswww.objectlab.co.uk/siteAddress siteDirectory/home/groups/q/qa/qalab/htdocs/siteDirectory distributionDirectory /home/groups/q/qa/qalab/ /distributionDirectory !-- the version control repository and http url for online access the connection element has the form: scm:system:system specific connection string -- repository
Re: [M1.1-RC1 Oct] Issue -- Duplicated tag: 'project'
Hi Thanks for your prompt answer, very appreciated. 100% sure it works with 1.1-b3 (just done the upgrade and kaboom, it no longer works) How would you define module specific versions and/or reports? (ie one is a library, one is a pure jelly plugin, the reports should be different) For the version, different version and releases were used. Is this no longer possible? Thanks Benoit ltheussl wrote: Your pom contains duplicate entries of the versions and reports tags. The error message is certainly misleading, but are you sure this worked with beta-3? -Lukas Benoitx wrote: Hi *, I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). When I try to compile, jar:install or any other goal a project which is part of a multi-project setup, I get the following exception: BUILD FAILED Errors stack : Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' Duplicated tag: 'project' Exception stack traces : org.apache.maven.MavenException: Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:173) at org.apache.maven.cli.App.doMain(App.java:292) at org.apache.maven.cli.App.main(App.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' at org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) at org.apache.maven.project.Project.init(Project.java:151) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) ... 13 more C:\project\qalab\m1-common-build\project.xml does NOT contain project twice... Here is the common-build project.xml: project !-- the version of maven's project object model -- pomVersion3/pomVersion !-- a unique name for this project -- !--idqalab:qalab/id-- !-- a short but descriptive name for the project -- artifactIdqalab/artifactId nameQALab Stats for Builds/name !-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT -- groupIdnet.objectlab/groupId currentVersion1.0-b1/currentVersion !-- details about the organization that 'owns' the project -- organization nameObjectLab Financial Ltd/name urlhttp://www.objectlab.co.uk//url logo http://www.objectlab.co.uk/images/objectlab-web-noblue.gif /logo /organization !-- the year the project started -- licenses license nameGNU General Public License/name urlhttp://www.gnu.org/copyleft/gpl.html/url /license /licenses reports reportmaven-faq-plugin/report reportmaven-checkstyle-plugin/report reportmaven-findbugs-plugin/report reportmaven-pmd-plugin/report reportmaven-simian-plugin/report reportmaven-cobertura-plugin/report reportmaven-qalab-plugin/report !--reportmaven-ydoc-plugin/report-- reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-jxr-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report !--reportmaven-linkcheck-plugin/report-- reportmaven-tasklist-plugin/report !--reportmaven-dashboard-plugin/report-- reportmaven-license-plugin/report /reports inceptionYear2004/inceptionYear packagenet.objectlab.qalab/package logohttp://www.objectlab.co.uk/images/qalab.gif/logo description This project collects data from several QA tools, like pmd, checkstyle, FindBugs, Cobertura and Simian and#xD; keeps track of them overtime. This allows developers, architects and project managers alike to be presented#xD; with a trend of the QA statistics of their project. /description !-- a short
Re: [M1.1-RC1 Oct] Issue -- Duplicated tag: 'project'
I guess that the option would be NOT to define any report/version in the common build and define everything at lower level to the risk of may be duplicating a bit more config. Benoitx wrote: Hi Thanks for your prompt answer, very appreciated. 100% sure it works with 1.1-b3 (just done the upgrade and kaboom, it no longer works) How would you define module specific versions and/or reports? (ie one is a library, one is a pure jelly plugin, the reports should be different) For the version, different version and releases were used. Is this no longer possible? Thanks Benoit ltheussl wrote: Your pom contains duplicate entries of the versions and reports tags. The error message is certainly misleading, but are you sure this worked with beta-3? -Lukas Benoitx wrote: Hi *, I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). When I try to compile, jar:install or any other goal a project which is part of a multi-project setup, I get the following exception: BUILD FAILED Errors stack : Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' Duplicated tag: 'project' Exception stack traces : org.apache.maven.MavenException: Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:173) at org.apache.maven.cli.App.doMain(App.java:292) at org.apache.maven.cli.App.main(App.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' at org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) at org.apache.maven.project.Project.init(Project.java:151) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) ... 13 more C:\project\qalab\m1-common-build\project.xml does NOT contain project twice... Here is the common-build project.xml: project !-- the version of maven's project object model -- pomVersion3/pomVersion !-- a unique name for this project -- !--idqalab:qalab/id-- !-- a short but descriptive name for the project -- artifactIdqalab/artifactId nameQALab Stats for Builds/name !-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT -- groupIdnet.objectlab/groupId currentVersion1.0-b1/currentVersion !-- details about the organization that 'owns' the project -- organization nameObjectLab Financial Ltd/name urlhttp://www.objectlab.co.uk//url logo http://www.objectlab.co.uk/images/objectlab-web-noblue.gif /logo /organization !-- the year the project started -- licenses license nameGNU General Public License/name urlhttp://www.gnu.org/copyleft/gpl.html/url /license /licenses reports reportmaven-faq-plugin/report reportmaven-checkstyle-plugin/report reportmaven-findbugs-plugin/report reportmaven-pmd-plugin/report reportmaven-simian-plugin/report reportmaven-cobertura-plugin/report reportmaven-qalab-plugin/report !--reportmaven-ydoc-plugin/report-- reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-jxr-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report !--reportmaven-linkcheck-plugin/report-- reportmaven-tasklist-plugin/report !--reportmaven-dashboard-plugin/report-- reportmaven-license-plugin/report /reports inceptionYear2004/inceptionYear packagenet.objectlab.qalab/package logohttp://www.objectlab.co.uk/images/qalab.gif/logo description This project collects data from several QA tools, like pmd, checkstyle, FindBugs, Cobertura and Simian and#xD; keeps
Re: [M1.1-RC1 Oct] Issue -- Duplicated tag: 'project'
Yep, as mentioned in previous email (10:48), I guess that unless all versions and reports are the same across all modules, they should not be defined at the common build level. Thanks for your help. Benoit ltheussl wrote: Ok, I just tried myself and it does work with beta-3. In rc1 we changed the xml parser to solve a problem with entities [1], this is certainly the cause of your issue. However, I don't really understand your problem, nor your questions. You only have to define the 'module' (I guess you mean a sub-project, ie part of a multiproject build?) specific settings in the pom of the corresponding sub-project. In your case, you don't need any of the versions or reports tags in the parent pom. Cheers, -Lukas [1] http://jira.codehaus.org/browse/MAVEN-1755 Benoitx wrote: Hi Thanks for your prompt answer, very appreciated. 100% sure it works with 1.1-b3 (just done the upgrade and kaboom, it no longer works) How would you define module specific versions and/or reports? (ie one is a library, one is a pure jelly plugin, the reports should be different) For the version, different version and releases were used. Is this no longer possible? Thanks Benoit ltheussl wrote: Your pom contains duplicate entries of the versions and reports tags. The error message is certainly misleading, but are you sure this worked with beta-3? -Lukas Benoitx wrote: Hi *, I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). When I try to compile, jar:install or any other goal a project which is part of a multi-project setup, I get the following exception: BUILD FAILED Errors stack : Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' Duplicated tag: 'project' Exception stack traces : org.apache.maven.MavenException: Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:173) at org.apache.maven.cli.App.doMain(App.java:292) at org.apache.maven.cli.App.main(App.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' at org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) at org.apache.maven.project.Project.init(Project.java:151) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) ... 13 more C:\project\qalab\m1-common-build\project.xml does NOT contain project twice... Here is the common-build project.xml: project !-- the version of maven's project object model -- pomVersion3/pomVersion !-- a unique name for this project -- !--idqalab:qalab/id-- !-- a short but descriptive name for the project -- artifactIdqalab/artifactId nameQALab Stats for Builds/name !-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT -- groupIdnet.objectlab/groupId currentVersion1.0-b1/currentVersion !-- details about the organization that 'owns' the project -- organization nameObjectLab Financial Ltd/name urlhttp://www.objectlab.co.uk//url logo http://www.objectlab.co.uk/images/objectlab-web-noblue.gif /logo /organization !-- the year the project started -- licenses license nameGNU General Public License/name urlhttp://www.gnu.org/copyleft/gpl.html/url /license /licenses reports reportmaven-faq-plugin/report reportmaven-checkstyle-plugin/report reportmaven-findbugs-plugin/report reportmaven-pmd-plugin/report reportmaven-simian-plugin/report reportmaven-cobertura-plugin/report reportmaven-qalab-plugin/report !--reportmaven-ydoc-plugin/report-- reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-jxr-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin
[m2] How to ensure order of reports?
Hi *, Under m2.0.4, how do you ensure the order of reports? Assuming that they all have the same @phase, are they run in the order of declaration in reportingplugins... I seem to have the case where I would like qalab (a proto) to run AFTER checkstyle/pmd etc but it seems to run before... Is there a better way, or any way to ensure run order? Many thanks reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetJdk1.5/targetJdk /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation config/objectlab_checks.xml /configLocation /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-beta-1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration formatxml/format /configuration /plugin plugin groupIdnet.objectlab/groupId artifactIdmvn-qalab-plugin/artifactId !--version2.2/version-- reportSets reportSet reports reportreport-merge-chart/report reportreport-movers-all/report /reports /reportSet /reportSets /plugin /plugins /reporting -- View this message in context: http://www.nabble.com/-m2--How-to-ensure-order-of-reports--tf2582000s177.html#a7197523 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1.1-RC1 Oct] Issue -- Duplicated tag: 'project'
Hi Arnaud, I've never tried and I always assumed that the common build project.xml was just a placeholder for the common project stuff; so I've never do a build from there... Lukas was kind enough to point to the real issue (i.e. duplication of reports and versions). This is now fixed in my build. Kind regards Benoit Arnaud HERITIER wrote: Hi Benoit, Do you have the same error if you launch maven directly in m1-common-build ? Arnaud Benoitx wrote: Hi *, I have this problem with 1.1-RC1 but not with 1.1-beta3 (august). When I try to compile, jar:install or any other goal a project which is part of a multi-project setup, I get the following exception: BUILD FAILED Errors stack : Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' Duplicated tag: 'project' Exception stack traces : org.apache.maven.MavenException: Error parsing project.xml 'C:\project\qalab\m1-common-build\project.xml' at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:195) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:231) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:123) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:104) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:173) at org.apache.maven.cli.App.doMain(App.java:292) at org.apache.maven.cli.App.main(App.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:589) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) Caused by: org.dom4j.DocumentException: Duplicated tag: 'project' at org.apache.maven.project.io.dom4j.MavenDom4jReader.parseModel(MavenDom4jReader.java:1643) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2617) at org.apache.maven.project.io.dom4j.MavenDom4jReader.read(MavenDom4jReader.java:2628) at org.apache.maven.project.Project.init(Project.java:151) at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:191) ... 13 more C:\project\qalab\m1-common-build\project.xml does NOT contain project twice... Here is the common-build project.xml: project !-- the version of maven's project object model -- pomVersion3/pomVersion !-- a unique name for this project -- !--idqalab:qalab/id-- !-- a short but descriptive name for the project -- artifactIdqalab/artifactId nameQALab Stats for Builds/name !-- The version of the project under development, e.g. 1.1, 1.2, 2.0-SNAPSHOT -- groupIdnet.objectlab/groupId currentVersion1.0-b1/currentVersion !-- details about the organization that 'owns' the project -- organization nameObjectLab Financial Ltd/name urlhttp://www.objectlab.co.uk//url logo http://www.objectlab.co.uk/images/objectlab-web-noblue.gif /logo /organization !-- the year the project started -- licenses license nameGNU General Public License/name urlhttp://www.gnu.org/copyleft/gpl.html/url /license /licenses reports reportmaven-faq-plugin/report reportmaven-checkstyle-plugin/report reportmaven-findbugs-plugin/report reportmaven-pmd-plugin/report reportmaven-simian-plugin/report reportmaven-cobertura-plugin/report reportmaven-qalab-plugin/report !--reportmaven-ydoc-plugin/report-- reportmaven-jdepend-plugin/report reportmaven-junit-report-plugin/report reportmaven-jxr-plugin/report reportmaven-changes-plugin/report reportmaven-developer-activity-plugin/report reportmaven-file-activity-plugin/report !--reportmaven-linkcheck-plugin/report-- reportmaven-tasklist-plugin/report !--reportmaven-dashboard-plugin/report-- reportmaven-license-plugin/report /reports inceptionYear2004/inceptionYear packagenet.objectlab.qalab/package logohttp://www.objectlab.co.uk/images/qalab.gif/logo description This project collects data from several QA tools, like pmd, checkstyle, FindBugs, Cobertura and Simian and#xD; keeps track of them overtime. This allows developers, architects and project managers alike to be presented#xD; with a trend of the QA statistics of their project. /description !-- a short description of what the project does -- shortDescription QA Statistics aggregation and trend analysis
Re: Progress indicators for project management
It is a possibility but we will not do it for version 1.0 (we working on it... the M2 plugin is nicely coming along!) Of course, if you want to develop it, we would be gladly include it with full credit. You would need to create a StatMerger which could be simply extending BaseStatMerge. The principal objective of QALab is simply to keep track of some stats over time, it is not an 'aggregate' tool as such... Keep an eye on QALab... coming soon to a java build near you! :-) Benoit prasad wrote: Hi Benoit, Your QALab plugin for m2 looks quite promising. Can it aggregate surefire-reports too ? We have a very large multi-module project with junit tests in each module. surefire-reports are generated in each module during the site phase. But we'd want to eventually aggregate at the top, a summary of the surefire tests with links to the reports in the individual modules. Cheers Prasad On 9/25/06, Benoitx [EMAIL PROTECTED] wrote: Christophe Thanks for trying QALab, as you know from this thread, it is work-in-progress. You can create your exporter that would log things in JDBC if you want, see: http://qalab.sourceforge.net/faq.html#my-export If you write one such item, we would like to include it if it is generic. I know that the QA generation has changed dramatically between ant/maven 1 and maven2, some seems to do away without XML, which is extremelly surprising and frustrating. Could you post your settings as it may help us to better understand how QALab is used in the community. Thanks Benoit. Christophe DENEUX wrote: Hi all, I have quickly try maven-qalab-plugin this weekend and I have notice the following remarks/issues: - Unable to run maven-qalab-plugin with Findbugs (No XML report is generated by Findbugs) - I had the PMD, Checkstyle, ... configured in the reporting section to have these report in the generated website. To have the QALab reports, I must duplicate the PMD, Checkstyle, ... configuration in the buil section - AS report by Donnchadh, the history is stored in an XML file. Is it not possible to have a maven-qalab-plugin as a report plugin, that: - parse existing XML files generated by Checkstyle, PMD, ... (each of them declared in the reporting section as usually used) - merge statistics in a database through JDBC - generated graphs. Thanks, Christophe DENEUX -- Initial Header --- From : Benoit Xhenseval [EMAIL PROTECTED] To : [EMAIL PROTECTED],Maven Users List users@maven.apache.org Cc : Date : Fri, 22 Sep 2006 05:44:03 -0700 (PDT) Subject : Re: Progress indicators for project management Hi Donnchadh, First of all, thanks for trying the QALab plugin, he hope you'll find it useful. The Maven2 plugin is really more of a beta and I am pleased that we are resuming development on it shortly, your comments will be taken into account. I have launched QALab but was not involved in the Maven2 plugin. I have found Maven2 more complicated than expected when I looked at the way it does reports... i.e. no XML/XSL and using java to write some reports... You are right in saying that you question about inherting a pom setting is more of a Maven2 question and I shall let the specialists answer you. The idea of qalab storing the data in an xml was to reduce the dependencies, this XML can be put in different place; this is something that maven1 and ant users can do easily, we will ensure that it is the case for m2. One should note that it is possible to define your own exporter and therefore could decide to store the data in say a database for instance. If there is a demand, we may even provide a reference implementation for that? So, in summary: hang in there, give us a few weeks or so to sort it out and we will release QALab v1.0 with a fully defined maven2 plugin. Best regards Benoit - Original Message From: Donnchadh ? Donnabh?in [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, September 21, 2006 6:12:05 PM Subject: Re: Progress indicators for project management I tried it quicly and came across a few issues (most of which are easily dealt with). I took the example configuration on the maven2 QALab plugin page ( http://qalab.sourceforge.net/maven2/faq.html ) and simplified it to just working with PMD. I came across the following issues: * By default PMD doesn't seem to produce an XML report * When the PMD plugin is instructed to produce an XML report it puts it in target and the QALab example QALab expects it to be in target/pmd. * By Default, the PMD plugin seems to run in the report phase and the example runs in the verify phase I got it working in the end with the following configuration build
Re: [m2] How to ensure order of reports?
Hi The report re-ordering seems to happen when a root POM with packagingpom is defined.. (thanks to Shelby for spotting this) Is there any reason why it should happen? Is there a way around this? Many thanks Benoit Benoitx wrote: Hi *, Under m2.0.4, how do you ensure the order of reports? Assuming that they all have the same @phase, are they run in the order of declaration in reportingplugins... I seem to have the case where I would like qalab (a proto) to run AFTER checkstyle/pmd etc but it seems to run before... Is there a better way, or any way to ensure run order? Many thanks reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetJdk1.5/targetJdk /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId configuration configLocation config/objectlab_checks.xml /configLocation /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-beta-1/version /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId configuration formatxml/format /configuration /plugin plugin groupIdnet.objectlab/groupId artifactIdmvn-qalab-plugin/artifactId !--version2.2/version-- reportSets reportSet reports reportreport-merge-chart/report reportreport-movers-all/report /reports /reportSet /reportSets /plugin /plugins /reporting -- View this message in context: http://www.nabble.com/-m2--How-to-ensure-order-of-reports--tf2582000s177.html#a7210151 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] How to define footer in site.xml
HI * Is footer supported in site.xml (like it is in Maven 1?) I do not seem to be able to find any example. Thanks Benoit -- View this message in context: http://www.nabble.com/-M2--How-to-define-%3Cfooter%3E-in-site.xml-tf2579008s177.html#a7189541 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Recommended way to generate a report with maven LF
Hi First of all, thanks for your answers. It is appreciated. I've found a quick and xml-based way which matches my environment much better. I noticed that the plugin-plugin generated some XDOC and that they were converted very nicely like in maven1. Which brings me to this question, is xdoc officialy supported? Will that change in the foreseable future? Everything seemed to have move to APT, yet-another-wiki-style stuff or the programmatic Sink stuff... Thanks Benoit Arnaud Bailly-3 wrote: Gisbert Amm [EMAIL PROTECTED] writes: I've written some documentation about that recently: http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin Always have a warm feeling being quoted :-) I updated the confluence page with the expanded sink API usage example I gave in the mail. Regards -- OQube software engineering \ génie logiciel Arnaud Bailly, Dr. \web http://www.oqube.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m2--Recommended-way-to-generate-a-report-with-maven-L-F-tf2557088s177.html#a7154489 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] QALab 0.9.1 and Maven plugin released
Paul Could you show us your POM that generates the XML for Cobertura? We're working on the M2 plugin for QALab... Thanks Benoit Benoitx wrote: Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:644) at org.apache.commons.jelly.tags.core.IncludeTag.doTag(IncludeTag.java:101) [...more...] == Dependencies: (declared in this order) !-- As required by QALab: -- artifactIdant/artifactId version1.6.4/version artifactIdjcommon/artifactId version0.9.6/version artifactIdjfreechart/artifactId version0.9.21/version groupIdnet.objectlab/groupId artifactIdqalab/artifactId version0.9.1/version artifactIdxalan/artifactId version2.7.0/version artifactIdxerces/artifactId version2.4.0/version artifactIdxercesImpl/artifactId version2.6.2/version !-- Private libraries -- (private code here) !-- Axis webservice jars -- artifactIdaxis/artifactId version1.3/version artifactIdaxis-jaxrpc
Re: [M1] QALab 0.9.1 and Maven plugin released
Paul Can you post this on the QALab Users list. We will look into it but could you confirm which JDK you are using? It is the first time we see that one... Regards Benoit Paul Balm wrote: Benoitx wrote: ObjectLab is pleased to announce the release of version 0.9.1 (slowly getting closer to v 1.0) of QALab and its Maven 1.x plugin. I'm trying to use this plug-in under Maven 1.1-beta2, to agregate stats from Cobertura and PMD, I'm getting parser errors on the XML output of pmd-raw-report.xml and cobertura.xml respectively. Because it happens on both these files, I think it's my maven set-up (the XML parser that I use e.g.), and that the PMD and Cobertura reports are fine. I can also see those when I generate maven site -- they are ok. I have the dependencies that QALab specificies in my project.xml (on http://qalab.sourceforge.net/maven/dependencies.html), but of course additionally a bunch of other stuff that my project needs, so I'm worried this might screw things up. Anyway, below this message I pasted the output with errors. I think it goes wrong 12 lines into the output that I'm showing (on the PMD XML(, and the same error two lines below that on the Cobertura XML. I also append a list of the libraries that I'm using (the dependencies from my project.xml). Any suggestions more than welcome, 'cause I'm stuck! Thanks! Paul maven cobertura pmd [...ok...] maven -e maven-qalab-plugin:report [...] maven-qalab-plugin:report: [echo] QALab Report. Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:merge: [echo] QALab Merge!... [echo] No Checkstyle file to process (/home/pbalm/dev/isoc/simbad/target/checkstyle/checkstyle-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/pmd-raw-report.xml... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] No FindBugs file to process (/home/pbalm/dev/isoc/simbad/target/findbugs-raw-report.xml). [echo] No Simian file to process (/home/pbalm/dev/isoc/simbad/target/simian-raw-report.xml). [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Line... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 [echo] QALab Merge! /home/pbalm/dev/isoc/simbad/target/docs/cobertura/coverage.xml Branch... [mergestat] org.xml.sax.SAXNotSupportedException: Feature: http://xml.org/sax/features/external-general-entities State: false [mergestat] Files: 0 Statistics:0 Tag library requested that is not present: 'qalab' in plugin: 'maven-qalab-plugin-0.9.0' maven-qalab-plugin:charts: [echo] QALab CHARTS! [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] Cobertura Chart [buildchart] java.lang.ClassNotFoundException: org/apache/xerces/parsers/SAXParser [echo] QALab SUMMARY XDOC for CHARTS! ... BUILD FAILED org.apache.commons.jelly.JellyTagException: file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:35:-1: jsl:stylesheet file:/home/pbalm/.maven/cache/maven-qalab-plugin-0.9.0/plugin-resources/qalab-chart-xdoc.jsl:89:-1: x:sort You must define an attribute called 'list' for this tag. at org.apache.commons.jelly.tags.jsl.StylesheetTag.doTag(StylesheetTag.java:127) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:704) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:668) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:644) at org.apache.commons.jelly.tags.core.IncludeTag.doTag(IncludeTag.java:101) [...more...] == Dependencies: (declared in this order) !-- As required by QALab: -- artifactIdant/artifactId version1.6.4/version artifactIdjcommon/artifactId version0.9.6/version artifactIdjfreechart/artifactId version0.9.21/version groupIdnet.objectlab/groupId artifactIdqalab/artifactId version0.9.1/version artifactIdxalan/artifactId version2.7.0/version artifactIdxerces/artifactId version2.4.0/version artifactIdxercesImpl/artifactId version2.6.2/version !-- Private libraries -- (private code here) !-- Axis webservice jars -- artifactIdaxis/artifactId version1.3/version artifactIdaxis-jaxrpc/artifactId version1.3/version artifactIdaxis-wsdl4j/artifactId version1.3/version artifactIdaxis-saaj/artifactId version1.3
[m1/2] New Lirbrary in Maven Central Repo for Date Calculations
ObjectLab is pleased to announce the release 1.0.1 in Maven Repository of Objectlab Kit for Java 1.5 Open source Date Calculators for Business and Finance. http://objectlabkit.sourceforge.net The ObjectLab Kit is released under the business friendly Apache License v2.0. It is available immediately for download via SourceForge or the Maven Central Repository (both Maven 1 and Maven 2). The homepage has some very quick examples. The Kit provides Date Calculators and comes in two flavours: - one based on pure JDK (1.5) - one based on the Joda-time library (1.3+, jdk 1.5) This library is now live in a major UK international Bank (in their Credit Derivatives department). The library is small, lightweight and thread-safe. The DateCalculator implementation is useful to any business; the other two interfaces are more specific to the financial industry. The most common function of a lot of banking or business applications is the handling of holidays and weekends, a set of standard rules are implemented to deal with days falling on a holiday. The library does not attempt to guess the 'holidays', most business will have an official list anyway, but concentrate on the date manipulation and calculations. What does it provide? Implementation of 3 interfaces - DateCalculator for all date calculation and handling of weekends or holidays. The supported algorithms are: Do Nothing, Move Forward, Move Backward, Modified Following and Modified Preceeding. The Calculators are immutable once created but they can be easily composed to take into account multiple sets of holidays. The library also supports the calculation of generic tenor dates (Spot, 1D, 1W, 2M, 3Y, etc) - PeriodCountCalculator for calculating differences between two dates in days, months or years according to some financial algorithms: ACT/360, ACT/365, ACT/ACT, CONV/30-360, CONV/30-365_ISDA, CONV/30-360_ISMA - IMMDateCalculator, to calculate the International Money Market dates (IMM Dates are 3rd Wednesday of March/June/Sept/Dec) This kit is one of the first steps in pushing the Open Source movement up the stack towards business functionalities in the financial industry. ObjectLab is not new to the open-source community having used numerous OS projects, participated in a few and sponsoring QALab (http://qalab.sourceforge.net), a tool that keep tracks over-time of the static analysis results from FindBugs, Checkstyle, PMD, Cobertura etc. We would like to thanks our friends and colleagues at for their help, reviews and suggestions. Sorry for the long email... Feel free to pass on to people who may be interested. Enjoy!! Benoit Xhenseval and Marcin Jekot -- View this message in context: http://www.nabble.com/-m1-2--New-Lirbrary-in-Maven-Central-Repo-for-Date-Calculations-tf2416716.html#a6736568 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m1/2] New Lirbrary in Maven Central Repo for Date Calculations
Jason Maven community, Please accept our apologies, we saw quite a few announcements on this list but, on second look, they seems to have plugins or so related to them, not just being an open source project in the repository. I feel that a list for announcing new projects/products arriving to the Central Repo would be good and beneficial to the users community (i know I certainly would like to know when X/Y/ have a new release or new product). We did not intend to abuse this list. Once again, our mistake. Benoit Jason van Zyl-2 wrote: On 10 Oct 06, at 1:33 PM 10 Oct 06, Jason van Zyl wrote: Do not announce products going into the central repository. This is not a free advertising forum. It's a total abuse of this list. Projects or products. Doesn't matter if it's open source or not. Jason. On 10 Oct 06, at 8:35 AM 10 Oct 06, Benoitx wrote: ObjectLab is pleased to announce the release 1.0.1 in Maven Repository of Objectlab Kit for Java 1.5 Open source Date Calculators for Business and Finance. http://objectlabkit.sourceforge.net -- View this message in context: http://www.nabble.com/-m1-2--New-Lirbrary-in-Maven-Central-Repo-for-Date-Calculations-tf2416716.html#a6742996 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Progress indicators for project management
Christophe Thanks for trying QALab, as you know from this thread, it is work-in-progress. You can create your exporter that would log things in JDBC if you want, see: http://qalab.sourceforge.net/faq.html#my-export If you write one such item, we would like to include it if it is generic. I know that the QA generation has changed dramatically between ant/maven 1 and maven2, some seems to do away without XML, which is extremelly surprising and frustrating. Could you post your settings as it may help us to better understand how QALab is used in the community. Thanks Benoit. Christophe DENEUX wrote: Hi all, I have quickly try maven-qalab-plugin this weekend and I have notice the following remarks/issues: - Unable to run maven-qalab-plugin with Findbugs (No XML report is generated by Findbugs) - I had the PMD, Checkstyle, ... configured in the reporting section to have these report in the generated website. To have the QALab reports, I must duplicate the PMD, Checkstyle, ... configuration in the buil section - AS report by Donnchadh, the history is stored in an XML file. Is it not possible to have a maven-qalab-plugin as a report plugin, that: - parse existing XML files generated by Checkstyle, PMD, ... (each of them declared in the reporting section as usually used) - merge statistics in a database through JDBC - generated graphs. Thanks, Christophe DENEUX -- Initial Header --- From : Benoit Xhenseval [EMAIL PROTECTED] To : [EMAIL PROTECTED],Maven Users List users@maven.apache.org Cc : Date : Fri, 22 Sep 2006 05:44:03 -0700 (PDT) Subject : Re: Progress indicators for project management Hi Donnchadh, First of all, thanks for trying the QALab plugin, he hope you'll find it useful. The Maven2 plugin is really more of a beta and I am pleased that we are resuming development on it shortly, your comments will be taken into account. I have launched QALab but was not involved in the Maven2 plugin. I have found Maven2 more complicated than expected when I looked at the way it does reports... i.e. no XML/XSL and using java to write some reports... You are right in saying that you question about inherting a pom setting is more of a Maven2 question and I shall let the specialists answer you. The idea of qalab storing the data in an xml was to reduce the dependencies, this XML can be put in different place; this is something that maven1 and ant users can do easily, we will ensure that it is the case for m2. One should note that it is possible to define your own exporter and therefore could decide to store the data in say a database for instance. If there is a demand, we may even provide a reference implementation for that? So, in summary: hang in there, give us a few weeks or so to sort it out and we will release QALab v1.0 with a fully defined maven2 plugin. Best regards Benoit - Original Message From: Donnchadh ? Donnabh?in [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, September 21, 2006 6:12:05 PM Subject: Re: Progress indicators for project management I tried it quicly and came across a few issues (most of which are easily dealt with). I took the example configuration on the maven2 QALab plugin page ( http://qalab.sourceforge.net/maven2/faq.html ) and simplified it to just working with PMD. I came across the following issues: * By default PMD doesn't seem to produce an XML report * When the PMD plugin is instructed to produce an XML report it puts it in target and the QALab example QALab expects it to be in target/pmd. * By Default, the PMD plugin seems to run in the report phase and the example runs in the verify phase I got it working in the end with the following configuration build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId executions execution idpmd/id phaseverify/phase goals goalpmd/goal /goals /execution /executions configuration linkXreftrue/linkXref targetJdk1.5/targetJdk formatxml/format /configuration /plugin plugin groupIdnet.objectlab/groupId artifactIdmaven-qalab-plugin/artifactId version2.1/version executions execution idpmd-merge/id phaseverify/phase goals goalmerge/goal /goals configuration handlernet.objectlab.qalab.parser.PMDStatMerge/handler inputFile ${project.build.directory}/pmd.xml /inputFile /configuration /execution execution
Re: [m1.1-rc1] javadoc does not generate anything...
I though that the issue may be related to generics and calling this invokeStatic on java.util.Arrays but this seems to work when I try at home with JDK 1.5.08 however, I'm having trouble with JDK 6-b2 May be the interface has changed or one cannot use the following jelly code: j:invokeStatic method=getAvailableLocales className=java.util.Locale var=availableLocales/ j:invokeStatic className=java.util.Arrays method=asList var=availableLocalesAsList j:arg value=${availableLocales} type=[Ljava.lang.Object;/ /j:invokeStatic I have checked the API for JDK6 and it seems to be the same... Definitely something around this asList call... Benoit Lukas Theussl-3 wrote: Do you have an internationalized site? There seems to be an issue with determining the available locales. Please post the output of running maven with the -e parameter. Thanks, -Lukas Benoit Xhenseval wrote: Hi Thanks for your replies, You both were right... the package was incorrect (thank Arnaud/Jeff). It was pointing to an old package that has been refactored... from net.objectlab.kit.common to net.objectlab.kit.datecalc.common (the error code is a bit cryptic...) I am trtying to use the dist:multiproject-bin and it looks promising but also fails on the same issue that I have with the xdoc plugin. I have done a clean install of both the 1.1.RC1 (29 Aug), and cache... Any suggestion? maven-junit-report-plugin:report: [echo] Generating the Source Xref... maven-jxr-plugin:report: [echo] [echo] Generating the Test Xref... maven-jxr-plugin:report: [echo] [echo] Generating the Task List... xdoc:init-i18n: xdoc:init: [echo] Generates the directory structure required for xdocs maven-tasklist-plugin:report: [echo] Generating tasklist ... xdoc:init-i18n: xdoc:init: [echo] Generates the directory structure required for xdocs xdoc:i18n-validation: [echo] Validation of the locale entries BUILD FAILED File.. file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-multiproject-plugin-1.5/plugin.jelly Element... maven:reactor Line.. 103 Column 9 Unable to obtain goal [site] -- file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/ plugin.jelly:666:70: j:arg [Ljava.lang.Object; Total time : 1 minutes 4 seconds Finished at : 05 September 2006 16:24:55 BST Thanks a lot Benoit. - Original Message From: Arnaud HERITIER [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org; Benoit Xhenseval [EMAIL PROTECTED] Sent: Tuesday, September 5, 2006 3:13:53 PM Subject: Re: [m1.1-rc1] javadoc does not generate anything... Do you have classes in the package net.objectlab.kit.common ? Can you try to comment the package in the pom ? You can use dist:multiproject-bin to generate a consolidated javadoc for all your projects. I don't know why this feature isn't in the javadoc plugin. Arnaud On 9/5/06, Benoit Xhenseval [EMAIL PROTECTED] wrote: Hi *, Sorry to disturb... I cannot see what is wrong with my project.xml... why is this not generating any javadoc? I am using the conventional directory structure: project |- projectA |- src |- main |- java I've run with javadoc 1.8, and I get this: [echo] sourceModifications not used. [echo] internal_javadoc_needed is false [echo] *** [echo] * No sources found. Javadoc not created ! * [echo] *** the maven.compile.src.set does point correctly to the top of my source directory. Why am I am getting this??? Any suggestion most welcomed! (Also how could I generate a CONSOLIDATED set of javadoc given 3 sub-projects) THANKS! Benoit. -- DEBUG OUTPUT: ### Debug mode is on ### == === java plugin properties === == maven.compile.encoding= [] maven.compile.src.set = [C:\project\objectlabkit\datecalc-common\src\main\java] == === docs properties=== == maven.docs.outputencoding = [ISO-8859-1] == === javadoc plugin properties === == Javadoc properties : maven.javadoc.additionalparam = [-breakiterator] maven.javadoc.extrasourcepath = [] maven.javadoc.debug = [true] maven.javadoc.doclet = [] maven.javadoc.docletpath = [] maven.javadoc.usestandardparameters = [] maven.javadoc.excludepackagenames = [] maven.javadoc.locale = [] maven.javadoc.maxmemory= [512m] maven.javadoc.overview= [] maven.javadoc.package = [] maven.javadoc.private
Re: [m1.1-rc1] javadoc does not generate anything...
Hi Arnaud, Thanks for your reply. Could somebody confirm that it is a JDK6 issue? Just maven multiproject:site or maven site should do it... Thanks Benoit Arnaud HERITIER wrote: Personnally I didn't test Maven 1.x with J2SE6. Only with 1.4 and 5. We don't yet support it (and I'm not sure we'll do it). I suppose that m2 supports it ;-) Arnaud On 9/7/06, Benoitx [EMAIL PROTECTED] wrote: I though that the issue may be related to generics and calling this invokeStatic on java.util.Arrays but this seems to work when I try at home with JDK 1.5.08 however, I'm having trouble with JDK 6-b2 May be the interface has changed or one cannot use the following jelly code: j:invokeStatic method=getAvailableLocales className=java.util.Locale var=availableLocales/ j:invokeStatic className=java.util.Arrays method=asList var=availableLocalesAsList j:arg value=${availableLocales} type=[Ljava.lang.Object;/ /j:invokeStatic I have checked the API for JDK6 and it seems to be the same... Definitely something around this asList call... Benoit Lukas Theussl-3 wrote: Do you have an internationalized site? There seems to be an issue with determining the available locales. Please post the output of running maven with the -e parameter. Thanks, -Lukas Benoit Xhenseval wrote: Hi Thanks for your replies, You both were right... the package was incorrect (thank Arnaud/Jeff). It was pointing to an old package that has been refactored... from net.objectlab.kit.common to net.objectlab.kit.datecalc.common (the error code is a bit cryptic...) I am trtying to use the dist:multiproject-bin and it looks promising but also fails on the same issue that I have with the xdoc plugin. I have done a clean install of both the 1.1.RC1 (29 Aug), and cache... Any suggestion? maven-junit-report-plugin:report: [echo] Generating the Source Xref... maven-jxr-plugin:report: [echo] [echo] Generating the Test Xref... maven-jxr-plugin:report: [echo] [echo] Generating the Task List... xdoc:init-i18n: xdoc:init: [echo] Generates the directory structure required for xdocs maven-tasklist-plugin:report: [echo] Generating tasklist ... xdoc:init-i18n: xdoc:init: [echo] Generates the directory structure required for xdocs xdoc:i18n-validation: [echo] Validation of the locale entries BUILD FAILED File.. file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-multiproject-plugin-1.5 /plugin.jelly Element... maven:reactor Line.. 103 Column 9 Unable to obtain goal [site] -- file:/C:/Documents and Settings/xhensevb/.maven/cache/maven-xdoc-plugin-1.10.1-SNAPSHOT/ plugin.jelly:666:70: j:arg [Ljava.lang.Object; Total time : 1 minutes 4 seconds Finished at : 05 September 2006 16:24:55 BST Thanks a lot Benoit. - Original Message From: Arnaud HERITIER [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org; Benoit Xhenseval [EMAIL PROTECTED] Sent: Tuesday, September 5, 2006 3:13:53 PM Subject: Re: [m1.1-rc1] javadoc does not generate anything... Do you have classes in the package net.objectlab.kit.common ? Can you try to comment the package in the pom ? You can use dist:multiproject-bin to generate a consolidated javadoc for all your projects. I don't know why this feature isn't in the javadoc plugin. Arnaud On 9/5/06, Benoit Xhenseval [EMAIL PROTECTED] wrote: Hi *, Sorry to disturb... I cannot see what is wrong with my project.xml... why is this not generating any javadoc? I am using the conventional directory structure: project |- projectA |- src |- main |- java I've run with javadoc 1.8, and I get this: [echo] sourceModifications not used. [echo] internal_javadoc_needed is false [echo] *** [echo] * No sources found. Javadoc not created ! * [echo] *** the maven.compile.src.set does point correctly to the top of my source directory. Why am I am getting this??? Any suggestion most welcomed! (Also how could I generate a CONSOLIDATED set of javadoc given 3 sub-projects) THANKS! Benoit. -- DEBUG OUTPUT: ### Debug mode is on ### == === java plugin properties === == maven.compile.encoding= [] maven.compile.src.set = [C:\project\objectlabkit\datecalc-common\src\main\java] == === docs properties=== == maven.docs.outputencoding = [ISO-8859-1] == === javadoc plugin properties === == Javadoc properties
RE: [m1] Test in sub-project depending on tests in another sub-project..
Hi Jeff! Thanks for the clear answer. Given the simplicity of the project (http://objectlabkit.sourceforge.net) I think that I'll stick with this but keep your suggestion in mind. Best regards Benoit Jeff Jensen wrote: Hi Benoit! It works, but requires the exact relative position between them and pulls in the class files vs. a jar depends. If you are happy with that, then you are done! If not, I suggest: - create a TestFramework module - put the base/common test classes from modules A and B in it (in the src/main dir structure, not src/test) - jar:install it - add dependency on TestFramework to module A and B -Original Message- From: Benoit Xhenseval [mailto:[EMAIL PROTECTED] Sent: Monday, September 04, 2006 6:51 AM To: Arnaud HERITIER; Maven Users List Subject: Re: [m1] Test in sub-project depending on tests in another sub-project... Hi Arnaud, Merci pour la reponse. I was thinking about the 2 options you mentioned... Since then I think that I have found a solution, in the sub pojects I add the classes of other sub project as resources: So for sub-project B: unitTest includes include**/*Test.java/include /includes excludes exclude**/Abstract*.java/exclude /excludes resources resource directory../sub-project-A/target/test-classes/directory filteringfalse/filtering includes include**/*.class/include /includes /resource /resources /unitTest Seems to work for me... Best regards Benoit - Original Message From: Arnaud HERITIER [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org; Benoit Xhenseval [EMAIL PROTECTED] Sent: Monday, September 4, 2006 12:39:01 PM Subject: Re: [m1] Test in sub-project depending on tests in another sub-project... I see two solutions (not really clean :-( ) : - In the sub-project-A you add your tests in the artifact (you copy the content of maven.test.dest in maven.build.dest or you set maven.test.dest = maven.build.dest). - You move your tests in another external project (sub-project-A-tests) but you have to execute them manually. I have no other idea. Arnaud On 9/4/06, Benoit Xhenseval [EMAIL PROTECTED] wrote: Hi *, I'm struggling on this one... with Maven 1.1-rcx sub-project A defines some tests in src/test (as per convention) sub-project B defines some tests in src/test (as per convention) Problem is that the tests in B extend the AbstractTests in A/src/test how could I define a dependency for the unit tests on the tests in A? At the moment, they do not compile... Any suggestion welcome... Many thanks Benoit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m1--Test-in-sub-project-depending-on-tests-in-another-sub-project...-tf2214527.html#a6152593 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [for newbie] ClearCase configuration
Has anybody found the solution? I have the clearcase-setting.xml file but where shall I put it to be taken into account by Continuum-1.0.3 Thanks Benoit -- View this message in context: http://www.nabble.com/ClearCase-configuration-tf2026205.html#a5985271 Sent from the Continuum - Users forum at Nabble.com.
M2 ChangeLog 2.0-snapshot generates NPE
Hi *, I've downloaded the 2.0-snapshot from urlhttp://people.apache.org/maven-snapshot-repository//url my POM says: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-changelog-plugin/artifactId version2.0-SNAPSHOT/version configuration typedate/type dates date implementation=java.lang.String2005-08-01/date date implementation=java.lang.String2005-09-01/date /dates dateFormat-MM-dd/dateFormat /configuration and scm: scmconnectionscm:clearcase:\\X\cc_views\X\config_spec/connection/scm Here is the exception I get: Caused by: java.lang.NullPointerException at org.apache.maven.changelog.ChangeLogReport$1.compare(ChangeLogReport.java:925) at java.util.Arrays.mergeSort(Arrays.java:1270) at java.util.Arrays.sort(Arrays.java:1210) at java.util.Collections.sort(Collections.java:159) at org.apache.maven.changelog.ChangeLogReport.doChangedSetTable(ChangeLogReport.java:919) at org.apache.maven.changelog.ChangeLogReport.doChangedSet(ChangeLogReport.java:837) at org.apache.maven.changelog.ChangeLogReport.doGenerateReport(ChangeLogReport.java:774) at org.apache.maven.changelog.ChangeLogReport.executeReport(ChangeLogReport.java:275) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73) has anyone seen this? What am I doing wrong? Am I missing some settings? many thanks Benoit -- View this message in context: http://www.nabble.com/M2-ChangeLog-2.0-snapshot-generates-NPE-tf2152355.html#a5944202 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: M2 site:stage does not copy apidocs and xref?
Any suggestion or ETA on newer site plugin from the developers? Has a JIRA been raised on this? Thanks Benoit Jan Vissers wrote: Hi, this is an issue that has been brought earlier... as things stand with maven (or at least 2.0.4 which I'm checking) the multi module / aggregated reporting sucks! Don't know whether this is going to change any time soon. This might well mean, that we're not leaving ANT - as one of the key 'selling' points of maven (reporting) isn't ready for (J2EE) use. Benoit Xhenseval wrote: Hi *, I believe that I've followed Anne's suggestions on: http://www.nabble.com/multi-module-project-site%3A-link-to-module-sites-tf1980169.html#a5433379 I call maven: mvn site:stage -DstagingDirectory=C:\fullsite However, it seems that the apidocs and xref files for the modules are not copied in the fullsite directory (or module sub-directory) \fullsite\moduleA\apidocs\index.html (ONLY file in apidocs and it is 0KB) same for xref and xref-test Should I call those differently? reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdtaglist-maven-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-pmd-plugin/artifactId configuration targetJdk1.5/targetJdk /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId /plugin /plugins /reporting Many thanks Benoit No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.1/421 - Release Date: 16-8-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/M2-site%3Astage-does-not-copy-apidocs-and-xref--tf2122285.html#a5866355 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]