Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiwepy/maven-invoker-spring-boot-starter
Spring Boot Starter For Maven Invoker
https://github.com/hiwepy/maven-invoker-spring-boot-starter
Last synced: about 1 month ago
JSON representation
Spring Boot Starter For Maven Invoker
- Host: GitHub
- URL: https://github.com/hiwepy/maven-invoker-spring-boot-starter
- Owner: hiwepy
- License: apache-2.0
- Created: 2018-05-05T14:00:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T01:53:13.000Z (4 months ago)
- Last Synced: 2024-09-13T14:44:12.680Z (4 months ago)
- Language: Java
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# maven-invoker-spring-boot-starter
Spring Boot Starter For Maven Invoker### 说明
> 基于 maven-invoker 的 Spring Boot Starter 实现
1. 整合 maven-invoker
### Maven
``` xml
com.github.hiwepy
maven-invoker-spring-boot-starter
${project.version}```
### Sample
```java
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);
}}
```