2017-01-23 5 views
0

を使用しているときにエラー「ソースの一時ディレクトリの削除に失敗しました」:は、私がポンポンファイルに次のように持っているのmaven

<project> 
<dependencies> 
    <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 
    <build> 
     <plugins> 
    <plugin> 
    <groupId>com.worksap.company</groupId> 
    <artifactId>company-framework-autoindex-maven-plugin</artifactId> 
    <version>${project.version}</version> 
    <configuration> 
     <name>${project.artifactId}-${project.version}</name> 
     <mode>offline</mode> 
    </configuration> 
    <executions> 
    <execution> 
     <id>collect-index-generator-related-classes</id> 
     <goals> 
     <goal>collect</goal> 
     </goals> 
    </execution> 
    <execution> 
     <id>package-online-offline-job</id> 
     <goals> 
     <goal>package</goal> 
     </goals> 
    </execution> 
    </executions> 
    <dependencies> 
    <dependency> 
       <groupId>com.worksap.company</groupId> 
       <artifactId>company-framework-autoindex-normal-batch</artifactId> 
       <version>${project.version}</version> 
       <classifier>all-in-one</classifier> 
       </dependency> 
       <dependency> 
     <groupId>com.worksap.company</groupId> 
     <artifactId>company-framework-autoindex-offline</artifactId> 
     <version>${project.version}</version> 
     <classifier>all-in-one</classifier> 
    </dependency> 
    </dependencies> 
</plugin> 
</plugins> 
</build> 

</project> 

私は、次のコマンドを実行すると:mvn clean installまたはmvn installを、私はこのエラーを取得:

49177 [ERROR] Failed to execute goal framework-autoindex-maven-plugin:17.02-SNAPSHOT:collect (collect-index-generator-related-classes) on project hue-com-ifx-dto: Failed to delete source temp directory: ~\hue-com-ifx-dtos\ifx-dto\target\index-generator-related-temp-classes\: Unable to delete file: ~\ifx-dto\target\index-generator-related-temp-classes\serializer.properties -> [Help 1] 

ifx-dto\target\index-generator-related-temp-classesを削除しようとしました。また、私は他のプロセスがファイル上で動作していないようにマシンを再起動しようとしました。どうすればこの問題を解決できますか?

答えて

0

私はあなたがhereを落ちていると思う:

Some files-generating plugins can generate their files outside of the default directories being deleted by the clean plugin. You should add the location of such files in the clean plugin configuration or change the configuration of those plugins to put their files inside the project.build.directory which is by default, the target directory.

Delete Additional Files Not Exposed to Mavenはあなたを助けるかもしれません。

+0

実際、私は 'mvn install'を使っても同じエラーに直面します。 – user3288346

関連する問題