|
12 | 12 | <artifactId>entities-metamodel</artifactId> |
13 | 13 |
|
14 | 14 | <properties> |
15 | | - <metamodel.sourceDir>${project.basedir}/../entities/src/main/java</metamodel.sourceDir> |
16 | | - <project.generated.sources>${project.basedir}/src/gen/java/</project.generated.sources> |
17 | 15 | <!-- Ignore auto generated code --> |
18 | 16 | <sonar.exclusions> |
19 | 17 | src/gen/java/** |
|
25 | 23 | <groupId>software.xdev.sse.demo</groupId> |
26 | 24 | <artifactId>entities</artifactId> |
27 | 25 | </dependency> |
28 | | - |
29 | | - <dependency> |
30 | | - <groupId>org.hibernate.orm</groupId> |
31 | | - <artifactId>hibernate-processor</artifactId> |
32 | | - <optional>true</optional> |
33 | | - </dependency> |
34 | 26 | </dependencies> |
35 | | - |
36 | | - <build> |
37 | | - <plugins> |
38 | | - <plugin> |
39 | | - <groupId>org.codehaus.mojo</groupId> |
40 | | - <artifactId>build-helper-maven-plugin</artifactId> |
41 | | - <executions> |
42 | | - <execution> |
43 | | - <id>add-source-metamodel</id> |
44 | | - <phase>generate-sources</phase> |
45 | | - <goals> |
46 | | - <goal>add-source</goal> |
47 | | - </goals> |
48 | | - <configuration> |
49 | | - <sources> |
50 | | - <source>${project.generated.sources}</source> |
51 | | - </sources> |
52 | | - </configuration> |
53 | | - </execution> |
54 | | - </executions> |
55 | | - </plugin> |
56 | | - |
57 | | - <plugin> |
58 | | - <groupId>org.bsc.maven</groupId> |
59 | | - <artifactId>maven-processor-plugin</artifactId> |
60 | | - <executions> |
61 | | - <execution> |
62 | | - <id>process</id> |
63 | | - <goals> |
64 | | - <goal>process</goal> |
65 | | - </goals> |
66 | | - <phase>generate-sources</phase> |
67 | | - <configuration> |
68 | | - <sourceDirectory>${metamodel.sourceDir}</sourceDirectory> |
69 | | - <outputDirectory>${project.generated.sources}</outputDirectory> |
70 | | - <!-- Fix javac implicit warning by setting default value --> |
71 | | - <!-- https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html#BHCJJJAJ --> |
72 | | - <!-- Disable @Generated otherwise it tries to use javax because some plugins contain javax.annotation.Generated --> |
73 | | - <!-- https://hibernate.atlassian.net/browse/HHH-15877 --> |
74 | | - <!-- @formatter:off DO NOT INTRODUCE LINE BREAK --> |
75 | | - <compilerArguments> |
76 | | - -implicit:class -AfullyAnnotationConfigured=true -AaddGeneratedAnnotation=false -Aindex=false |
77 | | - </compilerArguments> |
78 | | - <!-- @formatter:on --> |
79 | | - <processors> |
80 | | - <processor>org.hibernate.processor.HibernateProcessor</processor> |
81 | | - </processors> |
82 | | - </configuration> |
83 | | - </execution> |
84 | | - </executions> |
85 | | - </plugin> |
86 | | - </plugins> |
87 | | - </build> |
88 | 27 | </project> |
0 commit comments