Peter Penzov
Peter Penzov

Reputation: 1588

How to run java without compilation

In order to speed up coding and testing I'm interested is there a way to run Spring Boot application in Wildfly without compilation?

for example can I deploy the application as exploded package?

Upvotes: 0

Views: 322

Answers (2)

BazSTR
BazSTR

Reputation: 137

It is possible but you can run only a single file with java 11+ https://www.baeldung.com/java-single-file-source-code

In order to reduce compilation time for Spring Boot you can use Gradle build server https://medium.com/@cesarmcferreira/using-gradle-build-cache-server-73d7680baf2a

Upvotes: 0

Stephen C
Stephen C

Reputation: 718826

How to run java without compilation

There is no way.

For example can I deploy the application as exploded package?

If you deploy an application as an exploded package of source files (".java"), they won't run. The container won't compile them.

To deploy it an exploded package of ".class" files, you first need to compile the source code.

Basically, you cannot avoid compilation.


One way to reduce build / deploy cycle times is to use hot deployment; see Hot-deploy Java classes and assets in Wildfly 8/9/10

Upvotes: 1

Related Questions