Skip to content

Commit

Permalink
Mvnw optional on java
Browse files Browse the repository at this point in the history
  • Loading branch information
BarDweller committed Sep 11, 2019
1 parent 9dc9c18 commit c29bda5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion incubator/java-microprofile/image/project/.appsody-init.bat
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
mvnw install -Denforcer.skip=true
setlocal
set JAVA_FOUND=0
where java >nul 2>nul
if %ERRORLEVEL% EQU 0 set JAVA_FOUND=1
if defined JAVA_HOME set JAVA_FOUND=1
if "%JAVA_FOUND%"==1 mvnw install -Denforcer.skip=true
5 changes: 4 additions & 1 deletion incubator/java-microprofile/image/project/.appsody-init.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
#!/bin/bash
./mvnw install -Denforcer.skip=true
which java 2>&1 >/dev/null ; JAVA_KNOWN=$?
if [ ! -z "$JAVA_HOME" ] || [ $JAVA_KNOWN = "0" ]; then
./mvnw install -Denforcer.skip=true
fi
2 changes: 1 addition & 1 deletion incubator/java-microprofile/image/project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>dev.appsody</groupId>
<artifactId>java-microprofile</artifactId>
<version>0.2.13</version>
<version>0.2.14</version>
<packaging>pom</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion incubator/java-microprofile/stack.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Eclipse MicroProfile®
version: 0.2.13
version: 0.2.14
description: Eclipse MicroProfile on Open Liberty & OpenJ9 using Maven
license: Apache-2.0
language: java
Expand Down

0 comments on commit c29bda5

Please sign in to comment.