Skip to content

easy-4-java/wkhtmltopdf-spring-boot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-starter-maven-invoker

Spring Boot Starter For Maven Invoker

说明

基于 maven-invoker 的 Spring Boot Starter 实现

  1. 整合 maven-invoker

Maven

<dependency>
	<groupId>${project.groupId}</groupId>
	<artifactId>spring-boot-starter-maven-invoker</artifactId>
	<version>${project.version}</version>
</dependency>

Sample

import javax.annotation.PostConstruct;

import org.apache.maven.spring.boot.ext.MavenInvokerTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@EnableMavenInvoker
@SpringBootApplication
public class Application {
	
	@Autowired
	private MavenInvokerTemplate mavenInvokerTemplate;
	
	@PostConstruct
	private void init() {
		
		//mavenInvokerTemplate.deploy(file, groupId, artifactId, version, packaging, url, repositoryId);
		//mavenInvokerTemplate.deploy(basedir, file, groupId, artifactId, version, packaging, url, repositoryId);
		
		//mavenInvokerTemplate.execute(basedir, goals);
		//mavenInvokerTemplate.execute(basedir, goals);
		
	}
	
	public static void main(String[] args) throws Exception {
		SpringApplication.run(Application.class, args);
	}

}

About

spring-boot-starter-wkhtmltopdf

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages