mojo/src/main/resources/archetype-resources/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 15 Feb 2013 20:09:36 +0100
branchemul
changeset 744 341d8ed644df
parent 631 2c2331a0bb93
child 747 ae352b763959
permissions -rw-r--r--
Modifying the archetype to generate static ZIP file to be uploaded on a static web server
     1 <?xml version="1.0"?>
     2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     4   <modelVersion>4.0.0</modelVersion>
     5 
     6   <groupId>${groupId}</groupId>
     7   <artifactId>${artifactId}</artifactId>
     8   <version>${version}</version>
     9   <packaging>jar</packaging>
    10 
    11   <name>${artifactId}</name>
    12 
    13   <properties>
    14     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    15   </properties>
    16   <build>
    17       <plugins>
    18             <plugin>
    19                 <groupId>org.apidesign.bck2brwsr</groupId>
    20                 <artifactId>mojo</artifactId>
    21                 <version>0.3-SNAPSHOT</version>
    22                 <executions>
    23                     <execution>
    24                         <goals>
    25                             <goal>brwsr</goal>
    26                         </goals>
    27                     </execution>
    28                 </executions>
    29                 <configuration>
    30                     <startpage>${package.replace('.','/')}/index.html</startpage>
    31                 </configuration>
    32             </plugin>
    33          <plugin>
    34             <groupId>org.apache.maven.plugins</groupId>
    35             <artifactId>maven-compiler-plugin</artifactId>
    36             <version>2.3.2</version>
    37             <configuration>
    38                <source>1.7</source>
    39                <target>1.7</target>
    40             </configuration>
    41          </plugin>
    42          <plugin>
    43              <groupId>org.apache.maven.plugins</groupId>
    44              <artifactId>maven-jar-plugin</artifactId>
    45              <version>2.4</version>
    46              <configuration>
    47                  <archive>
    48                      <manifest>
    49                          <addClasspath>true</addClasspath>
    50                          <classpathPrefix>lib/</classpathPrefix>
    51                      </manifest>
    52                  </archive>
    53              </configuration>
    54          </plugin>
    55          <plugin>
    56              <artifactId>maven-assembly-plugin</artifactId>
    57              <version>2.4</version>
    58              <executions>
    59                  <execution>
    60                      <id>distro-assembly</id>
    61                      <phase>package</phase>
    62                      <goals>
    63                          <goal>single</goal>
    64                      </goals>
    65                      <configuration>
    66                          <descriptors>
    67                              <descriptor>bck2brwsr-assembly.xml</descriptor>
    68                          </descriptors>
    69                      </configuration>
    70                  </execution>
    71              </executions>                
    72          </plugin>      
    73       </plugins>
    74   </build>
    75 
    76   <dependencies>
    77     <dependency>
    78       <groupId>org.apidesign.bck2brwsr</groupId>
    79       <artifactId>emul</artifactId>
    80       <version>0.3-SNAPSHOT</version>
    81       <classifier>rt</classifier>
    82     </dependency>
    83     <dependency>
    84       <groupId>org.apidesign.bck2brwsr</groupId>
    85       <artifactId>javaquery.api</artifactId>
    86       <version>0.3-SNAPSHOT</version>
    87     </dependency>
    88     <dependency>
    89       <groupId>org.testng</groupId>
    90       <artifactId>testng</artifactId>
    91       <version>6.5.2</version>
    92       <scope>test</scope>
    93     </dependency>
    94     <dependency>
    95       <groupId>org.apidesign.bck2brwsr</groupId>
    96       <artifactId>vm4brwsr</artifactId>
    97       <classifier>js</classifier>
    98       <type>zip</type>
    99       <version>0.3-SNAPSHOT</version>
   100       <scope>provided</scope>
   101     </dependency>
   102     <dependency>
   103       <groupId>org.apidesign.bck2brwsr</groupId>
   104       <artifactId>vmtest</artifactId>
   105       <version>0.3-SNAPSHOT</version>
   106       <scope>test</scope>
   107     </dependency>
   108   </dependencies>
   109 </project>