2015-05-25 41 views
0

我正在使用android-maven-plugin來構建我的android項目。我在構建android項目時啓用了lint。我得到了以下皮棉錯誤:配置lint忽略錯誤「沒有`.class`文件被發現」

No `.class` files were found in project "main", so none of the classfile based checks could be run. Does the project need to be built first? 

林特消息解釋說,這是運行皮棉本身的錯誤,而不是我的項目代碼中的錯誤。

我的問題是,是否可以將lint配置爲默默忽略此特定錯誤(但會不斷通知其他警告/錯誤)?怎麼做?

這裏是我的pom.xml:

<plugin> 
    <groupId>com.jayway.maven.plugins.android.generation2</groupId> 
    <artifactId>android-maven-plugin</artifactId> 
     <executions> 
      <execution> 
       <id>lint</id> 
       <goals> 
       <goal>lint</goal> 
       </goals> 
       <phase>install</phase> 
      </execution> 
     </executions> 
     <configuration> 
      <sdk> 
      <platform>17</platform> 
      </sdk> 
      <lint> 
      <skip>false</skip> 
      <failOnError>true</failOnError> 
      </lint> 
     </configuration> 
     <extensions>true</extensions> 
</plugin> 

回答

0

如果運行命令

mvn install 
因爲類文件

在早期編譯階段產生這應該工作。