You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mark Proctor <li...@markproctor.com> on 2007/03/13 17:06:47 UTC
properties in settings.xml do not interpolate
Having now found this issue: http://jira.codehaus.org/browse/MJAVADOC-115
I'm back now trying to get variable interpolation done from properties
in a settings file. This is my settings.xml file:
<settings>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault/>
</activation>
<properties>
<ydoc.home>${user.home}/dev/ydoc</ydoc.home>
<ydoc.license>${user.home}/dev/ydoc/license/ydoc.license</ydoc.license>
</properties>
</profile>
</profiles>
</settings>
This is the plugin definition:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<doclet>ydoc.doclets.YStandard</doclet>
<doclet>ydoc.doclets.YStandard</doclet>
<docletPath>${ydoc.home}/lib/ydoc.jar${path.separator}${ydoc.home}/lib/class2svg.jar${path.separator}${ydoc.home}/resources</docletPath>
<additionalparam>
-license
${ydoc.license}/resources/ydoc.license -filter
ydoc.filters.ExcludeFilter -filterpath c:/ydoc//lib/ydoc.jar -umlautogen
</additionalparam>
<author>true</author>
<bottom>true</bottom>
<!--header><a href="/"
target="_top">Trails Framework</a></header-->
<minmemory>128m</minmemory>
<maxmemory>512</maxmemory>
<packagenames>org.drools.*</packagenames>
<use>true</use>
<version>true</version>
<windowtitle>${project.name}
${project.version} API</windowtitle>
<additionalparam>-umlautogen</additionalparam>
</configuration>
</plugin>
If the properties are defined in thet root pom.xml it works, if they are
in the settings.xml then it does't. It seems like properties in settings
are not used in variable interpolation.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: properties in settings.xml do not interpolate
Posted by "John J. Franey" <jj...@verizon.net>.
Mark Proctor-4 wrote:
>
>
> <settings>
> <profiles>
> <profile>
> <id>default</id>
> <activation>
> <activeByDefault/>
> </activation>
> ...
> </profile>
> </profiles>
> </settings>
>
>
I've used settings.xml interpolation with success.
I'm curious about what maven thinks is the value for "activateByDefault" in
the above. Is it true or false? My hunch is "false".
So, here are two different suggestions: 1) try
"<activateByDefault>true</activateByDefault> or 2) try 'mvn -Pdefault
install'.
Hope this helps,
John
--
View this message in context: http://www.nabble.com/properties-in-settings.xml-do-not-interpolate-tf3396926s177.html#a9477885
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org