2016-07-08 58 views
0

我嘗試使用maven:site插件構建我的java項目。 對於我使用詹金斯服務器和配置MVN目標:全新安裝現場Maven-site-plugin無法加載生成的源代碼(Jaxb)

我POM具有以下插件:

... 
<plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-site-plugin</artifactId> 
       <version>3.5</version> 
       <configuration> 
        <goal>generate-sources</goal> 
        <generateReports>true</generateReports> 
       </configuration> 
      </plugin> 
<plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-javadoc-plugin</artifactId> 
       <version>2.10.3</version> 
       <configuration> 
        <show>private</show> 
       </configuration> 
      </plugin> 
<plugin> 
       <artifactId>maven-checkstyle-plugin</artifactId> 
       <version>2.17</version> 
       <reportSets> 
        <reportSet> 
         <reports> 
          <report>checkstyle</report> 
         </reports> 
        </reportSet> 
       </reportSets> 
       <configuration> 
        <failsOnError>true</failsOnError> 
        <configLocation>checkstyle.xml</configLocation> 
       </configuration> 
      </plugin> 
.. 

的PROGRAMM運行和生成的類是可用的。但是,如果我做了網站建設我得到錯誤,生成的軟件包不存在。

謝謝您的幫助

回答

0

我POM用這其中JAXB是:

  <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>build-helper-maven-plugin</artifactId> 
       <executions> 
        <execution> 
         <phase>generate-sources</phase> 
         <goals><goal>add-source</goal></goals> 
         <configuration> 
          <sources> 
           <source>target/generated-sources/jaxb/</source> 
          </sources> 
         </configuration> 
        </execution> 
       </executions> 
      </plugin> 
相關問題