Mirror woes

2007-09-26 Thread Aaron Digulla
Hello, Since a few months, some European mirrors have become increasingly unreliable. For example, maven.sateh.com is missing some packages which were distributed in June, mirrors.dotsrc.org is missing some dated from February (for example, asm/asm/3.0)! I talked to the admins of dotsrc

Re: Mirror woes

2007-09-27 Thread Aaron Digulla
Quoting Carlos Sanchez [EMAIL PROTECTED]: you can try cica.es too, that's up to date http://maven.apache.org/guides/mini/guide-mirror-settings.html Thanks, I'll keep that in mind :-) Regards, -- Aaron Optimizer Digulla a.k.a. Philmann Dark It's not the universe that's limited, it's our

Re: Mirror woes

2007-09-27 Thread Aaron Digulla
Quoting Jason van Zyl [EMAIL PROTECTED]: Do other people have the same problems? If so, is someone working on a solution? For example, by creating a main site for mirrors only (i.e. closed to the general public so mirrors can get the updates in a timely manner). Or can mirrors connect

Re: Mirror woes

2007-09-29 Thread Aaron Digulla
Jorg Heymans schrieb: Since a few months, some European mirrors have become increasingly unreliable. For example, maven.sateh.com is missing some packages which were distributed in June, mirrors.dotsrc.org is missing some dated from February (for example, asm/asm/3.0)! Any particular

Maven, JAR names and Java Security Policy

2007-10-10 Thread Aaron Digulla
Hello, I'd like to call your attention to this discussion: https://issues.apache.org/jira/browse/DERBY-3083 The issue here is that the Derby Network Server looks for a JAR called derbynet.jar on the classpath ... by *name*. Of course, when I use Maven, the JAR is called

SAXParser problem with Maven 2.0.4, Xalan 2.8.1, Xerces 2.8.0 and Java 1.5

2006-10-11 Thread Aaron . Digulla
this. Any ideas? Best Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Antwort: RE: manually managing external dependencies in maven 2

2006-10-11 Thread Aaron . Digulla
code would be nice, too. Don't forget to post here if you find a solution! Regards, -- Aaron Digulla fogwolf [EMAIL PROTECTED] schrieb am 11.10.2006 16:39:43: Thanks for the suggestion. This Eclipse plugin looks good does a lot of what the plugin I've written does, but I'd still like

Antwort: SAXParser problem with Maven 2.0.4, Xalan 2.8.1, Xerces 2.8.0 and Java 1.5

2006-10-11 Thread Aaron . Digulla
by SAX simply doesn't know about any classes loaded by the maven classloader. *expletive deleted* Is it possible to create a plugin which uses Xalan 2.8.1 despite the fact that maven has its own Xalan in lib/endorsed and with Java 1.5? Regards, -- Aaron Digulla [EMAIL PROTECTED] schrieb am

Determine the path to a JAR file

2006-10-12 Thread Aaron . Digulla
path after maven's dependency mechanism has downloaded it for me. This also means I cannot ask for ${project.dependencies} because it's a dependency of the plugin, not the project. Regards, -- Aaron Digulla - To unsubscribe

Re: Determine the path to a JAR file

2006-10-13 Thread Aaron . Digulla
, ...) The next idea was to browse the Repositories but how do I ask a repository for an artifact? (Note: this artifact is *not* in the dependency list of the current POM!) Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL

Antwort: Re: Determine the path to a JAR file

2006-10-13 Thread Aaron . Digulla
plugin's POM (*not* the POM of the current project) to load the version number from there. Is there a way? I guess I could use a filter :-/ Regards, -- Aaron Digulla [EMAIL PROTECTED] schrieb am 13.10.2006 11:11:39: Dan Tran [EMAIL PROTECTED] schrieb am 12.10.2006 12:14:47: How do I

Antwort: Re: Maven and the Apache processes...

2006-10-16 Thread Aaron . Digulla
in mind that maven is also used by non-apache projects which just might not like the idea to be relicensed automatically ;-) Please create the plugin in such a way that a different license can be specified easily. Also, allow to specify where it should go to in the release. Regards, -- Aaron

RE: Maven and the Apache processes...

2006-10-20 Thread Aaron . Digulla
wrong with 2.0.4711? Isn't it major.minor.patchlevel? I see no reason to add another level which doesn't add any useful information. The confusion of users would only happen if there was no hint what happened to 2.0.6, so we just need a complete changelog. Regards, -- Aaron Digulla

