Code Snippet

Just another Code Snippet site

[Maven] Update MANIFEST.MF information

	<!-- Maven Jar Plugin -->
	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-jar-plugin</artifactId>
		<version>2.4</version>
		<configuration>
			<archive>
				<manifestEntries>
					<Extension-Name>${project.name}</Extension-Name>
					<Built-By>${vendor.name}</Built-By>
					<Specification-Vendor>${vendor.name}</Specification-Vendor>
					<Implementation-Vendor>${vendor.name}</Implementation-Vendor>
					<Implementation-Title>${project.name}</Implementation-Title>
					<Implementation-Version>${project.version}</Implementation-Version>
					<Implementation-Version-Build>${project.buildNumber}</Implementation-Version-Build>
					<Implementation-Version-Date>${project.buildDate}</Implementation-Version-Date>
					<Implementation-Version-Revision>${project.revisionNumber}</Implementation-Version-Revision>
				</manifestEntries>
			</archive>
		</configuration>
	</plugin>

,


Leave a Reply

Your email address will not be published. Required fields are marked *