ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [02/36] incubator-ignite git commit: # ignite-227 Fixed java8 profile in examples.
Date Fri, 13 Feb 2015 16:27:33 GMT
# ignite-227 Fixed java8 profile in examples.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/a9c37ace
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a9c37ace
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a9c37ace

Branch: refs/heads/ignite-hadoop-tests
Commit: a9c37ace42d328ffbc72aa7d5a7f92be78b5f47a
Parents: 8b7a2c1
Author: anovikov <anovikov@gridgain.com>
Authored: Fri Feb 13 16:04:17 2015 +0700
Committer: anovikov <anovikov@gridgain.com>
Committed: Fri Feb 13 16:04:17 2015 +0700

----------------------------------------------------------------------
 examples/pom-standalone.xml | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a9c37ace/examples/pom-standalone.xml
----------------------------------------------------------------------
diff --git a/examples/pom-standalone.xml b/examples/pom-standalone.xml
index 2301f16..717b265 100644
--- a/examples/pom-standalone.xml
+++ b/examples/pom-standalone.xml
@@ -29,7 +29,6 @@
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <ignite.version>1.0.0</ignite.version>
-        <src.dir>src/main/java</src.dir>
     </properties>
 
     <groupId>org.apache.ignite</groupId>
@@ -87,8 +86,6 @@
     </dependencies>
 
     <build>
-        <sourceDirectory>${src.dir}</sourceDirectory>
-
         <resources>
             <resource>
                 <directory>src/main/java</directory>
@@ -117,9 +114,9 @@
         <profile>
             <id>java8</id>
 
-            <properties>
-                <src.dir>src/main/java8</src.dir>
-            </properties>
+            <activation>
+                <jdk>[1.8,)</jdk>
+            </activation>
 
             <build>
                 <plugins>
@@ -131,6 +128,23 @@
                             <target>1.8</target>
                         </configuration>
                     </plugin>
+
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>build-helper-maven-plugin</artifactId>
+                        <version>1.9.1</version>
+                        <executions>
+                            <execution>
+                                <phase>generate-sources</phase>
+                                <goals><goal>add-source</goal></goals>
+                                <configuration>
+                                    <sources>
+                                        <source>src/main/java8</source>
+                                    </sources>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
                 </plugins>
             </build>
         </profile>


Mime
View raw message