You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Curt Arnold <ca...@apache.org> on 2007/05/15 19:21:53 UTC
Property substitution in APT for log4j migration
I've been migrating log4j over to Maven and I've run into a few
little issues that I haven't been able to work through. I would
appreciate any advice for more experienced Maven hands.
The first issue involves property substitution in APT. The maven-
site download.apt (https://svn.apache.org/repos/asf/maven/site/trunk/
src/site/apt/download.apt) uses ${currentVersion} to insert the
current version into the generated HTML. The property currentVersion
is set in the POM (https://svn.apache.org/repos/asf/maven/site/trunk/
pom.xml). When I've tried to replicate, I do not get the substitution.
To reproduce:
svn co https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-
branch log4j12
Replace 1.2.15 with ${currentVersion} in src/site/apt/download.apt
cd log4j12
mvn site
View target/site/download.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Property substitution in APT for log4j migration
Posted by Dennis Lundberg <de...@apache.org>.
If I'm not mistaken the property substitution feature has not yet been
released yet. You need to use the current SNAPSHOT version of doxia.
Curt Arnold wrote:
> I've been migrating log4j over to Maven and I've run into a few little
> issues that I haven't been able to work through. I would appreciate any
> advice for more experienced Maven hands.
>
> The first issue involves property substitution in APT. The maven-site
> download.apt
> (https://svn.apache.org/repos/asf/maven/site/trunk/src/site/apt/download.apt)
> uses ${currentVersion} to insert the current version into the generated
> HTML. The property currentVersion is set in the POM
> (https://svn.apache.org/repos/asf/maven/site/trunk/pom.xml). When I've
> tried to replicate, I do not get the substitution.
>
> To reproduce:
>
> svn co
> https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch log4j12
> Replace 1.2.15 with ${currentVersion} in src/site/apt/download.apt
> cd log4j12
> mvn site
> View target/site/download.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org