development:optimizing_spring_builds_in_netbeans
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| development:optimizing_spring_builds_in_netbeans [2015/03/05 00:02] – created lee | development:optimizing_spring_builds_in_netbeans [2015/03/05 13:47] (current) – lee | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - | It is much faster to use Spring-boot run build goal to launch the embedded tomcat container in a Spring-boot application than to use the standard NetBeans approach of packaging and (re)-deploying the application in the tomcat server on each build. | + | It is much faster to use a Spring-boot run maven build goal to launch the embedded tomcat container in a Spring-boot application than to use the standard NetBeans approach of packaging and (re)-deploying the application in the tomcat server on each build. |
| Below is an example of creating a custom build goal to launch the Spring-boot run embedded tomcat container for the WebAPI services running on a Postgresql database. | Below is an example of creating a custom build goal to launch the Spring-boot run embedded tomcat container for the WebAPI services running on a Postgresql database. | ||
| Line 14: | Line 14: | ||
| ==== Goals ==== | ==== Goals ==== | ||
| + | < | ||
| org.springframework.boot: | org.springframework.boot: | ||
| + | </ | ||
| ==== Profiles ==== | ==== Profiles ==== | ||
| Line 22: | Line 24: | ||
| ==== Properties ==== | ==== Properties ==== | ||
| + | < | ||
| datasource.username=< | datasource.username=< | ||
| datasource.password=< | datasource.password=< | ||
| Line 35: | Line 38: | ||
| flyway.locations=classpath: | flyway.locations=classpath: | ||
| flyway.schemas=ohdsi | flyway.schemas=ohdsi | ||
| + | </ | ||
| **Important** | **Important** | ||
| - | if you want this custom goal to launch in debug mode then include the following property with the above list of properties | + | if you want this custom goal to launch |
| - | //jpda.listen=maven/ | + | < |
| + | jpda.listen=maven | ||
| + | </code> | ||
| Check the " | Check the " | ||
| Line 49: | Line 55: | ||
| * Right-click on the project (WebAPI) | * Right-click on the project (WebAPI) | ||
| - | * Choose Custom and then choose the custom goal that you saved in the above project configuration step | + | * Choose Custom and then choose the custom |
| - | The application | + | The custom |
| **Important** | **Important** | ||
development/optimizing_spring_builds_in_netbeans.1425513775.txt.gz · Last modified: by lee
