0

When creating a JAR file using Maven, the class files (or rather the package structure) are placed directly in the root of the JAR file. How can I configure Maven (or the maven-jar-plugin) to copy the classes to a "classes" directory instead? For example, the jar file should have the following structure:

- classes
  - com
    - mycompany
      - myapp
        - HelloWorld.class
- META-INF
  - MANIFEST.MF

The structure of the sources should not be changed (it's the Maven default structure).

Many thanks for any help.

jhead
  • 11
  • 2

0 Answers0