Skip to content

Commit a6b1e46

Browse files
committed
jooby:run document Eclipse setup fix #411
1 parent 8f5e88d commit a6b1e46

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

md/doc/maven-plugin/maven.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ mvn jooby:run
1111
Prints something similar to:
1212

1313
```bash
14-
[HotSwap|main|12:14:46]: Hotswap available on: [/my-app]
15-
[HotSwap|main|12:14:46]: includes: [**/*.class,**/*.conf,**/*.properties,*.js, src/*.js]
16-
[HotSwap|main|12:14:46]: excludes: []
14+
>>> jooby:run[info|main]: Hotswap available on: /my-app
15+
>>> jooby:run[info|main]: includes: [**/*.class,**/*.conf,**/*.properties,*.js, src/*.js]
16+
>>> jooby:run[info|main]: excludes: []
1717
INFO [2015-03-31 17:47:33,000] [dev@netty]: App server started in 401ms
1818

1919
GET /assets/** [*/*] [*/*] (anonymous)
@@ -145,3 +145,35 @@ Make sure to enable the ```fork``` option too, otherwise ```vmArgs``` are ignore
145145
### includes / excludes
146146

147147
List of file patterns to listen for file changes.
148+
149+
## eclipse
150+
151+
In order to run ```jooby:run``` from Eclipse follows these steps (no plugin required):
152+
153+
* Open your pom.xml, go to dependencies section and add:
154+
155+
```xml
156+
<dependency>
157+
<groupId>org.jooby</groupId>
158+
<artifactId>jooby-run</artifactId>
159+
<scope>provided</scope>
160+
</dependency>
161+
```
162+
163+
Make sure to set the ```scope``` to ```provided```, once you add the dependency you need to (re)generate Eclipse metadata with: ```mvn eclipse:clean eclipse:eclipse``` unless you have the ```m2 eclipse plugin``` installed.
164+
165+
* Create a new ```Java Run Configuration```
166+
167+
* Go to **Main** tab and set the *Main class* to: ```org.jooby.run.Main```
168+
169+
<img alt="Eclipse jooby:run" width="75%" src="http://jooby.org/resources/images/eclipse-jooby-run1.png">
170+
171+
* Go to the **Arguments** tab and set the *Program Arguments* to:
172+
173+
```
174+
${project_name} dmox.App deps=${project_classpath}
175+
```
176+
177+
<img alt="Eclipse jooby:run" width="75%" src="http://jooby.org/resources/images/eclipse-jooby-run2.png">
178+
179+
* That's all! now run your application as usual and **hotswap** will be available.

0 commit comments

Comments
 (0)