cleaned up module name, use classifier (tests) for exporting test classes and resources to any module, remove empty directories

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/maven@1585837 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Cédric Walter 2014-04-08 21:27:10 +00:00
parent 38e8f7e9af
commit d697a4860f
8 changed files with 49 additions and 33 deletions

View File

@ -2,25 +2,25 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>dist</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<!--<id>dist</id>-->
<!--<formats>-->
<!--<format>zip</format>-->
<!--</formats>-->
<!--<includeBaseDirectory>false</includeBaseDirectory>-->
<dependencySets>
<dependencySet>
<includes>
<include>org.apache.poi:poi-examples:jar</include>
<include>org.apache.poi:poi-excelant:jar</include>
<include>org.apache.poi:poi-main:jar</include>
<include>org.apache.poi:poi-ooxml:jar</include>
<include>org.apache.poi:poi-ooxml-schemas:jar</include>
<include>org.apache.poi:poi-scratchpad:jar</include>
</includes>
<unpack>false</unpack>
<outputDirectory>dist</outputDirectory>
</dependencySet>
</dependencySets>
<!--<dependencySets>-->
<!--<dependencySet>-->
<!--<includes>-->
<!--<include>org.apache.poi:poi-examples:jar</include>-->
<!--<include>org.apache.poi:poi-excelant:jar</include>-->
<!--<include>org.apache.poi:poi-main:jar</include>-->
<!--<include>org.apache.poi:poi-ooxml:jar</include>-->
<!--<include>org.apache.poi:poi-ooxml-schemas:jar</include>-->
<!--<include>org.apache.poi:poi-scratchpad:jar</include>-->
<!--</includes>-->
<!--<unpack>false</unpack>-->
<!--<outputDirectory>dist</outputDirectory>-->
<!--</dependencySet>-->
<!--</dependencySets>-->
</assembly>

View File

@ -30,7 +30,7 @@
<artifactId>ooxml-schemas</artifactId>
<packaging>jar</packaging>
<name>Apache POI - Openxmlformats Schema package</name>
<name>Apache POI - ooxml schema package</name>
<description>XmlBeans generated from the Ecma supplied xsds:
http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%20Part%204%20(DOCX).zip</description>
<url>http://poi.apache.org/</url>
@ -99,13 +99,15 @@
<configuration>
<schemaDirectory>target/schemas</schemaDirectory>
<javaSource>1.5</javaSource>
<optimize>yes</optimize>
<!--<optimize>yes</optimize>-->
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<!-- TODO to check not required to build
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-main</artifactId>
@ -115,7 +117,7 @@
<groupId>org.apache.poi</groupId>
<artifactId>poi-scratchpad</artifactId>
<version>${project.version}</version>
</dependency>
</dependency>-->
<dependency>
<groupId>org.apache.xmlbeans</groupId>

View File

@ -30,7 +30,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>poi-examples</artifactId>
<name>Apache POI Examples package</name>
<name>Apache POI - examples package</name>
<url>http://poi.apache.org/</url>
<description>Apache POI Examples</description>

View File

@ -30,7 +30,7 @@ limitations under the License.
<modelVersion>4.0.0</modelVersion>
<artifactId>poi-ooxml-schemas</artifactId>
<name>Apache POI</name>
<name>Apache POI - ooxml schemas</name>
<url>http://poi.apache.org/</url>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<packaging>jar</packaging>

View File

@ -28,8 +28,8 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>poi-ooxml</artifactId>
<name>Apache POI OOXML package</name>
<description>Apache POI - Java API To Access Microsoft Format Files</description>
<name>Apache POI - ooxml package</name>
<description>Apache POI - java api to access microsoft format files</description>
<url>http://poi.apache.org/</url>
<dependencies>
@ -52,7 +52,7 @@
<groupId>org.apache.poi</groupId>
<artifactId>poi-main</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>

View File

@ -29,20 +29,20 @@ limitations under the License.
<modelVersion>4.0.0</modelVersion>
<artifactId>poi-scratchpad</artifactId>
<name>Apache POI Scratchpad package</name>
<name>Apache POI - scratchpad package</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<groupId>org.apache.poi</groupId>
<artifactId>poi-main</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<groupId>org.apache.poi</groupId>
<artifactId>poi-main</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
</dependencies>

18
pom.xml
View File

@ -27,9 +27,9 @@
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<name>Apache POI - the Java API for Microsoft Documents</name>
<name>Apache POI</name>
<description>Maven build of Apache POI for Sonar checks</description>
<description>Apache POI - the java api for microsoft documents</description>
<url>http://poi.apache.org/</url>
<properties>
@ -215,6 +215,20 @@
<threadCount>10</threadCount-->
</configuration>
</plugin>
<!-- provide the test-jar for other modules -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>