Re: Antwort: SAXParser problem with Maven 2.0.4, Xalan 2.8.1, Xerces 2.8

2006-10-25 Thread Aaron . Digulla
, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: integration tests: how to handle versions and external oddities?

2006-10-30 Thread Aaron . Digulla
, -- Aaron Digulla Brett Porter [EMAIL PROTECTED] schrieb am 30.10.2006 09:12:53: I was thinking that as well, wrt testng. It would be really good to establish some dependencies so that tests that are bound to fail could just be skipped if an earlier one fails. Also, the groups would

Classloader woes

2006-10-31 Thread Aaron . Digulla
is in the JAR, etc) but u2 is *always* null. I've been looking at the Java VM source (Sun) and getResource() just calls getClassLoader0() just like getClassLoader() does (there is no SecurityManager installed). Regards, -- Aaron Digulla

Re: Plugin execution ordering within a phase

2006-11-02 Thread Aaron . Digulla
-POM problem is not related to my solution!) Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [VOTE] Release PMD Plugin

2006-11-06 Thread Aaron . Digulla
. Please also consider http://jira.codehaus.org/browse/MPMD-44 (allow to specify a ruleset in the POM) because it's just a single line change. I've tested the patch here and it works OK for me. With those two: +1 Without those two: 0 Best regards, -- Aaron Digulla Daniel Kulp [EMAIL

Re: MSOURCES-11 When source plugin is used, it should make sure it is invoked during install

2006-11-22 Thread Aaron . Digulla
the repository. [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime) Does anyone have any idea what the problem could be? Regards, -- Aaron Digulla - To unsubscribe, e-mail

Error compiling Archiva

2006-11-27 Thread Aaron . Digulla
) at org.codehaus.plexus.component.composition.FieldComponentComposer.getFieldByName(FieldComponentComposer.java:212) at org.codehaus.plexus.component.composition.FieldComponentComposer.findMatchingField(FieldComponentComposer.java:171) What's wrong? Regards, -- Aaron Digulla

Re: Error compiling Archiva

2006-11-27 Thread Aaron . Digulla
tell me where DigestUtils is now? I have problems with the checksum checking code (see http://jira.codehaus.org/browse/MRM-154). Regards, -- Aaron Digulla Aaron.Digulla wrote: Hello, I updated Archiva today and tried to compile it. The mvn install aborts with NoClassDefFoundError

Antwort: Error compiling Archiva

2006-11-27 Thread Aaron . Digulla
After cleaning my local repository and the cached repositories in my Archiva proxy, I could compile again. While this works, it's sub-optimal. How do I debug an error like this? Regards, -- Aaron Digulla [EMAIL PROTECTED] schrieb am 27.11.2006 11:00:11: Hello, I updated Archiva today

Re: [discuss] Java 5

2006-11-27 Thread Aaron . Digulla
Please post the error. Regards, -- Aaron Digulla Emmanuel Hugonnet [EMAIL PROTECTED] schrieb am 27.11.2006 15:26:32: Tom Huybrechts a écrit : On 11/27/06, Tom Huybrechts [EMAIL PROTECTED] wrote: This plugin uses sourcelevel 1.5: https://svn.codehaus.org/mojo/trunk/mojo/mojo

Archiva: 507 Insufficient Storage

2006-11-28 Thread Aaron . Digulla
, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [discuss] Java 5

2006-11-28 Thread Aaron . Digulla
with the official snapshots. If the plugin is released with the very same version, you have to delete it manually on your side but until then, you can work. How about a -PATCH version? :-) Regards, -- Aaron Digulla Magazine zum Globus Informatik AW - Web Eichstrasse 23 8045 Zuerich Phone: +41 58 455 26 20

Re: Maven's classpaths (Was: [discuss] Java 5)

2006-11-29 Thread Aaron . Digulla
be. As it is, the solution is simple (at least when you're used at how simple it is to setup and compile maven projects) and the question is how useful such a patch mechanism will be (ie. how often can you fix your problems with it?). Regards, -- Aaron Digulla

Antwort: Re: Manipulating the WAR directory before the WAR file gets built

2006-12-04 Thread Aaron . Digulla
are useful and which only look good but don't really work. Incidentially, I'd like to see a tool which can show me what phases there are and which plugin binds to which phase (in order to debug execution/dependency problems like https://jira.codehaus.org/browse/MSOURCES-11). Regards, -- Aaron

Re: [m2] New pre-package phase?

2006-12-04 Thread Aaron . Digulla
in which you can specify arbitrary phases and say this phase depends on that one. So I could say package depends on prepackage-tomcat-war and maven sorts everything out. This of course means maven has to load all plugins (or at least the configs) at startup. Regards, -- Aaron Digulla

Antwort: Re: [m2] New pre-package phase?

2006-12-04 Thread Aaron . Digulla
users always wonder about and which you could easily hide behind the scenes? Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [m2] New pre-package phase?

2006-12-06 Thread Aaron . Digulla
exactly like the MetaMake target resolution. Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [m2] New pre-package phase?

2006-12-06 Thread Aaron . Digulla
your tests in another. The question is not if it's a stupid thing to do, the question is: If I *have* to, what do I do? Currently, my solution is to revert to ant and control maven from there. Rgards, -- Aaron Digulla

Re: [m2] help resolving OverConstrainedVersionException for eclipse plugin

2006-12-07 Thread Aaron . Digulla
to download something else from that repository which fails and Maven blacklists it for the build. -U doesn't help in this case. Check your log for download errors. 3. Have you tried to delete your local Maven repo? Or at least the maven-metadata-*.xml files? Regards, -- Aaron Digulla Magazine zum

Re: [m2] help resolving OverConstrainedVersionException for eclipse plugin

2006-12-07 Thread Aaron . Digulla
something which it shouldn't (like certain snapshots, buggy POMs, deadly versions of JARs, etc). Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [m2] New pre-package phase?

2006-12-08 Thread Aaron . Digulla
). Mojo C wants to run after A but before C. In MetaMake, I can say in C: ## C: A ## B: C Now, the build order will be defined: A - C - B. Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Antwort: Re: [m2] build failure, Version: test ??? error

2006-12-13 Thread Aaron . Digulla
Barrie Treloar [EMAIL PROTECTED] schrieb am 13.12.2006 01:47:02: Running mvn in debug mode so I can attach eclipse to the running instance. How do you do that? Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL

Re: [m2] Dev help needed: Should multiple repositories be able to host an artifact, potentially with different versions

2006-12-18 Thread Aaron . Digulla
to one single maven repository. Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [m2] New pre-package phase?

2006-12-18 Thread Aaron . Digulla
) - Run the tests How can I make sure in my mojo that the many copy resources are executed in the right order? The idea of lifecycle is good but only as a big framework in which you can plug other things and you need a way to specify dependencies between the other things, too. Regards, -- Aaron

Re: downloading eclipse runtime binary or RCP delta pack

2006-12-19 Thread Aaron . Digulla
one. ;-) The idea that you'll never have to fix a broken POM/JAR/whatever is just ridiculous. :-) As I understand it, the repo admins are just very reluctant to modify already published artefacts. Regards, -- Aaron Digulla

Re: versioning

2006-12-19 Thread Aaron . Digulla
comes between alpha1 and alpha2). Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: downloading eclipse runtime binary or RCP delta pack

2006-12-19 Thread Aaron . Digulla
So, what is the way forward? The most simple solution right now is probably to add http://repo1.maven.org/eclipse/ to your list of repositories in settings.xml. Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL

Antwort: How to set Classpath with maven

2006-12-21 Thread Aaron . Digulla
ignores it if you do). Use dependencies in your pom.xml to specify what you need and maven will add the right version to your classpath. Regards, -- Aaron Digulla - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

DSMP 1.0 - A new maven proxy

2006-12-29 Thread Aaron Digulla
Hello, I had a couple of problems with Maven's way to access the internet. For example, if I wanted to redirect maven to the closest mirror, I would have to define a whole lot of mirrors in my settings.xml. And it wouldn't always work because different projects use different IDs. Then, there are

DSMP 1.0 - A new maven proxy

2006-12-29 Thread Aaron Digulla
Hello, I had a couple of problems with Maven's way to access the internet. For example, if I wanted to redirect maven to the closest mirror, I would have to define a whole lot of mirrors in my settings.xml. And it wouldn't always work because different projects use different IDs. Then, there are

Re: [m2] New pre-package phase?

2007-01-05 Thread Aaron Digulla
Brett Porter wrote: Can anyone think of a use case other than the war plugin, or should we just go with the pre-package phase? I have these use cases: - Filter or generate files for the site plugin (for example, extract information out of the sources for apt files) - Multi-Step source/unit

