pom.xml
author indvdum
Tue, 31 May 2011 15:52:03 +0400
branchconsoleWithANSI
changeset 15 ea825ba6336b
parent 13 a16932cdfd58
child 16 942d8db3a181
permissions -rw-r--r--
+ console 1.2.0-SNAPSHOT
     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"
     3 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     4 
     5 	<modelVersion>4.0.0</modelVersion>
     6 
     7 	<groupId>org.vaadin.addons</groupId>
     8 	<artifactId>console</artifactId>
     9 	<version>1.2.0-SNAPSHOT</version>
    10 	<packaging>jar</packaging>
    11 	<name>Vaadin Console add-on</name>
    12 
    13 	<build>
    14 		<plugins>
    15 			<plugin>
    16 				<artifactId>maven-source-plugin</artifactId>
    17 				<configuration>
    18 					<attach>true</attach>
    19 				</configuration>
    20 				<executions>
    21 					<execution>
    22 						<phase>generate-sources</phase>
    23 						<goals>
    24 							<goal>jar</goal>
    25 						</goals>
    26 					</execution>
    27 				</executions>
    28 			</plugin>
    29 			<plugin>
    30 				<groupId>org.apache.maven.plugins</groupId>
    31 				<artifactId>maven-compiler-plugin</artifactId>
    32 				<configuration>
    33 					<source>1.6</source>
    34 					<target>1.6</target>
    35 				</configuration>
    36 			</plugin>
    37 
    38 			<plugin>
    39 				<groupId>org.apache.maven.plugins</groupId>
    40 				<artifactId>maven-jar-plugin</artifactId>
    41 				<version>2.3.1</version>
    42 				<configuration>
    43 					<archive>
    44 						<index>true</index>
    45 						<manifest>
    46 							<addClasspath>true</addClasspath>
    47 							<!--
    48 								Implementation-Title and Implementation-Version come from the
    49 								POM by default
    50 							-->
    51 							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
    52 						</manifest>
    53 						<manifestEntries>
    54 							<!-- Package format version - do not change -->
    55 							<Vaadin-Package-Version>1</Vaadin-Package-Version>
    56 
    57 							<!-- Add-on specific fields to update -->
    58 							<Vaadin-License-Title>Apache License 2.0</Vaadin-License-Title>
    59 
    60 							<!--
    61 								Implementation-Title and Implementation-Version come from the
    62 								POM by default
    63 							-->
    64 							<Implementation-Vendor>Vaadin Ltd</Implementation-Vendor>
    65 							<Implementation-Title>${pom.name}</Implementation-Title>
    66 							<Implementation-Version>${pom.version}</Implementation-Version>
    67 
    68 							<!-- Comma-separated list of widgetsets in the package -->
    69 							<Vaadin-Widgetsets>org.vaadin.console.ConsoleWidgetset</Vaadin-Widgetsets>
    70 						</manifestEntries>
    71 					</archive>
    72 				</configuration>
    73 			</plugin>
    74 
    75 			<!-- Compiles your custom GWT components with the GWT compiler -->
    76 			<!--
    77 				A hosted mode browser for client-side widget debugging can be run
    78 				with the goal gwt:run after uncommenting the correct line below. A
    79 				remote debugger can then be connected to port 8998. Note that e.g. a
    80 				Jetty server should be running with the server side parts - use the
    81 				goal jetty:run .
    82 			-->
    83 			<plugin>
    84 				<groupId>org.codehaus.mojo</groupId>
    85 				<artifactId>gwt-maven-plugin</artifactId>
    86 				<version>2.2.0</version>
    87 				<configuration>
    88 					<!-- if you don't specify any modules, the plugin will find them -->
    89 					<webappDirectory>${project.build.directory}/${project.build.finalName}/VAADIN/widgetsets</webappDirectory>
    90 					<!-- On Mac running Snow Leopard, add "-d32" -->
    91 					<!--
    92 						This causes error messages (but build works) in phase "package":
    93 						two processes would use the same debug port
    94 					-->
    95 					<!--
    96 						extraJvmArgs>-Xmx512M -Xss1024k -Xdebug
    97 						-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8998</extraJvmArgs
    98 					-->
    99 					<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
   100 					<runTarget>xsite</runTarget>
   101 					<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
   102 					<noServer>true</noServer>
   103 					<port>8080</port>
   104 					<soyc>false</soyc>
   105 				</configuration>
   106 				<executions>
   107 					<execution>
   108 						<goals>
   109 							<goal>resources</goal>
   110 							<goal>compile</goal>
   111 						</goals>
   112 					</execution>
   113 				</executions>
   114 			</plugin>
   115 		</plugins>
   116 
   117 		<!--
   118 			This is needed for the sources required by the GWT compiler to be
   119 			included in the produced JARs
   120 		-->
   121 		<resources>
   122 			<resource>
   123 				<directory>src/main/java</directory>
   124 			</resource>
   125 			<resource>
   126 				<directory>src/main/resources</directory>
   127 			</resource>
   128 		</resources>
   129 	</build>
   130 	
   131 	<profiles>
   132 		<profile>
   133 			<id>updateWidgetset</id>
   134 			<build>
   135 				<plugins>
   136 					<plugin>
   137 						<groupId>com.vaadin</groupId>
   138 						<artifactId>vaadin-maven-plugin</artifactId>
   139 						<version>1.0.2</version>
   140 						<executions>
   141 							<execution>
   142 								<configuration>
   143 								</configuration>
   144 								<goals>
   145 									<goal>update-widgetset</goal>
   146 								</goals>
   147 							</execution>
   148 						</executions>
   149 					</plugin>
   150 				</plugins>
   151 			</build>
   152 		</profile>
   153 	</profiles>
   154 
   155 	<dependencies>
   156 		<dependency>
   157 			<groupId>com.vaadin</groupId>
   158 			<artifactId>vaadin</artifactId>
   159 			<version>6.6.0</version>
   160 		</dependency>
   161 		<dependency>
   162 			<groupId>org.vaadin.addons</groupId>
   163 			<artifactId>widget-rpc</artifactId>
   164 			<version>1.1.3</version>
   165 		</dependency>
   166 		<dependency>
   167 			<groupId>com.google.gwt</groupId>
   168 			<artifactId>gwt-user</artifactId>
   169 			<version>2.2.0</version>
   170 			<scope>provided</scope>
   171 		</dependency>
   172 	</dependencies>
   173 
   174 	<repositories>
   175 		<repository>
   176 			<id>vaadin</id>
   177 			<url>http://oss.sonatype.org/content/repositories/vaadin/</url>
   178 			<releases>
   179 				<enabled>true</enabled>
   180 			</releases>
   181 			<snapshots>
   182 				<enabled>false</enabled>
   183 			</snapshots>
   184 		</repository>
   185 		<repository>
   186 			<id>vaadin-addons</id>
   187 			<url>http://maven.vaadin.com/vaadin-addons</url>
   188 			<releases>
   189 				<enabled>true</enabled>
   190 			</releases>
   191 			<snapshots>
   192 				<enabled>false</enabled>
   193 			</snapshots>
   194 		</repository>
   195 	</repositories>
   196 
   197 </project>