Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 43c84cc

Browse files
authored
Specify required settings for Maven project in Eclipse (#12)
1 parent e8b8788 commit 43c84cc

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

docs/annotation-processing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Use `the compilerArgs parameter
138138
</path>
139139
</annotationProcessorPaths>
140140
<compilerArgs>
141+
<arg>-Adoma.resources.dir=${project.basedir}/src/main/resources</arg>
141142
<arg>-Adoma.dao.subpackage=impl</arg>
142143
<arg>-Adoma.dao.suffix=Impl</arg>
143144
</compilerArgs>

docs/build.rst

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ Write your pom.xml as follows:
9999
<version>${doma.version}</version>
100100
</path>
101101
</annotationProcessorPaths>
102+
<compilerArgs>
103+
<!-- if you are using a Maven project in Eclipse, this argument is required -->
104+
<arg>-Adoma.resources.dir=${project.basedir}/src/main/resources</arg>
105+
</compilerArgs>
102106
</configuration>
103107
</plugin>
104108
</plugins>
@@ -122,10 +126,17 @@ See build.gradle.kts in the `getting-started`_ repository as an example.
122126
Maven
123127
------
124128

129+
Import your project as a Maven project.
130+
125131
.. note::
126132

127-
We've managed to get our Maven project up and running in Eclipse, but we're unsure if we're following the best practices.
128-
If you have any tips or recommended approaches, we'd really appreciate your input.
133+
You need to add the following argument to the Maven compiler plugin configuration in your pom.xml:
134+
135+
.. code-block:: xml
136+
137+
<compilerArgs>
138+
<arg>-Adoma.resources.dir=${project.basedir}/src/main/resources</arg>
139+
</compilerArgs>
129140
130141
.. _build-with-idea:
131142

docs/quarkus-support.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ Maven
7272
<version>${doma.version}</version>
7373
</path>
7474
</annotationProcessorPaths>
75+
<compilerArgs>
76+
<!-- if you are using a Maven project in Eclipse, this argument is required -->
77+
<arg>-Adoma.resources.dir=${project.basedir}/src/main/resources</arg>
78+
</compilerArgs>
7579
</configuration>
7680
</plugin>
7781
</plugins>

0 commit comments

Comments
 (0)