How can I specify a Class-Path: entry in the manifest of an Application Client jar?

You just have to configure it:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-acr-plugin</artifactId>
        <version>${project.version}</version>
        ...
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
            </manifest>
          </archive>
        </configuration>
        ...
      </plugin>
    </plugins>
  </build>
  ...
</project>
          
Please see the Maven Archiver Reference for more information about controlling the exact format of the generated class path entries.

[top]


Why the app-client packaging type is not recognized?

The app-client packaging type has been added as from Maven 3.0.4. If you are running an older version of Maven, it does not know about that packaging type so you need to configure your project accordingly as follows:

<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-acr-plugin</artifactId>
        <version>${project.version}</version>
        <extensions>true</extensions>
        ...
      </plugin>
    </plugins>
  </build>
  ...
</project>
      

[top]