1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ ~ Copyright (c) 2019, Salesforce.com, Inc.
4+ ~ All rights reserved.
5+ ~ Licensed under the BSD 3-Clause license.
6+ ~ For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7+ -->
8+
9+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
10+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
11+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
12+ <parent >
13+ <artifactId >canteen-parent</artifactId >
14+ <groupId >com.salesforce.servicelibs</groupId >
15+ <version >0.1.0-SNAPSHOT</version >
16+ </parent >
17+ <modelVersion >4.0.0</modelVersion >
18+
19+ <artifactId >canteen-bootstrap</artifactId >
20+
21+ <properties >
22+ <binary .name>canteen</binary .name>
23+ </properties >
24+
25+ <build >
26+ <plugins >
27+ <plugin >
28+ <groupId >org.codehaus.mojo</groupId >
29+ <artifactId >exec-maven-plugin</artifactId >
30+ <version >1.6.0</version >
31+ <executions >
32+ <execution >
33+ <id >osx-x86_64</id >
34+ <goals >
35+ <goal >exec</goal >
36+ </goals >
37+ <phase >compile</phase >
38+ <configuration >
39+ <workingDirectory >${project.basedir} /src/main/go</workingDirectory >
40+ <executable >go</executable >
41+ <arguments >
42+ <argument >build</argument >
43+ <argument >-o</argument >
44+ <argument >${project.build.directory} /${binary.name} -${project.version} -osx-x86_64.exe</argument >
45+ <argument >.</argument >
46+ </arguments >
47+ <environmentVariables >
48+ <GOOS >darwin</GOOS >
49+ <GOARCH >amd64</GOARCH >
50+ </environmentVariables >
51+ </configuration >
52+ </execution >
53+ <execution >
54+ <id >linux_x86_64</id >
55+ <goals >
56+ <goal >exec</goal >
57+ </goals >
58+ <phase >compile</phase >
59+ <configuration >
60+ <workingDirectory >${project.basedir} /src/main/go</workingDirectory >
61+ <executable >go</executable >
62+ <arguments >
63+ <argument >build</argument >
64+ <argument >-o</argument >
65+ <argument >${project.build.directory} /${binary.name} -${project.version} -linux-x86_64.exe</argument >
66+ <argument >.</argument >
67+ </arguments >
68+ <environmentVariables >
69+ <GOOS >linux</GOOS >
70+ <GOARCH >amd64</GOARCH >
71+ </environmentVariables >
72+ </configuration >
73+ </execution >
74+ <execution >
75+ <id >windows_x86_64</id >
76+ <goals >
77+ <goal >exec</goal >
78+ </goals >
79+ <phase >compile</phase >
80+ <configuration >
81+ <workingDirectory >${project.basedir} /src/main/go</workingDirectory >
82+ <executable >go</executable >
83+ <arguments >
84+ <argument >build</argument >
85+ <argument >-o</argument >
86+ <argument >${project.build.directory} /${binary.name} -${project.version} -windows-x86_64.exe</argument >
87+ <argument >.</argument >
88+ </arguments >
89+ <environmentVariables >
90+ <GOOS >windows</GOOS >
91+ <GOARCH >amd64</GOARCH >
92+ </environmentVariables >
93+ </configuration >
94+ </execution >
95+ </executions >
96+ </plugin >
97+
98+ <plugin >
99+ <groupId >org.codehaus.mojo</groupId >
100+ <artifactId >build-helper-maven-plugin</artifactId >
101+ <version >3.0.0</version >
102+ <executions >
103+ <execution >
104+ <id >osx-x86_64</id >
105+ <goals >
106+ <goal >attach-artifact</goal >
107+ </goals >
108+ <configuration >
109+ <artifacts >
110+ <artifact >
111+ <file >${project.build.directory} /${binary.name} -${project.version} -osx-x86_64.exe</file >
112+ <type >exe</type >
113+ <classifier >osx-x86_64</classifier >
114+ </artifact >
115+ </artifacts >
116+ </configuration >
117+ </execution >
118+ <execution >
119+ <id >linux_x86_64</id >
120+ <goals >
121+ <goal >attach-artifact</goal >
122+ </goals >
123+ <configuration >
124+ <artifacts >
125+ <artifact >
126+ <file >${project.build.directory} /${binary.name} -${project.version} -linux-x86_64.exe</file >
127+ <type >exe</type >
128+ <classifier >linux-x86_64</classifier >
129+ </artifact >
130+ </artifacts >
131+ </configuration >
132+ </execution >
133+ <execution >
134+ <id >windows-x86_64</id >
135+ <goals >
136+ <goal >attach-artifact</goal >
137+ </goals >
138+ <configuration >
139+ <artifacts >
140+ <artifact >
141+ <file >${project.build.directory} /${binary.name} -${project.version} -windows-x86_64.exe</file >
142+ <type >exe</type >
143+ <classifier >windows-x86_64</classifier >
144+ </artifact >
145+ </artifacts >
146+ </configuration >
147+ </execution >
148+ </executions >
149+ </plugin >
150+ </plugins >
151+ </build >
152+ </project >
0 commit comments