Search code examples
mavenmaven-2

Maven2 add appassembler:assemble to package goal


Is it possible to add the appassembler: assemble goal to the "package" goal?

I really just want assemble to run when I do a "mvn package"


Solution

  • cant you just add a execution tag to the appassembler plugin definition?

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