Re: Java doc generation
What does ls /bin/bash say? If you get No such file or directory you need to add a symlink in /bin to your Bash in /usr/local/bin/bash. If /bin/bash is there, then most likely the script that is called got Windows line endings in it which results in a erroneous call to /bin/bash\r and the \r not visible in the error output. -Gisbert Sinduria,Anuradha wrote: Hi All, I want to do Java doc generation while doing mvn site on my UNIX Free BSD 6.2. I added following in my pom plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId configuration links linkhttp://java.sun.com/j2se/1.5.0/docs/api//link linkhttp://plexus.codehaus.org/ref/1.0-alpha-9/apidocs/link linkhttp://jakarta.apache.org/commons/dbcp/apidocs//link /links /configuration /plugin I am getting the following error [INFO] Generate JavaDocs report. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during page generation Embedded error: Error rendering Maven report: Unable to find javadoc version: Error while executing process. java.io.IOException: /bin/bash: not found [INFO] My bash is in /usr/local/bin/bash and I have sh shell inside /bin (/bin/sh) I tried below plugin also but getting same error: plugin artifactIdmaven-javadoc-plugin/artifactId reportSets reportSet iduml/id configuration docletgr.spinellis.umlgraph.doclet.UmlGraph/doclet docletArtifact groupIdumlgraph/groupId artifactIdUMLGraph/artifactId version4.2-SNAPSHOT/version /docletArtifact additionalparam-views/additionalparam destDirtarget/uml/destDir showprivate/show /configuration reports reportjavadoc/report /reports /reportSet reportSet idhtml/id configuration showprivate/show /configuration reports reportjavadoc/report /reports /reportSet /reportSets /plugin Please advice how to resolv it. Thanks and Regards, Anuradha Sinduria -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Very newbie question
Doesn't http://maven.apache.org/plugins/maven-archetype-plugin/examples/simple.html help you? Have you had a look at http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html and http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html already? -Gisbert ichasco wrote: Ok, it´s what i wanted: to create my own archetype (now i know that it is not recommended). Then, i have a new question. If i want to make a project with a structure like: root src java test testDB testUnit doc build what i have to do? Wayne Fay wrote: The question was really directed to the original poster, ichasco. I have seen other people new to Maven who seem to believe that they must create archetypes themselves manually rather than simply reusing the existing archetypes. I want to make sure that ichasco is not heading down the wrong path. People who are new to Maven generally should not be creating archetypes. Wayne On 10/15/07, Harlan Iverson [EMAIL PROTECTED] wrote: One application of it for me was a multi-project layout for an EAR with a myfaces web application, EJB3, a persistence archive, a custom login module, skeleton config files, etc. It's helpful if you create several projects using the same pattern. On 10/15/07, Wayne Fay [EMAIL PROTECTED] wrote: Just curious, why do you think you need to CREATE an archetype? Most people will simply USE an archetype that has been previously created. mvn archetype:create ... is simply the command to create a new project using an archetype. I'd be very surprised that a new user would want to create an archetype. What exactly are you hoping to do with Maven2? Wayne On 10/15/07, Harlan Iverson [EMAIL PROTECTED] wrote: An archetype is installed the same way as a normal artifact; so running 'mvn install' in the directory will do it. In case you haven't seen it, this guide to creating archetypes helped me along: http://maven.apache.org/guides/mini/guide-creating-archetypes.html Harlan On 10/15/07, ichasco [EMAIL PROTECTED] wrote: Hi all, I have just started with maven and i have some questions. I have read the guide to creating archetype and i do not understand very well it. I know that i have to create an archetype.xml, pom.xml, ... but where i have to saved all these files? in .m2? where are stored archetypes? Thanks -- View this message in context: http://www.nabble.com/Very-newbie-question-tf4628024s177.html#a13214344 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Harlan Iverson http://blog.devspan.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Harlan Iverson http://blog.devspan.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-Changes-Plugin: Unable to find the mojo ...
Dennis Lundberg wrote: Gisbert Amm wrote: Out of the blue I'm getting this error: Error getting reports from the plugin 'org.apache.maven.plugins:maven-changes-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-3-SNAPSHOT:changes-report' in the plugin 'org.apache.maven.plugins:maven-changes-plugin' Does anybody have a glue why this happens and how to work around it? -Gisbert This pops up from time to time for different plugins. The general cure is to go into your local repository and remove the folder that contains all versions for that particular plugin. This will trigger maven to download a new copy of the plugin on the next run. It usually solves the problem. Somehow the metadata in the local repo gets corrupted. You're right, that helps. Good to know that I'm not the only one facing this phenomenon. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Enterprise Application Project done in Eclipse to Maven Structure
Search the archives, eg. http://www.nabble.com/Using-Maven-with-WSAD-tf548132s177.html#a1474153 -Gisbert LukeLallu wrote: I already have an Enterprise Application Project Developed in WSAD, now I want to convert it to Maven Struture. How to do it. Its Urgent. -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build plugin without using it
[EMAIL PROTECTED] wrote: Tim Kettler [EMAIL PROTECTED] wrote on 10/05/2007 01:41:33 AM: buildplugins is for actually attaching plugins to the build lifecycle. If you just want to define common configuration (version, executions, ...) for a plugin use pluginManagement. That puts a new spin on things and simplifies my life quite a bit. Why isn't this essential tidbit mentioned on any of the plugin how-to pages, or did I just miss it? Don't just wonder. Report it in JIRA as a possible documentation enhancement. Or, even better, provide a documentation patch. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build's state in report
A failed build won't result in a complete site. In other words: All reports that exist result from sucessfull builds. What is your use case? What are you looking for? -Gisbert Martin Alejandro Villalobos wrote: Hello. Some body knows if there is some report in site plugin that include the build's state, i.e failure or sucessfull? Thanks for all and cheers. Martin. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven-Changes-Plugin: Unable to find the mojo ...
Out of the blue I'm getting this error: Error getting reports from the plugin 'org.apache.maven.plugins:maven-changes-plugin': Unable to find the mojo 'org.apache.maven.plugins:maven-changes-plugin:2.0-beta-3-SNAPSHOT:changes-report' in the plugin 'org.apache.maven.plugins:maven-changes-plugin' Does anybody have a glue why this happens and how to work around it? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: plugin classpath question
I only know the answer for 2.: StringBuilder classpath = new StringBuilder(System.getProperty(java.class.path, )); classpath.append(What-ever-you-want); System.setProperty(java.class.path, classpath.toString()); -Gisbert Guillaume Boucherie wrote: Hi all, I have questions about he classpath of maven2 plugin: 1. How the classpath of a plugin is constructed ? 2. Is it possible to change it ? 3. Is it possible to have the generated classes of a project in the classpath of a plugin ? Thanks -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build's state in report
Tomasz Pik wrote: On 10/4/07, Gisbert Amm [EMAIL PROTECTED] wrote: A failed build won't result in a complete site. In other words: All reports that exist result from sucessfull builds. hm,, i'm not sure if it's true. in such a case having a result of unit test in surefire report is useless because it will always be 'ok'. Unittest failures don't usually make the site build fail. They are listet in the surefire-report instead. However, when teh site build fails for some reason, there will only be the reports (if any) that possibly have already been generated before it did fail. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load a property file in a pom.xml
The Maven way is to use snapshots or version ranges for that. -Gisbert NiranjanG wrote: Hi, Can anyone let me know, How I can load a property file in pom.xml. For eg., in my pom.xml, I have to update the version of a dependency jar . dynamically, which will be available in a global property file. This is needed because, the component I work depends on 15 otehr componets, and I do not have any automated way to know the latest versions of the binaries published by them. I decided to have a global property file, which contains all the component's latest versions( which will be updated dynamically ,when they publish their binary, and I want update my pom automatically with the values in that file, so that I will not need to modify my pom everyday. Your suggestions will be invaluable to me. Thanks, Niranjan -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a bug (Maven needs pom to read global settings.xml)?
This one? http://jira.codehaus.org/browse/ARCHETYPE-81 -Gisbert Vanja Petreski wrote: Hello, I have Maven 2.0.7 installation on the SVN with configured settings.xml, so every developer can update changes (for example, about repo, etc..). I am using Artifactory for repository management and everything work perfectly until now. If I use, for example, mvn archetype:create -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain pom.xml, Maven stucks at update blah blah from central, where central is my Artifactory cache repo. I thought that there is a problem with Artifactory, but after an hour of experimenting I realized when I use the same command in a directory that contains pom.xml, it works. So, in the first case, Maven doesn't recognize global settings.xml!? Can somebody explain this strange behaviour or this is a bug? V -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is this a bug (Maven needs pom to read global settings.xml)?
Vote for it ... -Gisbert Vanja Petreski wrote: Yes! V On 10/1/07, Gisbert Amm [EMAIL PROTECTED] wrote: This one? http://jira.codehaus.org/browse/ARCHETYPE-81 -Gisbert Vanja Petreski wrote: Hello, I have Maven 2.0.7 installation on the SVN with configured settings.xml, so every developer can update changes (for example, about repo, etc..). I am using Artifactory for repository management and everything work perfectly until now. If I use, for example, mvn archetype:create -DgroupId=com.blah-DartifactId=modulX in a folder that doesn't contain pom.xml, Maven stucks at update blah blah from central, where central is my Artifactory cache repo. I thought that there is a problem with Artifactory, but after an hour of experimenting I realized when I use the same command in a directory that contains pom.xml, it works. So, in the first case, Maven doesn't recognize global settings.xml!? Can somebody explain this strange behaviour or this is a bug? V -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven]How can I download all the plugins file at one time?
That should work, as long as you invoke Maven with the -o (--offline) switch and do not add further external dependencies to your project. -Gisbert zhongliang zhang wrote: so,I just copy the ~\.m2\reposity directory to the offline environment,and I can use the mvn with no downloading prompt or no build_failture prompt. is it right? On 28/09/2007, Gisbert Amm [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html -Gisbert zhongliang zhang wrote: Hi,I am new to maven,I start with the maven in 5 minutes. Everything works well,but it takes too much time to download the plugins.The plugin in the Apache site are in separate directories which makes them not easy to download. When I worked at home,I can not connect to the Internet for some reason. So,Can anybody provide the full package of all the plugins that listed in the Available Plugins. thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - 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] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using a parent POM plugin config in only some child modules?
Steinar Bang wrote: Tomasz Pik [EMAIL PROTECTED]: Configure plugins in profiles in parent pom and activate profiles in child poms? This won't be automatic (I do not know if there's a way to activate profile using packaging, maybe there's?) - you'll need to add avtivation to child poms but should solve problem with storing configuration in one place. Yes, I was wondering about if profiles could be triggered by packaging, and if that was a way to go...? I had the same problem and you might find some background and suggestions in this thread: http://www.nabble.com/How-to-activate-profile-for-certain-packaging--tf4243177s177.html#a12074301 However, we endet up checking for the existence of a certain directory that our homegrown deployment plugin pulls it's code in and activating the profile when that directory does exist. That has proven the most stable approach in the current situation. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven]How can I download all the plugins file at one time?
http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html -Gisbert zhongliang zhang wrote: Hi,I am new to maven,I start with the maven in 5 minutes. Everything works well,but it takes too much time to download the plugins.The plugin in the Apache site are in separate directories which makes them not easy to download. When I worked at home,I can not connect to the Internet for some reason. So,Can anybody provide the full package of all the plugins that listed in the Available Plugins. thanks a lot. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Improving Maven Site Docs (was maven is hard)
I've recently been confused about the structure of the site myself, even though I'm no Maven beginner. I was looking for information about the Maven packager (for I already knew that the jar-, war- and other packaging plugins use the same packager and I wanted a reference manual for that). There is a section called Documentation, so I started exploring the subsections. Here in short my thoughts while exploring it: * Index (category) - might not be the right place (What does category actually mean?) * Running Maven - I've seen this before and it's only for very beginners. * User Centre - That might be the right place. * Plugin Developer Centre - I don't want to develop a plugin, thank you. * Maven Repository Centre - What's that about? The repository containing Maven or Maven repos containing some artifacts? Never mind. Will not find what I'm looking for in here anyway. * Maven Developer Centre - No, I'm no Maven developer. That's for the gurus only. * External Resources - Don't actually know what's in here. Have to investigate later on. * Wiki - maybe there is something useful in the Wiki. But it's written mainly by other users and I don't trust it too much. Had some experiences in the past where the docs in the Wiki weren't quite right or up-to-date. Also it's difficult to find anything. Rather stay on the official Maven site. So I searched the user centre for a reference about packaging configurations but didn't succeed. After that I came back to the main page and hit the link Plugins by Category below the heading Get Maven Plugins after I realized that this is documentation too and the heading is a bit misleading (you don't get the plugins from here). At least there are several packaging options described in the plugin documentation of the plugins in the section packaging types / tools, however, I still don't know if there is a complete reference manual for the packager somewhere. I hope my attempt to describe my experience with the site is of any help when you think about how to restructure it. One other comment about pages like http://maven.apache.org/users/cookbook/index.html: This for me is as annoying as some promising website showing an under construction message instead of the expected content. It would be much better if those pages wouldn't be there at all. Please bear with me. If I sound somewhat harsh sometimes it's only because of my insufficient command of the English language and not because I don't want to be polite - at the contrary. -Gisbert Brian E. Fox wrote: A common theme in the maven is hard thread is bad documentation and I'd like to explore this a little. For the sake of discussion, lets separate the plugin docs from the maven site. (Why? Because each plugin site is like it's own little world and some are good and some are bad. We can have that discussion after) I took a look at our site again. The first thing I notice is that it is mostly setup towards grabbing new users with the big Learning about Maven section. This is ok for total newbies, but quickly runs out of steam. I also took another look at the Ant site that everyone raves about. The major difference I see is the link prominently titled Manual Once you go into the manual however, it is still a little tough to drive down to what you need. You have to know what you're looking for before you can find it. I don't think the Ant manual is all too different from this page: http://maven.apache.org/guides/index.html The thing I'd like to know is what is missing from this list that should be there? I think there is some potential to be gained from taking all those docs and arranging them in a more cohesive structure, but I do think that lots of information is there. Unfortunately we aren't all great technical writers, nor were the docs written as a book. This is where the BBWM and Sonatype books come in handy. They are meant as an end to end resource and where done with some Tech Writing help (I'm assuming here). Lets list some positive improvements that can be made to the existing Maven site in this thread. Thanks, Brian -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why Maven is Hard?
Dennis Lundberg wrote: Don't let the fact that you're not a native English speaker stop you from contributing to the documentation. I'm not a native English speaker myself and started out here at the Maven project by improving the documentation. Reading your mails on this list, I can say that your English skills are good enough for writing Maven documentation in English ;-) If you really think so ... I did not dare ... O.k., I'll try it. I assume the current online docs are for the version 2.0.7 of Maven and I should create patches using that branch. Is that right? I hope the committers are proofreading my stuff carefully. BTW (in case anyone got a different impression): I consider Maven an outstanding build tool indeed. It's standardization of the build process, it's dependency management and the numerous reports are of great value for enterprise development. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why Maven is Hard?
Gisbert Amm wrote: O.k., I'll try it. I assume the current online docs are for the version 2.0.7 of Maven and I should create patches using that branch. Just immediately after that posting I found out that the maintainance branch obviously is maven-2.0.x Never mind. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem setting up servlet and jsp api dependencies as provided scope
Tim Kettler wrote: thebugslayer schrieb: 1. The archetype:create plugin generate webapp that has web descriptor(web.xml) set to version 2.3!!! big nono if you want EL stuff to work. Would be nice to upgrade to latest, or at least 2.4 You should file a request for it in jira [1]. I just did it: http://jira.codehaus.org/browse/ARCHETYPE-106 (started with it before your posting came in). @thebugslayer: please complete the report if you want and vote for it. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ejb3-plugin: no valid version could be found? (was: Just a quick one..)
Please spend a little more thoughts when choosing a subject line. Just a quick one.. is telling nothing about your question at all. -Gisbert chumbobumbo wrote: Guys, I wonder what am I doing wrong here ;-) I have a multiproject set up (one of them being 'package' ebj3) yet when I try to mvn install I get this: [INFO] The plugin 'org.apache.maven.plugins:maven-ejb3-plugin' does not exist or no valid version could be found Any ideas are greatly appreciated. Chumbo -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why Maven is Hard?
Michael McCallum wrote: with a few subtle exceptions related to bugs that are fixed in 2.0.7 every question i've been asked in regard to using maven2 has been found in the documentation in under 5 minutes That might be the case for the questions you came across. The mere traffic on this list proves that there are indeed loads of questions the documentation doesn't answer. Also this kind of thread about how improvable the documentation is occurs frequently on this list. The last big attempt to make the docs better has AFAIK been this one: http://www.nabble.com/Maven-2.x-documentation-tf382504s177.html#a1055690 Possibly that sort of campaign should be done on a regular base or, even better, Maven should have a technical writer who cares about documentation issues. I'm aware of the fact that Maven is a open source project, however, there are businesses built around it (among other tools) that might have an interest in better docs and less rant on the mailing list. Just my 2 cents (I'm no native English speaker and therefore unfortunately can't really help with this kind of task). -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there anybody caring for bugs in the Maven 2.x Help Plugin?
Is there anybody caring for bugs in the Maven 2.x Help Plugin? Especially http://jira.codehaus.org/browse/MPH-16 (inherited profiles are not shown when calling help:active-profiles) has been opened since June 2006 and is still unassigned. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: scp upload verbosity
Have you tried mvn deploy -q already? -Gisbert Martin Pruefer wrote: Hi, is there any way to make the deploy plugin being less verbose when uploading via scp to a server? I'm building my project with 'mvn deploy' and for each artifact the upload progress is being logged in a very verbose way like this: ---snip--- [...] Uploading: scp://my.snapshotserver.com/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar 4/49K 8/49K 12/49K 16/49K 20/49K 24/49K 28/49K 32/49K 36/49K 40/49K 44/49K 48/49K 49/49K 49K uploaded [...] ---snip--- When having many projects in a multi-module build, and artifact size being quite large, then quite a great part of the build log consists only of upload progress messages... I did not find anything in documentation/mvn wiki/users mailinglist on this topic. I use mvn 2.0.7. Any hints appreciated, thx! Martin -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven jdk1.6 classpath
I think you rather need to add jaxws2.1 as a dependency to your POM. -Gisbert priyasubu wrote: Hi All I am using hte maven compiler plugin set to jdk1.6 in my pom.xml Now the thing is we want to use jaxws2.1 so we created a endorsed dir in the lb folder of jdk1.6 but when i try to do a maven compile I get an error since it does not get these jars in its classpath Any help would be appreciated Cheers Priya -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: delete existing content before deploying site with mvn site-deploy?
Does nobody know the answer? -Gisbert Gisbert Amm wrote: I want to delete the old version of the reports before I deploy the new version. In Maven1, there was a property for this. How can I achieve that with Maven2? I found http://www.nabble.com/delete-existing-content-before-deploying-site-with-mvn-site-deploy--tf2915314s177.html#a8146508 in the archives, however, this has never been answered. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
delete existing content before deploying site with mvn site-deploy?
I want to delete the old version of the reports before I deploy the new version. In Maven1, there was a property for this. How can I achieve that with Maven2? I found http://www.nabble.com/delete-existing-content-before-deploying-site-with-mvn-site-deploy--tf2915314s177.html#a8146508 in the archives, however, this has never been answered. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: annotations are not supported in -source 1.3
See also http://jira.codehaus.org/browse/MCOMPILER-57 -Gisbert Kyle.Bober wrote: I have been using Maven for quite sometime and this is the first JDK6 project POM I have created. I am running into a compilation issue using the compiler:compile goal... This is what I get annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @WebService I have my JAVA_HOME env variable set to point to JDK6 and I can compile the java file fine using javac command but when I try using mvn compile I receive the above error... I feel like a goof not being able to figure this one out. Is there a way to set in the Maven POM file the JDK version to compile against??? Thanks for anyone's help in advance... -Kyle -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: annotations are not supported in -source 1.3
Just for the reference: http://jira.codehaus.org/browse/MCOMPILER-57 -Gisbert Mathias P.W Nilsson wrote: I get this error message when I run mvn compile annotations are not supported in -source 1.3 (try -source 1.5 to enable annotations) How is that? When I check java -version I get java version 1.5.0_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing) Why can't I compile? -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does Maven2 by default generate Java 1.1 byte code?
Wayne Fay wrote: This has been discussed several times on this list. Sorry, I haven't found these discussions, neihter by searching for compiler defaults nor by searching for byte code [version] IMO, the default compilation target being 1.1 (or another hard-defined version) meets the rule of least surprise. You can argue that you don't like 1.1 and you'd prefer 1.3 or even 1.5 but that is another discussion. In contrast, the rule of most surprise would be my build changes when I change my JDK or my build changes when I build things on different machines. This is the absolute worst thing you can run into when trying to standardize and control your build process. I disagree on that. For me it is not surprising at all that my build changes when I use a different compiler. At the contrary, under certain cirumstances I'd expect this and would be surprised if the build (or the result) would not change. When the build produces the same results in different environments, this can lead to hard-to-find problems later on. I still think it would be better if the Maven compiler would produce byte code matching the version of the JDK Maven is running with. That's what I expect when I do a javac call and I don't see why Maven should silently change this behaviour. While this is not such a big issue (any JVM equal to or greater than 1.1 can indeed exectute JVM 1.1 byte code and the cases where real problems occur might be rare) the source=1.3 default really surprises the user. When I create a new project and build it on Maven with a 1.5 JDK expecting Java 5 features to work, I get error messages like generics are not supported in -source 1.3 and do not know where that comes from. At least that is not very user friendly and I suppose Maven wants to be user friendly and easy to use. If you want to target a specific JDK, then simply add the compiler configuration in your poms. If you feel this has not been documented sufficiently, I did not say that *this* is not documented sufficiently, I did say that the defaults aren't documented at all. then post a RFE in Jira and someone will add some text to the proper page(s) on the site. Done. http://jira.codehaus.org/browse/MCOMPILER-57 -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javac: invalid source release: 1.4.2
Hi list, when I try to compile using the following settings plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.4.2/source target1.4.2/target /configuration /plugin I get this error message: Failure executing javac, but could not parse the error: javac: invalid source release: 1.4.2 When I replace 1.4.2 with 1.4 it compiles. Isn't it possible to specifiy the minor version of the JVM to compile for? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-clover-plugin: How to Filter logging statements
In the Clover documentation at http://cenqua.com/clover/doc/adv/contexts.html is described how to filter logging statements: clover-setup ... statementContext name=log regexp=^LOG\..* statementContext name=iflog regexp=^if \(LOG\.is.* ... /clover-setup However, from http://maven.apache.org/plugins/maven-clover-plugin/usage.html#Using%20block%20contexts configuration contextFilterstry,static/contextFilters /configuration I cannot really find out how to do that with the maven-clover-plugin. Can someone please help me? Thank you in advance. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-clover-plugin: How to Filter logging statements
Just found http://jira.codehaus.org/browse/MCLOVER-54 Never mind. -Gisbert Gisbert Amm wrote: In the Clover documentation at http://cenqua.com/clover/doc/adv/contexts.html is described how to filter logging statements: clover-setup ... statementContext name=log regexp=^LOG\..* statementContext name=iflog regexp=^if \(LOG\.is.* ... /clover-setup However, from http://maven.apache.org/plugins/maven-clover-plugin/usage.html#Using%20block%20contexts configuration contextFilterstry,static/contextFilters /configuration I cannot really find out how to do that with the maven-clover-plugin. Can someone please help me? Thank you in advance. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why does Maven2 by default generate Java 1.1 byte code?
Searching for version issues, I had a closer look at the *.class files generated by Maven2 with the default compiler settings and found that the first bytes of them are cafe babe 0003 002D ..., which is byte code version 45.3 = Java 1.1. First I was believing that I had this (target 1.1) configured somewhere by accident. However, I didn't find any such configuration, therefore I dug into the plexus-compiler source and found the following in plexus-site/plexus-components/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java: // TODO: this could be much improved if ( StringUtils.isEmpty( config.getTargetVersion() ) ) { // Required, or it defaults to the target of your JDK (eg 1.5) args.add( -target ); args.add( 1.1 ); } else { args.add( -target ); args.add( config.getTargetVersion() ); } if ( !suppressSource( config ) StringUtils.isEmpty( config.getSourceVersion() ) ) { // If omitted, later JDKs complain about a 1.1 target args.add( -source ); args.add( 1.3 ); } Is there any particular reason why target is set to 1.1 here? IMHO, it breaks the rule of least surprise for I am certainly expecting that the generated byte code by default has the version of the JDK I'm using the compiler of. The comment Required, or it defaults to the target of your JDK doesn't give any reason. Does anybody know, why this default is set? At least it should be mentioned on http://maven.apache.org/plugins/maven-compiler-plugin/howto.html to make it obvious to users. Otherwise people might have problems and need a long time to find out what's going on (see http://www.nabble.com/Odd-Compilation-Issue-tf1566644s177.html#a4287495 for an example). Regards, Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to activate profile for certain packaging?
John Casey schrieb: Unfortunately, Maven 2.0.x doesn't support that particular type of profile activation. We're working on a feature in the trunk (2.1-SNAPSHOT, currently) that would allow you to bring in custom profile activators via build extensions, however. A custom activator could give you an avenue for this sort of profile activation...but it's still not available in a released version of Maven. That's good news. For the moment, I use the following workaround, inspired by the sentence Profiles listed in the activeProfiles tag would be activated by default everytime a project use it. on http://maven.apache.org/guides/introduction/introduction-to-profiles.html: 1) List my profile in activeProfiles in the global settings.xml 2) Use that profile only in the projects that build a war. These projects are generated from an archetype anyway, so I got everthing under perfect control. Thank you, -Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to activate profile for certain packaging?
Michael Meyer schrieb: Hi, does this work? activation property nameproject.packaging/name valuewar/value /property /activation Unfortunately not. I'll describe my problem more generally instead of asking how to fix my obviously wrong approach: I need to execute a specific, home grown deployment preparation plugin only for projects that produce a war (packagingwar/packaging). How can I achieve that? My first thought was to use a profile. However, that does not work because a profile cannot be activated throught POM entries like packagingwar/packaging. I don't want to set an extra property for that either since all information I need is already covered in the packaging element and doesn't need to be duplicated. How do others implement conditional calls of certain plugins? How is the Maven2 way to do that? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any way to use legacy layout for local repository ?
Max Bowsher wrote: nicolas de loof wrote: Hello Lot's of my old projects use maven1, and new one start with maven2. To avoid downloading multiple copy of same jars, I'd like to share the local repository between m1 and m2. Is there any way to make maven2 use legacy repository layout ? No. I believe one of the reasons is because Maven2 metadata is not storable in the legacy layout. Max. ? We use M1 Repos with M2 successfully by specifying layoutlegacy/layout in the repository section. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to activate profile for certain packaging?
I want to activate a profile for the packaging type war. This is what I've tried without success: activation property namepom.packaging/name valuewar/value /property /activation How can I achieve that? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Julia Vilke/Moscow/Canon/FI is out of the office.
Dear list administrators, is it possible to filter out any messages with subject lines containing out of the office or out of office? -Gisbert [EMAIL PROTECTED] wrote: I will be out of the office starting 16.05.2007 and will not return until 08.01.2008. I'm on maternity leave till January 2008. In case of Canon Consumable business, please contact Mikhail Popov, in case of Paper business - Maria Bondarenko. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
List of all dependencies as text on console?
Hi list, I found that I can generate a report listing all the project's dependencies with mvn project-info-reports:dependencies (http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html) Is there a possibility to have this dependency list wirtten to the console instead of generating a HTML file? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of all dependencies as text on console?
Thanks. However, it doesn't work. Am I doing something wrong? [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-dependency-plugin Version: 2.0-alpha-5-SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-dependency-plugin:pom:2.0-alpha-5-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) -Gisbert Michael Meyer wrote: Hi you can try: mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree Cheers, michael http://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html Gisbert Amm wrote: Hi list, I found that I can generate a report listing all the project's dependencies with mvn project-info-reports:dependencies (http://maven.apache.org/plugins/maven-project-info-reports-plugin/plugin-info.html) Is there a possibility to have this dependency list wirtten to the console instead of generating a HTML file? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of all dependencies as text on console?
Great, thank you!!! -Gisbert Mark Hobson wrote: On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote: Hi, try adding the following repository to your pom: http://people.apache.org/maven-snapshot-repository/ I just checked. It's not on repo1.maven.org Yep, 2.0-alpha-5 is not released yet, but should be shortly. In the meantime, you can use dependency:resolve to output the list of dependencies for a project. See: http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: List of all dependencies as text on console?
That's very true and there are tools like grep, sed, awk and the like to make ugly text beautiful ,) However, for the moment I won't re-implement the tree view of the maven-dependency-plugin as a shell script and rather use the plugin itself to get it ;) Thanks! -Gisbert Wayne Fay wrote: If you don't mind a bit of an ugly text tree, you can also just use mvn -X... which will provide, among other things, an ugly text tree of your dependencies and their relationships. ;-) But the tree provided by m-d-p is much nicer. Wayne On 7/20/07, Gisbert Amm [EMAIL PROTECTED] wrote: Great, thank you!!! -Gisbert Mark Hobson wrote: On 20/07/07, Michael Meyer [EMAIL PROTECTED] wrote: Hi, try adding the following repository to your pom: http://people.apache.org/maven-snapshot-repository/ I just checked. It's not on repo1.maven.org Yep, 2.0-alpha-5 is not released yet, but should be shortly. In the meantime, you can use dependency:resolve to output the list of dependencies for a project. See: http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - 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] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [maven2][svn] How to handle target directories? maven clean?
I usually set svn:ignore for the whole target directory and do not include it into SVN for it is generated content. -Gisbert Jan Torben Heuer wrote: Hi, How should I handle the target directories? Normally I include them in subversion, but not the content. The problem ist, that a maven clean cleans the whole directory including the .svn directory, which breaks subversion. How do you handle this? Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
Thank you very much. That is exactly the information I was looking for. Why wasn't it possible to find that URL in the Maven docs (e.g. via the page where the broken link promises a Javadoc reference for these classes)? I tried really hard ... -Gisbert Greg Thompson wrote: It's also usually helpful to point people toward resources that might help them decide whether or not they need to take this last-resort (oops, a smarmy response from me). I suggest that anyone interested in learning how to tweak their JAR manifests take a look at the source for MavenArchiveConfiguration and ManifestConfiguration in: http://svn.apache.org/viewvc/maven/shared/tags/maven-archiver-2.2/src/main/java/org/apache/maven/archiver/ -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Manifest customization: Where to find the docs?
Wayne Fay wrote: What are you currently getting out of Maven? As described on the example pages from the Maven docs I refered to: A manifest file with data meeting the Main Attributes specification on http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Manifest%20Specification in it. So far, so good. What do you want to get out of Maven? For some particular reason, we need to provide some more data within individual sections of the manifest files of our internal applications. E.g. the dependencies, the developers, the Cruisecontrol build label ... stuff like that. For Maven 1 we had our own plugin creating a manifest file with all the needed information in it. Since we're finally migrating to Maven 2 now, I'm looking for possibilities to avoid the need for an extra plugin this time. What have you tried which did not work as you required? 1) To get the developers listed within the manifest, I tried this: manifestEntries ... developers${pom.developers}/developers ... /manifestEntries The resulting - not very useful - entry in the manifest file looks like this: developers: [EMAIL PROTECTED], org.apache.mave [EMAIL PROTECTED], [EMAIL PROTECTED] What I would have expected is simply a list of the developers in a format like the following, possibly within an own section called developers: developer.id=name developer.id=name ... For me that feels naturally: When I specifiy a list node of the POM as a manifest entry, I'd expect the respective list in the resulting manifest file within an own section labelled by the list header (the surrounding XML element). 2) As I said, we need to get the dependencies listed in an individual section of the manifest file. When I add dependencies${pom.dependencies}/dependencies to my configuration I get the following result in the manifest file: dependencies: [Dependency {groupId=jstl, artifactId=jstl, version=1.1. 2, type=jar}, Dependency {groupId=jspapi, artifactId=jsp-api, version =2.0, type=jar}, Dependency {groupId=servletapi, artifactId=servlet-a pi, version=2.4, type=jar}, Dependency {groupId=commons-lang, artifac tId=commons-lang, version=2.1, type=jar}, Dependency {groupId=commons -httpclient, artifactId=commons-httpclient, version=3.0.1, type=jar}, Dependency {groupId=commons-codec, artifactId=commons-codec, version =1.3, type=jar}, Dependency {groupId=commons-io, artifactId=commons-i o, version=1.0, type=jar}, Dependency {groupId=commons.monitoring, ar tifactId=commons-monitoring, version=1.0.0, type=jar}, Dependency {gr oupId=cglib, artifactId=cglib-full, version=2.0.2, type=jar}, Depende ncy {groupId=springframework, artifactId=spring-core, version=1.2.7,· type=jar}, Dependency {groupId=springframework, artifactId=spring-moc k, version=1.2.7, type=jar}] This format might meet the specification, however, it is hard to read from within an application (at least it needs extra code to parse it). Here also applies what I've said above about lists. Another interesting question in this case: Is it possible to get the complete dependency graph written into the manifest file? ATM, only the dependencies configured in the pom.xml are considered. The final work-around is simply to write your own static Manifest file and tell Maven where it is, and it will use it instead of generating one itself. But this is a last-resort kind of thing, usually. That's possibly where I will end up (like with our existing Maven 1 solution). However, as I already stated, I try to avoid that by any means. Thanks for your patience. -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem compiling files
How? aemm wrote: problem solved :) aemm wrote: hi! I have a strange problem while i'm working with my new maven app. I'll try to explain it: I move the sorces (.java) from an old web project to the new one Maven project. All was correct. All the source files seems to compile and generate the corresponding .class files. But it isn't true at all. When I look at the compiled sources, I saw that some properties added from the new version of my source code doesn't appear in the compiled code. For example, in the first version I have 3 properties in my class package com.package; public class MyClass { private String propOne; private String propTwo; private String propThree; // getters and setters . } and the .class file description seems like that: public class com.package.MyClass { private java.lang.String propOne; private java.lang.String propTwo; private java.lang.String propThree; // getters and setters } All is correct here. Now I move the new MyClass.java from the old project to the new one and the java source now it's like that: package com.package; public class MyClass { private String propOne; private String propTwo; private String propThree; private String newProp; // getters and setters . } but the .class source description REMAINS IDENTICALLY! The compiler seems to be blind in front of all the modifications I do to the new code. I'm a little bit desperate in front of that. Can anyone help me, please?? Thanks in advance. -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Manifest customization: Where to find the docs?
Hi list, I want to know what is possible in manifest customization. I found examples on http://maven.apache.org/guides/mini/guide-manifest.html and http://maven.apache.org/plugins/maven-jar-plugin/examples/manifest-customization.html This latter page says For more info see the MavenArchiveConfiguration Javadocs with a hyperlink to http://maven.apache.org/ref/current/maven-archiver/apidocs/org/apache/maven/archiver/MavenArchiveConfiguration.html However, that page cannot be found. I also found a (rather dated) posting at http://www.nabble.com/-M2--Manifest.mf-tf149023s177.html#a413884 where Brett Porter gave the URL of the source: http://svn.apache.org/repos/asf/maven/components/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/ManifestConfiguration.java That file isn't there anymore; there isn't even a component named maven-archiver in http://svn.apache.org/repos/asf/maven/components/trunk/ So where can I find the source or some javadoc covering manifest customization? -Gisbert -- Gisbert Amm Softwareentwickler Infrastruktur Telefon: (0721) 91374 - 4224 Telefax: (0721) 91374 - 2740 E-Mail: [EMAIL PROTECTED] Internet: www.1und1.de 11 Internet AG Elgendorfer Strasse 57 56410 Montabaur Amtsgericht Montabaur HRB 6484 Vorstand: Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger (Vorsitzender), Matthias Greve, Henning Ahlert, Norbert Lang, Achim Weiss, Robert Hoffmann, Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m 1.1] UMLGraph: Not generating files into target/docs/apidocs
Thanks for the hint, but that would be a bit over the top, since we've got about 200 projects. We use one central installation of Maven instead and if anyone doesn't get the newest version of some plugin automatically, simply deleting $HOME/.maven/cache usually fixes that. -Gisbert Arnaud HERITIER wrote: No problem. Don't forget that if you want to share it with several developers, you can add it in your project as a dependency. You'll be sure that every developer use this version of the javadoc plugin, even if it is not installed locally Arnaud On 1/11/07, Gisbert Amm [EMAIL PROTECTED] wrote: Silly me! You were right. It's all working well with version 1.8. Thanks a lot. -Gisbert Arnaud HERITIER wrote: Your problem is certainly related to MPJAVADOC-56 which is fixed in the version 1.8 Can you try to update this plugin ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm using maven-javadoc-plugin-1.7 -Gisbert Arnaud HERITIER wrote: Which version of the javadoc plugin are you using ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm trying to run UMLGraph with Maven 1.1 and it does work, BUT: The generated files are always written into the root directory of the project instead of target/docs/apidocs. This is my commandline: maven site:generate -Dmaven.build.dir=report_target -Dmaven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc - Dmaven.javadoc.docletpath=/home/jbuild/.maven/repository/gr.spinellis/jars/UmlGraph-4.4.jar ... (left out the additional params for the sake of clarity) I've already tried setting maven.javadoc.usestandardparameters=true and even maven.javadoc.destdir=report_target/docs/apidocs, but both doesn't help. I found the description for Maven 2 on http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph, but there is obviously nothing equivalent for Maven 1. Does anybody use UMLGraph successfully with Maven 1.1 and can give me some advice? Is my problem probably connnected with http://jira.codehaus.org/browse/MPJAVADOC-56? Thanks in advance for your help. -Gisbert -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8258632 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8262479 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8274262 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8293163 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: [m 1.1] UMLGraph: Not generating files into target/docs/apidocs
Silly me! You were right. It's all working well with version 1.8. Thanks a lot. -Gisbert Arnaud HERITIER wrote: Your problem is certainly related to MPJAVADOC-56 which is fixed in the version 1.8 Can you try to update this plugin ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm using maven-javadoc-plugin-1.7 -Gisbert Arnaud HERITIER wrote: Which version of the javadoc plugin are you using ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm trying to run UMLGraph with Maven 1.1 and it does work, BUT: The generated files are always written into the root directory of the project instead of target/docs/apidocs. This is my commandline: maven site:generate -Dmaven.build.dir=report_target -Dmaven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc - Dmaven.javadoc.docletpath=/home/jbuild/.maven/repository/gr.spinellis/jars/UmlGraph-4.4.jar ... (left out the additional params for the sake of clarity) I've already tried setting maven.javadoc.usestandardparameters=true and even maven.javadoc.destdir=report_target/docs/apidocs, but both doesn't help. I found the description for Maven 2 on http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph, but there is obviously nothing equivalent for Maven 1. Does anybody use UMLGraph successfully with Maven 1.1 and can give me some advice? Is my problem probably connnected with http://jira.codehaus.org/browse/MPJAVADOC-56? Thanks in advance for your help. -Gisbert -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8258632 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8262479 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8274262 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m 1.1] UMLGraph: Not generating files into target/docs/apidocs
I'm trying to run UMLGraph with Maven 1.1 and it does work, BUT: The generated files are always written into the root directory of the project instead of target/docs/apidocs. This is my commandline: maven site:generate -Dmaven.build.dir=report_target -Dmaven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc -Dmaven.javadoc.docletpath=/home/jbuild/.maven/repository/gr.spinellis/jars/UmlGraph-4.4.jar ... (left out the additional params for the sake of clarity) I've already tried setting maven.javadoc.usestandardparameters=true and even maven.javadoc.destdir=report_target/docs/apidocs, but both doesn't help. I found the description for Maven 2 on http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph, but there is obviously nothing equivalent for Maven 1. Does anybody use UMLGraph successfully with Maven 1.1 and can give me some advice? Is my problem probably connnected with http://jira.codehaus.org/browse/MPJAVADOC-56? Thanks in advance for your help. -Gisbert -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8258632 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: [m 1.1] UMLGraph: Not generating files into target/docs/apidocs
I'm using maven-javadoc-plugin-1.7 -Gisbert Arnaud HERITIER wrote: Which version of the javadoc plugin are you using ? Arnaud On 1/10/07, Gisbert Amm [EMAIL PROTECTED] wrote: I'm trying to run UMLGraph with Maven 1.1 and it does work, BUT: The generated files are always written into the root directory of the project instead of target/docs/apidocs. This is my commandline: maven site:generate -Dmaven.build.dir=report_target -Dmaven.javadoc.doclet=gr.spinellis.umlgraph.doclet.UmlGraphDoc - Dmaven.javadoc.docletpath=/home/jbuild/.maven/repository/gr.spinellis/jars/UmlGraph-4.4.jar ... (left out the additional params for the sake of clarity) I've already tried setting maven.javadoc.usestandardparameters=true and even maven.javadoc.destdir=report_target/docs/apidocs, but both doesn't help. I found the description for Maven 2 on http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph, but there is obviously nothing equivalent for Maven 1. Does anybody use UMLGraph successfully with Maven 1.1 and can give me some advice? Is my problem probably connnected with http://jira.codehaus.org/browse/MPJAVADOC-56? Thanks in advance for your help. -Gisbert -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8258632 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-m-1.1--UMLGraph%3A-Not-generating-files-into-target-docs-apidocs-tf2952795s177.html#a8262479 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: How to continuous integrate Maven2 projects?
Dan Tran schrieb: not why you sent it twice within an hour best to ping cruise control list. That's what he did in parallel and also twice ;) However, the double sending of the posting apparently happened by accident, not on purpose. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] How to continuous integrate Maven2 projects?
Mike Clark recommends to write a delegating build script that does the initial checkout, see: http://www.pragmaticprogrammer.com/starter_kit/au/scheduled.pdf I strongly recommend to buy the whole book! -Gisbert Amm jiangshachina schrieb: Hi guys, I'm using CruiseControl 2.5 to continuous integrate Maven2 projects. I'm blocked by the strategy of continuous integration. For example, I have a Web application project and a pom.xml. The POM has set scm element and maven-scm-plugin for CVS. I set the following scripts to CC config.xml modificationset quietperiod=30 cvs cvsroot=${cvsroot} module=${module}/ /modificationset and cvsroot=:pserver:name:[EMAIL PROTECTED]:port:repository schedule interval=180 maven2 mvnscript=E:/apache-maven-2.0.4/bin/mvn.bat pomfile=${checkoutdir}/${project.name}/${moduld}/pom.xml goal=scm:checkout clean package / /schedule I have not bootstrappers element. But command mvn scm:scheckout would checkout files to WebProject/target/checkout, but update the files in WebProject root. If I changed checkoutDirectory to .(not target/checkout), CC reported that cann't remove WebProject root directory. I think my strategy for checkouting from CVS is wrong. How to resolve the problem? Thanks in advance! a cup of Java, cheers! Sha Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven rant
Wendy Smoak wrote: Any thoughts on what a menu link on each plugin site might be called? For example, I'm planning to link Maven Javadoc Plugin http://maven.apache.org/plugins/maven-javadoc-plugin to its wiki page http://docs.codehaus.org/display/MAVENUSER/Javadoc+Plugin Just Wiki seems insufficient (especially since there's already a Wiki link on the main Maven site that points to the top of the MAVENUSER space.) Something that refers to MAVENUSER in the link? Docs, contributed by Maven users, but somehow shorter. User contributed docs? User added docs? -Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JExcelAPI in Repository: 2.4.2. Latest Version: 2.6.2
AFAIK, you have to file a JIRA against MAVENUPLOAD. -Gisbert Subhash Chandran wrote: I have done this before: filing a bug for newer version of a library. But I do not remember the procedure now, and I am not able to find the document describing how to do this. If anybody could get this component updated, it would be helpful: http://www.ibiblio.org/maven2/jexcelapi/jxl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven rant
on questions). Why not take the Merger book as a starting point? 2) Update documentation with every release. An undocumented feature is an unexisting feature. Thomas On 11/2/06, Adam Hardy [EMAIL PROTECTED] wrote: Wendy Smoak on 02/11/06 22:34, wrote: On 11/2/06, Sebastien Brunot [EMAIL PROTECTED] wrote: What I meant by it was the comment mechanism. Right... it doesn't exist yet, we need to design it. The comment mechanism can be a wiki where the public can only add at the bottom of the page, and the contributors are the ones who sort out the wheat from the chaff occasionally to enhance each page from its comments. Earlier, I asked, Any ideas on how to present that as an option? It's done at mysql[1], php and someone said Hibernate and I think Drupal. But my quick investigation there didn't show anything. Check out mysql though. Perhaps their documentation publishing framework is OS. What would the menu link be called? How should the pages on the wiki be organized? I think the whole maven documentation website should be wiki-commentated (is that the correct verb here??) So each plugin remains as it is except the wiki-commentary can be appended to the bottom of every page. I think that any plugin that makes it onto repo.maven.org should get its docs site on the website too, at least for the releases. regards Adam [1] http://dev.mysql.com/doc/refman/5.0/en/linux-rpm.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Recommended way to generate a report with maven LF
I've written some documentation about that recently: http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin Feel free to add your experiences. -Gisbert Arnaud Bailly wrote: Benoit Xhenseval [EMAIL PROTECTED] writes: hI * What would be the recommended way to generate a report that fits in the Maven 2 site? Do you mean project's documentation or automatic plugin report ? In the former case, you can use format APT that is documented on maven sites. This is a wiki like format easier to handle than xdoc. What is the recommended way? Is there any good example? You can look at the source code of any report plugin. To speed up things a bit, here is a sample I have made for custom plugin (without java verbosity): /** * A maven 2.0 plugin for generating images of the automata in a FIDL * descriptor. This plugin is used in the codesite/code phase to generate * HTML pages describing the specifications of each automaton in a given set of * files. * * * @author nono * @goal fidl-graph * @phase site */ public class GraphGeneratorMojo extends AbstractMavenReport { /** * iMaven Internal/i: The Doxia Site Renderer. * * @component */ private Renderer siteRenderer; /** * iMaven Internal/i: The Project descriptor. * @parameter expression=${project} * @required * @readonly */ private MavenProject project; /* * (non-Javadoc) * * @see org.apache.maven.reporting.AbstractMavenReport#getOutputDirectory() */ protected String getOutputDirectory() { return outputDirectory.getAbsolutePath(); } /** * @return Returns the siteRenderer. */ public Renderer getSiteRenderer() { return siteRenderer; } protected MavenProject getProject() { return project; } protected void executeReport(Locale arg0) throws MavenReportException { Sink sink = getSink(); /* write */ sink.head(); sink.title(); sink.text(FIDL graph report); sink.title_(); sink.head_(); sink.body(); sink.section1(); sink.sectionTitle1(); sink.text(FIDL automata index); sink.sectionTitle1_(); sink.lineBreak(); sink.lineBreak(); sink .text(List of behavioral elements with link to graphical representation of FIDL automata.); sink.lineBreak(); makeLinks(sink); sink.section1_(); sink.body_(); sink.flush(); sink.close(); } public String getOutputName() { return fidl/index; } public String getName(Locale arg0) { return FIDL Graph report; } public String getDescription(Locale arg0) { return Generate graph and HTML summary for FIDL specification; } /** * @param outputDirectory * The outputDirectory to set. */ public void setOutputDirectory(File outputDirectory) { this.outputDirectory = outputDirectory; } /** * @param siteRenderer * The siteRenderer to set. */ public void setSiteRenderer(Renderer siteRenderer) { this.siteRenderer = siteRenderer; } /** * For testing purpose only. * @param project The project to set. */ public void setProject(MavenProject project) { this.project = project; } } Actually, you use an abstract output format (sink). Where would it be documented? Unfortunately, nowhere I am aware of. HTH - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: looking for a repository with doxia-maven-plugin?
What do you mean by playing with doxia-maven-plugin? Is http://svn.apache.org/repos/asf/maven/doxia probably wat you are looking for? -Gisbert Martin Ahrer wrote: I'd like to start playing with doxia-maven-plugin. Is there any public repository hosting the required maven plugins? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Plugins for reporting
Open http://maven.apache.org/plugins/index.html and search for report. -Gisbert Morgovsky, Alexander (US - Glen Mills) wrote: Hi. What are all the available maven plugins which can be used to generate reports? Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] FindBugs Plugin: How to generate XML file?
plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version1.0-beta-1/version configuration excludeFilterFile${basedir}/src/main/conf/findbugs-exclude.xml/excludeFilterFile omitVisitorsFindDeadLocalStores,UnreadFields/omitVisitors pluginList/libs/fb-contrib/fb-contrib-2.8.0.jar/pluginList-- /configuration /plugin However, as said before, the problem is already reported in http://jira.codehaus.org/browse/MOJO-511 -Gisbert Mick Knutson wrote: Can I see how you configured your FindBugs in Maven 2 please? On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote: Does anybody know how I can persuade the Maven2 FindBugs Plugin to let Findbugs generate an XML file containing its results into the target directory in addition to the HTML report in target/site? The Maven1 Findbugs Plugin automagically generates a file named findbugs-raw-report.xml into the target directory during maven site. I cannot find any information about how to achieve that with Maven2 neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/ nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html I tried generateXmltrue/generateXml in the configuration section as it is for the Clover Plugin but of course that didn't work. What I want is to use this option of Findbugs: -xml Produce the bug reports as XML. The XML data produced may be viewed in the GUI at a later time. You may also specify this option as -xml:withMessages; when this variant of the option is used, the XML output will contain human-readable messages describing the warnings contained in the file. (http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions ) Any pointer or help would be highly appreciated. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin: how to get aggregated XML?
A week passed since I've posted this question and I got no reply so far. Can anyone say something about it, please? -Gisbert Gisbert Amm wrote: Hi, in Maven1 the Junit Plugin wrote the test data aggregated into a file named TESTS-TestSuites.xml. How can I achieve this with the Maven2 Surefire plugin? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make a maven plugin to generate project reports through site
You need to implement your Mojo as AbstractMavenReport, then Maven does all the Magic for you. To write your results into a HTML file, you need the Doxia Sink. It's really not difficult. Unfortunately there is no documentation despite the sources themselves. I used the maven-changes-plugin as a starting point - it shows quite well how the reporting works - and got the following sources to find out some details: http://svn.apache.org/repos/asf/maven/doxia/tags/doxia-1.0-alpha-8 http://svn.apache.org/repos/asf/maven/components/tags/maven-2.0.4/maven-reporting See the recent thread [M2] Is there a guide how to write Report Plugins? for another example. -Gisbert Øystein Skadsem wrote: Hello there. I'm currently working on a small plugin to maven that goes through our codebase, checking all our modules for translated strings, and then reporting translation percentage, which languages have translations, what strings are missing translations etc. This was intended to be reported as a web-page under Project Reports when we generate a project page through the site-plugin (akin to how JXR, changes, changelog etc create reports). However I am having some problems figuring out how to do this. Does anyone know where I can find some documentation for how this is done? I could not find any despite quite some time spent searching. Barring that, does anyone know how my plugin should be configured? I.e. what goals must it provide to site, and what should it return/generate? Any help/info at all is appreciated, I've started to read through the source-code of other plugins now to get what I need, but that's very slow going :-). (And my apologies if this is the wrong place to ask/it's been asked before) regards, Øystein Skadsem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Aggregate plugin that runs after each module's reports
I'm currently writing almost the same plugin, formerly (in the Maven 1 world) known as Dashboard Plugin. Isn't that funny (I think it isn't)? Would it probably not be better to focus such efforts within the Maven project itself rather than having each company writing it's own Dashboard plugin for Maven 2? Your question: I simply wrote the plugin section for this plugin behind all others in the POM and that seems to work. Of course, one has to check if the required XML lies there as expected. ATM, I'm simply leaving the respective table cells in the generated report empty if that should happen. -Gisbert J.J.B. Rentrop wrote: Hi all, I'm looking for ways to enable an aggregate report for multi module projects for tools like checkstyle, cobertura, findbugs, surefire etc. One approach I'm trying is to first generate all reports and xml data files for each module and afterwards loop through each module, read their xml output file and create an aggregation report based on that data. The problem I face is that my aggregation MavenReport executes before the reports of each modules has been executed. When I run mvn site it will create an empty aggregate report, because it's unable to gather the data from each module. If I run it a second time it will work because then the data files of each module are available. Is there a way to make my aggregation MavenReport execute after the reports of all modules have been generated? I have tried some annotations but it didn't work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Is there a guide how to write Report Plugins?
Gisbert Amm wrote: Arnaud Bailly wrote: Did I oversee something? I'd really appreciate some guidance and examples so that I don't have to read trough the sources of several existing report plugins to find out how it works by myself. Hello, I fear that this may actually be the only way right now. Another solution is providing a document reporting your efforts for integration into maven's doc base ;-) I actually started a page on that subject: http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin Please everyone interested in the topic have a look and correct me or append whatever you like. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin: how to get aggregated XML?
That's not what I meant. The TEST-.yyy.xml files are there, indeed, but no file with *aggregated* test results. Of course I can go through the single files and collect errors and failures from there (that's what I actually do ATM). But the Surefire plugin could do that much more efficent during it's execution and write it to a neat XML file afterwards as it was in Maven 1. -Gisbert dvicente wrote: i only know Maven 2 but in maven 2 surefire generates this xml. see in directory /myProject/target/surefire-reports, you must have TEST-.yyy.xml Gisbert Amm-3 wrote: A week passed since I've posted this question and I got no reply so far. Can anyone say something about it, please? -Gisbert Gisbert Amm wrote: Hi, in Maven1 the Junit Plugin wrote the test data aggregated into a file named TESTS-TestSuites.xml. How can I achieve this with the Maven2 Surefire plugin? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Surefire-Plugin: how to get aggregated XML?
If it would exist, I could open this *one* file to receive the JUnit statistics instead of opening up to serveral *hundret* files (in large projects with lots of tests) to collect the data this way, which seems not the most performant thing to do. The Surefire plugin could easily add up the errors and failures while it runs and write the results to a file if a certain switch is turned on (let's say generateXml, e.g.) without significant lack of performance. The Maven1 JUnit Plugin did so, at least. -Gisbert dvicente wrote: ok, i haven't understood. But why do you want this aggregated xml file ? Gisbert Amm-3 wrote: That's not what I meant. The TEST-.yyy.xml files are there, indeed, but no file with *aggregated* test results. Of course I can go through the single files and collect errors and failures from there (that's what I actually do ATM). But the Surefire plugin could do that much more efficent during it's execution and write it to a neat XML file afterwards as it was in Maven 1. -Gisbert dvicente wrote: i only know Maven 2 but in maven 2 surefire generates this xml. see in directory /myProject/target/surefire-reports, you must have TEST-.yyy.xml Gisbert Amm-3 wrote: A week passed since I've posted this question and I got no reply so far. Can anyone say something about it, please? -Gisbert Gisbert Amm wrote: Hi, in Maven1 the Junit Plugin wrote the test data aggregated into a file named TESTS-TestSuites.xml. How can I achieve this with the Maven2 Surefire plugin? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Is there a guide how to write Report Plugins?
Arnaud Bailly wrote: Gisbert Amm [EMAIL PROTECTED] writes: When you implement your Mojo as AbstractMavenReport, then you can simply add it to the plugin section within the reportingplugins section of your POM and your report will be generated and linked into the Maven site automagically. That's indeed really simple :-) I think you also need to use the doxia Sink API to have complete decoration (ie. menus). That's straightforward aswell. You simply call the class method getSink() to get a Sink instance and can do things like sink.tableCell(); sink.text( some text ); sink.tableCell_(); to get tdsome text/td However, than the pain starts again, since there is obviously no documentation of the Sink API at all. I'm currently reading through the Doxia sources to find out what's possible. And don't forget binding to site lifecycle... You mean by adding @phase site to your class comment. It's probably good practise but is that really necessary? My plugin worked correctly without it and the maven-changes-plugin seems to lack it aswell ... -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant tasks in Maven
Ant is well-integrated with Maven2 as it was with Maven1. See http://maven.apache.org/guides/mini/guide-using-ant.html http://maven.apache.org/plugins/maven-antrun-plugin/ You can even write Maven2 plugins using Ant, cf. Better Builds With Maven, Chapter 5.4.2 about how to write an Ant Mojo. -Gisbert Neeraj Bisht wrote: use ant task at worst case ,if you able to write the plugin then write it and remove the ant task As far as my knowledge ant task will be there in maven 2.0 as last as maven will be there On 10/17/06, Morgovsky, Alexander (US - Glen Mills) [EMAIL PROTECTED] wrote: Is using Ant tasks in Maven going to be supported as long as Maven 2 is supported? I am using some Ant tasks in Maven 2 and I want to make sure that I am doing the right thing. Thanks. This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Is there a guide how to write Report Plugins?
I'm currently writing a report plugin for Maven2 and wonder if there is any guide or other documentation covering that task. The following documents all seem to be empty: http://maven.apache.org/ref/current/maven-reporting/maven-reporting-api/index.html http://maven.apache.org/ref/current/maven-reporting/maven-reporting-impl/index.html http://maven.apache.org/doxia/doxia-sink-api/index.html http://maven.apache.org/doxia/doxia-core/index.html http://maven.apache.org/doxia/doxia-decoration-model/index.html http://maven.apache.org/doxia/doxia-site-renderer/index.html http://maven.apache.org/doxia/doxia-modules/index.html The API documentation on http://maven.apache.org/ref/2.0.4/maven-reporting/maven-reporting-impl/apidocs/org/apache/maven/reporting/ does also consist of a mere list of properties and methods with their signatures as generated by Javadoc without any comment or explanation. I searched the Wiki as well without result. Did I oversee something? I'd really appreciate some guidance and examples so that I don't have to read trough the sources of several existing report plugins to find out how it works by myself. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Is there a guide how to write Report Plugins?
Thanks, that at least helps me not to feel too lost and lonely :) That's what I've learned so far: When you implement your Mojo as AbstractMavenReport, then you can simply add it to the plugin section within the reportingplugins section of your POM and your report will be generated and linked into the Maven site automagically. I'll now take the ReportGenerator class from the Changes plugin and your example as a starting point and hope to come up with my report soon. Arnaud Bailly wrote: Did I oversee something? I'd really appreciate some guidance and examples so that I don't have to read trough the sources of several existing report plugins to find out how it works by myself. Hello, I fear that this may actually be the only way right now. Another solution is providing a document reporting your efforts for integration into maven's doc base ;-) I'd like to do that as long as some native English speaker is willing to correct my clumsy English afterwards. Can someone of the Maven folks tell me where I shall put the site in the Wiki? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do people search for jars and poms?
Jason Chan wrote: MVN Registry http://www.mvnregistry.com/ Thats amazing! Haven't heard about it before. Is it mentioned in the Maven documentation somewhere? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] FindBugs Plugin: How to generate XML file?
It is already there: http://jira.codehaus.org/browse/MOJO-511 I added this mail as a comment since it clarifies what is needed and promise to look into JIRA first next time ;) -Gisbert Dan Tran wrote: sounds like a bug, please file a JIRA On 10/12/06, Gisbert Amm [EMAIL PROTECTED] wrote: Does anybody know how I can persuade the Maven2 FindBugs Plugin to let Findbugs generate an XML file containing its results into the target directory in addition to the HTML report in target/site? The Maven1 Findbugs Plugin automagically generates a file named findbugs-raw-report.xml into the target directory during maven site. I cannot find any information about how to achieve that with Maven2 neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/ nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html I tried generateXmltrue/generateXml in the configuration section as it is for the Clover Plugin but of course that didn't work. What I want is to use this option of Findbugs: -xml Produce the bug reports as XML. The XML data produced may be viewed in the GUI at a later time. You may also specify this option as -xml:withMessages; when this variant of the option is used, the XML output will contain human-readable messages describing the warnings contained in the file. (http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions ) Any pointer or help would be highly appreciated. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need all dependency at compile time
The section 5.5.1. Accessing Project Dependencies of Better builds with Maven (http://www.mergere.com/m2book_download.jsp) probably explains what you need to do in your mojo: ... Injecting the project dependency set As described above, if the mojo works with a project's dependencies, it must tell Maven that it requires access to that set of artifacts. As with all declarations, this is specified via a mojo parameter definition and should use the following syntax: /** * The set of dependencies required by the project * @parameter default-value=”${project.dependencies}” * @required * @readonly */ private java.util.Set dependencies; ... -Gisbert Neeraj Bisht wrote: hi all i want to collect all jar file at one place from my pom.xmldependency ,i write one plugin for that but in that plugin i am unable to define the path of lib how i can achieve this ,i do not know we are migrating our project from maven 1.x to maven 2.0.4 we have done that work in maven 1.x by useing this task as one of the preGoal and writing our logic in jelly but here in maven 2.x i am unable please if any body have any content regarding this please send i also refrence this http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide but not got any properites regarding to my use Regards Neeraj -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven 1.1 RC1 SNAPSHOT needs testers
Arnaud HERITIER wrote: Thanks James for your feedback. We'll add a note about plugin dependencies in projects. Nobody else is interested by maven 1.1 ? Should we continue to try to release a final version 1.1 ? Everybody moved to maven 2 or your existing maven 1.x satisfy you ? We are indeed interested in Maven 1.1 since more than 200 of our existing builds are currently using Maven 1.1 beta 2 and will definitely not be migrated to Maven 2. However, we simply haven't got the time to test Maven 1.1 at the moment since we're fiddling with Maven 2 to probably make it the default for all future builds. I shortly switched the live build system to Maven 1.1 beta 3 when it came out (beginning of last week, IIRC), but got some errors I haven't had the time to further investigate yet (most of them probably incompatibilities with our home grown plugins, I guess). So I switched back to Maven 1.1 beta 2 until I got a bit more time (only touch a running system when you got time to fix it afterwords). I think I can give the RC1 a try next week. -Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant Mojo: How to use echoproperties (optional task)
Jason van Zyl wrote: On 11 Oct 06, at 2:26 AM 11 Oct 06, Gisbert Amm wrote: I'm trying to make a reusable plugin as described in section 5.4.2 of Better builds with Maven and on http://maven.apache.org/guides/ plugin/guide-ant-plugin-development.html (both docs do slightly differ and it seems that the website is the more current version). It works fine with core ant tasks but not with optional tasks like echoproperties. I'm using Maven 2.0.4. Yes, this is what I've fixed over the last week. It will not work without the changes that I've made to trunk. I've injected all the classpaths maven creates into the Ant-script used for the plugin and I have also added the ability to unpack resources inside the Ant- based plugin so that they can be reference in a known place in the file system. It will take some organizational to prepare an example but I will try to put something together. If you don't need the resource unpacking then this can probably work in 2.0.4 but I haven't tested it yet. That would be great. I'll be patient. In fact, I got enough other things to sort out with Maven2 so there is no danger that I'll have to be idle because of waiting for this one ;) -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] FindBugs Plugin: How to generate XML file?
Does anybody know how I can persuade the Maven2 FindBugs Plugin to let Findbugs generate an XML file containing its results into the target directory in addition to the HTML report in target/site? The Maven1 Findbugs Plugin automagically generates a file named findbugs-raw-report.xml into the target directory during maven site. I cannot find any information about how to achieve that with Maven2 neither on http://maven-plugins.sourceforge.net/maven-findbugs-plugin/ nor on http://mojo.codehaus.org/findbugs-maven-plugin/howto.html I tried generateXmltrue/generateXml in the configuration section as it is for the Clover Plugin but of course that didn't work. What I want is to use this option of Findbugs: -xml Produce the bug reports as XML. The XML data produced may be viewed in the GUI at a later time. You may also specify this option as -xml:withMessages; when this variant of the option is used, the XML output will contain human-readable messages describing the warnings contained in the file. (http://findbugs.sourceforge.net/manual/installing.html#commandLineOptions) Any pointer or help would be highly appreciated. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Surefire-Plugin: how to get aggregated XML?
Hi, in Maven1 the Junit Plugin wrote the test data aggregated into a file named TESTS-TestSuites.xml. How can I achieve this with the Maven2 Surefire plugin? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ant Mojo: How to use echoproperties (optional task)
I'm trying to make a reusable plugin as described in section 5.4.2 of Better builds with Maven and on http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html (both docs do slightly differ and it seems that the website is the more current version). It works fine with core ant tasks but not with optional tasks like echoproperties. I'm using Maven 2.0.4. -Gisbert Jason van Zyl wrote: Just to be clear an Ant-based Mojo is not the same thing as using the Ant Run plugin. I have just merged the underlying utilities for the Ant Run plugin and the Ant-based Mojos. Prior to yesterday Ant-based mojos were not very useful as there was no way to get hold of the various classpaths constructed by Maven as are available in the Ant Run plugin. Are you trying to use the Ant Run plugin or make a reusable plugin using Ant script? Jason. On 10 Oct 06, at 10:29 AM 10 Oct 06, Gisbert Amm wrote: I get this error message: Could not create task or type of type: echoproperties. I found this discussion: http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/% [EMAIL PROTECTED] and the mentioned documentation at: http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html However, without further explanation I can't figure out how to use the echoproperties task. Could somebody please point me in the right direction? Regards, Gisbert Amm - 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] -- Gisbert Amm Softwareentwickler Infrastruktur WEB.DE GmbH Brauerstraße 48 · D-76135 Karlsruhe Tel. +49-721-91374-4224 · Fax +49-721-91374-2740 [EMAIL PROTECTED] · http://www.web.de/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clover Plugin doesn't generate XML report
I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. Did I miss something? Which file is the XML report supposed to be generated to? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clover Plugin doesn't generate XML report
Vincent Massol wrote: I've set configuration generateXmltrue/generateXml /configuration as described on http://maven.apache.org/plugins/maven-clover-plugin/howto.html, but the plugin doesn't seem to produce the XML report. As the doc says there's no report generated, only an XML file which you can link to your web site. See http://tinyurl.com/h5rgu Saying XML report I simply meant XML file. BTW: Is there a certain reason for the duplicate information on this both sites?: http://maven.apache.org/plugins/maven-clover-plugin/howto.html http://maven.apache.org/plugins/maven-clover-plugin/usage.html Did I miss something? Which file is the XML report supposed to be generated to? There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. What could be the reason for that? -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clover Plugin doesn't generate XML report
Vincent Massol wrote: There should be a site/clover/clover.xml file generated. It isn't, that's why I ask. Ok sorry. I misunderstood. I thought you meant XML report when you only meant that there's no XML file... :-) What could be the reason for that? Hmmm... Very strange. What version of the clover plugin are you using? The latest release, 2.3. Figured it out!!! My mistake!!! In my pom.xml, there are two plugin sections for the Clover plugin - one in build to configure the history dir and one in reporting for the reports. I simply added historyDir/tmp/cloverhistory/historyDir to the plugin section within build, but it has to be in the one within reporting! Sorry for bothering you. However, those endless XML configuration files are a real pain. -Gisbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant Mojo: How to use echoproperties (optional task)
I get this error message: Could not create task or type of type: echoproperties. I found this discussion: http://mail-archives.apache.org/mod_mbox/maven-users/200603.mbox/[EMAIL PROTECTED] and the mentioned documentation at: http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html However, without further explanation I can't figure out how to use the echoproperties task. Could somebody please point me in the right direction? Regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m1] Plugin for Slice2Java compiler
Is there a Maven 1 plugin for the Slice2Java compiler (see http://www.zeroc.com/ice.html)? Regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M1] Checkstyle plugin: how to retrieve config via https
Nope. Same error: org.apache.commons.jelly.JellyTagException: /home/myuser/.maven/cache/maven-checkstyle-plugin-3.0/plugin.jelly:163:63: lt;ant:checkstylegt; Unable to create a Checker: unable to read https://myuser:[EMAIL PROTECTED]:myport/path/to/webde_checks.xml For the moment I've worked around it in the httpd.conf of the subversion server allowing all users coming from the Cruisecontrol buildhost to access the repo without password. However, I'd rather make the checkstyle plugin authorize itself properly. -Gisbert Arnaud HERITIER wrote: I don't know if it works but can you test something like that : In your project's properties : maven.checkstyle.propertiesURL=https://${maven.svn.username }:${maven.svn.password [EMAIL PROTECTED]/ In your private properties : maven.svn.username=?? maven.svn.password=??? On 4/3/06, Gisbert Amm [EMAIL PROTECTED] wrote: We want to retrieve the Checkstyle config via https out of our Subversion repository. In the docs I did not find any possibility to set the user and password. When I simply tried it with the https-URL I got the error unable to create checker. Is it possible to use Checkstyle like that and how? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M1] Checkstyle plugin: how to retrieve config via https
We want to retrieve the Checkstyle config via https out of our Subversion repository. In the docs I did not find any possibility to set the user and password. When I simply tried it with the https-URL I got the error unable to create checker. Is it possible to use Checkstyle like that and how? Regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ChangeLog plugin problems
For svn URLs you need to set maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory in your project.properties aswell to get the changelog report working. Regards, Gisbert Amm Michael Niemaz wrote: Thanx for answering. As for the repository settings, are the connection and url settings enough? (See below). Concerning the developpers, they are described such as: developers developer nametiti/name email[EMAIL PROTECTED]/email organization BPS Smart Documents Platforms Group /organization roles roleSoftware Engineer/role /roles urlhttp://codex.xerox.com/users/niemaz//url timezone+1/timezone /developer /developpers Is that what you're talking about. Or should I declare special developpers such as svn members? --mike Arnaud HERITIER a écrit : To use these plugins (changelog, developers activity, files activity) you must define in your POM the repository settings and the developpers for your project (the id of a developper must be the one he use in your SCM) Arnaud On 2/23/06, Michael Niemaz [EMAIL PROTECTED] wrote: Hi all, Just have a couple of questions 'cos I'm a bit confused. I'm using maven 1.1beta2 I'd like to know what the following is supposed to do: repository connection scm:svn:http://svn.smartdocuments.codex.xerox.com/svnroot/smartdocuments /connection url http://codex.xerox.com/svn/viewcvs.php/?roottype=svn%26root=smartdocuments /url /repository This was commented out in my project.xml file. I suspect that this generates the Project Reports/Change Log documentation which I find very handy ... when it works ;-) So I commented out and here is the error I got (See below). I'm working through multiproject goals. If anybody can help, would be great. thanx, --mike BUILD FAILED File.. /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1/plugin.jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:site] -- /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1 /plugin.jelly:104:9: maven:reactor Reactor subproject failure occurred org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [site-services] -- /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1 /plugin.jelly:218:9: maven:reactor Reactor subproject failure occurred at org.apache.maven.werkz.Goal.fire(Goal.java:663) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) 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:585) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) org.apache.commons.jelly.JellyTagException: /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1 /plugin.jelly:218:9: maven:reactor Reactor subproject failure occurred at org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:378) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( MavenGoalTag.java:78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:210) at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag( MavenAttainGoalTag.java:114) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( MavenGoalTag.java:78) at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction (MavenGoalTag.java:109) at org.apache.maven.werkz.Goal.fire(Goal.java:656) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258
Re: ChangeLog plugin problems
Seems as if your developers haven't got an id tag, hence the NPE. As Arnaud said: The id of a developper must be the one he uses in your SCM. BTW: Do you have this typo in your POM: /developpers (mind the two p) or just in your posting? Regards, Gisbert Amm Michael Niemaz wrote: Thanx Gisbert but it did not fix the problem ;-( Another attribute should be specified maybe ... date? tag? range? --mike Generating the Change Log... maven-changelog-plugin:report: [echo] Generating the changelog report [echo] maven.changelog.basedir: /home/niemaz/smartdocuments_svn/smartdocuments/trunk/smartdocument.services [echo] pom.developers: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] [echo] maven.changelog.factory: org.apache.maven.svnlib.SvnChangeLogFactory [echo] changelog.xml: /home/niemaz/smartdocuments_svn/smartdocuments/trunk/smartdocument.services/target/changelog.xml [echo] ISO-8859-1: ISO-8859-1 [echo] range: range [echo] maven.changelog.range: 30 [echo] maven.changelog.date: [echo] maven.changelog.tag: [echo] maven.changelog.quoteDate: false [echo] _connection: scm:svn:http://svn.smartdocuments.codex.xerox.com/svnroot/smartdocuments [echo] maven.changelog.dateformat: [echo] maven.changelog.commentFormat: SCM Working Directory: /home/niemaz/smartdocuments_svn/smartdocuments/trunk/smartdocument.services SCM Command Line[0]: svn SCM Command Line[1]: log SCM Command Line[2]: -v SCM Command Line[3]: -r{2006-02-24}:{2006-01-24} ChangeSet between 2006-01-24 and 2006-02-24: 18 entries BUILD FAILED File.. /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1/plugin.jelly Element... maven:reactor Line.. 107 Column 9 Unable to obtain goal [site] -- /home/niemaz/.maven/cache/maven-changelog-plugin-1.9/plugin.jelly:148:15: changelog:changelog null Total time : 9 seconds Finished at : 23 February 2006 12:33:14 CET Gisbert Amm a écrit : For svn URLs you need to set maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory in your project.properties aswell to get the changelog report working. Regards, Gisbert Amm Michael Niemaz wrote: Thanx for answering. As for the repository settings, are the connection and url settings enough? (See below). Concerning the developpers, they are described such as: developers developer nametiti/name email[EMAIL PROTECTED]/email organization BPS Smart Documents Platforms Group /organization roles roleSoftware Engineer/role /roles urlhttp://codex.xerox.com/users/niemaz//url timezone+1/timezone /developer /developpers Is that what you're talking about. Or should I declare special developpers such as svn members? --mike Arnaud HERITIER a écrit : To use these plugins (changelog, developers activity, files activity) you must define in your POM the repository settings and the developpers for your project (the id of a developper must be the one he use in your SCM) Arnaud On 2/23/06, Michael Niemaz [EMAIL PROTECTED] wrote: Hi all, Just have a couple of questions 'cos I'm a bit confused. I'm using maven 1.1beta2 I'd like to know what the following is supposed to do: repository connection scm:svn:http://svn.smartdocuments.codex.xerox.com/svnroot/smartdocuments /connection url http://codex.xerox.com/svn/viewcvs.php/?roottype=svn%26root=smartdocuments /url /repository This was commented out in my project.xml file. I suspect that this generates the Project Reports/Change Log documentation which I find very handy ... when it works ;-) So I commented out and here is the error I got (See below). I'm working through multiproject goals. If anybody can help, would be great. thanx, --mike BUILD FAILED File.. /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1/plugin.jelly Element... maven:reactor Line.. 218 Column 9 Unable to obtain goal [multiproject:site] -- /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1 /plugin.jelly:104:9: maven:reactor Reactor subproject failure occurred org.apache.maven.werkz.UnattainableGoalException: Unable to obtain goal [site-services] -- /home/niemaz/.maven/cache/maven-multiproject-plugin-1.4.1 /plugin.jelly:218:9: maven:reactor Reactor subproject failure occurred at org.apache.maven.werkz.Goal.fire(Goal.java:663) at org.apache.maven.werkz.Goal.attain(Goal.java:592) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) at org.apache.maven.cli.App.doMain(App.java:511) at org.apache.maven.cli.App.main(App.java:1258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39
Re: ???template.maven_reports.section.subsection.title???
Probably some information is missing in your POM (such as name, description and so on)? Just a guess. -Gisbert Michael Niemaz wrote: Does anybody know how to fix this badly generated report pages? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M1] Maven Proxy: does not download Jar from ibiblio
Out of the blue (it seems) I experience difficulties with the Maven proxy (snapshot-release). It does not download the requested jar from ibiblio but instead writes to the log: Copying /c3p0/jars/c3p0-0.8.4.5.jar from Repo[global] to Repo[www-ibiblio-org], does not find the jar within the local repo (of course) and then sends a 500 status code to the client, causing the build to fail. I wonder what the Repo[global] is and why the Maven proxy does not download the jar from ibiblio but seems trying to *upload* it there. Has anyone faced the same problem and knows how to fix it? I read through the config several times and also through the Codeczar site and asked Google several times but still got no idea what to do. Here is the respective part of the logfile: 2006-02-16 14:12:49,017 [DEBUG] proxy.engine.DownloadEngine - Request: source=172.17.72.214, path=/c3p0/jars/c3p0-0.8.4.5.jar, lastModified=-1, headOnly=false, ifModifiedSince=-1 2006-02-16 14:12:49,020 [DEBUG] proxy.config.FileRepoConfiguration - Repo[global]: Checking last modified time for /export/development/rundev/pool/Java/maven/maven-proxy-cache/c3p0/jars/c3p0-0.8.4.5.jar 2006-02-16 14:12:49,021 [DEBUG] proxy.config.FileRepoConfiguration - Repo[local-repo]: Checking last modified time for /export/development/rundev/pool/Java/maven/stable/c3p0/jars/c3p0-0.8.4.5.jar 2006-02-16 14:12:49,022 [DEBUG] proxy.config.FileRepoConfiguration - Repo[thirdparty]: Checking last modified time for /export/development/rundev/pool/Java/maven/thirdparty/c3p0/jars/c3p0-0.8.4.5.jar 2006-02-16 14:12:49,022 [DEBUG] components.impl.DefaultSnapshotCache - Unable to find /c3p0/jars/c3p0-0.8.4.5.jar in snapshot cache 2006-02-16 14:12:49,022 [INFO ] proxy.config.HttpRepoConfiguration - Repo[www-ibiblio-org]: Checking last modified time for http://www.ibiblio.org/maven/c3p0/jars/c3p0-0.8.4.5.jar 2006-02-16 14:12:49,382 [INFO ] components.impl.DefaultSnapshotCache - Adding /c3p0/jars/c3p0-0.8.4.5.jar to snapshot cache 2006-02-16 14:12:49,382 [INFO ] proxy.engine.DownloadEngine - Copying /c3p0/jars/c3p0-0.8.4.5.jar from Repo[global] to Repo[www-ibiblio-org] 2006-02-16 14:12:49,382 [INFO ] proxy.config.HttpRepoConfiguration - Retrieving /c3p0/jars/c3p0-0.8.4.5.jar 2006-02-16 14:12:49,608 [ERROR] proxy.engine.DownloadEngine - java.io.FileNotFoundException: /export/development/rundev/pool/Java/maven/maven-proxy-cache/c3p0/jars/c3p0-0.8.4.5.jar (No such file or directory) Any help would be highly appreciated. Regards, Gisbert Amm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changelog plugin not working
For Maven 1.x it was necessary to set the property maven.changelog.factory, e.g. for SVN: maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory in the project.properties I guess you have to configure the changelog plugin likewise for Maven 2. Regards, Gisbert Amm Silva, Vandermi Joao Da schrieb: Hi all, I am using the changelog plugin, with my svn , but is not creating the reports, and show the message below. Somebody can help me? Messages [INFO] Generate changelog report. [INFO] Generating changed sets xml to: C:\Documents and Settings\op0837\AMP_EXT\ map_src\amp_ext\target\changelog.xml [WARNING] Connection does not appear valid [WARNING] Could not derive factory from connection: using default CVS (valid fac tories are: [starteam, cvs, perforce, svn, clearcase, vss]) [INFO] - --- [ERROR] FATAL ERROR [INFO] - --- [INFO] repository connection string does not specify 'cvs' as the scm If using another scm, maven.changelog.factory must be set. See the maven changelog plugin documentation for correct settings. [INFO] - --- [INFO] Trace java.lang.IllegalArgumentException: repository connection string does not specif y 'cvs' as the scm If using another scm, maven.changelog.factory must be set. See the maven changelog plugin documentation for correct settings. This is my POM configurations !-- plugin for changelog-- plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId version2.0-beta-1/version configuration scm connectionscm|svn|https://mysite.com.br/my_dir/connection developerConnectionscm|svn|https://mysite.com.br/my_dir/developerConnection urlhttps://mysite.com.br/my_dir/url /scm typedate/type dates date implementation=java.lang.String2006-01-01/date date implementation=java.lang.String2006-03-01/date /dates dateFormat-MM-dd/dateFormat /configuration /plugin /plugins !-- Create changelog reports -- reporting outputDirectorytarget/site/outputDirectory plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-project-info-reports-plugin/artifactId /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdchangelog-maven-plugin/artifactId /plugin /plugins /reporting Best Regards Picture (Metafile) ***Vandermi João da Silva RD MAO - Core Engines BenQ Eletroeletrônica Ltda. * TEL +55(92) 2127-8015 Mobile: +55(92) 8125-2248 FAX +55(92) 2127-8102 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___www.BenQMobile.com_ file://www.BenQMobile.com Rua João Alfredo, 536 - Edifício Gabriela Bairro São Geraldo CEP: 69053-270 - Manaus/AM Brasil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: ????
You probably want to set the maven.jar.mainclass attribute to get the main class entry written to the jar manifest file. See http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html Regards, Gisbert Amm Zheng Wen Zhe wrote: Hi, I experienced an exception Error while executing the App class of my project. Could any body give some advice? where is the fault? Regards, Jason 1.Run maven genapp to execute genapp goal to create a new project; 2.execute jar goal with maven jar; 3.execute App class with java tartget\test-application-1.0.jar mdn.testapp.App; Error message from console: C:\my-apps\genapp\test-appjava target\test-app-1.0.jar mdn.testapp.App Exception in thread main java.lang.NoClassDefFoundError: target\test-app-1/0/jar The expect result is: Hello world! displaying in console. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: ????
Setting the classpath could also help: C:\my-apps\genapp\test-appjava -cp target\test-app-1.0.jar mdn.testapp.App Regards, Gisbert Amm Gisbert Amm wrote: You probably want to set the maven.jar.mainclass attribute to get the main class entry written to the jar manifest file. See http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html Here you would call the jar directly: C:\my-apps\genapp\test-appjava jar target\test-app-1.0.jar Hi, I experienced an exception Error while executing the App class of my project. Could any body give some advice? where is the fault? Regards, Jason 1.Run maven genapp to execute genapp goal to create a new project; 2.execute jar goal with maven jar; 3.execute App class with java tartget\test-application-1.0.jar mdn.testapp.App; Error message from console: C:\my-apps\genapp\test-appjava target\test-app-1.0.jar mdn.testapp.App Exception in thread main java.lang.NoClassDefFoundError: target\test-app-1/0/jar The expect result is: Hello world! displaying in console. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: ?? ??
The main class is still not found. Did you type tartget (mind the t) at the commandline? Try it again with target. How does your jar look like? Does App.class sit within mdn/testapp? Does App.java in your project really reside within src/java/mdn/testapp? -Gisbert Zheng Wen Zhe wrote: I run the command again with -cp parameter,but got a different error?? do you have any clue about it? Regards, Jason ** C:\my-apps\genappjava -cp tartget\test-application-1.0.jar mdn.testapp.App; Exception in thread main java.lang.NoClassDefFoundError: mdn/testapp/App; -Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 10:22 To: Maven Users List Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: Setting the classpath could also help: C:\my-apps\genapp\test-appjava -cp target\test-app-1.0.jar mdn.testapp.App Regards, Gisbert Amm Gisbert Amm wrote: You probably want to set the maven.jar.mainclass attribute to get the main class entry written to the jar manifest file. See http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html Here you would call the jar directly: C:\my-apps\genapp\test-appjava jar target\test-app-1.0.jar Hi, I experienced an exception Error while executing the App class of my project. Could any body give some advice? where is the fault? Regards, Jason 1.Run maven genapp to execute genapp goal to create a new project; 2.execute jar goal with maven jar; 3.execute App class with java tartget\test-application-1.0.jar mdn.testapp.App; Error message from console: C:\my-apps\genapp\test-appjava target\test-app-1.0.jar mdn.testapp.App Exception in thread main java.lang.NoClassDefFoundError: target\test-app-1/0/jar The expect result is: Hello world! displaying in console. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Exception in thread main java.lang.NoClassDefFoundError: ?? ??
Zheng Wen Zhe wrote: Sorry,my fault! Just mis-typed target.Class App is executed successfully this time with command:C:\my-apps\genappjava -cp target\test-application-1.0.jar mdn.testapp.App; That's what I reckoned ;-) Does this mean i have to use -cp parameter everytime executing a clas? The jar has to be on your classpath, yes. Usually one uses some script to achieve that (*.bat on Windows). Alternatively, you can set the CLASSPATH environment variable. I recommend reading something like http://mindprod.com/jgloss/classpath.html And,I found it didnt make any difference by setting maven.jar.manifest.extensions.add=true It's the maven.jar.mainclass attribute that makes sure that the main class entry is added to the jar's manifest. About the manifest see e.g. http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#JAR%20Manifest (the first doc I found; there might be a newer one). Try to call the jar with java jar then (the jar tool). See e.g. http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html (the same comment as above). -Gisbert -Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 10:43 To: Maven Users List Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: ?? ?? The main class is still not found. Did you type tartget (mind the t) at the commandline? Try it again with target. How does your jar look like? Does App.class sit within mdn/testapp? Does App.java in your project really reside within src/java/mdn/testapp? -Gisbert Zheng Wen Zhe wrote: I run the command again with -cp parameter,but got a different error?? do you have any clue about it? Regards, Jason ** C:\my-apps\genappjava -cp tartget\test-application-1.0.jar mdn.testapp.App; Exception in thread main java.lang.NoClassDefFoundError: mdn/testapp/App; -Original Message- From: Gisbert Amm [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 10:22 To: Maven Users List Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: Setting the classpath could also help: C:\my-apps\genapp\test-appjava -cp target\test-app-1.0.jar mdn.testapp.App Regards, Gisbert Amm Gisbert Amm wrote: You probably want to set the maven.jar.mainclass attribute to get the main class entry written to the jar manifest file. See http://maven.apache.org/maven-1.x/reference/plugins/jar/properties.html Here you would call the jar directly: C:\my-apps\genapp\test-appjava jar target\test-app-1.0.jar Hi, I experienced an exception Error while executing the App class of my project. Could any body give some advice? where is the fault? Regards, Jason 1.Run maven genapp to execute genapp goal to create a new project; 2.execute jar goal with maven jar; 3.execute App class with java tartget\test-application-1.0.jar mdn.testapp.App; Error message from console: C:\my-apps\genapp\test-appjava target\test-app-1.0.jar mdn.testapp.App Exception in thread main java.lang.NoClassDefFoundError: target\test-app-1/0/jar The expect result is: Hello world! displaying in console. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Output Verbosity
Have you tried the -q (--quiet) command line switch already? Regards, Gisbert Amm Mike Lantink wrote: Is there a way to turn down the output produced during a maven execution...goal specific or otherwise ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compile classpath
You have to define a dependency to the Servlet-API in your POM. E.g. in the project.xml for Maven 1: dependency groupIdservletapi/groupId artifactIdservlet-api/artifactId version2.4/version /dependency I don't have an example for Maven 2. BTW: It would be helpful, if you'd tell the list if you use Maven 1 or 2 (ideally in the subject of your post). Regards, Gisbert Amm Stein Kråbøl wrote: Maven is new to me... Please help! How to set up resorses to point to c:\web\tomcat\common\lib\servlet.jar so the compiler can see it_ This is the output: --- [INFO] Compilation failure C:\project\test-app\src\main\java\com\tellussoft\Test\ShowColor.java:[3,0] packa ge javax.servlet does not exist Please give me detailed information so I dont have to ask again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: adding local repository info to build process
At least for Maven 1, you can aswell set maven.repo.remote to point to your local repository. Either in project.properties (maven.repo.remote=yourlocalrepo) or at the commandline (-Dmaven.repo.remote=yourlocalrepo). Regards, Gisbert Amm Alexandre Russel wrote: use the -o option to mvn(type mvn --help for more info). alex Hi , Am new to Maven.I want my build process to use the local repository rather than download the jars everytime. Where should this information be added. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: goals within goal ?
AFAIK that means that the reactor runs the goal nightly for every subproject (and nothing else of the subproject's goals). One can specifiy which goals to run by the reactor here. Regards, Gisbert Amm Zheng Wen Zhe wrote: Hi, below is a piece of code to set up a goal. My question: what's goals=nightly means? Is 'nightly' some other goal? thanks, jason goal name=build prereqs=cvs-checkout description=generate the site for the entire project attainGoal name=newVersion/ maven:reactor basedir=${basedir}/target/build postProcessing=true includes=*/project.xml goals=nightly banner=Generating site ignoreFailures=false/ /goal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Last : Keep my MANIFEST.MF and not use auto-generate ?
Have you tried to put your manifest into src/META-INF/MANIFEST.MF already? The docs say for maven.war.manifest: Location of the MANIFEST.MF file in the source tree. It defaults to ${maven.war.src}/META-INF/MANIFEST.MF http://maven.apache.org/maven-1.x/reference/plugins/war/properties.html Regards, Gisbert Amm Olive wrote: Hi When i generate my webapp (maven clean package), my manifest 's file is replace by maven How to stop generate manisfest in my WAR ... I put my file in src/resources/META-INF/MANIFEST.MF in target it's alright but in my war archive it is maven's manisfest.mf and not mine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why maven can not handle Chinese charactor in the site.xml for maven site plugin?
Assuming you are using Maven 1, you probably have to set on ore more of those properties: maven.docs.outputencoding maven.xdoc.locale.default maven.compile.encoding This are my settings for German: maven.docs.outputencoding=UTF-8 maven.xdoc.locale.default=de_DE.utf8 maven.compile.encoding=iso-8859-1 Regards, Gisbert Amm ZhiQiang He wrote: and how to resolve the question? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]