File tree Expand file tree Collapse file tree
another-src/com/baeldung/maven/plugins
java/com/baeldung/maven/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9494 </filesets >
9595 </configuration >
9696 </plugin >
97+ <plugin >
98+ <groupId >org.codehaus.mojo</groupId >
99+ <artifactId >build-helper-maven-plugin</artifactId >
100+ <version >${maven.build.helper.version} </version >
101+ <executions >
102+ <execution >
103+ <phase >generate-sources</phase >
104+ <goals >
105+ <goal >add-source</goal >
106+ </goals >
107+ <configuration >
108+ <sources >
109+ <source >src/main/another-src</source >
110+ </sources >
111+ </configuration >
112+ </execution >
113+ </executions >
114+ </plugin >
97115 </plugins >
98116 </build >
99117
102120 <maven .failsafe.version>2.21.0</maven .failsafe.version>
103121 <maven .verifier.version>1.1</maven .verifier.version>
104122 <maven .clean.version>3.0.0</maven .clean.version>
123+ <maven .build.helper.version>3.0.0</maven .build.helper.version>
105124 <resources .name>Baeldung</resources .name>
106125 </properties >
107126
Original file line number Diff line number Diff line change 1+ package com .baeldung .maven .plugins ;
2+
3+ public class Foo {
4+
5+ public static String foo () {
6+ return "foo" ;
7+ }
8+
9+ }
10+
Original file line number Diff line number Diff line change 1+ package com .baeldung .maven .plugins ;
2+
3+ public class MultipleSrcFolders {
4+
5+ public static void callFoo () {
6+ Foo .foo ();
7+ }
8+
9+ }
You can’t perform that action at this time.
0 commit comments