pom.xml
author indvdum (gotoindvdum[at]gmail[dot]com)
Sat, 22 Dec 2012 16:02:29 +0400
changeset 24 ff78e975f211
parent 23 b702c5443354
permissions -rw-r--r--
Separating module
     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.7</source>
    39 					<target>1.7</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 		<profile>
   194 			<id>recompileWidgetsetLow</id>
   195 			<build>
   196 				<plugins>
   197 					<plugin>
   198 						<groupId>org.codehaus.mojo</groupId>
   199 						<artifactId>gwt-maven-plugin</artifactId>
   200 						<version>${gwt-maven-plugin.version}</version>
   201 						<configuration>
   202 							<!-- if you don't specify any modules, the plugin will find them -->
   203 							<webappDirectory>${project.build.directory}/${project.build.finalName}/VAADIN/widgetsets</webappDirectory>
   204 							<!-- On Mac running Snow Leopard, add "-d32" -->
   205 							<!--
   206 								This causes error messages (but build works) in phase "package":
   207 								two processes would use the same debug port
   208 							-->
   209 							<!--
   210 								extraJvmArgs>-Xmx512M -Xss1024k -Xdebug
   211 								-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8998</extraJvmArgs
   212 							-->
   213 							<extraJvmArgs>-Xmx256M -Xss1024k</extraJvmArgs>
   214 							<localWorkers>1</localWorkers>
   215 							<runTarget>xsite</runTarget>
   216 							<hostedWebapp>${project.build.directory}/${project.build.finalName}</hostedWebapp>
   217 							<noServer>true</noServer>
   218 							<port>8080</port>
   219 							<soyc>false</soyc>
   220 						</configuration>
   221 						<executions>
   222 							<execution>
   223 								<goals>
   224 									<goal>resources</goal>
   225 									<goal>compile</goal>
   226 								</goals>
   227 							</execution>
   228 						</executions>
   229 					</plugin>
   230 				</plugins>
   231 			</build>
   232 
   233 			<pluginRepositories>
   234 				<pluginRepository>
   235 					<id>codehaus-snapshots</id>
   236 					<url>http://nexus.codehaus.org/snapshots</url>
   237 					<snapshots>
   238 						<enabled>true</enabled>
   239 					</snapshots>
   240 					<releases>
   241 						<enabled>false</enabled>
   242 					</releases>
   243 				</pluginRepository>
   244 			</pluginRepositories>
   245 		</profile>
   246 	</profiles>
   247 
   248 	<dependencies>
   249 		<dependency>
   250 			<groupId>com.vaadin</groupId>
   251 			<artifactId>vaadin</artifactId>
   252 			<version>${vaadin.version}</version>
   253 		</dependency>
   254 		<dependency>
   255 			<groupId>org.vaadin.addons</groupId>
   256 			<artifactId>widget-rpc</artifactId>
   257 			<version>1.1.5</version>
   258 		</dependency>
   259 		<dependency>
   260 			<groupId>com.google.gwt</groupId>
   261 			<artifactId>gwt-user</artifactId>
   262 			<version>${gwt-user.version}</version>
   263 			<scope>provided</scope>
   264 		</dependency>
   265 	</dependencies>
   266 
   267 	<repositories>
   268 		<repository>
   269 			<id>vaadin</id>
   270 			<url>http://oss.sonatype.org/content/repositories/vaadin/</url>
   271 			<releases>
   272 				<enabled>true</enabled>
   273 			</releases>
   274 			<snapshots>
   275 				<enabled>false</enabled>
   276 			</snapshots>
   277 		</repository>
   278 		<repository>
   279 			<id>vaadin-addons</id>
   280 			<url>http://maven.vaadin.com/vaadin-addons</url>
   281 			<releases>
   282 				<enabled>true</enabled>
   283 			</releases>
   284 			<snapshots>
   285 				<enabled>false</enabled>
   286 			</snapshots>
   287 		</repository>
   288 	</repositories>
   289 
   290 </project>