This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Adding droitatedDB to your Maven project
Alex edited this page Dec 18, 2015
·
3 revisions
To use the droitatedDB for Android with Maven you need the following modification in your pom.xml
- Specify the dependencies to droitatedDB
<dependencies>
<dependency>
<groupId>org.droitateddb</groupId>
<artifactId>api</artifactId>
<version>0.1.6</version>
</dependency>
<dependency>
<groupId>org.droitateddb</groupId>
<artifactId>processor</artifactId>
<version>0.1.6</version>
</dependency>
... more dependencies ...
<dependencies>
- Configure the annotation processing in the
<builds>
section:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<!-- configuration for the annotation processor -->
<annotationProcessors>
<annotationProcessor>org.droitateddb.processor.EntityAnnotationProcessor</annotationProcessor>
</annotationProcessors>
<!-- target directory for the generated sources -->
<generatedSourcesDirectory>src/generated/java</generatedSourcesDirectory>
<!-- define the manifest option for the annotation processor with the
relative path to the AndroidManifest.xml -->
<compilerArgs>
<arg>-Amanifest=your/path/to/AndroidManifest.xml</arg>
</compilerArgs>
</configuration>
</plugin>
... more plugins ...
</plugins>
</build>