Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用maven assembly插件排除某些目标输出子目录?_Maven_Maven 3_Maven Assembly Plugin_Scoverage - Fatal编程技术网

如何使用maven assembly插件排除某些目标输出子目录?

如何使用maven assembly插件排除某些目标输出子目录?,maven,maven-3,maven-assembly-plugin,scoverage,Maven,Maven 3,Maven Assembly Plugin,Scoverage,我将Maven 3.x与Maven汇编插件一起使用。当我构建我的项目时,我得到了下面的信息 Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:single (tarball) on project [ProjectName]: Failed to create

我将Maven 3.x与
Maven汇编插件一起使用。当我构建我的项目时,我得到了下面的信息

Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:single (tarball) on project [ProjectName]: Failed to create assembly: Error adding file 'io.something:artifactid:jar:1.5.0' to archive: /path/to/project/target/scoverage-classes isn't a file. 在报告插件部分

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.2.1</version>
    <configuration>
        <tarLongFileMode>gnu</tarLongFileMode>
        <descriptors>
            <descriptor>src/main/assembly/job.xml</descriptor>
            <descriptor>src/main/assembly/src.xml</descriptor>
        </descriptors>
        <archive>
            <index>true</index>
        </archive>
    </configuration>
    <executions>
        <execution>
            <id>tarball</id>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
</plugin>
<plugin>
  <groupId>org.scoverage</groupId>
  <artifactId>scoverage-maven-plugin</artifactId>
  <version>1.3.0</version>
</plugin>
<plugin>
  <groupId>org.scoverage</groupId>
  <artifactId>scoverage-maven-plugin</artifactId>
  <version>1.3.0</version>
  <configuration>
    <scalaVersion>2.10.4</scalaVersion>
    <highlighting>true</highlighting>
    <aggregate>true</aggregate>
  </configuration>
  <reportSets>
    <reportSet>
      <reports>
        <report>report</report>
      </reports>
    </reportSet>
  </reportSets>
</plugin>
src.xml
程序集描述符如下所示

<assembly
    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    xmlns = "http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
    xsi:schemaLocation = "http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
    <id>dependencies</id>
    <formats>
        <format>dir</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
</assembly>

依赖关系
迪尔
假的

请发布您的程序集描述符和相关POM配置。您确切的Maven调用是什么?“io.something:artifactid:jar:1.5.0”是您正在构建的项目吗?
<assembly
    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
    xmlns = "http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
    xsi:schemaLocation = "http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
    <id>dependencies</id>
    <formats>
        <format>dir</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
</assembly>