RE: How to control java:compile
Hi, excludes can be specified in the project.xml additional steps before or after doing the compile can be defined in the maven.xml file with the preGoal and postGoal tags. Christian -Original Message- From: Maximilian A. Ott [mailto:[EMAIL PROTECTED] Sent: Dienstag, 8. Juli 2003 17:42 To: Maven Users List Subject: How to control java:compile Working my way down the issues: How do I control the java compile targets? In my current ant targets I: * use excludes to exclude java sources which aren't working or obsolete * rmic * jaxb builds Also for some of my libraries I create multiple jars, like libX-core, libX-all Can I do that? Thanks, -max - 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: RC1 release date
I'm just following Ben's lead. I think the roadmap and linked issue are now in synch... -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au Vincent Massol [EMAIL PROTECTED] wrote on 09/07/2003 05:29:11 PM: dIon, can you tell me why you are using an issue to track the progress of a release? There is the notion of release in JIRA and you can track what's left to do by using the more powerful Roadmap feature. I'm sure I must be missing something... :-) Thanks -Vincent -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 02:04 To: Maven Users List Subject: Re: RC1 release date Just as a follow up, we are tracking b10 using jira.codehaus.org. Search on MAVEN-401 and you'll see how much outstanding work there is. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au James Richmond [EMAIL PROTECTED] wrote on 08/07/2003 07:22:10 PM: Thanks, any date for b10? On Mon, 2003-07-07 at 09:07, James Richmond wrote: Is there a rough date scheduled for Maven RC1 release? First b10 will come. There are only a couple more issues to resolve there and then that will be released. No firm date or estimate on rc1. Thanks, Jon _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven-new roadmap (was: Re: Roadmap (was RE: RC1 release date))
hi- should it be possible to attach MAVEN-525 to maven-new-unreleased ? -- gd Message du 09/07/03 10:15 De : Vincent Massol [EMAIL PROTECTED] A : 'Maven Users List' [EMAIL PROTECTED] Copie à : Objet : Roadmap (was RE: RC1 release date) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 09:43 To: Maven Users List Subject: RE: RC1 release date I'm just following Ben's lead. I think the roadmap and linked issue are now in synch... Ok. Let's remove issue 401 then and continue using the roadmap feature? Ben? Thanks -Vincent -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au Vincent Massol [EMAIL PROTECTED] wrote on 09/07/2003 05:29:11 PM: dIon, can you tell me why you are using an issue to track the progress of a release? There is the notion of release in JIRA and you can track what's left to do by using the more powerful Roadmap feature. I'm sure I must be missing something... :-) Thanks -Vincent -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 02:04 To: Maven Users List Subject: Re: RC1 release date Just as a follow up, we are tracking b10 using jira.codehaus.org. Search on MAVEN-401 and you'll see how much outstanding work there is. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au James Richmond [EMAIL PROTECTED] wrote on 08/07/2003 07:22:10 PM: Thanks, any date for b10? On Mon, 2003-07-07 at 09:07, James Richmond wrote: Is there a rough date scheduled for Maven RC1 release? First b10 will come. There are only a couple more issues to resolve there and then that will be released. No firm date or estimate on rc1. Thanks, Jon _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jelly question
Hi, Is it possible to update an xml file with Jelly ? For example, modify the content of an attribute or a tag. Thx, -emmanuel
Re: Problems with dependencies
[EMAIL PROTECTED] wrote: Brian Ewins [EMAIL PROTECTED] wrote on 08/07/2003 09:30:28 PM: Maximilian A. Ott wrote: on the bleeding edge, but is there a way to declare the latest on that development branch, or in other words the 1.2.x where x denotes the latest revision of the 1.2 series. Yes and no. You can declare a dependency on version 1.2-SNAPSHOT, but you can't build something that looks like that! Ok, you can sortof, via ugly hacks. Ugly hack #1: put part of the version number in the artifact name. ie artifactid = foo-1.2, install-snapshot will now produce 'foo-1.2-20030708.094617.jar' (or something like that). Not quite what you wanted. ??? jar:install-snapshot creates a -SNAPSHOT jar in the local repo. What's wrong with that? Not a huge amount. I called it an ugly hack because it moves version information out of the version id and into the artifact id...you can't be 100% comfortable with that[1]? I said it wasnt quite what Max wanted because the version number isn't quite what he asked for, as its not of the form 1.2.x . Trivial I know; but thats why I mentioned foo-1.2-20030708.094617.jar, I didn't mean to imply that foo-1.2-SNAPSHOT.jar wouldn't be built as well. -Baz [1] And you can't simultaneously say 'I want the latest foo', 'I want the latest foo version 1', 'I want the latest foo version 1.2' with this hack... the others do offer this option. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jelly question
Not directly with Jelly, but you can use the excellent Ant xmltask from http://www.oopsconsultancy.com/software/xmltask.html -Vincent -Original Message- From: Emmanuel boudrant [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 10:37 To: 'Maven Users List' Subject: Jelly question Hi, Is it possible to update an xml file with Jelly ? For example, modify the content of an attribute or a tag. Thx, -emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Jelly question
Mabye you can use xml:parse. It returns a dom4j Document in a variable. You can use this variable to manipulate the document. http://jakarta.apache.org/commons/jelly/libs/xml/tags.html#xml:parse _Maybe_ use can use xml:parse in the body of the other xml-tags: e.g. xml:expr xpath=/bla/bli/[EMAIL PROTECTED] xml:parse xml=/path/fool.xml/ /xml:expr don't know... -Ursprüngliche Nachricht- Von: Emmanuel boudrant [mailto:[EMAIL PROTECTED] Gesendet am: Mittwoch, 9. Juli 2003 10:37 An: 'Maven Users List' Betreff: Jelly question Hi, Is it possible to update an xml file with Jelly ? For example, modify the content of an attribute or a tag. Thx, -emmanuel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RC1 release date
That's a historical thing I did because of all the issues that had dodgy values in their fix for field. Dion is fixing the fix for values at the moment. We're heading towards a roadmapped release from now on out. Vincent Massol wrote: dIon, can you tell me why you are using an issue to track the progress of a release? There is the notion of release in JIRA and you can track what's left to do by using the more powerful Roadmap feature. I'm sure I must be missing something... :-) Thanks -Vincent -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 02:04 To: Maven Users List Subject: Re: RC1 release date Just as a follow up, we are tracking b10 using jira.codehaus.org. Search on MAVEN-401 and you'll see how much outstanding work there is. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au James Richmond [EMAIL PROTECTED] wrote on 08/07/2003 07:22:10 PM: Thanks, any date for b10? On Mon, 2003-07-07 at 09:07, James Richmond wrote: Is there a rough date scheduled for Maven RC1 release? First b10 will come. There are only a couple more issues to resolve there and then that will be released. No firm date or estimate on rc1. Thanks, Jon _ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Xalan issue ?
I think xalan jars on ibliblio are missing some classes. Especially the org.apache.xalan.processor.TransformerFactoryImpl which is provided in apache web site jars. I understand that the big jar has been cleaned, but I can't find this class anywhere else. I am right with this miss or am I missing something ;-) Thank's - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jelly question
Well, with jelly, you can easily modify a stream of SAX events. But you can definitely parse a document, store it in a variable, modify it (accessing it using XPath for example) then re-output it... Down here is such a snippet, it parses a bunch of files together and re-outputs it in one file... Do note that if you're using DTDs or Schemas, the default values specified there will come in... Also, do not that jelly has a strong tendency to ignore all whitespace by default (the trim attribute just about everywhere) which may or may not be wished... Paul ?xml version=1.0 encoding=utf-8 ? j:jelly xmlns:j =jelly:core xmlns:log =jelly:log xmlns:x =jelly:xml xmlns:ant =jelly:ant xmlns:util=jelly:util xmlns:b=jelly:beanshell log:infoConstructing File scanner./log:info ant:fileScanner var=blopFiles ant:fileset dir=. includes=blop/**/dependency.xml/ /ant:fileScanner log:infoFile scanner constructed./log:info !-- - amalgamate all files within one object -- x:parse var=all_files my:allFiles xmlns:my=myNamespace j:forEach var=file items=${blopFiles.iterator()} j:set var=url value=${file.toURL()}/ log:infoGoing around ${url}/log:info my:file href=${url.toExternalForm()} j:include uri=${url.toExternalForm()}/ /my:file /j:forEach /my:allFiles /x:parse !-- do something on there like something using x:forEach which goes around XPath elements -- j:file name=someFile.xml outputMode=HTML !-- prettyPrint=yes -- x:copyOf select=$all_files/ /j:file /j:jelly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Jelly question
I do hope that this should be solved using the appropriate namespace declarations ! Thanks for the report wether it does or not work. Paul On Mercredi, juil 9, 2003, at 11:12 Europe/Paris, Rademacher Tobias wrote: Mabye you can use xml:parse. It returns a dom4j Document in a variable. You can use this variable to manipulate the document. http://jakarta.apache.org/commons/jelly/libs/xml/tags.html#xml:parse _Maybe_ use can use xml:parse in the body of the other xml-tags: e.g. xml:expr xpath=/bla/bli/[EMAIL PROTECTED] xml:parse xml=/path/fool.xml/ /xml:expr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Jelly question
Jelly is extremely powerful (as is Java), but I personally prefer using xmltask. Here's how you would modify an attribute: xmltask source=input.xml dest=out.xml attr path=web/servlet/[EMAIL PROTECTED]'4']/ attr=id value=test/ /xmltask looks simpler to me (provided you are ok adding a new jar to your build classpath!). -Vincent -Original Message- From: Paul Libbrecht [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 13:42 To: Maven Users List Subject: Re: Jelly question Well, with jelly, you can easily modify a stream of SAX events. But you can definitely parse a document, store it in a variable, modify it (accessing it using XPath for example) then re-output it... Down here is such a snippet, it parses a bunch of files together and re-outputs it in one file... Do note that if you're using DTDs or Schemas, the default values specified there will come in... Also, do not that jelly has a strong tendency to ignore all whitespace by default (the trim attribute just about everywhere) which may or may not be wished... Paul ?xml version=1.0 encoding=utf-8 ? j:jelly xmlns:j =jelly:core xmlns:log =jelly:log xmlns:x =jelly:xml xmlns:ant =jelly:ant xmlns:util=jelly:util xmlns:b=jelly:beanshell log:infoConstructing File scanner./log:info ant:fileScanner var=blopFiles ant:fileset dir=. includes=blop/**/dependency.xml/ /ant:fileScanner log:infoFile scanner constructed./log:info !--- amalgamate all files within one object -- x:parse var=all_files my:allFiles xmlns:my=myNamespace j:forEach var=file items=${blopFiles.iterator()} j:set var=url value=${file.toURL()}/ log:infoGoing around ${url}/log:info my:file href=${url.toExternalForm()} j:include uri=${url.toExternalForm()}/ /my:file /j:forEach /my:allFiles /x:parse !-- do something on there like something using x:forEach which goes around XPath elements -- j:file name=someFile.xml outputMode=HTML !-- prettyPrint=yes -- x:copyOf select=$all_files/ /j:file /j:jelly - 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: Jelly question
Hi Tobias, Not sure I understand your question. My own personal rule for writing plugins is the following: 1/ Write the logic in Java. If I write an xml processing plugin then I would write the xml processing logic in java. That's of course if a framework does not already exist for it... Then, depending on your use case you may want to wrap it in an Ant task or in a Jelly tag or in a Maven plugin or... -Vincent -Original Message- From: Rademacher Tobias [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 15:17 To: 'Maven Users List' Subject: AW: Jelly question Please correct me if I was wrong: I thougth Jelly tag libs are inspired by JSTL, aren't they? If that is true Jelly gets a +1 for it save learining time. So Vicent maybe the JSTL tags may benefit for simplification? What should be use if we right a common plugin for xml processing? ant, jelly... ??? Any user guidiance for plugin writters? Thx Toby -Ursprüngliche Nachricht- Von: Vincent Massol [mailto:[EMAIL PROTECTED] Gesendet am: Mittwoch, 9. Juli 2003 14:43 An: 'Maven Users List' Betreff: RE: Jelly question Jelly is extremely powerful (as is Java), but I personally prefer using xmltask. Here's how you would modify an attribute: xmltask source=input.xml dest=out.xml attr path=web/servlet/[EMAIL PROTECTED]'4']/ attr=id value=test/ /xmltask looks simpler to me (provided you are ok adding a new jar to your build classpath!). -Vincent -Original Message- From: Paul Libbrecht [mailto:[EMAIL PROTECTED] Sent: 09 July 2003 13:42 To: Maven Users List Subject: Re: Jelly question Well, with jelly, you can easily modify a stream of SAX events. But you can definitely parse a document, store it in a variable, modify it (accessing it using XPath for example) then re-output it... Down here is such a snippet, it parses a bunch of files together and re-outputs it in one file... Do note that if you're using DTDs or Schemas, the default values specified there will come in... Also, do not that jelly has a strong tendency to ignore all whitespace by default (the trim attribute just about everywhere) which may or may not be wished... Paul ?xml version=1.0 encoding=utf-8 ? j:jelly xmlns:j =jelly:core xmlns:log =jelly:log xmlns:x =jelly:xml xmlns:ant =jelly:ant xmlns:util=jelly:util xmlns:b=jelly:beanshell log:infoConstructing File scanner./log:info ant:fileScanner var=blopFiles ant:fileset dir=. includes=blop/**/dependency.xml/ /ant:fileScanner log:infoFile scanner constructed./log:info !--- amalgamate all files within one object -- x:parse var=all_files my:allFiles xmlns:my=myNamespace j:forEach var=file items=${blopFiles.iterator()} j:set var=url value=${file.toURL()}/ log:infoGoing around ${url}/log:info my:file href=${url.toExternalForm()} j:include uri=${url.toExternalForm()}/ /my:file /j:forEach /my:allFiles /x:parse !-- do something on there like something using x:forEach which goes around XPath elements -- j:file name=someFile.xml outputMode=HTML !-- prettyPrint=yes -- x:copyOf select=$all_files/ /j:file /j:jelly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Replacing tags in xdocs
See comments inline. -Original Message- From: Tim Pizey [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 July 2003 12:41 AM To: Maven Users List Subject: Re: Replacing tags in xdocs Tim, Didn't spot any replies, so I have tried this, but I get: Fatal Error [line 7, row 35]: The prefix ant for element ant:copy is not bound. org.xml.sax.SAXParseException: The prefix ant for element ant:copy is not bound. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) Is this a good way to go? How do I cure the above? In maven.xml you need to specify the ant namespace i.e: project default=jar:jar xmlns:ant=jelly:ant The example also requires a couple of definitions in project.properties: # contains the source docs xdoc.dir=${basedir}/xdocs # contains the docs with tags replaced maven.docs.src = ${maven.build.dir}/xdocs I am slightly suprised to see properties titleMaven/title author email=[EMAIL PROTECTED]Jason van Zyl/author /properties hardcoded into the maven xdocs, surely these should be coming from the pom? Nope - think of them as being like the @author tags in java sources. any hints appreciated timp On Friday 04 July 2003 5:41 am, Tim Anderson wrote: Worked out a way to do it, but its not pretty, e.g: preGoal name=xdoc:transform ant:mkdir dir=${maven.docs.src}/ ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*.xml/ /ant:fileset ant:filterset ant:filter token=VERSION value=${pom.currentVersion}/ /ant:filterset /ant:copy ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*/ ant:exclude name=**/*.xml/ /ant:fileset /ant:copy /preGoal I can't see a simpler way - anyone got any better ideas? Thanks, Tim -Original Message- From: Tim Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 6:00 PM To: Maven Users List Subject: Replacing tags in xdocs Hi, I would like to replace embedded tags within my xdocs, prior to them being transformed to html. Whats the recommended approach for doing this? Its not clear to me which goal I need to hook in to. Alternatively, does anyone have a reference to a maven.xml which does this already? Thanks, Tim - 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: Replacing tags in xdocs
On Wed, 2003-07-09 at 10:40, Tim Pizey wrote: Tim, Didn't spot any replies, so I have tried this, but I get: Fatal Error [line 7, row 35]: The prefix ant for element ant:copy is not bound. org.xml.sax.SAXParseException: The prefix ant for element ant:copy is not bound. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) Is this a good way to go? How do I cure the above? I am slightly suprised to see properties titleMaven/title author email=[EMAIL PROTECTED]Jason van Zyl/author /properties hardcoded into the maven xdocs, surely these should be coming from the pom? Hardcoded in what xdocs? In Maven's own xdocs? any hints appreciated timp On Friday 04 July 2003 5:41 am, Tim Anderson wrote: Worked out a way to do it, but its not pretty, e.g: preGoal name=xdoc:transform ant:mkdir dir=${maven.docs.src}/ ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*.xml/ /ant:fileset ant:filterset ant:filter token=VERSION value=${pom.currentVersion}/ /ant:filterset /ant:copy ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*/ ant:exclude name=**/*.xml/ /ant:fileset /ant:copy /preGoal I can't see a simpler way - anyone got any better ideas? Thanks, Tim -Original Message- From: Tim Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 6:00 PM To: Maven Users List Subject: Replacing tags in xdocs Hi, I would like to replace embedded tags within my xdocs, prior to them being transformed to html. Whats the recommended approach for doing this? Its not clear to me which goal I need to hook in to. Alternatively, does anyone have a reference to a maven.xml which does this already? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to control java:compile
Dunno if you've already gotten a response from this, but here goes: For controlling which classes get compiled, try the sourceModification section under the build specification in the project.xml. It allows you to put in excludesexclude.../exclude/excludes and the same thing for includes...I believe it just has a required trigger, which is like a missing class (which class name to specify is up to you; I usually just put in a dummy class name to get consistent build behavior) or a property which would be previously set in the build somewhere... For the creation of multiple jars, I'm pretty sure this goes against the architectural assumptions of a single Maven project. The way these folks have designed Maven, there is a one-to-one mapping between a project and a particular type of artifact it produces. Therefore, to produce multiple jars you might have to resort to something like carving up the project into subprojects, and then calling their builds from the reactor... Cheers, John On Tue, 2003-07-08 at 10:41, Maximilian A. Ott wrote: Working my way down the issues: How do I control the java compile targets? In my current ant targets I: * use excludes to exclude java sources which aren't working or obsolete * rmic * jaxb builds Also for some of my libraries I create multiple jars, like libX-core, libX-all Can I do that? Thanks, -max - 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: AW: Jelly question
I've heard this approach mentioned before, but I still don't get it probably due to huge gaps in my Jelly knowledge. Is there an example of using a Java object in this way that I could look at? Thanks, Brian -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:48 AM To: Maven Users List Subject: Re: AW: Jelly question On Wed, 2003-07-09 at 09:40, Rademacher Tobias wrote: Hi Vincent, thx. Dammed! I guess I'm bound to much to Jelly when talking about Maven Plugins. You are definitly right. If something is getting to hard to achive in Jelly - use a POJO approach an wrap it into a Jelly or an Ant Task. Jelly can use straight beans, I would avoid AntTasks at all costs given potential ClassLoader woes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why download all those jars when Maven is first run?
Why does Maven download all of those jars the first time you run it, to build it's repository? I can see the the jar files are already there, in MAVEN_HOME/lib. If Maven is going to re-download all of it's jars, why does it even include them in it's lib folder? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : Why download all those jars when Maven is first run?
Maven (the core part) by itself doesn't download any jar (am I right ?), but the plugins do... Which are depending on the repository libs (just like any regular maven projects) to execute themselves. -Message d'origine- De : Dave Ford [mailto:[EMAIL PROTECTED] Envoyé : mercredi 9 juillet 2003 16:36 À : Maven Users Objet : Why download all those jars when Maven is first run? Why does Maven download all of those jars the first time you run it, to build it's repository? I can see the the jar files are already there, in MAVEN_HOME/lib. If Maven is going to re-download all of it's jars, why does it even include them in it's lib folder? Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.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]
Beginners questions
Few basic questions to get my projects converted across to Maven ... * I've discovered the navigation.xml file and can now add links and menu items. How do I add a menu 'header' to navigation.xml in the same style as the generated 'Project Documentation' header (which comes out in HTML within STRONG tags) ? * Is there any way I can specify where abouts in the navigation.xml Maven adds the 'Project Information' block ? or is it always at the foot ? * On the footer that Maven adds with the company name ... is there any way I can make the company name a hyperlink to copyright info for the company ? * Can I specify to have the Maven footer (2002-2003 company name) just below the line Last Published ... ? rather than at the foot of the page ? What is the property entry for this ? TIA -- Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Why download all those jars when Maven is first run?
Andy, Andy Jefferson wrote: On Wed, 2003-07-09 at 15:47, Nicolas FRANK wrote: Maven (the core part) by itself doesn't download any jar (am I right ?), but the plugins do... Which are depending on the repository libs (just like any regular maven projects) to execute themselves. Is there any way to tell Maven to first look in a specified place (directory) for the jars it needs before going off ? Yes - create a file called 'build.properties' in the dir where you're calling 'maven'. In there, put: maven.repo.local=path\\to\\your\\jars THat's on a windows filesystem - use / for unix/mac. Cheers, --Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running ant from within TestCase when invoked by Maven?
I'm writing, among other things, an ant taskdef. It's part of a project that I'm building with Maven. I'd like to unittest the taskdef by generating a buildfile that refers to the taskdef and building it using ant. I figured that since Maven is managing all the classpath issues for me (and needs ant itself), I could just do something like this inside my test method: org.apache.tools.ant.Main.start(new String[] { -buildfile, /buildfile.xml }, null, MyTestCase.class.getClassLoader()); ...but while this does launch ant and does find the buildfile and does start building it, it can't find my taskdef (even though my taskdef is in the same package as my test case). Or, to put it another way, ant runs fine, but when it sees: taskdef name=mytask classname=com.foo.BarTaskDef/ ...it can't load com.foo.BarTaskDef even though the class making all of this happen is in the com.foo package and therefore visible to *some* classloader. Is there something I need to do to, e.g. forehead.conf, or some other pattern I should be following? Best, Laird - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Beginners questions
To add a new Menu Title, use the menu name=Menu Name tag set. Each linkable entry underneath is it's own item. Sorry, that's the only one that I know. Luciano -Original Message- From: Andy Jefferson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:00 AM To: [EMAIL PROTECTED] Subject: Beginners questions Few basic questions to get my projects converted across to Maven ... * I've discovered the navigation.xml file and can now add links and menu items. How do I add a menu 'header' to navigation.xml in the same style as the generated 'Project Documentation' header (which comes out in HTML within STRONG tags) ? * Is there any way I can specify where abouts in the navigation.xml Maven adds the 'Project Information' block ? or is it always at the foot ? * On the footer that Maven adds with the company name ... is there any way I can make the company name a hyperlink to copyright info for the company ? * Can I specify to have the Maven footer (2002-2003 company name) just below the line Last Published ... ? rather than at the foot of the page ? What is the property entry for this ? TIA -- Andy - 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: Beginners questions
Hi You can use the following properties to customize the logo and the link: # The logo to show on the generated site. No default at present maven.xdoc.poweredby.image = cursor-logo.gif maven.xdoc.poweredby.title = Powered by CURSOR Software AG maven.xdoc.poweredby.url = http://www.cursor.de/ Just add them to your project.properties file and modify them to fit your needs. Regards Am Mit, 2003-07-09 um 20.08 schrieb Moretti, Luciano (MED): To add a new Menu Title, use the menu name=Menu Name tag set. Each linkable entry underneath is it's own item. Sorry, that's the only one that I know. Luciano -Original Message- From: Andy Jefferson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:00 AM To: [EMAIL PROTECTED] Subject: Beginners questions Few basic questions to get my projects converted across to Maven ... * I've discovered the navigation.xml file and can now add links and menu items. How do I add a menu 'header' to navigation.xml in the same style as the generated 'Project Documentation' header (which comes out in HTML within STRONG tags) ? * Is there any way I can specify where abouts in the navigation.xml Maven adds the 'Project Information' block ? or is it always at the foot ? * On the footer that Maven adds with the company name ... is there any way I can make the company name a hyperlink to copyright info for the company ? * Can I specify to have the Maven footer (2002-2003 company name) just below the line Last Published ... ? rather than at the foot of the page ? What is the property entry for this ? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Why download all those jars when Maven is first run?
Yes - create a file called 'build.properties' in the dir where you're calling 'maven'. In there, put: maven.repo.local=path\\to\\your\\jars Does the local repo have to have maven's special file structure? Can it be just a folder with a bunch of jars? c:\localRepo\ant-1.5.jar Or does it have to be like this: c:\localRepo\ant\jars\ant-1.5.jar Dave Ford Smart Soft - The Developer Training Company http://www.smart-soft.com - Original Message - From: Bill Lynch [EMAIL PROTECTED] To: Maven Users List [EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:24 AM Subject: Re: RE : Why download all those jars when Maven is first run? Andy, Andy Jefferson wrote: On Wed, 2003-07-09 at 15:47, Nicolas FRANK wrote: Maven (the core part) by itself doesn't download any jar (am I right ?), but the plugins do... Which are depending on the repository libs (just like any regular maven projects) to execute themselves. Is there any way to tell Maven to first look in a specified place (directory) for the jars it needs before going off ? THat's on a windows filesystem - use / for unix/mac. Cheers, --Bill - 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]
UnitTestPattern
Do they work under Maven b9 or b10? Best Regards, -- David Garnier [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : Why download all those jars when Maven is first run?
This problem was raised in MAVEN-470 http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-470 Anybody who wants to complete the changes is more than welcome to! Bill Lynch wrote: Andy, Andy Jefferson wrote: On Wed, 2003-07-09 at 15:47, Nicolas FRANK wrote: Maven (the core part) by itself doesn't download any jar (am I right ?), but the plugins do... Which are depending on the repository libs (just like any regular maven projects) to execute themselves. Is there any way to tell Maven to first look in a specified place (directory) for the jars it needs before going off ? Yes - create a file called 'build.properties' in the dir where you're calling 'maven'. In there, put: maven.repo.local=path\\to\\your\\jars THat's on a windows filesystem - use / for unix/mac. Cheers, --Bill - 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]
jar crashes tomcat
A jar created from Maven's java:jar goal is crashing Tomcat. I'm receiving an IllegalArgumentException while Catalina's WebappLoader is loading jar files from WEB-INF/lib. It appears to be valid..I am able to list its contents and it looks okay. Has anyone experienced this?
RE: jar crashes tomcat
Yes, fixed long ago in CVS and the upcoming beta 10 release. You need to manually remove the manifest from the JAR file, or change the jar plugin not to add the extension lists. - Brett -Original Message- From: Marc Dugger [mailto:[EMAIL PROTECTED] Sent: Thursday, 10 July 2003 8:30 AM To: [EMAIL PROTECTED] Subject: jar crashes tomcat A jar created from Maven's java:jar goal is crashing Tomcat. I'm receiving an IllegalArgumentException while Catalina's WebappLoader is loading jar files from WEB-INF/lib. It appears to be valid..I am able to list its contents and it looks okay. Has anyone experienced this?
Re: Xalan issue ?
On Wed, Jul 09, 2003 at 12:54:46PM +0200, Nicolas FRANK wrote: I think xalan jars on ibliblio are missing some classes. Especially the org.apache.xalan.processor.TransformerFactoryImpl which is provided in apache web site jars. I understand that the big jar has been cleaned, but I can't find this class anywhere else. I am right with this miss or am I missing something ;-) Thank's You have to set it ifor JAXP from a system property if want to uses from a jelly script: ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} incze - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: Jelly question
Write a plain old java object (POJO) that does the work and wrap it in a task for Ant. Jelly can use POJOs directly. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au Rademacher Tobias [EMAIL PROTECTED] wrote on 09/07/2003 11:54:32 PM: Jason, Jelly can use straight beans, I would avoid AntTasks at all costs given potential ClassLoader woes. Just a example: Ant is currently missing a task that builds RAR assemblies. What would you suggest in this case? Writting a Jelly Tag lib that build a RAR file or write an AntTask? And beside all ClassLoader trouble (seen in so many places these days) shouldn't we reinforce reusabilty? Bye + Thx Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Replacing tags in xdocs
The plugin:generate-docs stuff is a generation step only, it's meant to be edited and reworked. But, if u like, I can remove all the author stuff. -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ Work: http://www.multitask.com.au Jason van Zyl [EMAIL PROTECTED] wrote on 10/07/2003 12:23:20 AM: On Wed, 2003-07-09 at 10:11, Chenoweth, Bruce (STP) wrote: In particular, the author email=... has been hard-coded into the plugin templates (goals.jelly, goals-empty.jelly, properties.jelly, and properties-empty.jelly). These tags are also throughout the genapp plugin's templates. This gets mildly annoying if you are using maven to keep your plugin's goals and properties list up-to-date. Well, that's not something I'll be jumping on right away to fix. If it riles you that much then patch away. You could simply add another parameter that genapp could accept to plug in your own name to the generate sources or anything else. -Original Message- From: Jason van Zyl [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:50 AM To: Maven Users List Subject: Re: Replacing tags in xdocs On Wed, 2003-07-09 at 10:40, Tim Pizey wrote: Tim, Didn't spot any replies, so I have tried this, but I get: Fatal Error [line 7, row 35]: The prefix ant for element ant: copy is not bound. org.xml.sax.SAXParseException: The prefix ant for element ant:copy is not bound. at org.apache.xerces.parsers.AbstractSAXParser. parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) Is this a good way to go? How do I cure the above? I am slightly suprised to see properties titleMaven/title author email=[EMAIL PROTECTED]Jason van Zyl/author /properties hardcoded into the maven xdocs, surely these should be coming from the pom? Hardcoded in what xdocs? In Maven's own xdocs? any hints appreciated timp On Friday 04 July 2003 5:41 am, Tim Anderson wrote: Worked out a way to do it, but its not pretty, e.g: preGoal name=xdoc:transform ant:mkdir dir=${maven.docs.src}/ ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*.xml/ /ant:fileset ant:filterset ant:filter token=VERSION value=${pom.currentVersion}/ /ant:filterset /ant:copy ant:copy todir=${maven.docs.src} ant:fileset dir=${xdoc.dir} ant:include name=**/*/ ant:exclude name=**/*.xml/ /ant:fileset /ant:copy /preGoal I can't see a simpler way - anyone got any better ideas? Thanks, Tim -Original Message- From: Tim Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 July 2003 6:00 PM To: Maven Users List Subject: Replacing tags in xdocs Hi, I would like to replace embedded tags within my xdocs, prior to them being transformed to html. Whats the recommended approach for doing this? Its not clear to me which goal I need to hook in to. Alternatively, does anyone have a reference to a maven.xml which does this already? Thanks, Tim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]