Copy resources into the JAR for use in NetBeans nbrwsr
authorJaroslav Tulach <jtulach@netbeans.org>
Wed, 19 Mar 2014 16:53:34 +0100
branchnbrwsr
changeset 113aa5e80fdfa7d
parent 112 41b280ebabf3
child 114 befa5faa3246
Copy resources into the JAR for use in NetBeans
minesweeper/pom.xml
     1.1 --- a/minesweeper/pom.xml	Wed Mar 19 16:20:43 2014 +0100
     1.2 +++ b/minesweeper/pom.xml	Wed Mar 19 16:53:34 2014 +0100
     1.3 @@ -319,6 +319,29 @@
     1.4            <build>
     1.5                <plugins>
     1.6                    <plugin>
     1.7 +                      <groupId>org.apache.maven.plugins</groupId>
     1.8 +                      <artifactId>maven-resources-plugin</artifactId>
     1.9 +                      <version>2.6</version>
    1.10 +                      <executions>
    1.11 +                          <execution>
    1.12 +                              <id>include-webpages</id>
    1.13 +                              <goals>
    1.14 +                                  <goal>copy-resources</goal>
    1.15 +                              </goals>
    1.16 +                              <phase>process-resources</phase>
    1.17 +                              <configuration>
    1.18 +                                  <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
    1.19 +                                  <overwrite>true</overwrite>
    1.20 +                                  <resources>          
    1.21 +                                      <resource>
    1.22 +                                          <directory>src/main/webapp/pages</directory>
    1.23 +                                      </resource>
    1.24 +                                  </resources>              
    1.25 +                              </configuration>   
    1.26 +                          </execution>
    1.27 +                      </executions>
    1.28 +                  </plugin>
    1.29 +                  <plugin>
    1.30                        <groupId>org.codehaus.mojo</groupId>
    1.31                        <artifactId>nbm-maven-plugin</artifactId>
    1.32                        <version>3.13</version>