Skip to content

Commit 87ec410

Browse files
author
phasenraum2010
committed
ongoing work on #34 #39
1 parent 0ffb6b5 commit 87ec410

File tree

3 files changed

+49
-13
lines changed

3 files changed

+49
-13
lines changed

defcon-documentation/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ You can also more details on each goal by running the help goal:
2222

2323
$ mvn jbake:help -Ddetail # -DgoalName=[seed|generate|watch|inline]
2424

25+
### Goo to know
26+
* https://blog-de.akquinet.de/2015/04/02/integration-von-jbake-in-maven-statische-websites/
2527

2628
[http://localhost:8080]:http://localhost:8080 (defcon :: documentation by jbake)
2729
[https://jbake.org/]:https://jbake.org/ (jbake)

defcon-documentation/pom.xml

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
<artifactId>defcon-documentation</artifactId>
1515
<packaging>jar</packaging>
1616

17-
<dependencies>
18-
<dependency>
19-
<groupId>org.jbake</groupId>
20-
<artifactId>jbake-maven-plugin</artifactId>
21-
</dependency>
22-
</dependencies>
23-
2417
<profiles>
2518
<profile>
2619
<id>default</id>
@@ -29,6 +22,48 @@
2922
</activation>
3023
<build>
3124
<plugins>
25+
<plugin>
26+
<groupId>org.jbake</groupId>
27+
<artifactId>jbake-maven-plugin</artifactId>
28+
<executions>
29+
<execution>
30+
<id>default-generate</id>
31+
<phase>generate-resources</phase>
32+
<goals>
33+
<goal>generate</goal>
34+
</goals>
35+
</execution>
36+
</executions>
37+
<configuration>
38+
<inputDirectory>${project.basedir}/src/main/resources</inputDirectory>
39+
<outputDirectory>${project.build.directory}/classes</outputDirectory>
40+
</configuration>
41+
<dependencies>
42+
<!-- for freemarker templates (.ftl) -->
43+
<dependency>
44+
<groupId>org.freemarker</groupId>
45+
<artifactId>freemarker</artifactId>
46+
<version>2.3.20</version>
47+
</dependency>
48+
</dependencies>
49+
</plugin>
50+
<plugin>
51+
<groupId>org.apache.maven.plugins</groupId>
52+
<artifactId>maven-jar-plugin</artifactId>
53+
<configuration>
54+
<excludes>
55+
<exclude>**/less</exclude>
56+
<exclude>**/*.less</exclude>
57+
<exclude>**/assets</exclude>
58+
<exclude>**/assets/**</exclude>
59+
<exclude>**/content</exclude>
60+
<exclude>**/content/**</exclude>
61+
<exclude>**/templates</exclude>
62+
<exclude>**/templates/**</exclude>
63+
<exclude>**/template-draft.html</exclude>
64+
</excludes>
65+
</configuration>
66+
</plugin>
3267
<plugin>
3368
<groupId>org.apache.maven.plugins</groupId>
3469
<artifactId>maven-surefire-plugin</artifactId>

defcon-parent/pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,6 @@
239239
<version>2.0.1.RELEASE</version>
240240
</dependency>
241241

242-
<dependency>
243-
<groupId>org.jbake</groupId>
244-
<artifactId>jbake-maven-plugin</artifactId>
245-
<version>${jbake-maven-plugin.version}</version>
246-
</dependency>
247-
248242
</dependencies>
249243

250244
</dependencyManagement>
@@ -463,6 +457,11 @@
463457
<artifactId>maven-jxr-plugin</artifactId>
464458
<version>${maven-jxr-plugin.version}</version>
465459
</plugin>
460+
<plugin>
461+
<groupId>org.jbake</groupId>
462+
<artifactId>jbake-maven-plugin</artifactId>
463+
<version>${jbake-maven-plugin.version}</version>
464+
</plugin>
466465
</plugins>
467466
</pluginManagement>
468467
</build>

0 commit comments

Comments
 (0)