Ok, so it is definitely the maven.gen.docs property that is getting mauled.
I can't see anything wrong with the plugin code - maybe it is a bug in the lazy plugin installation. What happens if you plugin:install the readme plugin and remove the dependency? Cheers, Brett > -----Original Message----- > From: Oliver N�lle [mailto:[EMAIL PROTECTED] > Sent: Thursday, 22 January 2004 3:21 AM > To: Maven Users List > Subject: AW: ${basedir} modified on invoking a plugin? > > > > -----Urspr�ngliche Nachricht----- > > Von: Brett Porter [mailto:[EMAIL PROTECTED] > > Gesendet: Dienstag, 20. Januar 2004 23:26 > > An: 'Maven Users List' > > Betreff: RE: ${basedir} modified on invoking a plugin? > > > > > > You'll probably need a smaller test case to make this replicatable > > enough for JIRA. > > > > Have you got any weird project.properties or plugin.properties? > > > Nop. > I checked my personal build.properties, and the plugins > properties, too. Nothing special... > > But I was able to narrow down the problem: > As soon as I used the following dependency in the plugin, the > strange behaviour occured: > > <dependency> > <groupId>maven-plugins</groupId> > <artifactId>maven-readme-plugin</artifactId> > <version>1.1</version> > <type>plugin</type> > </dependency> > > This dependency is another self-written plugin (code below), > which is almost the same as the license plugin, but just > taking a readme.txt file and adding it to the sitedoc. No > special properties used in this plugin. > > Is there any malicious code in this plugin.jelly that might > cause this strange behaviour? Or is stating dependencies to > other plugins in the project.xml not a good idea? > > > Thanks for any information, > > Oliver > > > plugin.jelly of self-written maven-readme-plugin: > ----------------------------------- > <?xml version="1.0"?> > > <project > xmlns:j="jelly:core" > xmlns:define="jelly:define" > xmlns:doc="doc" > xmlns:readme="readme" > xmlns:util="jelly:util"> > > <!-- > ================================================================== --> > <!-- R E A D M E > --> > <!-- > ================================================================== --> > <goal name="maven-readme-plugin:register"> > <doc:registerReport > name="Readme" > pluginName="maven-readme-plugin" > link="readme" > description="Displays build and usage > information for the component (readme.txt)."/> > </goal> > > <goal name="maven-readme-plugin:deregister"> > <doc:deregisterReport name="Readme"/> > </goal> > > <goal name="maven-readme-plugin:report" > description="Generate an XML file from the > readme.txt" prereqs="xdoc:init"> > > > <j:set var="readmeFile">readme.txt</j:set> > <j:set var="genDocs" > > value="${pom.getPluginContext('maven-xdoc-plugin').getVariable > ('maven.gen.do > cs')}"/> > > <util:available file="${baseDir}/${readmeFile}"> > <j:set var="readmePresent" value="true"/> > </util:available> > > <j:if test="${readmePresent != 'true'}"> > <j:set var="readmeFile" > value='${plugin.resources}/readme.txt'/> > </j:if> > > <doc:text-xdoc > title="Readme" > section="Readme" > output="${genDocs}/readme.xml" > inputFile="${readmeFile}"/> > </goal> > </project> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
