minesweeper/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 28 Jun 2015 06:44:36 +0200
changeset 236 b157a20a6945
parent 235 22af9c43b8be
child 237 83302b8a5cdf
permissions -rw-r--r--
Switching to latest version of TeaVM: 0.3.0. Works like a charm.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     3   <modelVersion>4.0.0</modelVersion>
     4 
     5   <groupId>org.apidesign.demo</groupId>
     6   <artifactId>minesweeper</artifactId>
     7   <version>2.4-SNAPSHOT</version>
     8   <packaging>jar</packaging>
     9   <parent>
    10       <artifactId>demo</artifactId>
    11       <groupId>org.apidesign.html</groupId>
    12       <version>1.0-SNAPSHOT</version>
    13   </parent>
    14 
    15   <name>Mine Sweeper</name>
    16   <description>
    17       Demonstration of DukeScript rendering technology.
    18       Plus old, good, simple and entertaining game.
    19       Improve your coding skills by playing a game and 
    20       meanwhile learn what a rendering technology of the
    21       future is going to look like. Learn to use DukeScript:
    22       Write once, display (and deploy) anywhere!
    23   </description>
    24   <url>http://html.java.net/</url>
    25   <properties>
    26     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    27     <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
    28     <netbeans.compile.on.save>none</netbeans.compile.on.save>
    29     <bck2brwsr.obfuscationlevel>FULL</bck2brwsr.obfuscationlevel>
    30     <teavm.debug>false</teavm.debug>
    31   </properties>
    32   <build>
    33       <plugins>
    34           <plugin>
    35               <groupId>org.apache.maven.plugins</groupId>
    36               <artifactId>maven-compiler-plugin</artifactId>
    37               <version>2.3.2</version>
    38               <configuration>
    39                   <source>1.6</source>
    40                   <target>1.6</target>
    41               </configuration>
    42           </plugin>
    43           <plugin>
    44               <groupId>org.apache.maven.plugins</groupId>
    45               <artifactId>maven-jar-plugin</artifactId>
    46               <version>2.4</version>
    47               <configuration>
    48                   <archive>
    49                       <manifest>
    50                           <mainClass>${project.mainclass}</mainClass>
    51                           <addClasspath>true</addClasspath>
    52                           <classpathPrefix>lib/</classpathPrefix>
    53                       </manifest>
    54                   </archive>
    55               </configuration>
    56           </plugin>
    57           <plugin>
    58               <groupId>org.codehaus.mojo</groupId>
    59               <artifactId>exec-maven-plugin</artifactId>
    60               <version>1.2.1</version>
    61               <configuration>
    62                   <systemProperties>
    63                       <systemProperty>
    64                           <key>browser.rootdir</key>
    65                           <value>${basedir}/src/main/webapp/</value>
    66                       </systemProperty>
    67                   </systemProperties>
    68                   <mainClass>${project.mainclass}</mainClass>
    69               </configuration>
    70           </plugin>      
    71       </plugins>
    72   </build>
    73   <dependencies>
    74     <dependency>
    75         <groupId>org.netbeans.html</groupId>
    76         <artifactId>net.java.html.json</artifactId>
    77         <version>${net.java.html.version}</version>
    78     </dependency>
    79     <dependency>
    80         <groupId>org.netbeans.html</groupId>
    81         <artifactId>net.java.html.boot</artifactId>
    82         <version>${net.java.html.version}</version>
    83     </dependency>
    84     <dependency>
    85         <groupId>org.netbeans.html</groupId>
    86         <artifactId>net.java.html</artifactId>
    87         <version>${net.java.html.version}</version>
    88     </dependency>
    89     <dependency>
    90         <groupId>org.netbeans.html</groupId>
    91         <artifactId>net.java.html.sound</artifactId>
    92         <version>${net.java.html.version}</version>
    93     </dependency>
    94     <dependency>
    95         <groupId>org.netbeans.html</groupId>
    96         <artifactId>ko4j</artifactId>
    97         <version>${net.java.html.version}</version>
    98     </dependency>
    99     <dependency>
   100       <groupId>org.netbeans.html</groupId>
   101       <artifactId>nbrwsr</artifactId>
   102       <version>${nb.html.version}</version>
   103       <scope>provided</scope>
   104       <exclusions>
   105         <exclusion>
   106           <groupId>com.oracle</groupId>
   107           <artifactId>javafx</artifactId>
   108         </exclusion>
   109         <exclusion>
   110           <groupId>org.netbeans.html</groupId>
   111           <artifactId>net.java.html.boot</artifactId>
   112         </exclusion>
   113         <exclusion>
   114           <groupId>org.netbeans.html</groupId>
   115           <artifactId>net.java.html.boot.fx</artifactId>
   116         </exclusion>
   117       </exclusions>
   118     </dependency>
   119     <dependency>
   120       <groupId>org.testng</groupId>
   121       <artifactId>testng</artifactId>
   122       <version>6.7</version>
   123       <scope>test</scope>
   124     </dependency>
   125   </dependencies>
   126   <profiles>
   127       <profile>
   128           <id>fxbrwsr</id>
   129           <activation>
   130               <activeByDefault>true</activeByDefault>
   131           </activation>
   132           <build>
   133             <plugins>
   134                 <plugin>
   135                     <groupId>org.apache.maven.plugins</groupId>
   136                     <artifactId>maven-jar-plugin</artifactId>
   137                     <version>2.4</version>
   138                     <configuration>
   139                         <archive>
   140                             <manifest>
   141                                 <mainClass>${project.mainclass}</mainClass>
   142                                 <addClasspath>true</addClasspath>
   143                                 <classpathPrefix>lib/</classpathPrefix>
   144                             </manifest>
   145                         </archive>
   146                     </configuration>
   147                 </plugin>
   148                 <plugin>
   149                     <artifactId>maven-assembly-plugin</artifactId>
   150                     <version>2.4</version>
   151                     <executions>
   152                         <execution>
   153                             <id>distro-assembly</id>
   154                             <phase>package</phase>
   155                             <goals>
   156                                 <goal>single</goal>
   157                             </goals>
   158                             <configuration>
   159                                 <descriptors>
   160                                     <descriptor>src/main/assembly/html.java.net.xml</descriptor>
   161                                 </descriptors>
   162                             </configuration>
   163                         </execution>
   164                     </executions>                
   165                 </plugin>      
   166             </plugins>
   167           </build>
   168           <dependencies>
   169             <dependency>
   170                 <groupId>org.netbeans.html</groupId>
   171                 <artifactId>net.java.html.boot.fx</artifactId>
   172                 <version>${net.java.html.version}</version>
   173                 <scope>runtime</scope>
   174             </dependency>
   175           </dependencies>
   176       </profile>
   177       <profile>
   178           <id>bck2brwsr</id>
   179           <activation>
   180               <property>
   181                   <value>bck2brwsr</value>
   182                   <name>show</name>
   183               </property>
   184           </activation>
   185           <build>
   186               <plugins>
   187                   <plugin>
   188                       <groupId>org.apache.maven.plugins</groupId>
   189                       <artifactId>maven-jar-plugin</artifactId>
   190                       <version>2.4</version>
   191                       <configuration>
   192                           <archive>
   193                               <manifest>
   194                                   <mainClass>${project.mainclass}</mainClass>
   195                                   <addClasspath>true</addClasspath>
   196                                   <classpathPrefix>lib/</classpathPrefix>
   197                               </manifest>
   198                           </archive>
   199                       </configuration>
   200                   </plugin>
   201                   <plugin>
   202                       <groupId>org.apidesign.bck2brwsr</groupId>
   203                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   204                       <version>${bck2brwsr.version}</version>
   205                       <executions>
   206                           <execution>
   207                               <goals>
   208                                   <goal>brwsr</goal>
   209                                   <goal>aot</goal>
   210                               </goals>
   211                           </execution>
   212                       </executions>
   213                       <configuration>
   214                           <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
   215                           <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
   216                           <startpage>index.html</startpage>
   217                           <classPathPrefix>lib</classPathPrefix>
   218                           <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
   219                           <exports>
   220                               <export>org.apidesign.demo.minesweeper.MinesModel</export>
   221                           </exports>
   222                       </configuration>
   223                   </plugin>
   224                   <plugin>
   225                       <groupId>org.apache.maven.plugins</groupId>
   226                       <artifactId>maven-compiler-plugin</artifactId>
   227                       <configuration>
   228                           <compilerArguments>
   229                               <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
   230                           </compilerArguments>
   231                       </configuration>
   232                   </plugin>
   233                   <plugin>
   234                       <artifactId>maven-assembly-plugin</artifactId>
   235                       <version>2.4</version>
   236                       <executions>
   237                           <execution>
   238                               <id>distro-assembly</id>
   239                               <phase>package</phase>
   240                               <goals>
   241                                   <goal>single</goal>
   242                               </goals>
   243                               <configuration>
   244                                   <descriptors>
   245                                       <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
   246                                   </descriptors>
   247                               </configuration>
   248                           </execution>
   249                       </executions>                
   250                   </plugin>      
   251               </plugins>
   252           </build>
   253           <dependencies>
   254               <dependency>
   255                   <groupId>org.apidesign.bck2brwsr</groupId>
   256                   <artifactId>emul</artifactId>
   257                   <version>${bck2brwsr.version}</version>
   258                   <classifier>rt</classifier>
   259               </dependency>
   260               <dependency>
   261                   <groupId>org.netbeans.html</groupId>
   262                   <artifactId>net.java.html.boot</artifactId>
   263                   <version>${net.java.html.version}</version>
   264                   <exclusions>
   265                       <exclusion>
   266                           <artifactId>asm</artifactId>
   267                           <groupId>org.ow2.asm</groupId>
   268                       </exclusion>
   269                   </exclusions>
   270               </dependency>
   271               <dependency>
   272                   <groupId>org.apidesign.bck2brwsr</groupId>
   273                   <artifactId>ko-bck2brwsr</artifactId>
   274                   <version>${bck2brwsr.version}</version>
   275                   <scope>runtime</scope>
   276               </dependency>
   277           </dependencies>
   278       </profile>
   279       <profile>
   280           <id>dlvkbrwsr</id>
   281           <properties>
   282               <platform.version>4.1.1.4</platform.version>
   283               <android.plugin.version>3.7.0</android.plugin.version>
   284               <debug>false</debug>
   285           </properties>
   286           <dependencies>
   287               <dependency>
   288                   <groupId>com.google.android</groupId>
   289                   <artifactId>android</artifactId>
   290                   <version>${platform.version}</version>
   291                   <scope>provided</scope>
   292               </dependency>
   293               <dependency>
   294                   <groupId>org.apidesign.brwsr</groupId>
   295                   <artifactId>dlvkbrwsr</artifactId>
   296                   <version>1.0.1</version>
   297                   <type>jar</type>
   298               </dependency>
   299               <dependency>
   300                   <groupId>org.netbeans.html</groupId>
   301                   <artifactId>ko-ws-tyrus</artifactId>
   302                   <version>${net.java.html.version}</version>
   303                   <exclusions>
   304                       <exclusion>
   305                           <artifactId>org.json-osgi</artifactId>
   306                           <groupId>de.twentyeleven.skysail</groupId>
   307                       </exclusion>
   308                   </exclusions>
   309               </dependency>
   310           </dependencies>
   311           <build>
   312               <plugins>
   313                   <plugin>
   314                       <groupId>com.filmon.maven</groupId>
   315                       <artifactId>image-maven-plugin</artifactId>
   316                       <version>1.1</version>
   317                       <executions>
   318                           <execution>
   319                               <goals>
   320                                   <goal>scale</goal>
   321                               </goals>
   322                               <configuration>
   323                                   <outputDirectory>target/res</outputDirectory>
   324                                   <images>
   325                                       <image>
   326                                           <source>src/main/icons/DukeSweeper.png</source>
   327                                           <destination>drawable-hdpi/ic_launcher.png</destination>
   328                                           <width>72</width>
   329                                       </image>
   330                                       <image>
   331                                           <source>src/main/icons/DukeSweeper.png</source>
   332                                           <destination>drawable-mdpi/ic_launcher.png</destination>
   333                                           <width>48</width>
   334                                       </image>
   335                                       <image>
   336                                           <source>src/main/icons/DukeSweeper.png</source>
   337                                           <destination>drawable-xhdpi/ic_launcher.png</destination>
   338                                           <width>96</width>
   339                                       </image>
   340                                       <image>
   341                                           <source>src/main/icons/DukeSweeper.png</source>
   342                                           <destination>drawable-xxhdpi/ic_launcher.png</destination>
   343                                           <width>144</width>
   344                                       </image>
   345                                   </images>
   346                               </configuration>
   347                           </execution>
   348                       </executions>
   349                   </plugin>
   350                   <plugin>
   351                       <groupId>com.jayway.maven.plugins.android.generation2</groupId>
   352                       <artifactId>android-maven-plugin</artifactId>
   353                       <version>${android.plugin.version}</version>
   354                       <extensions>true</extensions>
   355                       <configuration>
   356                           <resourceDirectory>target/res</resourceDirectory>
   357                           <classifier>apk</classifier>
   358                           <attachJar>false</attachJar>
   359                           <apkDebug>debug</apkDebug>
   360                           <assetsDirectory>src/main/webapp</assetsDirectory>
   361                           <sdk>
   362                               <platform>19</platform>
   363                           </sdk>
   364                           <apk>
   365                               <metaIncludes>
   366                                   <metaInclude>services/org.netbeans.**</metaInclude>
   367                               </metaIncludes>
   368                           </apk>
   369                           <extractDuplicates>true</extractDuplicates>
   370                           <file>${project.build.directory}/${project.build.finalName}.apk</file>
   371                       </configuration>
   372                       <executions>
   373                           <execution>
   374                               <id>apk</id>
   375                               <goals>
   376                                   <goal>apk</goal>
   377                                   <goal>dex</goal>
   378                               </goals>
   379                           </execution>
   380                       </executions>
   381                   </plugin>
   382                   <plugin>
   383                       <groupId>org.apache.maven.plugins</groupId>
   384                       <artifactId>maven-install-plugin</artifactId>
   385                       <version>2.5.1</version>
   386                       <configuration>
   387                           <groupId>${project.groupId}</groupId>
   388                           <artifactId>${project.artifactId}</artifactId>
   389                           <version>${project.version}</version>
   390                           <file>${project.build.directory}/${project.build.finalName}.apk</file>
   391                           <packaging>apk</packaging>
   392                           <skip>true</skip>
   393                       </configuration>
   394                       <executions>
   395                           <execution>
   396                               <id>install-apk</id>
   397                               <phase>install</phase>
   398                               <goals>
   399                                   <goal>install-file</goal>
   400                               </goals>
   401                           </execution>
   402                       </executions>
   403                   </plugin>
   404               </plugins>
   405           </build>
   406       </profile>
   407       <profile>
   408           <id>teabrwsr</id>
   409           <build>
   410               <plugins>
   411                   <plugin>
   412                       <groupId>org.teavm</groupId>
   413                       <artifactId>teavm-maven-plugin</artifactId>
   414                       <version>${teavm.version}</version>
   415                       <dependencies>
   416                           <dependency>
   417                               <groupId>org.teavm</groupId>
   418                               <artifactId>teavm-classlib</artifactId>
   419                               <version>${teavm.version}</version>
   420                           </dependency>
   421                           <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
   422                           Also there are some little patches to JCL emulation, that are required to pass TCK -->
   423                           <dependency>
   424                               <groupId>org.teavm</groupId>
   425                               <artifactId>teavm-html4j</artifactId>
   426                               <version>${teavm.version}</version>
   427                           </dependency>
   428                       </dependencies>
   429                       <executions>
   430                           <execution>
   431                               <id>generate-minesweeper</id>
   432                               <goals>
   433                                   <goal>build-javascript</goal>
   434                               </goals>
   435                               <phase>process-classes</phase>
   436                               <configuration>
   437                                   <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
   438                                   <debugInformationGenerated>${teavm.debug}</debugInformationGenerated>
   439                                   <sourceMapsGenerated>${teavm.debug}</sourceMapsGenerated>
   440                                   <sourceFilesCopied>${teavm.debug}</sourceFilesCopied>
   441                                   <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
   442                                   <minifying>false</minifying>
   443                                   <!-- Don't include main page - we created it by ourselves -->
   444                                   <mainPageIncluded>false</mainPageIncluded>
   445                                   <!-- Merge runtime.js instead of putting as a separate file -->
   446                                   <runtime>MERGED</runtime>
   447                                   <!-- Name of the generated file -->
   448                                   <targetFileName>bck2brwsr.js</targetFileName>
   449                                   <targetDirectory>${project.build.directory}/teavm</targetDirectory>
   450                                   <!-- This transformer adds null checks before virtual calls. It is not included
   451                                   by default as we don't always need these null checks -->
   452                                   <transformers>
   453                                       <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
   454                                   </transformers>
   455                               </configuration>
   456                           </execution>
   457                       </executions>
   458                   </plugin>
   459                   <plugin>
   460                       <artifactId>maven-assembly-plugin</artifactId>
   461                       <version>2.4</version>
   462                       <executions>
   463                           <execution>
   464                               <id>distro-assembly</id>
   465                               <phase>package</phase>
   466                               <goals>
   467                                   <goal>single</goal>
   468                               </goals>
   469                               <configuration>
   470                                   <descriptors>
   471                                       <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
   472                                   </descriptors>
   473                               </configuration>
   474                           </execution>
   475                       </executions>                
   476                   </plugin>      
   477                   <plugin>
   478                       <groupId>org.apidesign.bck2brwsr</groupId>
   479                       <artifactId>bck2brwsr-maven-plugin</artifactId>
   480                       <version>${bck2brwsr.version}</version>
   481                       <executions>
   482                           <execution>
   483                               <goals>
   484                                   <goal>brwsr</goal>
   485                               </goals>
   486                           </execution>
   487                       </executions>
   488                       <configuration>
   489                           <directory>${project.build.directory}/${project.build.finalName}-teabrwsr/public_html/</directory>
   490                           <startpage>index.html</startpage>
   491                       </configuration>
   492                   </plugin>
   493               </plugins>
   494           </build>
   495       </profile>
   496       <profile>
   497           <id>ibrwsr</id>
   498           <dependencies>
   499               <dependency>
   500                   <groupId>com.dukescript.presenters</groupId>
   501                   <artifactId>ios</artifactId>
   502                   <version>0.8.1</version>
   503                   <scope>runtime</scope>
   504               </dependency>
   505           </dependencies>
   506           <build>
   507               <plugins>
   508                   <plugin>
   509                       <groupId>com.filmon.maven</groupId>
   510                       <artifactId>image-maven-plugin</artifactId>
   511                       <version>1.1</version>
   512                       <executions>
   513                           <execution>
   514                               <goals>
   515                                   <goal>scale</goal>
   516                               </goals>
   517                               <configuration>
   518                                   <outputDirectory>target/images</outputDirectory>
   519                                   <images>
   520                                       <image>
   521                                           <source>src/main/icons/DukeSweeper.png</source>
   522                                           <destination>Icon.png</destination>
   523                                           <width>57</width>
   524                                       </image>
   525                                       <image>
   526                                           <source>src/main/icons/DukeSweeper.png</source>
   527                                           <destination>Icon@2.png</destination>
   528                                           <width>114</width>
   529                                       </image>
   530                                       <image>
   531                                           <source>src/main/icons/DukeSweeper.png</source>
   532                                           <destination>Icon-60.png</destination>
   533                                           <width>60</width>
   534                                       </image>
   535                                       <image>
   536                                           <source>src/main/icons/DukeSweeper.png</source>
   537                                           <destination>Icon-60@2.png</destination>
   538                                           <width>120</width>
   539                                       </image>
   540                                       <image>
   541                                           <source>src/main/icons/DukeSweeper.png</source>
   542                                           <destination>Icon-72.png</destination>
   543                                           <width>72</width>
   544                                       </image>
   545                                       <image>
   546                                           <source>src/main/icons/DukeSweeper.png</source>
   547                                           <destination>Icon-76.png</destination>
   548                                           <width>76</width>
   549                                       </image>
   550                                   </images>
   551                               </configuration>
   552                           </execution>
   553                       </executions>
   554                   </plugin>
   555                   <plugin>
   556                       <groupId>org.robovm</groupId>
   557                       <artifactId>robovm-maven-plugin</artifactId>
   558                       <version>1.2.0</version>
   559                       <configuration>
   560                           <config>
   561                               <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
   562                               <forceLinkClasses>
   563                                   <pattern>java.util.logging.ConsoleHandler</pattern>
   564                                   <pattern>java.util.logging.SimpleFormatter</pattern>
   565                               </forceLinkClasses>
   566                               <executableName>MineSweeper</executableName>
   567                               <resources>
   568                                   <resource>src/main/webapp/pages</resource>
   569                                   <resource>
   570                                       <targetPath>/</targetPath>
   571                                       <directory>src/main/icons/</directory>
   572                                       <includes>
   573                                           <include>Default*.png</include>
   574                                       </includes>
   575                                   </resource>
   576                                   <resource>
   577                                       <targetPath>/</targetPath>
   578                                       <directory>target/images/</directory>
   579                                       <includes>
   580                                           <include>*.png</include>
   581                                       </includes>
   582                                   </resource>
   583                               </resources>
   584                                <iosInfoPList>Info.plist.xml</iosInfoPList>
   585                           </config>
   586                           <includeJFX>false</includeJFX>
   587                           <!--                      
   588                           <iosSignIdentity>iPhone Distribution</iosSignIdentity>
   589                           <iosProvisioningProfile>9728E91B-1BB7-40D6-8922-3DD3BA5E6ECD</iosProvisioningProfile> 
   590                           -->
   591                       </configuration>
   592                   </plugin>
   593               </plugins>
   594           </build>
   595       </profile>      
   596       <profile>
   597           <id>nbrwsr</id>
   598           <dependencies>
   599               <dependency>
   600                   <groupId>org.netbeans.html</groupId>
   601                   <artifactId>nbrwsr</artifactId>
   602                   <version>${nb.html.version}</version>
   603                   <scope>compile</scope>
   604               </dependency>
   605           </dependencies>
   606           <build>
   607               <plugins>
   608                   <plugin>
   609                       <groupId>org.apache.maven.plugins</groupId>
   610                       <artifactId>maven-resources-plugin</artifactId>
   611                       <version>2.6</version>
   612                       <executions>
   613                           <execution>
   614                               <id>include-webpages</id>
   615                               <goals>
   616                                   <goal>copy-resources</goal>
   617                               </goals>
   618                               <phase>process-resources</phase>
   619                               <configuration>
   620                                   <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
   621                                   <overwrite>true</overwrite>
   622                                   <resources>          
   623                                       <resource>
   624                                           <directory>src/main/webapp/pages</directory>
   625                                       </resource>
   626                                   </resources>              
   627                               </configuration>   
   628                           </execution>
   629                       </executions>
   630                   </plugin>
   631                   <plugin>
   632                       <groupId>org.codehaus.mojo</groupId>
   633                       <artifactId>nbm-maven-plugin</artifactId>
   634                       <version>3.13</version>
   635                       <extensions>true</extensions>
   636                       <executions>
   637                           <execution>
   638                               <id>default-manifest</id>
   639                               <phase>process-classes</phase>
   640                               <goals>
   641                                   <goal>manifest</goal>
   642                               </goals>
   643                               <configuration>
   644                                   <useOSGiDependencies>true</useOSGiDependencies>
   645                                   <brandingToken>html4j4nb</brandingToken>
   646                                   <cluster>extra</cluster>
   647                                   <verifyIntegrity>false</verifyIntegrity>
   648                               </configuration>
   649                           </execution>                       
   650                           <execution>
   651                               <id>default-nbm</id>
   652                               <phase>package</phase>
   653                               <goals>
   654                                   <goal>nbm</goal>
   655                               </goals>
   656                               <configuration>
   657                                   <useOSGiDependencies>true</useOSGiDependencies>
   658                                   <cluster>extra</cluster>
   659                                   <verifyIntegrity>false</verifyIntegrity>
   660                               </configuration>
   661                           </execution>
   662                       </executions>
   663                       <configuration>
   664                           <useOSGiDependencies>true</useOSGiDependencies>
   665                           <brandingToken>html4j4nb</brandingToken>
   666                           <cluster>html4j4nb</cluster>
   667                           <verifyIntegrity>false</verifyIntegrity>
   668                       </configuration>
   669                   </plugin>                      
   670 
   671                   <plugin>
   672                       <groupId>org.apache.maven.plugins</groupId>
   673                       <artifactId>maven-jar-plugin</artifactId>
   674                       <configuration>
   675                           <!-- to have the jar plugin pickup the nbm generated manifest -->
   676                           <useDefaultManifestFile>true</useDefaultManifestFile>
   677                       </configuration>
   678                   </plugin>
   679               </plugins>
   680           </build>
   681       </profile>      
   682   </profiles>  
   683 </project>