Skip to content

Commit 8da6faf

Browse files
committed
Make sure Maven correctly includes the generated-sources in the JAR
- Also fixes IntelliJ IDEA not properly marking the folder as Generated Sources
1 parent e524b5f commit 8da6faf

File tree

1 file changed

+17
-0
lines changed
  • server/api-service/lowcoder-domain

1 file changed

+17
-0
lines changed

server/api-service/lowcoder-domain/pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,23 @@
268268
</execution>
269269
</executions>
270270
</plugin>
271+
<plugin>
272+
<groupId>org.codehaus.mojo</groupId>
273+
<artifactId>build-helper-maven-plugin</artifactId>
274+
<executions>
275+
<execution>
276+
<phase>generate-sources</phase>
277+
<goals>
278+
<goal>add-source</goal>
279+
</goals>
280+
<configuration>
281+
<sources>
282+
<source>target/generated-sources/java</source>
283+
</sources>
284+
</configuration>
285+
</execution>
286+
</executions>
287+
</plugin>
271288
</plugins>
272289
</build>
273290

0 commit comments

Comments
 (0)