This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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.
122126Maven
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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments