Question: I have a very simple question, I've been looking around but I can't find the solution.

Take that code :

```js
class Foo {
  bar = () => {
      return 'string'
  }

  baz = async() => {
      return 'promise'
  }
}

```

I want to know if a specific method of a class is async or not.

```js
isAsync(Foo, 'bar') // false
isAsync(Foo, 'baz') // true

```

the thing is ... I DO NOT want to instantiate it.
All the solutions I found uses "getOwnPropertyNames" on a class instance to get the functions.

Is it possible ?

Thanks !

Answer: 
Instead of all the headaches, I added the same install command in `docker` file also. It now works fine. 

```
from alpine/git as clone
workdir /app
run git clone --single-branch -b master https://@github.com/xxxx

from maven:3.5-jdk-8-alpine
workdir /app
copy --from=0 /app/idot/idot-backend /app
run mvn install:install-file -Dfile=/app/ojdbc8.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar
run mvn clean install -T 1C -DskipTests

from openjdk:8-jre-alpine
workdir /app
copy --from=build /app/target/idot-0.0.1-SNAPSHOT.jar /app
cmd ["java -jar idot-0.0.1-SNAPSHOT.jar"]

```
I used same approach, Its works for me. You can see here..

```
<dependencies>
    <dependency>
        <groupId>org.java-websocket</groupId>
        <artifactId>Java-WebSocket</artifactId>
        <version>1.4.2-SNAPSHOT</version>
    </dependency>
</dependencies>

<repositories>
    <repository>
        <id>maven-repository</id>
        <url>file:///${project.basedir}/repo</url>
    </repository>
</repositories>

mvn deploy:deploy-file -Durl="file:\\\<project-path>\repo" -Dfile=Java-WebSocket-1.4.2-SNAPSHOT.jar -DgroupId=org.java-websocket -DartifactId=Java-WebSocket -Dpackaging=jar -Dversion=1.4.2-SNAPSHOT

```