spring boot build

If you want to run the jar package, you need to add the following build plugins under the pom. The plugin will generate a run description file in the meta-info directory:

<build>
		<finalName>trip-web</finalName>
		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<version>1.4.2.RELEASE</version>
				<configuration>
					<executable>true</executable>
					<mainClass>com.zebra.carcloud.trip.WebBootstrap</mainClass>
					<finalName>${project.name}</finalName>
					<arguments>
						<argument>--spring.profiles.active=prd</argument>
					</arguments>
					<embeddedLaunchScriptProperties>
						<logFolder>/alidata1/${project.name}</logFolder>
						<logFilename>${project.name}.log</logFilename>
						<pidFolder>/alidata1</pidFolder>
					</embeddedLaunchScriptProperties>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>repackage</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.zebra.carcloud</groupId>
				<artifactId>zebra-config-maven-plugin</artifactId>
				<version>1.0.1</version>
				<executions>
					<execution>
						<goals>
							<goal>zebra-repackage</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326419540&siteId=291194637