this can be done simply by adding a profile activated with ${basedir} property:
I just added instruction at the end of Wiki page [1]
Regards,
Hervé
[1] https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+and+site+plugin
Le jeudi 22 avril 2010, Niall Pemberton a écrit :
> On Tue, Apr 20, 2010 at 8:48 AM, Olivier Lamy <[email protected]> wrote:
> > No.
> > It's 3.x prerequisite.
>
> It would be good if there was some mechanism so that the site
> generation could be made to work with either m2 or m3. Perhaps by
> activating different profiles dependant on the maven version -
> something like:
>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>${site.plugin.version}</version>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
>
> <profiles>
> <profile>
> <activation>
> <maven>2</maven>
> </activation>
> <properties>
> <site.plugin.version>2.0.1</site.plugin.version>
> </properties>
> </profile>
>
> <profile>
> <activation>
> <maven>3</maven>
> </activation>
> <properties>
> <site.plugin.version>3.0-beta-1</site.plugin.version>
> </properties>
> </profile>
> </profiles>
>
> > 2010/4/20 Brett Porter <[email protected]>:
> >> On 20/04/2010, at 5:10 PM, Olivier Lamy wrote:
> >>> Hi,
> >>>
> >>> 2010/4/20 Hervé BOUTEMY <[email protected]>:
> >>>> what about releasing maven-site-plugin 3.0-beta-1?
> >>>
> >>> Yup I can do that and start releasing all needed stuff.
> >>>
> >>>> Olivier, is there something critical missing?
> >>>
> >>> No except some spare time :-)
> >>
> >> Does that also work with Maven 2.x, or will we end up having two strands
> >> of development on it?
> >>
> >> - Brett
> >>
> >> --
> >> Brett Porter
> >> [email protected]
> >> http://brettporter.wordpress.com/
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >
> > --
> > Olivier
> > http://twitter.com/olamy
> > http://fr.linkedin.com/in/olamy
> > http://www.viadeo.com/fr/profile/olivier.lamy7
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]