Skip to content

Commit 344c1cf

Browse files
committed
updated site to javancss.github.io
1 parent 6a334fd commit 344c1cf

4 files changed

Lines changed: 41 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ target
66
*.ipr
77
*.iws
88
.idea
9+
dependency-reduced-pom.xml

pom.xml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
JavaNCSS is a simple command line utility which measures two standard source code metrics for the Java programming
1414
language. The metrics are collected globally, for each class and/or for each function.
1515
</description>
16-
<url>https://github.com/JavaNCSS/javancss</url>
16+
<url>https://javancss.github.io/</url>
1717

1818
<inceptionYear>1997</inceptionYear>
1919

@@ -51,6 +51,10 @@
5151
<name>Modello Development Repository</name>
5252
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
5353
</snapshotRepository>
54+
<site>
55+
<id>github</id>
56+
<url>scm:git:https://github.com/JavaNCSS/javancss.github.io.git</url>
57+
</site>
5458
</distributionManagement>
5559

5660
<developers>
@@ -209,6 +213,23 @@
209213
<artifactId>javacc-maven-plugin</artifactId>
210214
<version>2.6</version>
211215
</plugin>
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-site-plugin</artifactId>
219+
<version>3.7</version>
220+
<configuration>
221+
<skipDeploy>true</skipDeploy><!-- don't deploy site with maven-site-plugin -->
222+
</configuration>
223+
</plugin>
224+
<plugin>
225+
<groupId>org.apache.maven.plugins</groupId>
226+
<artifactId>maven-scm-publish-plugin</artifactId>
227+
<version>1.1</version>
228+
<configuration>
229+
<scmBranch>master</scmBranch><!-- see https://help.github.com/articles/user-organization-and-project-pages/ -->
230+
<content>${project.reporting.outputDirectory}</content><!-- mono-module doesn't require site:stage -->
231+
</configuration>
232+
</plugin>
212233
</plugins>
213234
</pluginManagement>
214235
<plugins>
@@ -355,6 +376,19 @@
355376
</execution>
356377
</executions>
357378
</plugin>
379+
<plugin>
380+
<groupId>org.apache.maven.plugins</groupId>
381+
<artifactId>maven-scm-publish-plugin</artifactId>
382+
<executions>
383+
<execution>
384+
<id>scm-publish</id>
385+
<phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
386+
<goals>
387+
<goal>publish-scm</goal>
388+
</goals>
389+
</execution>
390+
</executions>
391+
</plugin>
358392
</plugins>
359393
</build>
360394

src/site/site.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@
66
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.4.0 http://maven.apache.org/xsd/decoration-1.4.0.xsd">
77
<bannerLeft>
88
<name>JavaNCSS</name>
9-
<href>http://javancss.codehaus.org/</href>
9+
<href>http://javancss.github.io/</href>
1010
</bannerLeft>
1111
<publishDate position="right" format="yyyy-MM-dd"/>
1212
<version position="right" />
1313
<skin>
1414
<groupId>org.apache.maven.skins</groupId>
1515
<artifactId>maven-fluido-skin</artifactId>
16-
<version>1.3.1</version>
16+
<version>1.7</version>
1717
</skin>
1818

1919
<body>
2020
<links>
21-
<item name="JavaNCSS Maven Plugin" href="http://mojo.codehaus.org/javancss-maven-plugin/"/>
21+
<item name="JavaNCSS Maven Plugin" href="http://www.mojohaus.org/javancss-maven-plugin/"/>
2222
<item name="Maven" href="http://maven.apache.org/"/>
2323
<item name="Ant" href="http://ant.apache.org/"/>
2424
</links>
2525
<breadcrumbs>
2626
<item name="Chr. Clemens Lee" href="http://www.kclee.de/clemens/java/"/>
27-
<item name="JavaNCSS" href="http://javancss.codehaus.org/"/>
27+
<item name="JavaNCSS" href="http://javancss.github.io/"/>
2828
</breadcrumbs>
2929

3030
<menu name="General Information">

src/site/xhtml/links.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<h2><a name="links"></a>Related Links</h2>
1616

1717
<ul>
18-
<li><a href="http://mojo.codehaus.org/javancss-maven-plugin/">JavaNCSS Maven Plugin</a>: JavaNCSS as a Maven plugin.</li>
18+
<li><a href="http://www.mojohaus.org/javancss-maven-plugin/">JavaNCSS Maven Plugin</a>: JavaNCSS as a Maven plugin.</li>
1919

2020
<li><a href="http://www.kclee.de/clemens/java/index.html">Clemens' Java Page</a> - Other Java stuff I did.</li>
2121

0 commit comments

Comments
 (0)