This commit is contained in:
wangkang
2017-07-29 10:18:34 +08:00
parent 592f4a2b15
commit 90bfea012b
9 changed files with 8 additions and 201 deletions
+8 -47
View File
@@ -22,28 +22,7 @@
<!--子模块 -->
<modules>
<module>udf-starter-core</module>
<module>udf-demo</module>
</modules>
<!-- 环境 -->
<profiles>
<!-- 开发 -->
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profiles.activation>dev</profiles.activation>
</properties>
</profile>
<!-- qa -->
<profile>
<id>qa</id>
<properties>
<profiles.activation>qa</profiles.activation>
</properties>
</profile>
</profiles>
<!-- 依赖管理 -->
<dependencyManagement>
<dependencies>
@@ -102,15 +81,10 @@
<!-- 分发管理 -->
<distributionManagement>
<!-- 公司内网仓库-snapshot -->
<!-- <snapshotRepository>
<id>snapshot</id>
<url>http://192.168.1.11:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository> -->
<!-- <snapshotRepository> <id>snapshot</id> <url>http://192.168.1.11:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository> -->
<!-- 公司内网仓库-release -->
<!-- <repository>
<id>release</id>
<url>http://192.168.1.11:8081/nexus/content/repositories/releases/</url>
</repository> -->
<!-- <repository> <id>release</id> <url>http://192.168.1.11:8081/nexus/content/repositories/releases/</url> </repository> -->
</distributionManagement>
<!-- 依赖仓库 -->
<repositories>
@@ -122,12 +96,8 @@
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</repository>
<!-- 指定公司内网仓库 -->
<!-- <repository>
<id>egridcloud-nexus</id>
<name>Nexus egridcloud</name>
<layout>default</layout>
<url>http://192.168.1.11:8081/nexus/content/groups/public/</url>
</repository> -->
<!-- <repository> <id>egridcloud-nexus</id> <name>Nexus egridcloud</name> <layout>default</layout> <url>http://192.168.1.11:8081/nexus/content/groups/public/</url>
</repository> -->
</repositories>
<!-- 插件仓库 -->
<pluginRepositories>
@@ -145,17 +115,8 @@
</snapshots>
</pluginRepository>
<!-- 指定公司内网仓库 -->
<!-- <pluginRepository>
<id>egridcloud-nexus</id>
<name>Nexus egridcloud</name>
<url>http://192.168.1.11:8081/nexus/content/groups/public/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository> -->
<!-- <pluginRepository> <id>egridcloud-nexus</id> <name>Nexus egridcloud</name> <url>http://192.168.1.11:8081/nexus/content/groups/public/</url>
<layout>default</layout> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots>
</pluginRepository> -->
</pluginRepositories>
</project>
-7
View File
@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.2.0" simple-config="true" sync-formatter="true">
<fileset name="all" enabled="true" check-config-name="checkstyle.egridcloud.com" local="false">
<file-match-pattern match-pattern="." include-pattern="true"/>
</fileset>
</fileset-config>
-4
View File
@@ -1,4 +0,0 @@
/target/
/bin/
/.classpath
/.project
-2
View File
@@ -1,2 +0,0 @@
/org.eclipse.core.resources.prefs
/org.eclipse.jdt.core.prefs
-51
View File
@@ -1,51 +0,0 @@
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<!-- maven坐标 -->
<artifactId>udf-demo</artifactId>
<name>udf-demo</name>
<packaging>jar</packaging>
<url>http://www.egridcloud.com</url>
<!-- 父依赖 -->
<parent>
<groupId>com.egridcloud.udf</groupId>
<artifactId>udf-starter</artifactId>
<version>1.0</version>
</parent>
<!-- 参数 -->
<properties>
<server.port>8080</server.port>
</properties>
<!-- 依赖 -->
<dependencies>
<!-- udf-starter-core udf核心包-->
<dependency>
<groupId>com.egridcloud.udf</groupId>
<artifactId>udf-starter-core</artifactId>
</dependency>
</dependencies>
<!-- 构建 -->
<build>
<resources>
<resource>
<directory>${project.basedir}/src/main/resources/</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -1,32 +0,0 @@
/**
* BaseApplication.java
* Created at 2016-10-02
* Created by wangkang
* Copyright (C) 2016 egridcloud.com, All rights reserved.
*/
package com.egridcloud.udf.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import com.egridcloud.udf.core.BaseApplication;
/**
* 描述 : 系统入口
*
* @author wangkang
*
*/
@SpringCloudApplication
public class UdfDemoApplication extends BaseApplication {
/**
* 描述 : spring boot的入口,在整个项目中,包括其子项目在内, 只能有一个main方法,否则spring boot启动不起来
*
* @param args 参数
*/
public static void main(String[] args) {
SpringApplication.run(UdfDemoApplication.class, args);
}
}
@@ -1,4 +0,0 @@
########################################################
###com.egridcloud.application.config (ApplicationConfig)
########################################################
com.egridcloud.application.config.outputExceptionStackTrace=true
@@ -1,4 +0,0 @@
########################################################
###com.egridcloud.application.config (ApplicationConfig)
########################################################
com.egridcloud.application.config.outputExceptionStackTrace=false
@@ -1,50 +0,0 @@
########################################################
###com.egridcloud.application.config (ApplicationConfig)
########################################################
com.egridcloud.application.config.encoding=UTF-8
com.egridcloud.application.config.timeZone=Asia/Shanghai
com.egridcloud.application.config.dateFormat=yyyy-MM-dd'T'HH:mm:ss:SSSZ
########################################################
###INFO
########################################################
info.build.group=${project.groupId}
info.build.artifact=${project.artifactId}
info.build.version=${project.version}
info.build.name=${project.name}
########################################################
###IDENTITY
########################################################
spring.application.name=${project.name}
spring.application.systemTag=${project.name}
########################################################
###WEB PROPERTIES
########################################################
server.port=${server.port}
########################################################
###PROFILES
########################################################
spring.profiles.active=${profiles.activation}
########################################################
###SPRING MVC (WebMvcProperties)
########################################################
spring.mandatory-file-encoding=${com.egridcloud.application.config.encoding}
spring.mvc.dateFormat=${com.egridcloud.application.config.dateFormat}
spring.mvc.throw-exception-if-no-handler-found=true
spring.resources.add-mappings=false
########################################################
###JACKSON ( JacksonProperties )
########################################################
spring.jackson.dateFormat=${com.egridcloud.application.config.dateFormat}
spring.jackson.jodaDateTimeFormat=${com.egridcloud.application.config.dateFormat}
spring.jackson.timeZone=${com.egridcloud.application.config.timeZone}
spring.jackson.serialization.INDENT_OUTPUT=true
spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=true
spring.jackson.deserialization.FAIL_ON_UNKNOWN_PROPERTIES=true
spring.jackson.parser.ALLOW_SINGLE_QUOTES=true
spring.jackson.parser.ALLOW_UNQUOTED_CONTROL_CHARS=true