netlify

netlify.com integration: upload static content, free provider supporting HTTPS

Netlify is a company offering great services (IMO) for static-site hosting.

Of particular interest to maven users wanting their open-source projects’ websites:

  • Generous free tier; including HTTPS (easily with letsencrypt) and custom domains
  • Build integration; automation for web-facing SCMs, providing a build farm

The authors of this maven plugin are in no way affiliated with Netlify or any parent/partner organisation, however we have enjoyed, and continue to make use of, the free service. This plugin and related code exists simply to make life easier (selfish til shared).

To use, ensure the maven-site-plugin is configured to skipDeploy and that the serverId configured in the Netlify plugin is an existing server in ~/.m2/settings.xml

pom.xml:

	<plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-site-plugin</artifactId>
		<configuration>
			<skipDeploy>true</skipDeploy>
			<!-- ... -->
		</configuration>
	</plugin>
	<plugin>
		<groupId>io.earcam.maven.plugin</groupId>
		<artifactId>io.earcam.maven.plugin.netlify</artifactId>
		<configuration>
			<serverId>the-id-used-for-netlify</serverId>
			<!-- ... -->
		</configuration>

settings.xml:

	<server>
		<id>the-id-used-for-netlify</id>
		<password>netlify-oath-personal-access-token-goes-here</password>
	</server>

Back to top

Version: 0.0.4. Last Published: 2018-11-25.

Earcam Maven Skin.