Skip to content

Commit 0863766

Browse files
authored
Merge pull request #1630 from oracle-devrel/native-build-fixes-2
native build modified with OCI DevOps
2 parents fa5b255 + 0e7a6dc commit 0863766

File tree

2 files changed

+26
-23
lines changed
  • app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions

2 files changed

+26
-23
lines changed

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ GraalVM compiles your Java functions ahead of time into standalone binaries that
116116

117117
<p>
118118

119-
To do this a <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm">create OCI DevOps project for a Function CI/CD</a> and then clone the repo and copy the following files with the Function source and commit and push them to the repo:
119+
To do this <a href="https://github.com/oracle-devrel/technology-engineering/tree/main/app-dev/devops-and-containers/devops/oci-devops-terraform-function-java-graalvm">create OCI DevOps project for a Function CI/CD</a> and then clone the repo and copy the following files with the Function <a href="./files/src/">source</a> and commit and push them to the repo:
120120
<p>
121121
<ul>
122-
<li>Dockerfile.native</li>
123-
<li>build_spec_native.yaml</li>
124-
<li>reflection.json</li>
125-
<li>pom.xml</li>
122+
<li><a href="./files/Dockerfile.native">Dockerfile.native</a></li>
123+
<li><a href="./files/build_spec_native.yaml">build_spec_native.yaml</a></li>
124+
<li><a href="./files/reflection.json">reflection.json</a></li>
125+
<li><a href="./files/pom.xml">pom.xml</a></li>
126126
</ul>
127127
<p>
128128
After pushing run the native build pipeline and test the Function in cloud shell.

app-dev/devops-and-containers/functions/java-helloworld-AI-with-local-dev-and-oci-functions/files/pom.xml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,27 @@
88
<artifactId>Hellofunc</artifactId>
99
<version>1.0-SNAPSHOT</version>
1010

11-
<build>
12-
<plugins>
13-
<plugin>
14-
<!-- Copy dependencies -->
15-
<artifactId>maven-dependency-plugin</artifactId>
16-
<executions>
17-
<execution>
18-
<phase>install</phase>
19-
<goals>
20-
<goal>copy-dependencies</goal>
21-
</goals>
22-
<configuration>
23-
<outputDirectory>${project.build.directory}/lib</outputDirectory>
24-
</configuration>
25-
</execution>
26-
</executions>
27-
</plugin>
28-
</plugins>
11+
<build>
12+
<plugins>
13+
<plugin>
14+
<artifactId>maven-assembly-plugin</artifactId>
15+
<version>3.7.1</version>
16+
<configuration>
17+
<descriptorRefs>
18+
<descriptorRef>jar-with-dependencies</descriptorRef>
19+
</descriptorRefs>
20+
</configuration>
21+
<executions>
22+
<execution>
23+
<id>make-assembly</id> <!-- this is used for inheritance merges -->
24+
<phase>package</phase> <!-- bind to the packaging phase -->
25+
<goals>
26+
<goal>single</goal>
27+
</goals>
28+
</execution>
29+
</executions>
30+
</plugin>
31+
</plugins>
2932
</build>
3033

3134
<properties>

0 commit comments

Comments
 (0)