-
Notifications
You must be signed in to change notification settings - Fork 7
cameroncan/cachemanifest-maven-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Original Author/Details --- name: Cache Manifest Maven Plugin groupId: co.cantina.maven artifactId: cachemanifest-maven-plugin author: Glenn Barnett <[email protected]> Current Info --- name: Cache Manifest Maven Plugin groupId: com.github.cameroncan artifactId: cachemanifest-maven-plugin author: Cam Christiansen <[email protected]> Details --- This Maven plugin generates an HTML5 Cache Manifest as per http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#manifests The artifact can be found on the central repository at: Example usage --- <build> <plugins> <!-- ... --> <plugin> <groupId>com.github.cameroncan</groupId> <artifactId>cachemanifest-maven-plugin</artifactId> <version>1.0</version> <configuration> <manifestVersion>1</manifestVersion> <inputDirectory>${project.build.directory}/${project.build.finalName}</inputDirectory> <outputManifestFile>${project.build.directory}/${project.build.finalName}/cache.manifest</outputManifestFile> <excludes> <exclude>WEB-INF/**</exclude> <exclude>**/*.manifest</exclude> </excludes> <!-- Add additional manual entries --> <additionals> <additional>foo.com?isBar=true</additional> </additionals> <networkResources> <!-- whitelist all non-cached references to allow Web services access --> <networkResource>*</networkResource> </networkResources> <fallback>/index.html /index.html</fallback> </configuration> <executions> <execution> <phase>prepare-package</phase> <goals> <goal>generate-manifest</goal> </goals> </execution> </executions> </plugin> <!-- ... --> </plugins> </build> This is our first plugin release, so feedback is welcome if there are additional conventions we should be following or improvements that we should make.
About
Maven Plugin to generate an HTML5 Cache Manifest
Resources
Stars
Watchers
Forks
Packages 0
No packages published