This is an automated email from the ASF dual-hosted git repository.

zhouquan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c13436  SUBMARINE-348. submarine cloud module supports mvn command
5c13436 is described below

commit 5c134361f7159e8851ead4bdf6ee2b953a69632d
Author: Xun Liu <[email protected]>
AuthorDate: Sat Jan 18 17:58:18 2020 +0800

    SUBMARINE-348. submarine cloud module supports mvn command
    
    ### What is this PR for?
    Because the submarine cloud module is developed using the goland language,
    Because goland language is generally compiled through make files,
    In order to compile better, we need to make the submarine cloud module 
support mvn compilation.
    
    Support `mvn clean package compile test` command
    
    ### What type of PR is it?
    [Improvement]
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/SUBMARINE-348
    
    ### How should this be tested?
    * https://travis-ci.org/liuxunorg/submarine/builds/638717296
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No
    
    Author: Xun Liu <[email protected]>
    
    Closes #154 from liuxunorg/SUBMARINE-348 and squashes the following commits:
    
    7cf1529 [Xun Liu] Update License head.
    3ca2154 [Xun Liu] SUBMARINE-348. submarine cloud module supports mvn command
---
 submarine-cloud/pom.xml | 106 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)

diff --git a/submarine-cloud/pom.xml b/submarine-cloud/pom.xml
new file mode 100644
index 0000000..9db0fe6
--- /dev/null
+++ b/submarine-cloud/pom.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+  -->
+<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/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.submarine</groupId>
+    <artifactId>submarine</artifactId>
+    <version>0.3.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>submarine-cloud</artifactId>
+  <version>0.3.0-SNAPSHOT</version>
+  <name>Submarine: Cloud</name>
+  <packaging>pom</packaging>
+
+  <build>
+    <sourceDirectory>${basedir}/cmd/operator</sourceDirectory>
+    <directory>${basedir}/target</directory>
+    <plugins>
+      <plugin>
+        <groupId>com.igormaznitsa</groupId>
+        <artifactId>mvn-golang-wrapper</artifactId>
+        <version>2.3.4</version>
+        <extensions>true</extensions>
+        <executions>
+          <execution>
+            <id>execution-fmt</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>fmt</goal>
+            </goals>
+            <configuration>
+              <sources>${basedir}</sources>
+            </configuration>
+          </execution>
+          <execution>
+            <id>execution-build</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>build</goal>
+            </goals>
+            <configuration>
+              <targetOs>${GOOS}</targetOs> <!-- linux|darwin|windows -->
+              <resultName>submarine-operator</resultName>
+              <ldFlags>
+                <flag>-X</flag>
+                
<flag>'github.com/apache/submarine/submarine-cloud/pkg/utils.BUILDTIME=${maven.build.timestamp}'</flag>
+                <flag>-X</flag>
+                
<flag>'github.com/apache/submarine/submarine-cloud/pkg/utils.TAG=$(git tag|tail 
-1)'</flag>
+                <!--flag>-X</flag>
+                
<flag>"github.com/apache/submarine/submarine-cloud/pkg/utils.COMMIT=$(git 
rev-parse HEAD)"</flag>
+                <flag>-X</flag>
+                
<flag>"github.com/apache/submarine/submarine-cloud/pkg/utils.VERSION=$(git 
rev-parse -abbrev-ref HEAD)"</flag-->
+              </ldFlags>
+            </configuration>
+          </execution>
+          <!--execution>
+            <id>get-k8s-api</id>
+            <phase>install</phase>
+            <goals>
+              <goal>get</goal>
+            </goals>
+            <configuration>
+              <packages>
+                <package>k8s.io/api</package>
+              </packages>
+            </configuration>
+          </execution-->
+          <execution>
+            <id>execution-clean</id>
+            <phase>clean</phase>
+            <goals>
+              <goal>clean</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>test</id>
+            <phase>test</phase>
+            <goals>
+              <goal>test</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to