You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jerome Thibaud <th...@gmail.com> on 2007/07/10 23:21:42 UTC
Source XREF generation puzzle !
Hi,
I got a legacy project where tests and application sources are under the
same directory
/src/com/...
/test/...
Enters maven-jxr-plugin. Which is called twice during site generation, once
for the (app) sources and once for the tests.
And I want to filter out src/test during the (app) sources Xref generation
and to filter out src/com during the tests Xref generation.
So I see a filter configuration
<configuration>
...
<includes>
<include>**/include/*.java</include>
<includes>
...
</configuration>
Makes me feel like I'm almost there, but, considering the absence of more
settings,
I suppose this applies to both jxr:jxr and jxr:test-jxr.
Hence my question, how do I specify 2 configurations, one for the execution
of jxr:jxr and the other for jxr-test-jxr?
Thanks in advance
Jerome Thibaud
Re: Source XREF generation puzzle !
Posted by Vincent Siveton <vi...@gmail.com>.
Hi again,
http://jira.codehaus.org/browse/JXR
With a patch it is always better :)
Cheers,
Vincent
2007/7/11, Mick Knutson <mi...@gmail.com>:
> where do I go to do that?
>
> On 7/11/07, Vincent Siveton <vi...@gmail.com> wrote:
> >
> > Hi,
> >
> > sourceDirs is a readonly param so you cannot use jxr to include
> > generated-sources dir.
> > Samething for test-jxr goal.
> >
> > Please open an issue.
> >
> > Cheers,
> >
> > Vincent
> >
> > 2007/7/11, Mick Knutson <mi...@gmail.com>:
> > > I just added this to my project and have only 1 issue. My
> > generated-sources
> > > does not get included....
> > >
> > > <plugin>
> > > <groupId>org.apache.maven.plugins</groupId>
> > > <artifactId>maven-jxr-plugin</artifactId>
> > >
> > > <reportSets>
> > > <reportSet>
> > > <id>com</id>
> > > <configuration>
> > > <includes>
> > > <include>org/**/*.java</include>
> > > <include>com/**/*.java</include>
> > > </includes>
> > > <excludes>
> > >
> > > <exclude>com/company/test/**/*.java</exclude>
> > > </excludes>
> > > </configuration>
> > > <reports>
> > > <report>jxr</report>
> > > </reports>
> > > </reportSet>
> > > </reportSets>
> > >
> > > </plugin>
> > >
> > >
> > > How can I include both :
> > > ./src/main/java
> > >
> > > and
> > >
> > > ./src/main/generated-sources
> > >
> > >
> > >
> > >
> > >
> > > On 7/11/07, Jerome Thibaud <th...@gmail.com> wrote:
> > > >
> > > > oh! oh! oh! I think I've seen a typo...
> > > > As usual, it's after you click the send button that it hits you!
> > > >
> > > > the second
> > > > <reports>
> > > > <report>jxr</report>
> > > > </reports>
> > > >
> > > > should have been
> > > > <reports>
> > > > <report>test-jxr</report>
> > > > </reports>
> > > >
> > > > I guess that's this part which makes the link between a configuration
> > and
> > > > a
> > > > goal.
> > > >
> > > > Thus said it still doesn't work!
> > > >
> > > > Exclusion/Inclusion works fine when applied to the plugin level.
> > > > But no effect when applied in the reportSet...
> > > >
> > > > [DEBUG] (f) excludes = []
> > > > [DEBUG] (f) includes = []
> > > >
> > > >
> > > >
> > > > Help greatly appreciated!
> > > >
> > > >
> > > > Jerome
> > > >
> > >
> > >
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.myspace.com/sexybeotches
> > > http://www.thumpradio.com
> > > ---
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Source XREF generation puzzle !
Posted by Mick Knutson <mi...@gmail.com>.
where do I go to do that?
On 7/11/07, Vincent Siveton <vi...@gmail.com> wrote:
>
> Hi,
>
> sourceDirs is a readonly param so you cannot use jxr to include
> generated-sources dir.
> Samething for test-jxr goal.
>
> Please open an issue.
>
> Cheers,
>
> Vincent
>
> 2007/7/11, Mick Knutson <mi...@gmail.com>:
> > I just added this to my project and have only 1 issue. My
> generated-sources
> > does not get included....
> >
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-jxr-plugin</artifactId>
> >
> > <reportSets>
> > <reportSet>
> > <id>com</id>
> > <configuration>
> > <includes>
> > <include>org/**/*.java</include>
> > <include>com/**/*.java</include>
> > </includes>
> > <excludes>
> >
> > <exclude>com/company/test/**/*.java</exclude>
> > </excludes>
> > </configuration>
> > <reports>
> > <report>jxr</report>
> > </reports>
> > </reportSet>
> > </reportSets>
> >
> > </plugin>
> >
> >
> > How can I include both :
> > ./src/main/java
> >
> > and
> >
> > ./src/main/generated-sources
> >
> >
> >
> >
> >
> > On 7/11/07, Jerome Thibaud <th...@gmail.com> wrote:
> > >
> > > oh! oh! oh! I think I've seen a typo...
> > > As usual, it's after you click the send button that it hits you!
> > >
> > > the second
> > > <reports>
> > > <report>jxr</report>
> > > </reports>
> > >
> > > should have been
> > > <reports>
> > > <report>test-jxr</report>
> > > </reports>
> > >
> > > I guess that's this part which makes the link between a configuration
> and
> > > a
> > > goal.
> > >
> > > Thus said it still doesn't work!
> > >
> > > Exclusion/Inclusion works fine when applied to the plugin level.
> > > But no effect when applied in the reportSet...
> > >
> > > [DEBUG] (f) excludes = []
> > > [DEBUG] (f) includes = []
> > >
> > >
> > >
> > > Help greatly appreciated!
> > >
> > >
> > > Jerome
> > >
> >
> >
> >
> > --
> > ---
> > Thanks,
> > Mick Knutson
> >
> > http://www.baselogic.com
> > http://www.blincmagazine.com
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
> > http://www.myspace.com/djmick_dot_com
> > http://www.myspace.com/sexybeotches
> > http://www.thumpradio.com
> > ---
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
---
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---
Re: Source XREF generation puzzle !
Posted by Vincent Siveton <vi...@gmail.com>.
Hi,
sourceDirs is a readonly param so you cannot use jxr to include
generated-sources dir.
Samething for test-jxr goal.
Please open an issue.
Cheers,
Vincent
2007/7/11, Mick Knutson <mi...@gmail.com>:
> I just added this to my project and have only 1 issue. My generated-sources
> does not get included....
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jxr-plugin</artifactId>
>
> <reportSets>
> <reportSet>
> <id>com</id>
> <configuration>
> <includes>
> <include>org/**/*.java</include>
> <include>com/**/*.java</include>
> </includes>
> <excludes>
>
> <exclude>com/company/test/**/*.java</exclude>
> </excludes>
> </configuration>
> <reports>
> <report>jxr</report>
> </reports>
> </reportSet>
> </reportSets>
>
> </plugin>
>
>
> How can I include both :
> ./src/main/java
>
> and
>
> ./src/main/generated-sources
>
>
>
>
>
> On 7/11/07, Jerome Thibaud <th...@gmail.com> wrote:
> >
> > oh! oh! oh! I think I've seen a typo...
> > As usual, it's after you click the send button that it hits you!
> >
> > the second
> > <reports>
> > <report>jxr</report>
> > </reports>
> >
> > should have been
> > <reports>
> > <report>test-jxr</report>
> > </reports>
> >
> > I guess that's this part which makes the link between a configuration and
> > a
> > goal.
> >
> > Thus said it still doesn't work!
> >
> > Exclusion/Inclusion works fine when applied to the plugin level.
> > But no effect when applied in the reportSet...
> >
> > [DEBUG] (f) excludes = []
> > [DEBUG] (f) includes = []
> >
> >
> >
> > Help greatly appreciated!
> >
> >
> > Jerome
> >
>
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/djmick_dot_com
> http://www.myspace.com/sexybeotches
> http://www.thumpradio.com
> ---
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Source XREF generation puzzle !
Posted by Mick Knutson <mi...@gmail.com>.
I just added this to my project and have only 1 issue. My generated-sources
does not get included....
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<reportSets>
<reportSet>
<id>com</id>
<configuration>
<includes>
<include>org/**/*.java</include>
<include>com/**/*.java</include>
</includes>
<excludes>
<exclude>com/company/test/**/*.java</exclude>
</excludes>
</configuration>
<reports>
<report>jxr</report>
</reports>
</reportSet>
</reportSets>
</plugin>
How can I include both :
./src/main/java
and
./src/main/generated-sources
On 7/11/07, Jerome Thibaud <th...@gmail.com> wrote:
>
> oh! oh! oh! I think I've seen a typo...
> As usual, it's after you click the send button that it hits you!
>
> the second
> <reports>
> <report>jxr</report>
> </reports>
>
> should have been
> <reports>
> <report>test-jxr</report>
> </reports>
>
> I guess that's this part which makes the link between a configuration and
> a
> goal.
>
> Thus said it still doesn't work!
>
> Exclusion/Inclusion works fine when applied to the plugin level.
> But no effect when applied in the reportSet...
>
> [DEBUG] (f) excludes = []
> [DEBUG] (f) includes = []
>
>
>
> Help greatly appreciated!
>
>
> Jerome
>
--
---
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---
Re: Source XREF generation puzzle !
Posted by Jerome Thibaud <th...@gmail.com>.
oh! oh! oh! I think I've seen a typo...
As usual, it's after you click the send button that it hits you!
the second
<reports>
<report>jxr</report>
</reports>
should have been
<reports>
<report>test-jxr</report>
</reports>
I guess that's this part which makes the link between a configuration and a
goal.
Thus said it still doesn't work!
Exclusion/Inclusion works fine when applied to the plugin level.
But no effect when applied in the reportSet...
[DEBUG] (f) excludes = []
[DEBUG] (f) includes = []
Help greatly appreciated!
Jerome
Re: Source XREF generation puzzle !
Posted by Jerome Thibaud <th...@gmail.com>.
Hi Vincent,
First, I'd like to thank you for your time.
Based on what you wrote, I tried the config below.
I typed mvn jxr:jxr and I ended up with every package.
I guess something is missing.
How is maven suppose to know what reportSet to use with what goal ?
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<reportSets>
<reportSet>
<id>com</id>
<configuration>
<includes>
<include>com/**/*.java</include>
</includes>
<excludes>
<exclude>com/company/test/**/*.java</exclude>
</excludes>
</configuration>
<reports>
<report>jxr</report>
</reports>
</reportSet>
<reportSet>
<id>test</id>
<configuration>
<includes>
<include>test/**/*.java</include>
<include>com/company/test/**/*.java</include>
</includes>
</configuration>
<reports>
<report>jxr</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
thanks again
Jerome
On 7/11/07, Vincent Siveton <vi...@gmail.com> wrote:
>
> Hi Jerome,
>
> Unsupported feature outofbox.
>
> An easy workaround is to use reportset, something like this following:
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jxr-plugin</artifactId>
> <reportSets>
> <reportSet>
> <id>com</id>
> <configuration>
> ...
> </configuration>
> <reports>
> <report>jxr</report>
> </reports>
> </reportSet>
> <reportSet>
> <id>test</id>
> <configuration>
> ...
> </configuration>
> <reports>
> <report>jxr</report>
> </reports>
> </reportSet>
> </reportSets>
> </plugin>
> </plugins>
> </reporting>
>
> Cheers,
>
> Vincent
>
> 2007/7/10, Jerome Thibaud <th...@gmail.com>:
> > Hi,
> >
> > I got a legacy project where tests and application sources are under the
> > same directory
> >
> > /src/com/...
> > /test/...
> >
> >
> > Enters maven-jxr-plugin. Which is called twice during site generation,
> once
> > for the (app) sources and once for the tests.
> >
> > And I want to filter out src/test during the (app) sources Xref
> generation
> > and to filter out src/com during the tests Xref generation.
> >
> > So I see a filter configuration
> >
> > <configuration>
> > ...
> > <includes>
> > <include>**/include/*.java</include>
> > <includes>
> > ...
> > </configuration>
> >
> > Makes me feel like I'm almost there, but, considering the absence of
> more
> > settings,
> > I suppose this applies to both jxr:jxr and jxr:test-jxr.
> >
> > Hence my question, how do I specify 2 configurations, one for the
> execution
> > of jxr:jxr and the other for jxr-test-jxr?
> >
> > Thanks in advance
> >
> > Jerome Thibaud
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Source XREF generation puzzle !
Posted by Vincent Siveton <vi...@gmail.com>.
Hi Jerome,
Unsupported feature outofbox.
An easy workaround is to use reportset, something like this following:
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<reportSets>
<reportSet>
<id>com</id>
<configuration>
...
</configuration>
<reports>
<report>jxr</report>
</reports>
</reportSet>
<reportSet>
<id>test</id>
<configuration>
...
</configuration>
<reports>
<report>jxr</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
Cheers,
Vincent
2007/7/10, Jerome Thibaud <th...@gmail.com>:
> Hi,
>
> I got a legacy project where tests and application sources are under the
> same directory
>
> /src/com/...
> /test/...
>
>
> Enters maven-jxr-plugin. Which is called twice during site generation, once
> for the (app) sources and once for the tests.
>
> And I want to filter out src/test during the (app) sources Xref generation
> and to filter out src/com during the tests Xref generation.
>
> So I see a filter configuration
>
> <configuration>
> ...
> <includes>
> <include>**/include/*.java</include>
> <includes>
> ...
> </configuration>
>
> Makes me feel like I'm almost there, but, considering the absence of more
> settings,
> I suppose this applies to both jxr:jxr and jxr:test-jxr.
>
> Hence my question, how do I specify 2 configurations, one for the execution
> of jxr:jxr and the other for jxr-test-jxr?
>
> Thanks in advance
>
> Jerome Thibaud
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org