+ add the property automatically to the pom.
This commit is contained in:
Costin Leau
2011-02-11 15:13:12 +02:00
parent bde6cf8ab3
commit c255315749
2 changed files with 42 additions and 30 deletions

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>samples</artifactId>
<groupId>org.springframework.data.gemfire.samples</groupId>
<version>1.0.1.BUILD-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>samples</artifactId>
<groupId>org.springframework.data.gemfire.samples</groupId>
<version>1.0.1.BUILD-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.data.gemfire.samples</groupId>
<artifactId>hello-world</artifactId>
<version>1.0.1.BUILD-SNAPSHOT</version>
@@ -16,28 +16,34 @@
<description>A simple Hello World example illustrating the basic steps in configuring GemFire with Spring</description>
<build>
<plugins>
<plugin>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<configuration>
<archive>
<manifestEntries>
<Main-Class>org.springframework.data.gemfire.samples.helloworld.Main</Main-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<mainClass>org.springframework.data.gemfire.samples.helloworld.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<configuration>
<archive>
<manifestEntries>
<Main-Class>org.springframework.data.gemfire.samples.helloworld.Main</Main-Class>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<mainClass>org.springframework.data.gemfire.samples.helloworld.Main</mainClass>
<systemProperties>
<systemProperty>
<key>java.net.preferIPv4Stack</key>
<value>true</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -23,4 +23,10 @@ All demos require Maven 2.0.7+ and JDK 1.5+.
Each module should be run from its top folder using maven:
# mvn clean install
# mvn clean install
RUNNING UNDER LINUX
-------------------
If you experience network problems under Linux, try passing "-Djava.net.preferIPv4Stack=true" to the command.
See https://jira.springsource.org/browse/SGF-28 for more information.