Maven: How to mark a jar as sealed?

It sounds so simple, so why am I afraid?

Is there a POM entry that I can use to print all packages?

Or am I providing a manifest with the value "Sealed: true"?

Thanks Jeff Porter

+4
source share
1 answer

> Or am I providing a manifest with the value "Sealed: True"?

As explained in "Configuring the manifest" :

<project> ... <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.6</version> <configuration> <archive> <manifestEntries> <Sealed>true</Sealed> </manifestEntries> </archive> </configuration> ... </plugin> </plugins> </build> ... </project> 
+3
source

Source: https://habr.com/ru/post/1447915/


All Articles