You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Brehm, Robert P" <Ro...@xerox.com> on 2006/11/01 01:26:57 UTC

JavaDoc Plug

Hi,

 

I am using Maven 2 and here is my dilemma:  

 

We have internal projects some of which are compiled in Java 1.4 and
some in Java 1.5.

 

My JAVA_HOME is set to  .. j2sdk1.4.2_04

 

In my POM I have included 

 

    <build>

        <plugins>       

            <plugin>

                <groupId>org.apache.maven.plugins</groupId>

                <artifactId>maven-compiler-plugin</artifactId>

                <configuration>

                    <fork>true</fork>

                    <source>1.5</source>

                            <target>1.5</target>

                            <compilerVersion>1.5</compilerVersion>

 
<executable>/apps/java/jdk1.5.0_07/bin/javac</executable>

                </configuration>

            </plugin> 

        </plugins>

    </build

 

So the project compiles in Java 1.5.  However, when I do:

 

 <reporting>

   <plugins> 

     <plugin>

        <groupId>org.apache.maven.plugins</groupId>

        <artifactId>maven-javadoc-plugin</artifactId>

        <configuration>

            <minmemory>128m</minmemory>

                <maxmemory>512</maxmemory>

        </configuration>

      </plugin>

    </plugins>

  </reporting>

 

I get compilation errors and 

Command line was:/apps/java/j2sdk1.4.2_04/jre/../bin/javadoc
-J-DproxyHost=13.62.6.90 -J-DproxyPort=8080 -J-Xmx512m -J-Xms128m
@options @packages 

 

So it used the JAVA_HOME for the javadoc bin file.

 

I tried adding this to the javadoc configuration:
<sourcepath>/apps/java/jdk1.5.0_07/bin/javadoc</sourcepath> and this
time javadoc did nothing.

 

I am stuck.

 

Any suggestions?

 

Regards,

 

Bob

 

--------------------------------------------------------------------

Robert P. Brehm

Software Engineer, Manufacturing Technology Development

Xerox Office Group, Wilsonville, OR, USA

503-685-2329