No manifest file from maven assembly

I use Maven to create a war file. I am trying to get him to create a manifest file in war. Now this is not happening. I have included the following in my pom.xml, but I cannot get it to output a manifest file with this information. Anyone have any ideas or pointers? There is no MANIFEST in war.

<project>
   <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.1.1</version>
        ...
        <configuration>
          <archive>
            <manifest>
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
            </manifest>
          </archive>
        </configuration>
        ...
      </plugin>
    </plugins>
  </build>
  ...
</project>
+3
source share
1 answer

You should add this to your plugin configuration:

<executions>
    <execution>
        <phase>package</phase>
        <goals>
            <goal>manifest</goal>
        </goals>
    </execution>
</executions>
+7
source

All Articles