Re: Maven Proxy
I would definitely recommend Artifactory. On Fri, 2007-10-12 at 02:10 -0700, maarten roosendaal wrote: Hi, We use Archiva (beta2) which works fine. We had some problems with the beta1 version but getting it up and running was very easy. The hard part is comming up with procedures regarding dependencies and management. - Original Message From: Denis Bessmertniy [EMAIL PROTECTED] To: Maven Users List users@maven.apache.org Sent: Friday, October 12, 2007 11:04:10 AM Subject: Maven Proxy Hi, May you advise to me a good maven proxy? I know only http://proximity.abstracthorizon.org. Is it good? Maybe you know something better? - Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Property substitution in activation settings
All, According to this article (http://www.javaworld.com/javaworld/jw-05-2006/jw-0529-maven.html?page=6), this should work: project ... profiles profile idtest/id activation file exists${java.home}/test1.properties/exists /file /activation ... /profile /profiles ... /project If it works, then there must be something wrong with my system. I have seen a couple of bug reports on the fact that property expansion doesn't work, sometimes it appears to have been fixed, sometimes it doesn't. Does anyone have a clue? Wilfred -- Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 (0) 6 46 72 09 90 mobile | +31 (0) 20 8500800 office - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant-based Mojo and Classpath
I am now doing this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId executions execution idgenerate-docbook/id goals goalrun/goal /goals phasepre-site/phase /execution /executions configuration tasks property name=plugin.path refid=maven.plugin.classpath/ ant antfile=${basedir}/build.xml target=prepare-docbkx inheritRefs=true /ant /tasks /configuration dependencies dependency groupIdant/groupId artifactIdant-trax/artifactId version1.6.5/version /dependency dependency groupIdrhino/groupId artifactIdrhino/artifactId version1.5R4.1/version /dependency which seems to work. Here is a snippet from my build.xml file: project target name=prepare-docbkx mkdir dir=target/docbkx/ taskdef name=script classname=org.apache.tools.ant.taskdefs.optional.Script classpath path=${plugin.path}/ /taskdef Hope it helps. -Original Message- From: JC Walmetz [mailto:[EMAIL PROTECTED] Sent: Wed 11/8/2006 5:22 PM To: users@maven.apache.org Subject: Re: Ant-based Mojo and Classpath Hi, I have the same problem. Did someone find a solution ? Wilfred Springer wrote: Hi all, I'm trying to implement a plugin based on the mechanism described here (http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html) and I can't figure out how to add a libraries to the Ant classpath. Does anybody have a clue? Using these properties: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath doesn't work. Thanks, Wilfred -- View this message in context: http://www.nabble.com/Ant-based-Mojo-and-Classpath-tf1813464s177.html#a7241564 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven plugin to generate Java source, SQL schema, and O/R mapping files from XSD?
Modello is similar, to some extent... Apart from the fact that it doesn't support JAXB, Hibernate and XML Schema. ;-) Instead you would use Modello's own schema language, their own data binding tools and JPOX for persistency. http://mojo.codehaus.org/ On Fri, 2006-10-13 at 11:29 +0200, Aleksei Valikov wrote: Hi. Forgive me if this is a naive question but I've search the web and haven't found an obvious answer. I'd like to find a tool that generates Java source files, SQL schema files, and O/R mapping files from the same XSD file. The input XSD file (over which I have no control) defines the format of XML messages. I know that JAXB, XMLbeans, etc. can create the Java source files from this type of XSD file. However, I haven't been able to identify a tools that creates the SQL schema and O/R mapping files from the same type of XSD file. The closest tool I've found is Hydrate that will generate all three types of output files but it does this from a Hydrate model XSD file, not from the type of XSD file that JAXB or XMLbeans would take as input. Of course, it would be perfect if this tool could be integrated into a Maven 2 build process. This is exactly what Hyperjaxb2 does. Take a look at: https://hyperjaxb2.dev.java.net/ Hyperjaxb2 is a JAXB add-on that generates Hibernate mapping and configuration for JAXB classes. That is, you get *.hbm.xml and hibernate.cfg.xml. Hyperjaxb2 includes a Maven2 plugin. You don't need any special type of XSD, just normal schemas. Hyperjaxb2 will map everything for you. And of course you can customize the generated mappings. Here's a sample application: https://hyperjaxb2.dev.java.net/nonav/repository/org/jvnet/hyperjaxb2/hyperjaxb2-sample/0.6.0/hyperjaxb2-sample-0.6.0-src.zip Bye. /lexi
RE: docbook plugin
Hi Aleksei, I'll add to the manual that - at this stage - you need to add my personal repository (http://agilejava.com/maven/) to your list of repositories. I have been trying to get the plugin uploaded to the central repository, but for some reason you can only upload plugins if you set up an rsync synchronisation process, and I haven't been able to do that yet. In the meanwhile, simply hook up to my own repository. There is in fact a samples project with a sample POM here: http://86.85.236.224/svn/docbkx/trunk/docbkx-samples/pom.xml (However, it's missing the required repository section I'll make sure that's getting added.) Hope it helps. Wilfred -Original Message- From: Aleksei Valikov [mailto:[EMAIL PROTECTED] Sent: Tue 10/10/2006 10:37 AM To: Maven Users List Subject: Re: docbook plugin Wilfred, I've searched for about half an hour but could not find any installation instructuons for your plugin. Yes I saw some pom fragments - but how do I install/download your plugin? Which pluginRepository should I use? I'd really appreciate a ready-to-use sample project. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: docbook plugin
It depends. You can use mine if you're looking for: * Configuration of the stylesheets using the plugin configuration mechanism; * A solution that has everything included in the actual plugin; (No manual downloading of stylesheets or the DTD) * Entity resolution using entities defined in your POM; * PDF generation; * Man pages generation; * A non-codehaus implementation. http://www.agilejava.com/docbkx/docbkx-maven-plugin/ http://www.agilejava.com/docbkx/docbkx-samples/html/manual.html However, if you want to use Simplified DocBook, then you first need to create a dedicated jar containing the DTD, similar to the DocBook 4.4 version found here: http://www.agilejava.com/maven/org/docbook/docbook-xml/4.4/ (Note that is actually nothing but the DocBook DTD distribution unzipped, jarred and uploaded together with a POM.) The plugin will pick up the catalog file in the jar and use that to dynamically resolve the DTD and all other relevant entities. Cheers, Wilfred On Mon, 2006-10-09 at 10:25 +0200, Aleksei Valikov wrote: Hi folks, Which docbook plugin would you recommend to use? Just like many people I previously used DocBook XSLTs and builds from Hibernate documentation. My projects are now ported to Maven and I'd like to port documentation generation as well. I've found several plugins that seem to do the job, but I got no idea which one is usable. I have documents in simplified DocBook. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: docbook plugin
Hi Andres, There *is* actually a pre-site phase, however it's part of a different lifecycle. If you generate a site ('mvn site'), then Maven will first execute all plugins bound to the 'pre-site' phase, and then all plugins bound to the 'site' phase, including the 'site:generate' plugin. Hope it helps. Thanks, Wilfred -Original Message- From: Andrés [mailto:[EMAIL PROTECTED] Sent: Mon 10/9/2006 7:34 PM To: Maven Users List Subject: Re: docbook plugin El 09/10/2006 15:32, Wilfred Springer escribió: It depends. You can use mine (...) Wilfred, I'm taking a look at your docbook plug-in. It looks great, but I've seen something strange in the user guide: execution goals goalgenerate-html/goal /goals phasepre-site/phase /execution I don't know about such a pre-site phase. Indeed, I think there's no site phase either. Is it a typo, or I'm missing something?. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: assembly:assembly does everything twice
I can't remember all of the details, but something like this will probably solve it: plugin artifactIdmaven-assembly-plugin/artifactId executions execution goals goalattached/goal /goals phasepackage/phase /execution /executions configuration descriptortarget/dep.xml/descriptor /configuration /plugin So specify the attached goal as opposed to the assembly goal. Cheers, Wilfred -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Tue 10/10/2006 12:50 AM To: users@maven.apache.org Subject: assembly:assembly does everything twice Hello, I tried binding the assembly plugin to the package phase, so it would just be part of my regular build. Here is what my pom says: plugin artifactIdmaven-assembly-plugin/artifactId executions execution idassembly/id phasepackage/phase goalsgoalassembly/goal/goals configuration descriptorassembly.xml/descriptor /configuration /execution /executions /plugin But I see that when I type mvn package, everything runs twice: compilation, tests, etc. Fortunately for compile at least, the plugin is smart enough not to recompile everything. But this still seems very strange. Is there an explanation? It didn't happen when I ran mvn clean assembly:assembly; then things like compilation happened, but only once. Thanks, Paul -- View this message in context: http://www.nabble.com/assembly%3Aassembly-does-everything-twice-tf2413291.html#a6727120 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: docbook plugin
If found out about it in Mergere's Maven 2 book. -Original Message- From: pjungwir [mailto:[EMAIL PROTECTED] Sent: Mon 10/9/2006 11:50 PM To: users@maven.apache.org Subject: Re: docbook plugin Jacek Laskowski-4 wrote: On 10/9/06, Andr?s [EMAIL PROTECTED] wrote: I don't know about such a pre-site phase. Indeed, I think there's no site phase either. Is it a typo, or I'm missing something?. It's executed right before the 'site' phase. Run 'mvn site' and see what happens. I went to that link, but I don't see any reference to phases. I also checked the lifecycle doc here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html That doesn't mention the site or pre-site phases. I suppose generating a site must be a different lifecycle from a regular build. Can you point me to a description of how this works? What are all the phases when you say mvn site? Thanks, Paul -- View this message in context: http://www.nabble.com/docbook-plugin-tf2408569.html#a6726350 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-assembly-plugin: weird life cycle
Use 'attached' as the goal instead; that solved it for me. On Wed, 2006-08-30 at 12:16 +0200, Alexis Midon wrote: here is what I have in my parent pom: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-assembly-plugin/artifactId configuration descriptors descriptorsrc/assembly/assembly-2.1.2m.xml /descriptor /descriptors /configuration /plugin On 8/30/06, Alexis Midon [EMAIL PROTECTED] wrote: Many thanks for your answer Barrie but could you provide some examples, please? I'm completely lost in this maze :( On 8/29/06, Barrie Treloar [EMAIL PROTECTED] wrote: Included module: murex.middleware:middleware-gui:jar:3.1 does not have an artifact with a file. Please ensure the package phase is run before the assembly is generated. but when I add the package goal my jars are always built twice, once by the package goal and once by assembly after the following console output: [INFO] Preparing assembly:assembly This is a well documented problem. You probably want to be running assembly:single (as assembly:attached doesn't work in a multi-module environment). I have added assembly:single to my build lifecyle (I did not have to specify which lifecyle) and when I run mvn package it correctly builds my artifacts so that they are available for the assembly which gets run in the package phase. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Re: [POLL] Why switch to Maven?
With all people being unsatisfied with the Maven documentation, it sounds like an excellent opportunity for a new open source project; it would allow lots of people to scratch their itch. And the cool thing is, we could create the book entirely using Maven and the Docbkx Maven Plugin shameless-advertisementhttp://www.agilejava.com/docbkx//shameless-advertisement. We would just have a boodstrapping problem: in order to make the Docbkx Maven Plugin available for erveryone it would need to be uploaded to the Maven repository, but that appears to be quite hard: it involves using rsync instead of the bundle plugin, and using rsync to synchronize with the central repository isn't documented anywhere. ed, 2006-08-30 at 12:57 +0200, Pierre-Yves Saumont wrote: I switched to Maven 2 because I was tired of Ant. When one looks at a good Java project, one can find its way easyly because there are well known architecturing and coding standards. There are no such things with Ant. I remember trying to find my way in Ant scripts calling other Ant scripts, and that was kind of a nightmare. (Even with scripts I had written myself few monthes before :-) Maven is exactly what I need. The maven way to do things might not be the best way, but it is consistent. Consistency is much more valuable than anything else. It is what I like the most in Java, and it is what I like in Maven. The big problem is documentation. The Merger book is a good introduction, but it does not help very much to do your own work because as soon as you need something a bit different from the example, your are alone. I learned the most from two chanels : The Maven 1 documentation (many things work the same) and looking at Poms in other projects. (For example Wicket). What is urgently needed (IMO) is a Reference documentation with the list of all configuration options and all possible values. I decided to spend 6 week to learn Wicket, Maven 2 and EJB3 before I start my next project. Until now, I am very satisfied with Wicket and Maven 2. What I miss the most is aggregation. Some reports seems not to aggregate at all, somes have problems (aggregating Javadoc AND Xref). I also have problems to understand complicated transitive dependencies (I ou're using JBoss, you better be sure that there is not a wrong version of a jar in the classpath ;-) Pierre-Yves Eric Redmond a écrit : Hi all Maven users! I'm beginning a study to outline the real reasons that people have for avoiding Maven. My questions to you all are: What were your anxieties about using Maven? If you use Maven: what helped you make the decision? If you don't: why did you avoid it? Here are some that I have heard in the past: * Lack of good documentation. * Community unwilling to help me with my problems. * Not industry supported or mainstream enough. * I don't like conforming to the Maven project layout. * My project is too complex to switch. * There are not enough plugins available. * We already have a large investement in tool X. * I have to build native/non-Java code. Any more reasons? Care to expand these ideas? Thanks for your help! Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Re: docbook plugin - how to ??
Hi Felipe, I've crafted another DocBook plugin. (In order to prevent naming conflicts conveniently called Maven Docbkx Plugin.) Since I was in the same situation you were and had to let go of my Ant scripts, I've kind of taken the opportunity to turn into something that is *at least* as usable as the old Ant scripts, but you want to check it our yourselves. Find (outdated) documentation at http://www.agilejava.com/docbkx/ and search my blog at http://www.agilejava.com/blog/ for more information. I will try to update the documentation as soon as I get my home SVN server back online Here are my blog entries that you might find useful. You should probably read them in the given order. http://agilejava.com/blog/?p=31 http://agilejava.com/blog/?p=36 http://agilejava.com/blog/?p=37 http://agilejava.com/blog/?p=38 http://agilejava.com/blog/?p=45 Cheers, Wilfred On Fri, 2006-06-16 at 13:58 +0200, Felipe Gaúcho wrote: Dear Bolcina, first of all thank you very much for the friendly responses... I have an old project that uses DocBook to generate its documentations in PDF format (https://cejug-classifieds.dev.java.net/).. everything works fine on the old versions of Maven.. in fact my maven script is a set of ANT calls.. the documentation folder is self-contained because it can produce documents offline... the problems started when I decided to update the maven version :)) for now, I can't compile a simple example through the plugin just because the plugin seem not to work... do you have a command line I can use to install the plugin ? I tested several options here and nothing happens... best regards, Felipe Gaucho On 6/16/06, Borut Bolčina [EMAIL PROTECTED] wrote: Subject: Maven for documentation http://mail-archives.apache.org/mod_mbox/maven-users/200605.mbox/[EMAIL PROTECTED] On 16.6.2006 13:48, Felipe Gaúcho wrote: sorry, the link sent me to a page with hundred of entries.. which one ? On 6/16/06, Borut Bolčina [EMAIL PROTECTED] wrote: See my post http://mail-archives.apache.org/mod_mbox/maven-users/200605.mbox/browser which unfortunately no one commented on. Anyway, don't loose hope. Borut On 16.6.2006 10:22, Felipe Gaúcho wrote: Dear friends, I'm trying to use the docbook plugin of maven 2.0.4 but something is getting wrong :)) any tip ? C:\ mvn --version Maven version: 2.0.4 c:\ mvn plugin:download -DgroupId=maven-plugins -DartifactId=maven-sdocbook-plugin -Dversion=1.4.1 [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for updates from central [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Searching repository for plugin with prefix: 'install'. [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Plugin could not be found. If you believe it is correct, check your pluginGroups setting, and run with -U to update the remote configuration [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 6 seconds [INFO] Finished at: Fri Jun 16 10:18:18 CEST 2006 [INFO] Final Memory: 2M/5M [INFO] - 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]
Ant-based Mojo and Classpath
Hi all, I'm trying to implement a plugin based on the mechanism described here (http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html) and I can't figure out how to add a libraries to the Ant classpath. Does anybody have a clue? Using these properties: * maven.dependency.classpath * maven.compile.classpath * maven.runtime.classpath * maven.test.classpath * maven.plugin.classpath doesn't work. Thanks, Wilfred
Re: Start/stopping hsqldb as a maven plugin
I created one a while ago. My employer allows it to be open sourced, so that shouldn't be a problem, but I just haven't had the time to do it yet. It works fine for us, but it hasn't been tested properly. I'm happy to make it available under an Apache license agreement. See http://www.agilejava.com/maven-hsqldb-plugin/ On Fri, 2006-06-16 at 12:23 -0700, Wendy Smoak wrote: On 6/16/06, Dan Adams [EMAIL PROTECTED] wrote:http://mail.google.com/mail/ I'm writing an hsqldb plugin that when you run the plugin will start an hsqldb server in the background and leave it running. The motivation for this is I would like to use it for integration tests so that the server is started before the tests and stopped after. This would be very similar to how you would use cargo to start jetty and stop it after the tests. Any ideas/suggestions on how to do this? Keep an eye on CARGO-349, which adds hsqldb and mysql as database containers that Cargo can start, stop, and deploy to. :) * http://jira.codehaus.org/browse/CARGO-349
Subclassign AbstractAntMojo
All, I tried to subclass AbstractAntMojo for another project, and I fail to see how to configure it correctly. I figured that either the existing components.xml fiel in maven-antrun-plugin would be picked by the classloader, or otherwise add a components.xml file of my own to src/main/resources in my own file. No matter what I try, my own plugin gets an NPE somewhere in executeTasks, and I don't see why. Since I have been working from my intuition only, I assume that I just don't have a clue on how to do this properly. So the question is if anybody has ever given this a try and knows what to do to make it work? Thanks, Wilfred
m2: Delegating to other Mojo
All, Is there any way to force execution of some Mojo from another Mojo? Thanks, Wilfred
Re: Subclassign AbstractAntMojo
Just FYI: I appeared to be working with the maven-antrun-plugin v. 1.1 instead of 1.0 in the Maven XDoclet plugin. Moving to 1.0 solved the problem. Thanks! On Sat, 2006-05-27 at 21:20 +0200, Kenney Westerhof wrote: On Sat, 27 May 2006, Wilfred Springer wrote: Hi, take a look at xdoclet-maven-plugin, it subclasses the antrun plugin. See https://svn.codehaus.org/mojo/trunk/mojo/xdoclet-maven-plugin. -- Kenney All, I tried to subclass AbstractAntMojo for another project, and I fail to see how to configure it correctly. I figured that either the existing components.xml fiel in maven-antrun-plugin would be picked by the classloader, or otherwise add a components.xml file of my own to src/main/resources in my own file. No matter what I try, my own plugin gets an NPE somewhere in executeTasks, and I don't see why. Since I have been working from my intuition only, I assume that I just don't have a clue on how to do this properly. So the question is if anybody has ever given this a try and knows what to do to make it work? Thanks, Wilfred -- Kenney Westerhof http://www.neonics.com GPG public key: http://www.gods.nl/~forge/kenneyw.key - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DocBook Maven Plugin
: plexus:plexus-root::1.0 for project: plexus:plexus-utils:jar:1.0.1 from the repository. [DEBUG] plexus:plexus-utils:jar:1.0.1:runtime (selected for runtime) [DEBUG] commons-io:commons-io:jar:1.1:runtime (selected for runtime) [DEBUG] saxpath:saxpath:jar:1.0-FCS:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.4 for project: null:plexus-archiver:jar:1.0-alpha-5 from the repository. [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: org.codehaus.plexus:plexus-components:pom:1.1.4 from the repository. [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-5:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime) [DEBUG] Configuring mojo 'com.agilejava.docbkx:docbkx-maven-plugin:1.69.1.0:generate-html' -- [DEBUG] (f) generateToc = /book toc [DEBUG] (f) ignoreImageScaling = 1 [DEBUG] (f) includes = interface-home.xml,progress-report.xml [DEBUG] (f) sectionAutolabel = 1 [DEBUG] (f) sectionLabelIncludesComponentLabel = 1 [DEBUG] (f) sourceDirectory = C:\Documents and Settings\borutb\Desktop\Workspace\feed-index-server\src\docbkx [DEBUG] (f) stylesheetLocation = META-INF/docbkx/html/docbook.xsl [DEBUG] (f) targetDirectory = C:\Documents and Settings\borutb\Desktop\Workspace\feed-index-server\target\docbkx\html [DEBUG] (f) targetFileExtension = html [DEBUG] -- end configuration -- [INFO] [docbkx:generate-html] [INFO] Processing files matching interface-home.xml. [INFO] Processing files matching progress-report.xml. [INFO] Stylesheet location: jar:file:/C:/Documents and Settings/borutb/.m2/repository/com/agilejava/docbkx/docbkx-maven-plugin/1.6 9.1.0/docbkx-maven-plugin-1.69.1.0.jar!/META-INF/docbkx/html/docbook.xsl [INFO] Setting catalog files to: jar:file:/C:/Documents and Settings/borutb/.m2/repository/org/docbook/docbook-xml/4.4/docbook-xml -4.4.jar!/catalog.xml [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 9 seconds [INFO] Finished at: Fri May 19 12:33:52 CEST 2006 [INFO] Final Memory: 7M/50M [INFO] And here is an example Docbook document: !DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd book bookinfo titleDocBook document example/title author firstnameOvidiu/firstname surnamePredescu/surname /author copyright year2001/year holderOvidiu Predescu/holder /copyright /bookinfo preface titleExample document/title paraA simple DocBook example document./para /preface chapter titleDocBook and XSLT-process mode for GNU Emacs/XEmacs/title paraThe emphasisXSLT-process/emphasis mode, when used with the DocBook-XSL stylesheets makes GNU Emacs/XEmacs the ideal DocBook processor./para paraTo find out more on how to use the emphasisXSLT-process/emphasis mode for DocBook processing, point your browser to ulink url="" href="http://xslt-process.sourceforge.net/docbook.php">http://xslt-process.sourceforge.net/docbook.phphttp://xslt-process.sourceforge.net/docbook.php/ulink./para /chapter /book Regards, Borut On 12.5.2006 22:06, Wilfred Springer wrote: All, With JavaOne around the corner, I figured it would be good time to make some announcements, aka shameless advertising. For those of you who are not completely satisfied by the kind of DocBook support that Maven has on board, or the Mojo at mojo.codehaus.org, here's a chance to try something different. I just pushed a version from my own personal DocBook supporting plugin to the Maven repository at http://agilejava.com/maven/ (which is - contrary to what you might expect from it by its name - a Maven 2 repository). Being the father of this baby, I am of course convinced that it has some nice distinguishing features, including: 1. Based on the DocBook XSL stylesheets, however... 2. Completely self-contained; you don't need to install the DocBook XSL stylesheets on your system. You don't even need to have the DTD's on your system, and you can run the plugin if you are offline. 3. Dedicated configuration support for a huge collection of properties to influence the transformation. (In fact, it has dedicated properties for all XSL parameters documented in the DocBook XSL distribution.) 4. It has been built using a dedicated Maven plugin to generate DocBook Maven plugins. Feel free to give it a try. And read more about
DocBook Maven Plugin
All, With JavaOne around the corner, I figured it would be good time to make some announcements, aka shameless advertising. For those of you who are not completely satisfied by the kind of DocBook support that Maven has on board, or the Mojo at mojo.codehaus.org, here's a chance to try something different. I just pushed a version from my own personal DocBook supporting plugin to the Maven repository at http://agilejava.com/maven/ (which is - contrary to what you might expect from it by its name - a Maven 2 repository). Being the father of this baby, I am of course convinced that it has some nice distinguishing features, including: 1. Based on the DocBook XSL stylesheets, however... 2. Completely self-contained; you don't need to install the DocBook XSL stylesheets on your system. You don't even need to have the DTD's on your system, and you can run the plugin if you are offline. 3. Dedicated configuration support for a huge collection of properties to influence the transformation. (In fact, it has dedicated properties for all XSL parameters documented in the DocBook XSL distribution.) 4. It has been built using a dedicated Maven plugin to generate DocBook Maven plugins. Feel free to give it a try. And read more about it on my web log: http://agilejava.com/blog/ Cheers, Wilfred
XMLBeans Plugin + Eclipse Mayhem
Hi all, I am using the XMLBeans Maven Plugin in a couple of projects, but using this plugin in combination with Eclipse is giving me a headache. I was just wondering if somebody has already solved it. The layout of my project is a little like this: project +--- pom.xml +--- project-xml-binding +--- pom.xml +--- src/main/xsd/test.xsd +src/main/xsdconfig/xsdconfig.xml +--- project-client +--- pom.xml +--- src/main/java The 'project-client' module depends on project-xml-binding. The problem is that client code in 'project-client' does not always see the classes or source files generated from the XMLBeans plugin. So Eclipse is giving a lot of warnings for missing class file definitions, I don't have code completion, and my tests do not always run when running it from Eclipse. So the question is: how do I make sure that my client code has all of the class definitions of the 'project-xml-binding' project, and how do I configure my poms to make sure that eclipse:eclipse is giving me the proper project settings? Thanks, Wilfred Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Re: AW: XMLBeans Plugin + Eclipse Mayhem
Hi Christian, I was heading in a similar direction, but I figured that having a jar packaging type of pom would still convince the Eclipse plugin to add a project reference, right? Or did you change your pom to a pom packaging pom? BTW Is your Maven Plugin available as open source? Thanks, Wilfred On Fri, 2006-05-05 at 09:04 +0200, Domsch, Christian wrote: Yes I had the same problem and I think I have a working solution. The key is, that I wrote an additional plugin, that would generate a jar containing the generated sources and classes from xmlbeans. My normal project now includes this project. The process is like this: The normal XMLBeans Plugin generates ist sources and classes and puts them to a defined location. My plugin picks up thoses resources at the same location and builds the jar and installes it into the local repository. For this, my plugin runs in the process-resources phase. Now the project insode eclipse can resolve anything it needs, with one downside that you have to run the lifecycle one time outside eclipse for the initial generation of this jar. Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Re: XMLBeans Plugin + Eclipse Mayhem
Hi Stephen, Wilfred, I think you just need to run mvn install on the xmlbeans project, and then run eclipse:eclipse on only the subproject so that it uses the dependency in your local repository, instead of the Eclipse project. The problem with that approach is that all of the other dependencies will also be turned into dependencies to jar files in M2_REPO, which is not what I want. (I have many more modules as siblings of 'project-client'.) -Stephen On 5/5/06, Domsch, Christian [EMAIL PROTECTED] wrote: Hi Wilfred, Yes I had the same problem and I think I have a working solution. The key is, that I wrote an additional plugin, that would generate a jar containing the generated sources and classes from xmlbeans. My normal project now includes this project. The process is like this: The normal XMLBeans Plugin generates ist sources and classes and puts them to a defined location. My plugin picks up thoses resources at the same location and builds the jar and installes it into the local repository. For this, my plugin runs in the process-resources phase. Now the project insode eclipse can resolve anything it needs, with one downside that you have to run the lifecycle one time outside eclipse for the initial generation of this jar. Greetings, Christian Domsch. P.S.: I attached the pom and the source for this plugin. -Ursprüngliche Nachricht- Von: Wilfred Springer [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. Mai 2006 08:20 An: [EMAIL PROTECTED] Cc: Maven Users List Betreff: XMLBeans Plugin + Eclipse Mayhem Hi all, I am using the XMLBeans Maven Plugin in a couple of projects, but using this plugin in combination with Eclipse is giving me a headache. I was just wondering if somebody has already solved it. The layout of my project is a little like this: project +--- pom.xml +--- project-xml-binding +--- pom.xml +--- src/main/xsd/test.xsd +src/main/xsdconfig/xsdconfig.xml +--- project-client +--- pom.xml +--- src/main/java The 'project-client' module depends on project-xml-binding. The problem is that client code in 'project-client' does not always see the classes or source files generated from the XMLBeans plugin. So Eclipse is giving a lot of warnings for missing class file definitions, I don't have code completion, and my tests do not always run when running it from Eclipse. So the question is: how do I make sure that my client code has all of the class definitions of the 'project-xml-binding' project, and how do I configure my poms to make sure that eclipse:eclipse is giving me the proper project settings? Thanks, Wilfred Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stephen Duncan Jr www.stephenduncanjr.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Prevent Inheritance
Hi all, Is there any way to prevent a plugin in your plugins section to be inherited by submodules? Thanks, Wilfred Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED] | +31 646 720 990
Re: [m2] Using the integration-test phase
+1 I would also be interested to hear more about this. Actually, I'm kind of surprised that compilation of the tests is excluded as well, since I had the impression that compilation is done by the maven-compiler-plugin (compiler:testCompile) in the test-compile phase. (If it is not, then maybe you can force the remaining classes to be compiled by invoking compiler:testCompile from your pom in the pre-integration-test phase. It is just a thought...) Wilfred On Mon, 2006-03-27 at 16:21 -0700, Wendy Smoak wrote: If I have some tests that [will eventually] use the Cargo API to start a container, that need to be run after the package phase (so that the war file exists) and that I want excluded from the test phase... is this (see below) close? The only problem with it is that the *ServerTest classes never get compiled. I assume this is because they are excluded from the test phase. Do I also need to configure the compiler plugin to work during the integration test phase? Then I found this post in which (I think) Vincent is advocating having the 'ServerTest' classes in a different module entirely: http://mail-archives.apache.org/mod_mbox/maven-users/200405.mbox/[EMAIL PROTECTED] (If I go that route, what would the packaging be for the module that only contains in-container tests?) A list of references, the complete profile, and some output are here: http://wiki.wsmoak.net/cgi-bin/wiki.pl?Cargo Advice on whether I'm headed in the right direction would be appreciated. There are a few threads on this in the archives, but those developers were using Ant to start the container and I couldn't work out how their tests were getting compiled. profile ... build ... plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId executions execution idsurefire-it/id phaseintegration-test/phase configuration includes include**/*ServerTest.java/include /includes /configuration goals goaltest/goal /goals /execution /executions configuration excludes exclude**/*ServerTest.java/exclude /excludes /configuration /plugin /plugins /build /profile Thanks, Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED]
m2 Repo Locations
Hi there, I just read http://docs.codehaus.org/display/MAVENUSER/Creating+the +repositories , a pretty good document on policies for multiple repositories within the corporation. Before reading this document, I basically had my own way of working, which is pretty ok I guess but may deviate from what the rest of the community is doing. Now I started to wonder if there are any common practices for the Web Server root (I'm using aliases instead) and the policies for providing access to the appropriate locations on the filesystem. (I have defined a couple of UNIX groups, in order to differentiate, but doing that I introduced by own group names, and it would be nice if we could somehow align that.) At this stage, I have the following groups: mvnrepo and mvnsnap; users in the first group are allowed to upload stuff to the internal repository, users in the second group are allowed to upload snapshot builds. I would be interested to hear about your opinions. Cheers, Wilfred Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED]
m2 DocBook Directory
Hi all, AFAIK, in the past I was able to make sure that the doxia DocBook support kicked in by placing files in src/site/docbook, but nothing is happening now. I'm not even sure if DocBook support is invoked at all. Any clues? Thanks
Re: m2 DocBook Directory
Hi Brett, I ran the command that you requested; here are the results: [INFO] [INFO] Building Blammo Logging [INFO]task-segment: [help:describe] (aggregator-style) [INFO] [INFO] [help:describe] [INFO] Searching repository for plugin with prefix: 'site'. [INFO] [ERROR] FATAL ERROR [INFO] [INFO] null [INFO] [INFO] Trace java.lang.NullPointerException at org.apache.maven.plugins.help.DescribeMojo.describePlugin(DescribeMojo.java:404) at org.apache.maven.plugins.help.DescribeMojo.execute(DescribeMojo.java:222) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:216) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] [INFO] Total time: 4 seconds [INFO] Finished at: Mon Mar 20 08:53:26 CET 2006 [INFO] Final Memory: 3M/5M [INFO] I'm running the 2.0.2 version of Maven. Cheers, Wilfred On Mon, 2006-03-20 at 09:48 +1100, Brett Porter wrote: what version of the site plugin? mvn help:describe -Dplugin=site what version was it working in before? Cheers, Brett On 3/20/06, Wilfred Springer [EMAIL PROTECTED] wrote: Hi all, AFAIK, in the past I was able to make sure that the doxia DocBook support kicked in by placing files in src/site/docbook, but nothing is happening now. I'm not even sure if DocBook support is invoked at all. Any clues? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Wilfred Springer | Software Architect | TomTom | [EMAIL PROTECTED]
RE: Installing artifacts into a local repository
That should be 'mvn deploy'. 'mvn install' installs stuff in your local repository cache 'mvn deploy' deploys it to a repository mvn deploy will give you what you need. -Original Message- From: Bruno Patini Furtado [mailto:[EMAIL PROTECTED] Sent: Fri 3/17/2006 7:25 PM To: users@maven.apache.org Subject: Installing artifacts into a local repository I´m using the install plugin to install a artifact into my intranet repository. I´ve seen in some recent thread a example of the distributionManagement configuration that uses the file:// URL protocol. My pom goes like this: distributionManagement repository idmycompany-repository/id nameMyCompany Repository/name urlfile://c:/tools/maven-repo/url /repository /distributionManagement But after running maven install I´ve noted that it only installed the artifact into my ~/.m2/repository [INFO] Installing c:\PROJECT_HOME\target\ARTIFACT_NAME-2.0.jar to USER_HOME\.m2\repository\GROUP_ID\ARTIFACT_NAME\2.0\ARTIFACT_NAME- 2.0.jar Am I missing something? Thanks in advance. -- Minds are like parachutes, they work best when open. Bruno Patini Furtado Software Developer webpage: www.bpfurtado.net blog: http://bpfurtado.livejournal.com
Re: Is it possible?
Yes, you can use Maven for all of the tasks that you mentioned. In fact, it doesn't really require a lot, as long as you set the packaging entry in your pom.xml file to 'war', and as long as you have the sources and resources in the appropriate locations. (If you don't, then you simply add some extra properties to the pom.xml file. Deploying it to Tomcat is a little trickier, but with Cargo (http://cargo.codehaus.org/) it shouldn't be a problem. 1. Get sources and ressources from a subversion repository. +/- yes, although I usually use svn or cvs commandline tools to check things out. 2. Compile the sources. yes! 3. Construct the web application. (Copy ressources and classes to the right place) yes! 4. Build a war file. (Take the copied files and place them in a war file) yes! 5. Deploy it on a tomcat server. (Copy the war file to the tomcat server) yes, using Cargo: http://cargo.codehaus.org/ Is it possible - and how? Bye Lutz Fechner LEGAL DISCLAIMER The information in this transmission is privileged and/or contains confidential information intended solely for the addressee! If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. You must not copy, distribute, disclose or take any action in reliance on or in relation to it. If you have received this communication in error, please delete all copies of the message and its attachments and notify the sender immediately. VIRUS ADVICE E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the content of this message, which arise as a result of e-mail transmission. The contents of any attachment to this e-mail may contain software viruses wich could damage your own computer system. While we have taken every reasonable precaution to minimze this risk, we cannot rule out the possibility that attachments may contain software viruses. You should carry out your own virus check before opening the attachments. -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] xmlbeans plugin
Hi Robert, Have you figured out a way to work around this? I'm running into the same problem. Thanks, Wilfred On Sat, 2005-10-29 at 14:50, Robert Biernat wrote: Hi, I'm trying to install the xml beans plugin to my local repository after checking it out from the codehaus subversion repository. The pom has some references to stax-1.1.1-dev and xmlbeans-jsr173-api-2.0-dev, which it cannot find in the ibiblio or codehaus repositories. Has anyone got this plugin to work? If so where did you get the missing jar's from? Thanks Rob -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] JAXB Plugin
All, Just to make sure: did anybody ever run into a Maven 2 JAXB plugin? AFAIK, the only existing plugin is the one for Maven 1 and a JAXME plugin at mojo.codehaus.org. I am looking for a JWSDP 1.6 based version. Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Exclude Report
All, Since the dependency report currently breaks my build (http://jira.codehaus.org/browse/MNG-1316), I'm looking for a way to exclude this report from the generated site, but I haven't been able to figure out how to do it. Any clues? Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS Mayhem
You were right Thanks! On Thu, 2005-10-20 at 16:21, Bernd Mau wrote: Hi Wilfred, this looks like my entry. Do you have the problem using the release-plugin? I had this message and the fault was an invalid entry in the file release.properties (meanwhile I changed the pom). After deleting the file everything worked again. Bernd --- Bernd Mau Hamburger Hafen und Logistik AG - Zentralbereich Informationssysteme - Bei St. Annen 1 D-20457 Hamburg Fon: +49 40 - 30 88 - 33 89 Fax: +49 40 - 30 88 - 33 66 Mobil: +49 172 - 594 67 26 E-Mail: [EMAIL PROTECTED] --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CVS Mayhem
All, Could anybody give me a clue why this isn't working? (I have been working with CVS and Maven 2 before, and it never was a problem, until today. Maven tells me that it's not a valid scm url. But why?) scm developerConnectionscm:cvs:pserver:[EMAIL PROTECTED]:/home/cvs/repository:maven-netbeans-plugin/developerConnection /scm Thanks, Wilfred PS Note that there's no detail message, even though the parseScmUrl adds more detail to the parsing problem, but this data seems to get lost somewhere. -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2/mvn] CVS Mayhem
Hmmm, I omitted the obligatory m2 (or should it be mvn from now on?) tag in the subject: All, Could anybody give me a clue why this isn't working? (I have been working with CVS and Maven 2 before, and it never was a problem, until today. Maven tells me that it's not a valid scm url. But why?) scm developerConnectionscm:cvs:pserver:[EMAIL PROTECTED]:/home/cvs/repository:maven-netbeans-plugin/developerConnection /scm Thanks, Wilfred PS Note that there's no detail message, even though the parseScmUrl adds more detail to the parsing problem, but this data seems to get lost somewhere. -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Re: [m2] NetBeans Plugin - M2 Subversion and Ibiblio Repository]
Ok, it appears that somebody else ([EMAIL PROTECTED]) has already created something. I lost track of the plugin matrix a couple of months ago. It seems that this plugin does most of what I have done, plus a couple of additional things. I'll ping Raphael to hear about the status of his work. Jason offered to add another project for my plugin, but that doesn't make a lot of sense of course. Cheers, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ---BeginMessage--- On Fri, 2005-10-14 at 19:10 +0200, wilfred springer wrote: To whom it concerns: I would (still) really like to know what I need to do to get my NetBeans plugin into the Maven 2 repository. It won't go into the SVN repository @ Apache but we can get you setup at the Mojo project. I know there is another netbeans plug-in there that you might want to look at that too: http://svn.mojo.codehaus.org/trunk/mojo/mojo-sandbox/netbeans-freeform- maven-plugin/ And I mean both the Maven 2 subversion and the Maven artifacts repository. http://blogs.sun.com/roller/page/wilfred?entry=maven_2_netbeans_plugin Easiest thing would be to get it setup at the Mojo project and then we can build it and deploy it from there. Thanks, Wilfred -- jvz. Jason van Zyl jason at maven.org http://maven.apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] NetBeans Plugin - M2 Subversion and Ibiblio Repository
To whom it concerns: I would (still) really like to know what I need to do to get my NetBeans plugin into the Maven 2 repository. And I mean both the Maven 2 subversion and the Maven artifacts repository. http://blogs.sun.com/roller/page/wilfred?entry=maven_2_netbeans_plugin Thanks, Wilfred -- wilfred springer [EMAIL PROTECTED] agilejava.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2: NetBeans Plugin
Guys, I've created a NetBeans plugin, comparable to the Eclipse plugin that already existed before. It's not as complete yet, but it works fine. (http://blogs.sun.com/roller/page/wilfred?entry=maven_2_netbeans_plugin) It would not be the first time that created a plugin that other people had been working on as well, so that's why I'm posting this here, just to make sure. I'd be happy to contribute it to the maven-components repository, if anybody is able to tell me how. Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
m2: addResource vs. addCompileSourceRoot
Hi all, I'm currently building a plugin for generating source code using SableCC (http://sourceforge.net/projects/sablecc-plugin). I did manage to get m2 to add the sources to the compilation classpath, but I haven't been able to add a couple of resource files (also generated by the plugin) to the jar file. So I have this: project.addCompileSourceRoot(targetDir.getAbsolutePath()); Resource resource = new Resource(); resource.setDirectory(targetDir.getAbsolutePath()); ArrayList patterns = new ArrayList(); patterns.add(**/*.dat); resource.setIncludes(patterns); project.getBuild().addResource(resource); And the first line successfully adds the targetDir to the compilation classpath, but the remainder of the snippet doesn't seem to have any effect at all. Any clues? Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: m2: addResource vs. addCompileSourceRoot
Wow. Well, if the other plugin solves the problem (does it?), I'd be more than happy to drop mine. ;-) On Sat, 2005-10-08 at 18:59, Brett Porter wrote: Big clue: http://svn.mojo.codehaus.org/trunk/mojo/sablecc-maven-plugin/src/main/java/org/apache/maven/plugin/sablecc/SableCCMojo.java?view=markup Jesse has already written a plugin for SableCC. I'm sure he'll pipe up but maybe you'd like to collaborate on it? Cheers, Brett On 10/9/05, Wilfred Springer [EMAIL PROTECTED] wrote: Hi all, I'm currently building a plugin for generating source code using SableCC (http://sourceforge.net/projects/sablecc-plugin). I did manage to get m2 to add the sources to the compilation classpath, but I haven't been able to add a couple of resource files (also generated by the plugin) to the jar file. So I have this: project.addCompileSourceRoot(targetDir.getAbsolutePath()); Resource resource = new Resource(); resource.setDirectory(targetDir.getAbsolutePath()); ArrayList patterns = new ArrayList(); patterns.add(**/*.dat); resource.setIncludes(patterns); project.getBuild().addResource(resource); And the first line successfully adds the targetDir to the compilation classpath, but the remainder of the snippet doesn't seem to have any effect at all. Any clues? Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - 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] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Multiproject directory organization on CVS
Hi Nelson, Did you ever get a decent answer on your question? I've been trying to figure out how to do this myself as well, but I haven't really found a solution yet. Maven (m2) itself uses multiple project files, but the Maven source code exists in a SVN repository. I haven't actually used CVS modules yet, but if that means that I can use a single tag in multiple modules to indicate different things, then it sounds like a solution that might work. (But then again, it sounds like an awful lot of work, if you need to manage project that have the size of Maven itself.) Thanks, Wilfred On Fri, 2005-09-16 at 15:07, Nelson Arape wrote: Hi Tomas I sympathise with you, but then how do you handle this situation: project +-core +-optional-plugin1 +-optional-plugin2 +-optional-plugin3 +-examples-files where project have a pom (also src/site, src/assembly, src/bin) and every subproject also have a pom? I would like to follow the: one POM = one package = one CVS/Eclipse module for the same reason you mention, but I dont know how to doit in a subproject (or multiproject) configuration. Cheers Nelson Arape Thomas Van de Velde wrote: I always apply the following: one POM = one package = one CVS/Eclipse module There are many advantages to this aproach: 1) You are not mixing libraries across modules in your Eclipse classpath 2) This solution allows people to checkout only those parts on which they work 3) This solution scales well for very large projects 4) You can use the Eclipse plugin to generate a classpath file that is synchronized with the POM. This doesn't work for nested POMs. Cheers, Thomas On 9/13/05, Nelson Arape [EMAIL PROTECTED] wrote: Sorry, I did not make may self clear. I don't have problems with How maven handles subprojects, but in how organize thos projects in a CVS repository. How I look, I have to options: 1.- Make the whole project and subprojects a module in the CVS repository. 2.- Make each subproject a distinct module in the CVS repository. I originally thought that 1 was the way to go, but then I haven't a place to store the project (root) pom.xml, src/site and src/assembly files. So now I think option 2 is the way to go. Can anyone confirm, denied or expand my assumptions Nelson Arape Yann Le Du wrote: Hello Nelson, --- Nelson Arape [EMAIL PROTECTED] a écrit : Hello to all I have a multiproject directory organization as follows: project +-core +-optional-plugin1 +-optional-plugin2 +-optional-plugin3 +-examples-files I originally thought that I should create all subprojects as CVS modules, but what do I do with the project pom?. So that a goal executed in project be recursively executed in subprojects, you could add the following in the project pom : modules modulecore/module moduleoptional-plugin1/module ... /modules Additionally I am also planing to use the site plugin, so should i create a src/site on project or a site subproject instead? For myself, I use a src/site. This allows me to simply execute the site plugin in project, which recursively calls the same in subprojects. I believe the Maven dev team uses a site subproject, maybe someone can comment on the pros cons ? Thanks in advance Nelson Arapé PS: sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Regards, Yann Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout ! Créez votre Yahoo! Mail sur http://mail.yahoo.fr - 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] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED
[m2] javassist-3.0.pom missing in ibiblio repository
Sorry for the wide distribution, but I don't know where to file this problem in Jira. The ibiblio repository does not contain the javassist-3.0.pom file and related artifacts. (Suggested contents for the javassist-3.0.pom file: project modelVersion4.0.0/modelVersion groupIdjavassist/groupId artifactIdjavassist/artifactId version3.0/version /project ) -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Add other repository [m2]
I have seen this URL, thanks. In fact, I even tried a number of things to understand how it works, but I'm not sure if I'm required to add a mirror add a server add a profile with a repository What do you suggest? Thanks, Wilfred On Thu, 2005-07-14 at 16:34, Dennis Geurts wrote: try this URL: http://maven.apache.org/maven2/maven-settings/settings.html Dennis On 7/14/05, Wilfred Springer [EMAIL PROTECTED] wrote: All, I want my project to check for a maven plugin from my own repository, before trying the http://repo1.maven.org/maven2/plugins repository. Any clues? Thanks, Wilfred -- _ Wilfred Springer Phone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client Solutions Fax : +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems Netherlands AIM : wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependency mayhem [m2]
All, I'm trying to get the maven release plug-in working. My project organization looks like this: /bignumbers/bignumbers-core /bignumbers-parser /bignumbers-interpreter Every directory mentioned above has its own pom.xml file. All subdirectories refer to the pom from the /bignumbers directory as their parent. Other dependencies: bignumbers-interpreter - bignumbers-core bignumbers-interpreter - bignumbers-parser Now the problem seems to be that m2 release:prepare fails since there are dependencies on snapshot artifacts. If I go to the root of this project, then m2 release:prepare results in the files in /bignumbers directory being tagged. Then the build breaks, since it notices that the parent of bignumbers-core hasn't been released yet. I don't get it... Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] No documents being generated
Hi all, I have a couple of Maven 2 projects, but none of them is generating any documentation whenever I'm invoking 'm2 site:site'. I *do* get this error though: [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. but I'm not entirely sure if this is causing the problem. Any suggestions? Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [m2] No documents being generated
H, It appears that content *is* being generated as soon as I add my first .apt file. So it didn't have anything to do with the VM_global_library.vm file. Thanks, Wilfred On Fri, 2005-07-08 at 14:23, Vincent Siveton wrote: Hi Wilfred, AFAIK it is normal: Velocity is trying to find the VM_global_library.vm file which should contain macros globally shared among all templates. Regards, Vincent -Original Message- From: Wilfred Springer [mailto:[EMAIL PROTECTED] Sent: Friday, July 08, 2005 8:01 AM To: Maven Users List Subject: [m2] No documents being generated Hi all, I have a couple of Maven 2 projects, but none of them is generating any documentation whenever I'm invoking 'm2 site:site'. I *do* get this error though: [INFO] Velocimacro : initialization starting. [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. [INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm' [INFO] Velocimacro : VM library template macro registration complete. [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed. [INFO] Velocimacro : messages on : VM system will output logging messages [INFO] Velocimacro : autoload off : VM system will not automatically reload global library macros [INFO] Velocimacro : initialization complete. but I'm not entirely sure if this is causing the problem. Any suggestions? Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - 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] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DocBook support
Guys, Am I right that DocBook support is still missing? Thanks, Wilfred -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DocBook support
Whoops, forgot to insert the obligatory [m2] marker. ;-) I actually meant Maven 2. I quickly looked at the Doxia code (by decompiling it), and the DocBook parser has a parseXDoc operation that is being invoked. Internally, it is looking for all sorts of non-DocBook tags, like 'li' instead of 'listitem' etc. I'd be happy to make some adjustments if somebody is able to give me the location of the Doxia sources, and give me a clue how the maven-site-plugin figures out where to find the DocBook files. (Putting DocBook files in src/site/docbook does not work.) Thanks, Wilfred On Fri, 2005-07-08 at 15:55, Siegfried Goeschl wrote: Hi Wilfried, are you talking about M1 or M2? For M1 there is a plugin on maven-plugins.sourceforge.net ... Cheers, Siegfried Goeschl Wilfred Springer wrote: Guys, Am I right that DocBook support is still missing? Thanks, Wilfred - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Plugin never invoked (m2)
Hi, I'm trying to get my own plugin running (m2), but it is never invoked. If I try to use it in a project, then Maven seems to be aware of it, but never invokes the execute() operation on my Mojo to make it actually happen. The only message related to my plugin I'm getting is this one: [INFO] sablecc-plugin: using locally installed snapshot Any clues? Wilfred == Mojo Source Code = /** * A Maven2 Mojo for generating Java sources from SableCC grammar files. * * @author Wilfred Springer * @version $Revision$ * @goal sablecc * @phase generate-sources */ public class SableCCMojo extends AbstractMojo { /** * The directory containing the source grammar files. * @parameter */ private String sourceDir; /** * The target directory. * * @parameter */ private String targetDir; = Plugin POM project modelVersion4.0.0/modelVersion groupIdsablecc-plugin/groupId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version artifactIdsablecc-plugin/artifactId dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0-alpha-3/version /dependency dependency groupIdsablecc/groupId artifactIdsablecc/artifactId version2.18.2/version /dependency dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.0/version /dependency /dependencies build sourceDirectorysrc/java/sourceDirectory /build /project Plugin Invocation === [INFO] jcalc: using locally installed snapshot [INFO] [INFO] Building jcalc:jcalc-parser:jar:1.0-SNAPSHOT [INFO] [INFO] maven-clean-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] [clean:clean] [INFO] Deleting directory /home/wilfred/workspace/jcalc/jcalc-parser/target [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Jul 06 10:28:54 CEST 2005 [INFO] Final Memory: 1M/2M [INFO] [EMAIL PROTECTED] jcalc-parser]$ m2 install [INFO] jcalc: using locally installed snapshot [INFO] [INFO] Building jcalc:jcalc-parser:jar:1.0-SNAPSHOT [INFO] [INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-jar-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-source-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-install-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] sablecc-plugin: using locally installed snapshot [INFO] [resources:resources] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] Setting reports dir: /home/wilfred/workspace/jcalc/jcalc-parser/target/surefire-reports --- T E S T S --- There are no test to run. Results : [surefire] Tests run: 0, Failures: 0, Errors: 0 [INFO] [jar:jar] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/wilfred/workspace/jcalc/jcalc-parser/target/jcalc-parser-1.0-SNAPSHOT.jar [INFO] [source:jar] [INFO] Not producing source bundle for a SNAPSHOT build [INFO] [install:install] [INFO] Installing /home/wilfred/workspace/jcalc/jcalc-parser/target/jcalc-parser-1.0-SNAPSHOT.jar to /home/wilfred/.m2/repository/jcalc/jcalc-parser/1.0-SNAPSHOT/jcalc-parser-1.0-SNAPSHOT.jar [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 5 seconds [INFO] Finished at: Wed Jul 06 10:29:08 CEST 2005 [INFO] Final Memory: 2M/5M [INFO] -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax
Re: Plugin never invoked (m2)
Hm, ok, apparently this is how it works: plugins plugin groupIdsablecc-plugin/groupId artifactIdsablecc-plugin/artifactId version1.0-SNAPSHOT/version executions execution goals goalsablecc/goal /goals /execution /executions /plugin /plugins Note that the execution element is not mentioned in the project descriptor documentation at http://maven.apache.org/maven2/maven-model/maven.html. Cheers, Wilfred On Wed, 2005-07-06 at 10:32, Wilfred Springer wrote: Hi, I'm trying to get my own plugin running (m2), but it is never invoked. If I try to use it in a project, then Maven seems to be aware of it, but never invokes the execute() operation on my Mojo to make it actually happen. The only message related to my plugin I'm getting is this one: [INFO] sablecc-plugin: using locally installed snapshot Any clues? Wilfred == Mojo Source Code = /** * A Maven2 Mojo for generating Java sources from SableCC grammar files. * * @author Wilfred Springer * @version $Revision$ * @goal sablecc * @phase generate-sources */ public class SableCCMojo extends AbstractMojo { /** * The directory containing the source grammar files. * @parameter */ private String sourceDir; /** * The target directory. * * @parameter */ private String targetDir; = Plugin POM project modelVersion4.0.0/modelVersion groupIdsablecc-plugin/groupId packagingmaven-plugin/packaging version1.0-SNAPSHOT/version artifactIdsablecc-plugin/artifactId dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version2.0-alpha-3/version /dependency dependency groupIdsablecc/groupId artifactIdsablecc/artifactId version2.18.2/version /dependency dependency groupIdcommons-io/groupId artifactIdcommons-io/artifactId version1.0/version /dependency /dependencies build sourceDirectorysrc/java/sourceDirectory /build /project Plugin Invocation === [INFO] jcalc: using locally installed snapshot [INFO] [INFO] Building jcalc:jcalc-parser:jar:1.0-SNAPSHOT [INFO] [INFO] maven-clean-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] [clean:clean] [INFO] Deleting directory /home/wilfred/workspace/jcalc/jcalc-parser/target [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 1 second [INFO] Finished at: Wed Jul 06 10:28:54 CEST 2005 [INFO] Final Memory: 1M/2M [INFO] [EMAIL PROTECTED] jcalc-parser]$ m2 install [INFO] jcalc: using locally installed snapshot [INFO] [INFO] Building jcalc:jcalc-parser:jar:1.0-SNAPSHOT [INFO] [INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-jar-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] maven-source-plugin: resolved to version 2.0-alpha-2 from local repository [INFO] maven-install-plugin: resolved to version 2.0-alpha-3 from local repository [INFO] sablecc-plugin: using locally installed snapshot [INFO] [resources:resources] [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] Setting reports dir: /home/wilfred/workspace/jcalc/jcalc-parser/target/surefire-reports --- T E S T S --- There are no test to run. Results : [surefire] Tests run: 0, Failures: 0, Errors: 0 [INFO] [jar:jar] [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /home/wilfred/workspace/jcalc/jcalc-parser/target/jcalc-parser-1.0-SNAPSHOT.jar [INFO] [source:jar] [INFO] Not producing source bundle for a SNAPSHOT build [INFO] [install:install] [INFO] Installing /home/wilfred/workspace/jcalc/jcalc-parser/target/jcalc-parser-1.0
[m2] Adding resources from plugin
Does anybody know if it is possible to add resources to a POM automatically within my plugin? I'm looking for something like this: compileSourceRoots.add() - but then for resources. -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Adding resources from plugin
Hi Jason, I'm creating an [m2] SableCC plug-in. SableCC generates both Java sources and a couple of other data files. (Like data for the lexical analyzer's finite state machine.) The plug-in that I created will be called at the 'generate-sources' stage. The plug-in will add the directory containing the generated sources to the list of directories to be included in compilation. That means that (as a user of the plug-in) I don't need to be aware of anything at all: SableCC provides a clear separation between the parser and behavior associated to it for a particular application of the parser. That means that the jar file that is getting generated from a simple invocation of SableCC is a reusable component in its own right. (Unlike Antlr.) It's just a little bit odd that developers that are using the SableCC plug-in would need to be aware of the different files that are being generated only because of some resources that still need to be included 'manually'. Cheers, Wilfred On Wed, 2005-07-06 at 15:00, Jason van Zyl wrote: On Wed, 2005-07-06 at 14:36 +0200, Wilfred Springer wrote: Does anybody know if it is possible to add resources to a POM automatically within my plugin? I'm looking for something like this: compileSourceRoots.add() - but then for resources. That sounds like a reasonable request, what's your particular use case? -- _ Wilfred SpringerPhone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client SolutionsFax: +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems NetherlandsAIM: wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]