Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Build enhancements #1

Merged
merged 4 commits into from

2 participants

@vietj

Here is a pull request that:

@vietj

Note that you should change in the pom.xml the owner of the GitHub repository from vietj (my account) to your (msnicklous) in the com.github.github:site-maven-plugin

@msnicklous msnicklous merged commit 9fb9ac1 into msnicklous:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 135 additions and 8 deletions.
  1. +10 −0 .gitignore
  2. +125 −8 portlet-api_3.0/pom.xml
View
10 .gitignore
@@ -4,3 +4,13 @@
*.jar
*.war
*.ear
+
+# OSX metadata file
+.DS_Store
+
+# Intellij project files
+*.iml
+.idea
+
+# Maven project.build.directory
+target
View
133 portlet-api_3.0/pom.xml
@@ -30,6 +30,18 @@
</parent>
-->
+ <properties>
+ <version.clean.plugin>2.5</version.clean.plugin>
+ <version.javadoc.plugin>2.9</version.javadoc.plugin>
+ <version.compiler.plugin>3.1</version.compiler.plugin>
+ <version.dependency.plugin>2.8</version.dependency.plugin>
+ <version.deploy.plugin>2.7</version.deploy.plugin>
+ <version.assembly.plugin>2.4</version.assembly.plugin>
+ <version.jar.plugin>2.4</version.jar.plugin>
+ <version.install.plugin>2.4</version.install.plugin>
+ <version.source.plugin>2.2.1</version.source.plugin>
+ </properties>
+
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.portals</groupId>
@@ -54,7 +66,38 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>${version.assembly.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>${version.clean.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>${version.dependency.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>${version.deploy.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>${version.jar.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>${version.source.plugin}</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
+ <version>${version.compiler.plugin}</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
@@ -79,22 +122,35 @@
</instructions>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>${version.javadoc.plugin}</version>
+ <configuration>
+ <doctitle>JSR 362 Portlet Specification 3.0 Interface Working Document</doctitle>
+ <windowtitle>JSR 362 Portlet Specification 3.0 Interface Working Document</windowtitle>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <configuration>
- <doctitle>JSR 362 Portlet Specification 3.0 Interface Working Document</doctitle>
- <windowtitle>JSR 362 Portlet Specification 3.0 Interface Working Document</windowtitle>
- </configuration>
- </plugin>
</plugins>
</build>
@@ -111,6 +167,67 @@
</plugins>
</build>
</profile>
+
+ <!--
+ Profile for publishing Javadoc to GitHub Pages (https://help.github.com/categories/20/articles)
+
+ = Setup =
+
+ Add this profile to your .m2/settings.xml
+
+ <profile>
+ <id>github</id>
+ <properties>
+ <github.global.userName>your_github_username</github.global.userName>
+ <github.global.password>your_github_password</github.global.password>
+ </properties>
+ </profile>
+
+
+ = Usage =
+
+ To build and deploy Javadoc: mvn site -Pgithub
+ Javadocs are published to GitHub pages : your_github_username.github.io/portletspec3
+
+ -->
+ <profile>
+ <id>github</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ <phase>generate-resources</phase>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>com.github.github</groupId>
+ <artifactId>site-maven-plugin</artifactId>
+ <version>0.8</version>
+ <configuration>
+ <message>Deploy javadoc for ${project.version}</message>
+ <repositoryOwner>vietj</repositoryOwner>
+ <repositoryName>portletspec3</repositoryName>
+ <outputDirectory>${project.build.directory}/site/apidocs/</outputDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>site</goal>
+ </goals>
+ <phase>install</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
Something went wrong with that request. Please try again.