On 13 November 2012 08:23, Karl Heinz Marbaise <[email protected]> wrote:
> Hi, > > i have a question concerning the plexus-utils/maven-shared-utils. During > the investigation of a bug in appassembler-plugin ( > http://jira.codehaus.org/browse/MAPPASM-187). I have seen that in > plexus-utils (3.0.7) the method FileUtils.copyDirectory() seemed to be not > working. The same as in maven-shared-utils. After checking > maven-shared-utils (0.1) i have detected that the unit tests which are > checking the copyDirectory part a currently set to @Ignore. > > I have found a solution in using commons-io package (2.4) but this would > result in a JDK 1.5+ dependency (Does someone know a version of commons-io > which works with JDK 1.4+? What is the minimum version of Maven that you are supporting your plugin on? Maven 2.0.x => JDK 1.4 is the theoretical minimum Maven 2.2.x => JDK 1.5 is the theoretical minimum We have not introduced a higher minimum yet for Maven, but I would suspect it would be at least Maven 3.2 before that would happen (given the current roadmap for 3.1) > . The other question is why we don't use commons-io directly (apart of the > optional dependency in maven-shared-utils) instead of rewriting things in > maven-shared-utils or did i misunderstand the intention of > maven-shared-utils? > maven-shared-utils is (as I understand it) for use in the core. We use commons-io there, but shade it so that plugins will not have classloading conflicts. maven-shared-utils is an attempt to wean core off of plexus-utils. So in some cases features/bugs in p-u have been reproduced in order to retain current behaviour, but where possible the commons-* libraries have been used. m-s-u started out of an effort I started in the sandbox to provide a rewrite of p-u based off of commons-* so that plugins could wean themselves off of p-u... however there seems to have been a bit of a morph in that work (no harm) and that is m-s-u > > Are there any particular reasons not to to use commons-io package directly > (as a dependency for a plugin)? > In a plugin, no reason at all. In fact it is probably the best idea! > Can someone enlighten me a little bit? > > Hope I have > Thanks in advance. > > Kind regards > Karl-Heinz Marbaise > -- > SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893 > Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029 > Hauptstrasse 177 USt.IdNr: DE191347579 > 52146 Würselen http://www.soebes.de > > > > -- > -- > SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893 > Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029 > Hauptstrasse 177 USt.IdNr: DE191347579 > 52146 Würselen http://www.soebes.de > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
