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