|
122 | 122 | <groupId>org.apache.rat</groupId> |
123 | 123 | <artifactId>apache-rat-plugin</artifactId> |
124 | 124 | </plugin> |
| 125 | +<!-- <plugin>--> |
| 126 | +<!-- <groupId>org.apache.thrift.tools</groupId>--> |
| 127 | +<!-- <artifactId>maven-thrift-plugin</artifactId>--> |
| 128 | +<!-- <version>0.1.11</version>--> |
| 129 | +<!-- <configuration>--> |
| 130 | +<!-- <thriftExecutable>/usr/local/bin/thrift</thriftExecutable>--> |
| 131 | +<!-- <thriftSourceRoot>src/main/thrift</thriftSourceRoot>--> |
| 132 | +<!-- <outputDirectory>src/main/thrift/gen-java</outputDirectory>--> |
| 133 | +<!-- <generator>java</generator>--> |
| 134 | +<!-- </configuration>--> |
| 135 | +<!-- <executions>--> |
| 136 | +<!-- <execution>--> |
| 137 | +<!-- <id>thrift-sources</id>--> |
| 138 | +<!-- <phase>generate-sources</phase>--> |
| 139 | +<!-- <goals>--> |
| 140 | +<!-- <goal>compile</goal>--> |
| 141 | +<!-- </goals>--> |
| 142 | +<!-- </execution>--> |
| 143 | +<!-- </executions>--> |
| 144 | +<!-- </plugin>--> |
125 | 145 | <plugin> |
126 | | - <groupId>org.apache.thrift.tools</groupId> |
127 | | - <artifactId>maven-thrift-plugin</artifactId> |
128 | | - <version>0.1.11</version> |
129 | | - <configuration> |
130 | | - <thriftExecutable>/usr/local/bin/thrift</thriftExecutable> |
131 | | - <thriftSourceRoot>src/main/thrift</thriftSourceRoot> |
132 | | - <outputDirectory>src/main/thrift/gen-java</outputDirectory> |
133 | | - <generator>java</generator> |
134 | | - </configuration> |
| 146 | + <groupId>org.codehaus.mojo</groupId> |
| 147 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 148 | + <version>1.8</version> |
135 | 149 | <executions> |
136 | 150 | <execution> |
137 | | - <id>thrift-sources</id> |
| 151 | + <id>add-source</id> |
138 | 152 | <phase>generate-sources</phase> |
139 | 153 | <goals> |
140 | | - <goal>compile</goal> |
| 154 | + <goal>add-source</goal> |
141 | 155 | </goals> |
| 156 | + <configuration> |
| 157 | + <sources> |
| 158 | + <source>src/main/java</source> |
| 159 | + <source>src/main/thrift/gen-java</source> |
| 160 | + </sources> |
| 161 | + </configuration> |
| 162 | + </execution> |
| 163 | + <execution> |
| 164 | + <id>add-test-source</id> |
| 165 | + <phase>generate-sources</phase> |
| 166 | + <goals> |
| 167 | + <goal>add-test-source</goal> |
| 168 | + </goals> |
| 169 | + <configuration> |
| 170 | + <sources> |
| 171 | + <source>src/test/java</source> |
| 172 | + <source>src/main/java</source> |
| 173 | + <source>src/main/thrift/gen-java</source> |
| 174 | + </sources> |
| 175 | + </configuration> |
142 | 176 | </execution> |
143 | 177 | </executions> |
144 | 178 | </plugin> |
|
0 commit comments