adding antrun site publication to pom
This commit is contained in:
parent
b148d5fec9
commit
94e5e1a77e
|
@ -2,3 +2,4 @@
|
|||
/.settings/
|
||||
/.classpath
|
||||
/.project
|
||||
site-content/
|
127
pom.xml
127
pom.xml
|
@ -181,6 +181,14 @@
|
|||
<url>http://issues.apache.org/jira/browse/FILEUPLOAD</url>
|
||||
</issueManagement>
|
||||
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>apache.website</id>
|
||||
<name>Apache Commons Site</name>
|
||||
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload/</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>1.6</maven.compiler.source>
|
||||
<maven.compiler.target>1.6</maven.compiler.target>
|
||||
|
@ -191,6 +199,9 @@
|
|||
<commons.rc.version>RC1</commons.rc.version>
|
||||
<commons.jira.id>FILEUPLOAD</commons.jira.id>
|
||||
<commons.jira.pid>12310476</commons.jira.pid>
|
||||
<commons.site.path>fileupload</commons.site.path>
|
||||
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload</commons.scmPubUrl>
|
||||
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
|
||||
<commons.osgi.export>!org.apache.commons.fileupload.util.mime,org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
|
||||
<commons.osgi.import>!javax.portlet,*</commons.osgi.import>
|
||||
<commons.osgi.dynamicImport>javax.portlet</commons.osgi.dynamicImport>
|
||||
|
@ -349,4 +360,120 @@
|
|||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>setup-checkout</id>
|
||||
<activation>
|
||||
<file>
|
||||
<missing>site-content</missing>
|
||||
</file>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>prepare-checkout</id>
|
||||
<phase>pre-site</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<tasks>
|
||||
<exec executable="svn">
|
||||
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}"/>
|
||||
</exec>
|
||||
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs"/>
|
||||
</exec>
|
||||
|
||||
<pathconvert pathsep=" " property="dirs">
|
||||
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*"/>
|
||||
</pathconvert>
|
||||
<exec executable="svn">
|
||||
<arg line="update --set-depth infinity ${dirs}"/>
|
||||
</exec>
|
||||
</tasks>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>travis</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>env.TRAVIS</name>
|
||||
<value>true</value>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
<version>${commons.jacoco.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>default-prepare-agent</id>
|
||||
<goals>
|
||||
<goal>prepare-agent</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-prepare-agent-integration</id>
|
||||
<goals>
|
||||
<goal>prepare-agent-integration</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-report</id>
|
||||
<goals>
|
||||
<goal>report</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-report-integration</id>
|
||||
<goals>
|
||||
<goal>report-integration</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>default-check</id>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<rules>
|
||||
<!-- implementation is needed only for Maven 2 -->
|
||||
<rule implementation="org.jacoco.maven.RuleConfiguration">
|
||||
<element>BUNDLE</element>
|
||||
<limits>
|
||||
<!-- implementation is needed only for Maven 2 -->
|
||||
<limit implementation="org.jacoco.report.check.Limit">
|
||||
<counter>COMPLEXITY</counter>
|
||||
<value>COVEREDRATIO</value>
|
||||
<minimum>0.60</minimum>
|
||||
</limit>
|
||||
</limits>
|
||||
</rule>
|
||||
</rules>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.eluder.coveralls</groupId>
|
||||
<artifactId>coveralls-maven-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue