This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i would like to add a line to my .jar that gets created:
but i get:
Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2:single (create-executable-jar) on project SoundBox-PlayerEngine: Unable to parse configuration of mojo org.apache.maven.plugins:maven-assembly-plugin:2.2:single for parameter manifest: Cannot find setter, adder nor field in org.apache.maven.archiver.ManifestConfiguration for 'manifestEntries' -> [Help 1]
i googled for the api and found that the class ManifestConfiguration does have the set/get-ManifestEntry method - but the javadoc was for maven 2. Is this method no longer supported? How can i do this?
Try running mvn with the -X option (redirect the output to s file - there is a lot of it) and verify that the SPI-Consumer value is getting passed to the Assembly plugin. Also, post the contents of the resulting MANIFEST.MF file.
Another thought - try adding in at least one of the <manifest> entries, such as addDefaultImplementationEntries. Perhaps the manifest is not created unless you have at least one of those entries.
Joined: Jun 20, 2009
its pretty easy to do this... i got this solved now:
simply put any key/value pairs in <instructions>, thats it (like: <hello>world</hello> which leads to: "hello: world" in the manifest.mf)