Re: deploy:deploy-file target and DAV

2007-01-30 Thread Aaron Digulla
Quoting Graham Leggett [EMAIL PROTECTED]: It looks like the plugin is not making an attempt to create the directories in the repository before trying to upload the file to the repository, thus the failure: Have you tried with 1.0-beta-2 of wagon-webdav? This solved some problems for me.

Piping commons-logging into Maven log

2007-01-30 Thread Aaron Digulla
Hello, This should be an FAQ but I couldn't find anything: How do I connect a dependency of a mojo which uses commons-logging to the Maven logging? In my case, I'm using the jasperreports mojo which uses the jasperreports JARs which depend on commons-logging. Since nothing is specified,

Re: deploy:deploy-file target and DAV

2007-01-30 Thread Aaron Digulla
Quoting Graham Leggett [EMAIL PROTECTED]: On Tue, January 30, 2007 1:55 pm, Aaron Digulla wrote: Have you tried with 1.0-beta-2 of wagon-webdav? This solved some problems for me. Added the 1.0-beta-2 of wagon-webdav like this: build extensions extension

Re: deploy:deploy-file target and DAV

2007-01-30 Thread Aaron Digulla
Quoting Graham Leggett [EMAIL PROTECTED]: Have you tried with 1.0-beta-2 of wagon-webdav? This solved some problems for me. Which version of the maven-deploy-plugin do you use? Have you tried 2.3? Regards, -- Aaron Optimizer Digulla a.k.a. Philmann Dark It's not the universe that's limited,

Extending the notion of parent pom

2007-01-30 Thread Aaron Digulla
Hello, My POMs have two parents: The one in the parent directory and the one which supplies them with the build defaults. Out of necessity, they can't be the same POM. The ../pom.xml just specifies the build order. The POM specified with the parent element supplies the build config (for

Re: deploy:deploy-file target and DAV

2007-01-30 Thread Aaron Digulla
Quoting Graham Leggett [EMAIL PROTECTED]: Can anyone confirm whether this plugin has ever worked for them, and if so, what DAV server is being used? I am using httpd v2.0.52 as shipped default with RHEL4. I'm using wagon-webdav 1.0-beta-2 with maven-deploy-plugin 2.3 together with Archiva

Re: using saxon within a mojo

2007-01-31 Thread Aaron Digulla
Quoting Gregory Kick [EMAIL PROTECTED]: I'm writing a plugin that I would like to be able to use the saxon XPath 2.0 implementation. I've got it working perfectly fine in my unit tests, but when I try to run it as a mojo, it reverts back to using the jdk XPathFactory. I would assume that

Re: DSMP 1.0 - A new maven proxy

2007-01-31 Thread Aaron Digulla
Quoting Jason Dillon [EMAIL PROTECTED]: I played around with this a little today, very nice. How does DSMP handle SNAPSHOT updates? Usually, I just forbid them :-) (see the allow and deny rules). At work, I don't want SNAPSHOTs to pollute my environment, so I disabled them. Even if a POM

Re: Extending the notion of parent pom

2007-01-31 Thread Aaron Digulla
Quoting John Casey [EMAIL PROTECTED]: Do you have even more plugin configuration in this third parent POM? If not, why is it critical that the webapp/library projects can declare themselves to be children of this POM (in addition to the type-specific POMs)? If you do have more plugin

Re: repository id vs repository url

