You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Giovanni Azua <br...@swissonline.ch> on 2007/08/18 14:54:56 UTC
running ant script after reporting completes ...
Hi all,
I would like to run some ant at completion of the maven build process or at
least at completion of the reporting. The problem is that I have a
multi-module project, and the xref reporting leaves the xref folder in each
submodule rather than copying it to the main project pom type.
TIA,
regards,
Giovanni
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: running ant script after reporting completes ...
Posted by Giovanni Azua <br...@swissonline.ch>.
Hi Wendy,
Adding the aggregate configuration makes no difference, anyway I would like
to have the sources xref generated per submodule rather than one for all
modules. I have the following structure:
perfectjpattern/trunk/
- pom.xml
- perfectjpattern-api
--- pom.xml
--- src..
- perfectjpattern-core
--- pom.xml
--- src...
Parent pom.xml looks like:
<reporting>
...
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jxr-maven-plugin</artifactId>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
</plugins>
...
</reporting>
In every submodule pom.xml I included the following:
<reporting>
<outputDirectory>../target/site/${artifactId}</outputDirectory>
</reporting>
This setup provides the expected final result of having all site reports
generated under the parent target directory and with correct links (requires
some extra changes in all site.xml) except for xref that leaves the xref
folders in the submodules.
regards,
Giovanni
> Sounds like it's not aggregating correctly. How did you configure it?
>
> The option does appear to exist... if it's not working,
> please file a bug.
>
> http://maven.apache.org/plugins/maven-jxr-plugin/examples/aggregate.html
>
> --
> Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: running ant script after reporting completes ...
Posted by Wendy Smoak <ws...@gmail.com>.
On 8/18/07, Giovanni Azua <br...@swissonline.ch> wrote:
> I would like to run some ant at completion of the maven build process or at
> least at completion of the reporting. The problem is that I have a
> multi-module project, and the xref reporting leaves the xref folder in each
> submodule rather than copying it to the main project pom type.
Sounds like it's not aggregating correctly. How did you configure it?
The option does appear to exist... if it's not working, please file a bug.
http://maven.apache.org/plugins/maven-jxr-plugin/examples/aggregate.html
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: running ant script after reporting completes ...
Posted by Wayne Fay <wa...@gmail.com>.
It seems better (in the long-run) to file a bug in JIRA and attempt to
fix the issue in Maven itself than try to find a work-around. But you
are certainly welcome to try this approach for now.
Wayne
On 8/18/07, Teody Cue Jr. <tc...@exist.com> wrote:
> Hi Giovanni,
>
> You can use the maven-antrun-plugin and bind it on the phase after the
> reporting plugin. Whichever phase the reporting plugin is binded.
> Here's the link on maven's build lifecycle:
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> Check out the section "Build Lifecycle Phase Reference" for a complete
> list of the phases.
>
> maven-antrun-plugin can be found here:
> http://maven.apache.org/plugins/maven-antrun-plugin/
> However, antrun is advisable only when migrating from ant to maven.
> Although it would solve your current problem. :)
>
> Hope this helps.
>
> Teody
>
>
>
> Giovanni Azua wrote:
> > Hi all,
> >
> > I would like to run some ant at completion of the maven build process or
> at
> > least at completion of the reporting. The problem is that I have a
> > multi-module project, and the xref reporting leaves the xref folder in
> each
> > submodule rather than copying it to the main project pom type.
> >
> > TIA,
> > regards,
> > Giovanni
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: running ant script after reporting completes ...
Posted by "Teody Cue Jr." <tc...@exist.com>.
Hi Giovanni,
You can use the maven-antrun-plugin and bind it on the phase after the
reporting plugin. Whichever phase the reporting plugin is binded.
Here's the link on maven's build lifecycle:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Check out the section "Build Lifecycle Phase Reference" for a complete
list of the phases.
maven-antrun-plugin can be found here:
http://maven.apache.org/plugins/maven-antrun-plugin/
However, antrun is advisable only when migrating from ant to maven.
Although it would solve your current problem. :)
Hope this helps.
Teody
Giovanni Azua wrote:
> Hi all,
>
> I would like to run some ant at completion of the maven build process or at
> least at completion of the reporting. The problem is that I have a
> multi-module project, and the xref reporting leaves the xref folder in each
> submodule rather than copying it to the main project pom type.
>
> TIA,
> regards,
> Giovanni
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org