Skip to content

Commit

Permalink
Fix #44: Move process Readme.md to site profile
Browse files Browse the repository at this point in the history
  • Loading branch information
myunusov committed Mar 4, 2016
1 parent def974a commit 45b8a32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 27 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Name | Description | Value | Default Value
------------ | ------------- | ------------- | -------------
env | Target environment | dev, qa, prod | dev
project.root | For multi-module projects it is the root project path | path | .
site.path | Path to Project Site's sources | path | .
project.jdk | The version of JDK. | java version | 1.8
snapshot.allowed.artifacts | List of dependency patterns to exclude when checking for snapshot versions | list of patterns | org.maxur:*

Expand Down
49 changes: 22 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,6 @@
<profiles>
<profile>
<id>self-doc</id>
<properties>
<site.path>${basedir}/src/site</site.path>
<site.skip>false</site.skip>
</properties>

<distributionManagement>
<site>
Expand All @@ -200,29 +196,6 @@
</site>
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Copy README.md to site/index.md</echo>
<copy file="${project.root}/README.md" tofile="${project.root}/target//generated-site/markdown/index.md"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
Expand Down Expand Up @@ -485,8 +458,30 @@

<profile>
<id>site</id>
<properties>
<site.path>${basedir}/src/site</site.path>
<site.skip>false</site.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Copy README.md to site/index.md</echo>
<copy file="${project.root}/README.md" tofile="${project.root}/target//generated-site/markdown/index.md"/>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
Expand Down

0 comments on commit 45b8a32

Please sign in to comment.