I am trying to write some extra data to my manifest.mf via the pom.xml but for some reason it is remaining blank.... I am a complete newbie at java so am going to write all my steps down here .. no matter how stupid this makes me look as i have no idea what i am doing so any pointers would be great...
This is the build part of my pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestFile>
${basedir}/src/main/resources/META-INF/MANIFEST.MF
</manifestFile>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<Test>I am a test</Test>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
I have manually created the file MANIFEST.MF inside the src/main/resources/META-INF file and left it blank expecting it to writing during the build.
I run mvn clean package
I go into the target/resources/classes/META-INF dir and open MANIFEST.MF its blank. When i go to the target/ and do
java -jar myTest.jar
the result is
no main manifest attribute, in myTest.jar
Would anyone please be able to tell me (very gently) what i am doing wrong
:D
thanks in advance