openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r757760 - /openjpa/trunk/pom.xml
Date Tue, 24 Mar 2009 12:20:31 GMT
Author: mikedd
Date: Tue Mar 24 12:20:29 2009
New Revision: 757760

URL: http://svn.apache.org/viewvc?rev=757760&view=rev
Log:
OPENJPA-951

Modified:
    openjpa/trunk/pom.xml

Modified: openjpa/trunk/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/pom.xml?rev=757760&r1=757759&r2=757760&view=diff
==============================================================================
--- openjpa/trunk/pom.xml (original)
+++ openjpa/trunk/pom.xml Tue Mar 24 12:20:29 2009
@@ -112,6 +112,37 @@
             </modules>
             <build>
                 <plugins>
+                <plugin>
+                    <!--
+                        javadoc plugin doesn't copy resources like the normal jar plugin.
+                        Unzip license,etc from normal jar and add to javadoc jar.
+                     -->
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>javadoc.resources</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <tasks>
+                                        <!-- create output dir for nested parent poms
-->
+                                        <mkdir dir="${project.build.directory}" />
+                                        <unzip dest="${project.build.directory}/apidocs">
+                                            <patternset>
+                                                <include name="META-INF/*.txt" />
+                                            </patternset>
+                                            <fileset dir="${project.build.directory}">
+                                                <include name="${artifactId}-${pom.version}.jar"
/>
+                                            </fileset>
+                                        </unzip>
+                                    </tasks>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-source-plugin</artifactId>



Mime
View raw message