1.1 --- a/minesweeper/pom.xml Thu Mar 20 11:25:28 2014 +0100
1.2 +++ b/minesweeper/pom.xml Fri Mar 21 15:03:56 2014 +0100
1.3 @@ -74,6 +74,11 @@
1.4 </dependency>
1.5 <dependency>
1.6 <groupId>org.netbeans.html</groupId>
1.7 + <artifactId>net.java.html</artifactId>
1.8 + <version>${net.java.html.version}</version>
1.9 + </dependency>
1.10 + <dependency>
1.11 + <groupId>org.netbeans.html</groupId>
1.12 <artifactId>net.java.html.sound</artifactId>
1.13 <version>${net.java.html.version}</version>
1.14 </dependency>
1.15 @@ -83,6 +88,12 @@
1.16 <version>${net.java.html.version}</version>
1.17 </dependency>
1.18 <dependency>
1.19 + <groupId>org.netbeans.html</groupId>
1.20 + <artifactId>nbrwsr</artifactId>
1.21 + <version>${net.java.html.version}</version>
1.22 + <scope>provided</scope>
1.23 + </dependency>
1.24 + <dependency>
1.25 <groupId>org.testng</groupId>
1.26 <artifactId>testng</artifactId>
1.27 <version>6.7</version>
1.28 @@ -367,5 +378,91 @@
1.29 </plugins>
1.30 </build>
1.31 </profile>
1.32 + <profile>
1.33 + <id>nbrwsr</id>
1.34 + <dependencies>
1.35 + <dependency>
1.36 + <groupId>org.netbeans.html</groupId>
1.37 + <artifactId>nbrwsr</artifactId>
1.38 + <version>${net.java.html.version}</version>
1.39 + <scope>compile</scope>
1.40 + </dependency>
1.41 + </dependencies>
1.42 + <build>
1.43 + <plugins>
1.44 + <plugin>
1.45 + <groupId>org.apache.maven.plugins</groupId>
1.46 + <artifactId>maven-resources-plugin</artifactId>
1.47 + <version>2.6</version>
1.48 + <executions>
1.49 + <execution>
1.50 + <id>include-webpages</id>
1.51 + <goals>
1.52 + <goal>copy-resources</goal>
1.53 + </goals>
1.54 + <phase>process-resources</phase>
1.55 + <configuration>
1.56 + <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
1.57 + <overwrite>true</overwrite>
1.58 + <resources>
1.59 + <resource>
1.60 + <directory>src/main/webapp/pages</directory>
1.61 + </resource>
1.62 + </resources>
1.63 + </configuration>
1.64 + </execution>
1.65 + </executions>
1.66 + </plugin>
1.67 + <plugin>
1.68 + <groupId>org.codehaus.mojo</groupId>
1.69 + <artifactId>nbm-maven-plugin</artifactId>
1.70 + <version>3.13</version>
1.71 + <extensions>true</extensions>
1.72 + <executions>
1.73 + <execution>
1.74 + <id>default-manifest</id>
1.75 + <phase>process-classes</phase>
1.76 + <goals>
1.77 + <goal>manifest</goal>
1.78 + </goals>
1.79 + <configuration>
1.80 + <useOSGiDependencies>true</useOSGiDependencies>
1.81 + <brandingToken>html4j4nb</brandingToken>
1.82 + <cluster>html4j4nb</cluster>
1.83 + <verifyIntegrity>false</verifyIntegrity>
1.84 + </configuration>
1.85 + </execution>
1.86 + <execution>
1.87 + <id>default-nbm</id>
1.88 + <phase>package</phase>
1.89 + <goals>
1.90 + <goal>nbm</goal>
1.91 + </goals>
1.92 + <configuration>
1.93 + <useOSGiDependencies>true</useOSGiDependencies>
1.94 + <cluster>html4j4nb</cluster>
1.95 + <verifyIntegrity>false</verifyIntegrity>
1.96 + </configuration>
1.97 + </execution>
1.98 + </executions>
1.99 + <configuration>
1.100 + <useOSGiDependencies>true</useOSGiDependencies>
1.101 + <brandingToken>html4j4nb</brandingToken>
1.102 + <cluster>html4j4nb</cluster>
1.103 + <verifyIntegrity>false</verifyIntegrity>
1.104 + </configuration>
1.105 + </plugin>
1.106 +
1.107 + <plugin>
1.108 + <groupId>org.apache.maven.plugins</groupId>
1.109 + <artifactId>maven-jar-plugin</artifactId>
1.110 + <configuration>
1.111 + <!-- to have the jar plugin pickup the nbm generated manifest -->
1.112 + <useDefaultManifestFile>true</useDefaultManifestFile>
1.113 + </configuration>
1.114 + </plugin>
1.115 + </plugins>
1.116 + </build>
1.117 + </profile>
1.118 </profiles>
1.119 </project>