2007-01-31 Thread Aaron Digulla
Quoting Joakim Erdfelt [EMAIL PROTECTED]: I'm the one responsible for the misguided repository.urlName concept. Maybe you'd like to have a look at DSMP (http://www.pdark.de/dsmp/) I'm using the repository ID to find out which user/password to use during deploy but other than that, I'm ignoring

Re: [m2] New pre-package phase?

2007-01-31 Thread Aaron Digulla
Quoting Brett Porter [EMAIL PROTECTED]: I don't think either of these are cases for 'package resources', but general lifecycle improvements (Which are in the 2.1 design wiki). I'm still arguing for a generic lifecycle management (where a mojo can add any number of additional phases and maven

Re: Extending the notion of parent pom

2007-01-31 Thread Aaron Digulla
John Casey wrote: That sparked the idea of having mixins. With mixins, I could separate the two trees cleanly. I'm still a little unclear on how mixins would be cleaner than two levels of inheritance. If multiple levels of inheritance confuses the site plugin, then that plugin

Where can I find command line properties??

2007-02-01 Thread Aaron Digulla
Hello, I have a mojo which has dynamic parameters/properties which have to be specified via the commandline. When I'm in my execute() method, what do I have to call to see value when I call mvn with -Dtest=value? They aren't in MavenProject/Model.getProperties()... Regards, -- Aaron

Re: Where can I find command line properties??

2007-02-02 Thread Aaron Digulla
Quoting Franz Allan Valencia See [EMAIL PROTECTED]: Good day to you, Aaron, add @parameter to your mojos field so that it can be configured in the pom. How do I add @parameter to my mojo at runtime? :-) Some background: I'm currently extending the archetype plugin. In my new version, you

Re: [vote] release maven-source-plugin 2.0.3

2007-02-12 Thread Aaron Digulla
Stephane Nicoll wrote: This release fixes all known issues. ** Improvement * [MSOURCES-11] - When source plugin is used, it should make sure it is invoked during install YAY! +1 :-) Just to be sure: You checked with a parent POM? (ie. when the source plugin is configured in the *parent*

Re: Escaping HTML entities for canoo webtests -- resources-plugin?

2007-02-12 Thread Aaron Digulla
Mika Göckel wrote: Hi! My problem is, that I need to escape HTML entities in resource files when coping them to target/test-classes. Is it a good idea to extend resources-plugin to support something like escapeHtml=true as attribute or is it a better idea to create a completely new mojo?

Re: Escaping HTML entities for canoo webtests -- resources-plugin?

2007-02-18 Thread Aaron Digulla
Mika Göckel wrote: Do you think of a chain of filters like in ant? Maybe. One of the issues I've had was to make the plugin to replace everything *except* ${basedir}. If I was able to write my own filters, I could have solved that more easily (now, I just call an ant task afterwards which

Re: Extension to install custom proxy muck in Maven?

2007-02-24 Thread Aaron Digulla
Jason Dillon wrote: Yes Maven 2.0.x does allow you to configure a mirror for a repo, but that is *not* what I am looking for. Also, there is no corporate proxy, if I has the luxury of such a proxy for my users then this would not be an issue. The problem is that my users are all of the

Re: dependency on system library (java.library.path)

2007-04-12 Thread Aaron Digulla
Joerg Hohwiller wrote: Hi there, I have already used SWT and GWT together with maven. Both need native system libraries at some specific point. This causes trouble when running code (e.g. test-cases) with maven. The latest 3.3 release of SWT includes the library files in the JAR! I have no

Re: problem with site-plugin 2.0-beta-6

2008-04-04 Thread Aaron Digulla
Aaron Digulla schrieb: Brian E. Fox schrieb: I think it's safer to leave it at beta-6. Most people aren't expressing any issues and if anyone has trouble, they can manually lock to beta-5. This is safer than potentially downgrading everyone. beta-6 doesn't work for me at all. I suddenly

Re: problem with site-plugin 2.0-beta-6

2008-04-04 Thread Aaron Digulla
Brian E. Fox schrieb: I think it's safer to leave it at beta-6. Most people aren't expressing any issues and if anyone has trouble, they can manually lock to beta-5. This is safer than potentially downgrading everyone. beta-6 doesn't work for me at all. I suddenly get:

Re: problem with site-plugin 2.0-beta-6

2008-04-14 Thread Aaron Digulla
Quoting Aaron Digulla [EMAIL PROTECTED]: The bug is still there in 2.0.9. I've downloaded the source and the bug lurks in this code: MavenPluginCollector.java: public PluginDescriptor getPluginDescriptor( Plugin plugin ) { // TODO: include version, but can't do

Re: problem with site-plugin 2.0-beta-6

2008-04-14 Thread Aaron Digulla
Quoting Aaron Digulla [EMAIL PROTECTED]: Quoting Aaron Digulla [EMAIL PROTECTED]: The bug is still there in 2.0.9. I've downloaded the source and the bug lurks in this code: MavenPluginCollector.java: public PluginDescriptor getPluginDescriptor( Plugin plugin ) { // TODO

java.lang.IllegalStateException: The PluginDescriptor for the plugin ... was not found (Was: Re: problem with site-plugin 2.0-beta-6)

2008-04-14 Thread Aaron Digulla
Quoting Aaron Digulla [EMAIL PROTECTED]: After an epiphany, I found the problem: A corrupt JAR file in the repository. I've opened http://jira.codehaus.org/browse/MNG-3523 The bug is still there in 2.0.9. I've downloaded the source and the bug lurks in this code: MavenPluginCollector.java

Re: SUREFIRE-491 copying sys props to forked process

2008-05-04 Thread Aaron Digulla
Dan Fabulich schrieb: The sad tale of SUREFIRE-491 began when I tried to fix SUREFIRE-121. http://jira.codehaus.org/browse/SUREFIRE-491 http://jira.codehaus.org/browse/SUREFIRE-121 The request seemed innocent enough. Wouldn't it be cool if you could pass system properties to your tests,

Is there a way to use a property as the version of a parent pom?

2008-07-28 Thread Aaron Digulla
Hi, This may sound silly but I can't get this to work: parent groupIdch.globus/groupId artifactIdglobus-parent-pom/artifactId version${version.globus-parent-pom}/version /parent I tried to define the property via settings.xml,

Re: Is there a way to use a property as the version of a parent pom?

2008-07-28 Thread Aaron Digulla
Quoting Ralph Goers [EMAIL PROTECTED]: It is currently working as designed. Maven won't resolve properties for any of the items in the parent section. The pom below would be a problem if it was actually installed into a repository as it would require that the property be specified even if the

Re: Is there a way to use a property as the version of a parent pom?

2008-07-28 Thread Aaron Digulla
Quoting Stephen Connolly [EMAIL PROTECTED]: What is the most simple way to include common dependencies, plugin configs and properties in many POMs? [...] please vote for http://jira.codehaus.org/browse/MOJO-1178 This has a goal called update-parent that will update the parent version in the

Re: Is there a way to use a property as the version of a parent pom?

2008-07-29 Thread Aaron Digulla
Quoting Ralph Goers [EMAIL PROTECTED]: It is currently working as designed. Maven won't resolve properties for any of the items in the parent section. The pom below would be a problem if it was actually installed into a repository as it would require that the property be specified even if the

Re: Is there a way to use a property as the version of a parent pom?

2008-07-29 Thread Aaron Digulla
Quoting Stephen Connolly [EMAIL PROTECTED]: you can use -DparentVersion=[1.3.4] to force a specific version and it rewrites the pom without changing any formatting or comments That sounds very promising! In fact, I've just downloaded the patch and found it's a complete plugin. Here are a

POM rewriting with DecentXML

2008-07-29 Thread Aaron Digulla
Hi guys, It's official: I'm through with the W3C and the stupid XML parsers which came in it's wake. To allow to write XML filters and editors which don't ruin the layout, I've started my own XML parser project DecentXML. The main goals are to provide a library to manipulate exiting (small) XML

Re: POM rewriting with DecentXML

2008-07-30 Thread Aaron Digulla
Quoting Brett Porter [EMAIL PROTECTED]: I've got some code ready for you to try: http://www.pdark.de/decentxml-1.0-SNAPSHOT-src.tar.gz wrong list? :) I've seen three Maven plugins which use their own code to manipulate POM and other XML files in projects, so I guess this is the right list

Re: [VOTE] Release Maven Filtering version 1.0-alpha-1

2008-07-30 Thread Aaron Digulla
Quoting Olivier Lamy [EMAIL PROTECTED]: Hi, In preparation of the maven-war-plugin, I'd like to release and promote out of the sandbox the maven-filtering component version 1.0-alpha-1. The goal of this component is to provide a common tool for maven plugins to filtering resources. If you're

Re: POM rewriting with DecentXML

2008-07-30 Thread Aaron Digulla
Quoting John Casey [EMAIL PROTECTED]: I've got some code ready for you to try: http://www.pdark.de/decentxml-1.0-SNAPSHOT-src.tar.gz wrong list? :) still, sounds cool. Are you parking this at SF or Codehaus or anywhere like that? :-) Currently, I'm hosting that on my own server; this was a

Re: POM rewriting with DecentXML

2008-07-30 Thread Aaron Digulla
Jason van Zyl schrieb: It's official: I'm through with the W3C and the stupid XML parsers which came in it's wake. To allow to write XML filters and editors which don't ruin the layout, I've started my own XML parser project DecentXML. There are a couple that are decent. XMLBeans does a good

Re: POM rewriting with DecentXML

2008-07-30 Thread Aaron Digulla
Hi, I've finished all the main features and released version 1.0 of DecentXML on Google Code: http://code.google.com/p/decentxml/ Regards, -- Aaron Optimizer Digulla a.k.a. Philmann Dark It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond

Re: POM rewriting with DecentXML

2008-07-31 Thread Aaron Digulla
Michael McCallum schrieb: there is already http://www.xom.nu/ that is worth considering... its goal is correctness and roundtripability ;-)... its mature and stable... i have used it and been very happy xom doesn't preserve whitespace in elements (no XML parser besides DecentXML can do

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Jason van Zyl [EMAIL PROTECTED]: But I think looking at StAX and possibly trying to patch that to be smarter about formatting, if necessary, might be a better route for us. StAX can't preserve whitespace between attributes, between and the element name, whitespace after the last

Just released DecentXML 1.1

2008-08-05 Thread Aaron Digulla
Hi, I've released DecentXML last Friday. Changelog: http://code.google.com/p/decentxml/wiki/Changelog Tutorial: http://code.google.com/p/decentxml/wiki/Tutorial In SVN you can find 1.2-SNAPSHOT which has a TreeIterator, too. I suggest everyone who *writes* POM and other XML files to have a

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Milos Kleint [EMAIL PROTECTED]: how do you deal with newly added content? just overwriting a value for existing elements is relatively easy. I mean if I add a new dependency to the pom file, how do I make sure it's properly indented? That's been the major issue for me now with the jdom

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Stuart McCulloch [EMAIL PROTECTED]: StAX can't preserve whitespace between attributes, between and the element name, whitespace after the last attribute and the , between / and the end element name. Same goes for all pull parsers. personally speaking, I don't actually mind if / foo

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Jochen Wiedmann [EMAIL PROTECTED]: As for patching it: StAX is a standard API (JSR-173). How big are my chances that the standard API is going to be extended to allow the features I need? No API forbids extending. In Java, APIs are written by paranoid control freaks ;) Just try to

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Jason van Zyl [EMAIL PROTECTED]: StAX can't preserve whitespace between attributes, between and the element name, whitespace after the last attribute and the , between / and the end element name. Same goes for all pull parsers. Why not fix StAX? Because StAX is not meant to

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Stephen Connolly [EMAIL PROTECTED]: You can fix StAX, we know the authors. Even if you added an extension property that turned on better whitespace handling that would be fine. I'm not keen on pulling in another XML parser to be honest. +1000... *sigh* Okay. Look at the last example

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Quoting Michael McCallum [EMAIL PROTECTED]: On Tue, 05 Aug 2008 19:28:47 Aaron Digulla wrote: I mean, there was *no* XML parser which can do 100%   round-tripping before DecentXML. It's just a non-issue for the XML guys. xom using xerces 2.6.7 was supposed to be able to do a complete round

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Stuart McCulloch schrieb: For example, the first version of the m2eclipse POM editor would remove all comments after Add dependency. That's not cool. Those comments contained references to web pages and explanations why some stuff was set up oddly. yeah, I hate it when an editor zaps all

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Stuart McCulloch schrieb: Sorry. I've written code with about any XML parser out there and none of them would even get close to what DecentXML can do. In DecentXML, there are no private fields or methods. Everything is meant to be extended or reused. It's meant to be useful instead of

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Stuart McCulloch schrieb: Why not fix StAX? Because StAX is not meant to do this. I need to keep the original XML source somewhere to be able to recreate anything you might have done. That includes entities (and how you entered them originally) and all kind of weird stuff that every XML

Re: POM rewriting with DecentXML

2008-08-05 Thread Aaron Digulla
Jochen Wiedmann schrieb: particular mode, one could supply and accept additional events. In the case of white space around attributes, you could offer an extension of the Attribute interface that informs about whitespace to the left and to the right. That's great. Can I also add new getters

Changes necessary in StAX to get it on par with DecentXML

2008-08-06 Thread Aaron Digulla
Hello, That didn't work well. Okay, since you don't believe me, here is an (incomplete) list of changes I would need in StAX to be able to use it for my work instead of having to write my own XML parser. Note: If you feel like asking who would ever need that? while reading that list,

Re: Changes necessary in StAX to get it on par with DecentXML

2008-08-08 Thread Aaron Digulla
Quoting Jochen Wiedmann [EMAIL PROTECTED]: That didn't work well. Okay, since you don't believe me, here is an (incomplete) list of changes I would need in StAX to be able to use it for my work instead of having to write my own XML parser. I think here is a misunderstandment. The question was