Skip to content

Commit 54528d2

Browse files
committed
JAVA-2283: Mention that generated sources must be marked as source folder in IDE
1 parent da8b4d6 commit 54528d2

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

manual/mapper/config/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,15 @@ builds, but if something looks off you can try a full rebuild with `mvn clean co
4949

5050
One of the advantages of annotation processing is that the generated code is produced as regular
5151
source files, that you can read and debug like the rest of your application. With the above
52-
configuration, these files are in `target/generated-sources/annotations`. They follow the same
53-
package structure as your annotated types. Most end in a special `__MapperGenerated` suffix, in
54-
order to clearly identify them in stack traces (one exception is the mapper builder, because it is
55-
referenced directly from your code).
52+
configuration, these files are in `target/generated-sources/annotations`. Make sure that
53+
directory is marked as a source folder in your IDE (for example, in IntelliJ IDEA, this might
54+
require right-clicking on your `pom.xml` and selecting "Maven > Reimport").
5655

57-
Do not edit the generated files directly: your changes would be overwritten during the next full
56+
Generated sources follow the same package structure as your annotated types. Most end in a special
57+
`__MapperGenerated` suffix, in order to clearly identify them in stack traces (one exception is the
58+
mapper builder, because it is referenced directly from your code).
59+
60+
Do not edit those files files directly: your changes would be overwritten during the next full
5861
rebuild.
5962

6063
### Gradle

0 commit comments

Comments
 (0)