-
Notifications
You must be signed in to change notification settings - Fork 2
/
documentation-maven-dependencies.html
60 lines (51 loc) · 2.03 KB
/
documentation-maven-dependencies.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
layout: documentation
group: documentation
sub-group: maven-dependencies
heading: Maven dependencies
---
<div class="section">
<p>Minimal dependencies are:</p>
<ul>
<li>Ebean ORM</li>
<li>Java persistence annotations for your entities</li>
</ul>
{% highlight xml %}
<dependency> <!-- EBean ORM. Requires enhanced entity classes -->
<groupId>org.avaje.ebeanorm</groupId>
<artifactId>avaje-ebeanorm</artifactId>
<version>3.2.4</version>
</dependency>
<dependency> <!-- JPA annotations needed to create entity classes -->
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>1.0.2</version>
<scope>provided</scope>
</dependency>
{% endhighlight %}
<p>If you wish to dynamically enhance your entity classes at application startup (i.e. you do not want to add
entity class enhancement to the build process using the Ebean Maven plugin) you also need:</p>
<ul>
<li>The Ebean bytecode enhancement agent</li>
<li>The Ebean agent loader</li>
</ul>
<div class="bs-callout bs-callout-info">
<p>If you do not understand enhancement yet, just include the following dependencies anyway, it cannot do any harm</p>
</div>
{% highlight xml %}
<dependency> <!-- Agent that dynamically enhances entity classes byte code -->
<groupId>org.avaje.ebeanorm</groupId>
<artifactId>avaje-ebeanorm-agent</artifactId>
<version>3.2.2</version>
</dependency>
<dependency> <!-- Loader for loading/running byte code agent from classpath -->
<groupId>org.avaje</groupId>
<artifactId>avaje-agentloader</artifactId>
<version>1.1.1</version>
</dependency>
{% endhighlight %}
<p>Remember to check back regularly to make sure you are using the latest Ebean dependencies.</p>
<div class="bs-callout bs-callout-info">
<p>If you are using the Play Framework, see our <a href="documentation-ebean-and-play-framework.html">special notes</a> on how to manage dependencies there.</p>
</div>
</div> <!-- //end section -->