Skip to content

Commit

Permalink
starter封装
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftwareKing committed Jul 8, 2018
1 parent 867046f commit 6c33927
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 0 deletions.
45 changes: 45 additions & 0 deletions halo-starter/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>halo</artifactId>
<groupId>org.xujin.halo</groupId>
<version>1.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>halo-starter</artifactId>
<name>halo-starter</name>
<dependencies>

<dependency>
<groupId>org.xujin.halo</groupId>
<artifactId>halo-utils</artifactId>
</dependency>
<dependency>
<groupId>org.xujin.halo</groupId>
<artifactId>halo-core</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>

</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.xujin.halo.boot;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"org.xujin.halo"})
public class HaloAutoConfiguration {

}
2 changes: 2 additions & 0 deletions halo-starter/src/main/resources/META-INF/spring.factories
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.xujin.halo.boot.HaloAutoConfiguration
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,27 @@
<module>halo-collection</module>
<module>halo-base</module>
<module>halo-utils</module>
<module>halo-starter</module>
</modules>

<dependencyManagement>
<dependencies>
<!--项目依赖 -->

<dependency>
<groupId>org.xujin.halo</groupId>
<artifactId>halo-utils</artifactId>
<version>${halo.framework.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.xujin.halo</groupId>
<artifactId>halo-starter</artifactId>
<version>${halo.framework.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.xujin.halo</groupId>
<artifactId>halo-test</artifactId>
Expand Down

0 comments on commit 6c33927

Please sign in to comment.