Maven assembly: single assembly with errors: assembly descriptors not found

I am moving my maven version from 2.2-beta5 to 2.2. According to the assembly of the documentation: the assembly is out of date, and I am trying to replace it with the assembly: single. I am trying a different configuration, but it still does not work. I usually get the following error: Error reading assemblies: no assembly descriptors were found.

   <plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2</version>
<executions>
 <execution>
  <id>make-assembly</id>
  <phase>assembly</phase>
  <goals>
   <goal>single</goal>
  </goals>
  <configuration>
   <finalName>${env}.${project.version}</finalName>
   <appendAssemblyId>false</appendAssemblyId>
   <filters>
    <filter>src/main/filters/${env}/${build.env}/filter-common.properties</filter>
    <filter>src/main/filters/${env}/${build.env}/filter-${user.name}.properties</filter>
   </filters>
   <descriptors>
    <descriptor>src/main/assembly/distribution.xml</descriptor>
   </descriptors>
  </configuration>
 </execution>
</executions>

Done with : building a clean mvn package: single install antrun: run

I also tried to move the configuration from the execution tag, but this causes the same problem. When deleting an assembly: one of the command executed plugin I snot. Pleae let me know what is the way to run this plugin?

Many thanks

+3
1

, , :

<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.2</version>
    <executions>
        <execution>
              <id>make-assembly</id>
              <phase>package</phase>
              <goals>
                  <goal>single</goal>
              </goals>
    <configuration>
    <finalName>${env}.${project.version}</finalName>
    <appendAssemblyId>false</appendAssemblyId>
    <filters>
            <filter>src/main/filters/${env}/${build.env}/filter-common.properties</filter>
            <filter>src/main/filters/${env}/${build.env}/filter-${user.name}.properties</filter>
    </filters>
    <descriptors>
            <descriptor>src/main/assembly/distribution.xml</descriptor>
    </descriptors>
                    </configuration>
            </execution>
    </executions>
                    </plugin>
+2

Source: https://habr.com/ru/post/1778942/


All Articles