You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by KenCoveny <ke...@uiactive.com> on 2007/04/17 08:21:02 UTC

I want a project that JUST does reporting and creates a site

Hi,
Is it possible to have a project that just reports and deploys to a site? I
have three java projects that each require javadoc on preprocessed source
files and using taglets. This is all done in an ant script, which I would
like to run using the antrun plugin, from a dedicated project that doesnt do
any building, just the reporting. The reason I want to run it under mvn2 is
that its easier to satisy the classpath requirements by the dependency
mechanism which is great. 
Hers my pom which in its present form has only one reportSet defined, I'll
add the others when this goes. At present it doesnt even run the ant task
when I do a mvn site:site. What mods need I make and what mvn command do I
issue to get it to work (I find the build lifecycle very confusing)
TIA....
Ken Coveny
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.uiactive</groupId>
    <artifactId>uiactive</artifactId>
    <version>1.2.0-SNAPSHOT</version>
  </parent>
  <groupId>com.uiactive.jrap</groupId>
  <artifactId>uiactive-jrap-doc</artifactId>
  <packaging>jar</packaging>
  <version>4.3-SNAPSHOT</version>
  <name>Remote Server javadoc</name>
  <description>Create the preprocessed javadoc for all jrap server
projects</description>

  <scm>
   
<developerConnection>scm:perforce://Products/uiActive/Remote/Server/Doc</developerConnection>
  </scm>

<!-- <build>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>true</skip>
        </configuration>
      </plugin>
  </build> -->
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <reportSets>
          <reportSet>
            <id>midp-source</id>
            <configuration>
              <ant dir="${basedir}">
                <property name="srcdir"
location="../Midp/main/src/main/java"/>
                <property name="testsrcdir"
location="../Midp-Test/main/src/main/java"/>
                <property name="version" value="4.3-SNAPSHOT"/>
              </ant>
            </configuration>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>
  <dependencies>
    <dependency>
      <groupId>com.uiactive.jrap</groupId>
      <artifactId>uiactive-jrap-common</artifactId>
      <version>4.3-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
    </dependency>
  </dependencies>
</project>

ant build.xml file....

<?xml version="1.0" encoding="UTF-8"?>

<!-- Ant tasks to package the source and test jars, as well as MIDP
script documentation. This is used to create the jars from maven
without having to run the tests. It is not intended to be called on
the command line. -->

<project name="Jrap javadoc ant" default="doc.build">
  <description> Create javadoc for all the jrap server projects and post on
site </description>

  <!-- Preprocess and build script documentation. Not intended to be
  used on the command line. Use maven goal maven midpdoc. -->

  <target name="doc.preprocess">
    <exec dir="./make" executable="perl">
    <arg line="preProcessDoc.pl -w -sv2.7 -V0 -I\.java -S${srcdir}"/>
    </exec>
    <exec dir="./make" executable="perl">
    <arg line="preProcessDoc.pl -w -svunknown -V0 -I\.java
-S${testsrcdir}"/>
    </exec>
  </target>
<!--     <classpath refid="doc.classpath"/>  -->

  <target name="doc.build" depends="doc.preprocess">
    <property name="preprocesseddir" location="make/preprocess"/>
    <property name="outputdir" location="docs"/>

   <javadoc destdir="${outputdir}"
            source="1.4"
            protected="true"
            author="false"
            version="true"
            use="true"
            failonerror="true"
            verbose="false"
            windowtitle="JRAP MIDP API v${midp.version}"> <!-- TODO What is
this - change parametrically?-->
     <taglet name="taglets.RapScriptTaglet">
       <path>
         <pathelement
path="/u01/kenc/.m2/repository/com/uiactive/jrap/uiactive-rstaglets/3.2-SNAPSHOT/uiactive-rstaglets-3.2-SNAPSHOT.jar"/>
       </path>
<!--       <path refid="doc.classpath"/> -->
     </taglet>
     <taglet name="taglets.ErrorConditionTaglet">
       <path>
         <pathelement
path="/u01/kenc/.m2/repository/com/uiactive/jrap/uiactive-rstaglets/3.2-SNAPSHOT/uiactive-rstaglets-3.2-SNAPSHOT.jar"/>
       </path>
<!--       <path refid="doc.classpath"/> -->
     </taglet>
     <taglet name="taglets.ScriptDocTaglet">
       <!--  <path refid="doc.classpath"/> -->
     </taglet>
     <taglet name="taglets.ScriptEnabledTaglet">
       <!-- <path refid="doc.classpath"/> -->
     </taglet>
     <fileset dir="${preprocesseddir}" defaultexcludes="yes">
       <include name="com/**/*.java"/>
       <include name="test/**/*.java"/>
     </fileset>
     <doctitle>MIDP JRAP API v${midp.version}</doctitle>
       <bottom>Copyright &#169; 2006 uiActive. All Rights Reserved.</bottom>
       <group title="API" packages="com.*" />
       <group title="Test" packages="test.*" />
       <link offline="true" href="http://java.sun.com/j2se/1.4.2/docs/api/"
packagelistloc="${packlistloc}"/>
       <link offline="true"
href="http://www.bullant.com.au/Downloads/HTML/JRAP/JavaDoc/"
packagelistloc="${packlistloc}/jrap"/>
     </javadoc>
   </target>
</project>
-- 
View this message in context: http://www.nabble.com/I-want-a-project-that-JUST-does-reporting-and-creates-a-site-tf3589037s177.html#a10029886
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org