Advertisement
Guest User

Untitled

a guest
Nov 9th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.54 KB | None | 0 0
  1.  <build>
  2.         <extensions>
  3.             <extension>
  4.                 <groupId>kr.motd.maven</groupId>
  5.                 <artifactId>os-maven-plugin</artifactId>
  6.                 <version>1.3.0.Final</version>
  7.             </extension>
  8.         </extensions>
  9.         <plugins>
  10.             <plugin>
  11.                 <groupId>org.springframework.boot</groupId>
  12.                 <artifactId>spring-boot-maven-plugin</artifactId>
  13.             </plugin>
  14.             <plugin>
  15.                 <groupId>org.xolstice.maven.plugins</groupId>
  16.                 <artifactId>protobuf-maven-plugin</artifactId>
  17.                 <version>0.5.0</version>
  18.                 <extensions>true</extensions>
  19.                 <executions>
  20.                     <execution>
  21.                         <goals>
  22.                             <goal>compile</goal>
  23.                             <goal>test-compile</goal>
  24.                         </goals>
  25.                     </execution>
  26.                 </executions>
  27.                 <configuration>
  28.                     <protocArtifact>com.google.protobuf:protoc:3.0.0:exe:${os.detected.classifier}</protocArtifact>
  29.                 </configuration>
  30.             </plugin>
  31.  
  32.             <plugin>
  33.                 <groupId>org.codehaus.mojo</groupId>
  34.                 <artifactId>build-helper-maven-plugin</artifactId>
  35.                 <executions>
  36.                     <execution>
  37.                         <id>add-protobuf-generate-sources</id>
  38.                         <phase>generate-sources</phase>
  39.                         <goals>
  40.                             <goal>add-source</goal>
  41.                         </goals>
  42.                         <configuration>
  43.                             <sources>
  44.                                 <source>target/generated-sources/protobuf/java</source>
  45.                             </sources>
  46.                         </configuration>
  47.                     </execution>
  48.  
  49.                     <execution>
  50.                         <id>add-protobuf-generate-test-sources</id>
  51.                         <phase>generate-sources</phase>
  52.                         <goals>
  53.                             <goal>add-test-source</goal>
  54.                         </goals>
  55.                         <configuration>
  56.                             <sources>
  57.                                 <source>target/generated-test-sources/protobuf/java</source>
  58.                             </sources>
  59.                         </configuration>
  60.                     </execution>
  61.                 </executions>
  62.             </plugin>
  63.         </plugins>
  64.     </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement