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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to