Maven2 add appassembler: compile package target

Is it possible to add the collector: assemble target to the package target? I just want the build to start when I do the "mvn package". Thank.

+3
source share
1 answer

Can you add an execution tag to the appassembler plugin definition?

  <plugin>
      ....
   <executions>
      <execution>
        <id>package</id>
        <goals>
          <goal>assemble</goal>
        </goals>
      </execution>
    </executions>
  </plugin>
+5
source

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


All Articles