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