I made the following changes to the POM.xml file to add a manifest file, which I saved in \ resources \ META-INF But I cannot create a jar executable.
<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <configuration> <source>1.5</source> <target>1.5</target> <archive> <manifest> <mainClass>com.mypackage.myMainClass</mainClass> </manifest> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration> </plugin> </plugins> </build>
Any suggestions?
krisp source share