Strabon

changeset 846:150e7578f7e2

to build Strabon using maven version <3.0 include also the following option that disables running of shade plugin: -Dshade.skip
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Jan 08 17:41:11 2013 +0200 (2013-01-08)
parents 250d177995ca
children 49490218c809
files README endpoint-client/pom.xml
line diff
     1.1 --- a/README	Tue Jan 08 12:30:51 2013 +0200
     1.2 +++ b/README	Tue Jan 08 17:41:11 2013 +0200
     1.3 @@ -230,16 +230,25 @@
     1.4  
     1.5  Known Issues
     1.6  ============
     1.7 -By default, Tomcat uses ISO-8859-1 character encoding when decoding URLs received 
     1.8 -from a browser. This can cause problems when encoding is UTF-8, and you are using 
     1.9 -international characters. In order to fix this, edit conf/server.xml and find the 
    1.10 -line where the Connector is defined. Add the parameter URIEncoding and set it to 
    1.11 -UTF-8. For example:
    1.12 + * By default, Tomcat uses ISO-8859-1 character encoding when decoding URLs received 
    1.13 +   from a browser. This can cause problems when encoding is UTF-8, and you are using 
    1.14 +   international characters. In order to fix this, edit conf/server.xml and find the 
    1.15 +   line where the Connector is defined. Add the parameter URIEncoding and set it to 
    1.16 +   UTF-8. For example:
    1.17  
    1.18 -<Connector port="8080" protocol="HTTP/1.1" 
    1.19 -               connectionTimeout="20000" 
    1.20 -               URIEncoding="UTF-8"
    1.21 -               redirectPort="8443" />
    1.22 +   <Connector port="8080" protocol="HTTP/1.1" 
    1.23 +                  connectionTimeout="20000" 
    1.24 +                  URIEncoding="UTF-8"
    1.25 +                  redirectPort="8443" />
    1.26 +
    1.27 + * Building and executing any maven goals fails for maven versions <3.0 due to a
    1.28 +   dependency to the `shade' plugin that is available only for maven version 3.0
    1.29 +   (http://maven.apache.org/plugins/maven-shade-plugin/). In such systems, you may
    1.30 +   disable execution of this plugin by setting the environmental variable
    1.31 +   `shade.skip'. For example, to build Strabon using maven version 2.0 you may
    1.32 +   execute the following command:
    1.33 +
    1.34 +   	$ mvn clean package -Dshade.skip
    1.35  
    1.36  
    1.37  License
     2.1 --- a/endpoint-client/pom.xml	Tue Jan 08 12:30:51 2013 +0200
     2.2 +++ b/endpoint-client/pom.xml	Tue Jan 08 17:41:11 2013 +0200
     2.3 @@ -72,30 +72,6 @@
     2.4  		<plugins>
     2.5  			<plugin>
     2.6  				<groupId>org.apache.maven.plugins</groupId>
     2.7 -				<artifactId>maven-shade-plugin</artifactId>
     2.8 -				<version>2.0</version>
     2.9 -			<!--
    2.10 -				<configuration>
    2.11 -				</configuration>
    2.12 -			-->
    2.13 -				<executions>
    2.14 -					<execution>
    2.15 -						<phase>package</phase>
    2.16 -						<goals>
    2.17 -							<goal>shade</goal>
    2.18 -						</goals>
    2.19 -						<configuration>
    2.20 -							<transformers>
    2.21 -								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
    2.22 -									<mainClass>eu.earthobservatory.org.StrabonEndpoint.client.StrabonEndpoint</mainClass>
    2.23 -								</transformer>
    2.24 -							</transformers>
    2.25 -						</configuration>
    2.26 -					</execution>
    2.27 -				</executions>
    2.28 -			</plugin>
    2.29 -			<plugin>
    2.30 -				<groupId>org.apache.maven.plugins</groupId>
    2.31  				<artifactId>maven-compiler-plugin</artifactId>
    2.32  				<version>2.3.2</version>
    2.33  				<configuration>
    2.34 @@ -142,5 +118,43 @@
    2.35  			</plugin>
    2.36  		</plugins>
    2.37  	</build>
    2.38 +
    2.39 +<profiles>
    2.40 +	<profile>
    2.41 +		<id>conditional-shade-plugin</id>
    2.42 +
    2.43 +		<activation>
    2.44 +			<property><name>!shade.skip</name></property>
    2.45 +		</activation>
    2.46 +		<build>
    2.47 +			<plugins>
    2.48 +			<plugin>
    2.49 +                                <groupId>org.apache.maven.plugins</groupId>
    2.50 +                                <artifactId>maven-shade-plugin</artifactId>
    2.51 +                                <version>2.0</version>
    2.52 +                        <!--
    2.53 +                                <configuration>
    2.54 +                                </configuration>
    2.55 +                        -->
    2.56 +                                <executions>
    2.57 +                                        <execution>
    2.58 +                                                <phase>package</phase>
    2.59 +                                                <goals>
    2.60 +                                                        <goal>shade</goal>
    2.61 +                                                </goals>
    2.62 +                                                <configuration>
    2.63 +                                                        <transformers>
    2.64 +                                                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
    2.65 +                                                                        <mainClass>eu.earthobservatory.org.StrabonEndpoint.client.StrabonEndpoint</mainClass>
    2.66 +                                                                </transformer>
    2.67 +                                                        </transformers>
    2.68 +                                                </configuration>
    2.69 +                                        </execution>
    2.70 +                                </executions>
    2.71 +                        </plugin>
    2.72 +			</plugins>
    2.73 +		</build>
    2.74 +	</profile>
    2.75 +</profiles>
    2.76  </project>
    2.77