mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Merge 3a7991f2d5
into cdbfafe077
This commit is contained in:
commit
296e2b4a4e
6 changed files with 52 additions and 4 deletions
1
foo.txt
Normal file
1
foo.txt
Normal file
|
@ -0,0 +1 @@
|
|||
asdkfjk
|
15
joespipeline
Normal file
15
joespipeline
Normal file
|
@ -0,0 +1,15 @@
|
|||
echo 'Hello from Pipeline Demo'
|
||||
stage 'Compile'
|
||||
node {
|
||||
git url: 'https://github.com/nachofree/spring-petclinic.git'
|
||||
sh "/usr/bin/mvn -B compile war:war"
|
||||
}
|
||||
stage 'Test'
|
||||
node{
|
||||
git url: 'https://github.com/nachofree/spring-petclinic.git'
|
||||
sh "/usr/bin/mvn -B verify"
|
||||
|
||||
step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true])
|
||||
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
|
||||
}
|
||||
|
27
pom.xml
27
pom.xml
|
@ -6,7 +6,7 @@
|
|||
<groupId>org.springframework.samples</groupId>
|
||||
<artifactId>spring-petclinic</artifactId>
|
||||
<version>1.5.1</version>
|
||||
|
||||
<packaging>war</packaging>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
|
@ -49,6 +49,11 @@
|
|||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
<artifactId>tomcat-embed-el</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
@ -65,6 +70,11 @@
|
|||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Databases - Uses HSQL by default -->
|
||||
<dependency>
|
||||
|
@ -140,6 +150,21 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.tomcat.maven</groupId>
|
||||
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<configuration>
|
||||
<server>tomcat-development-server</server>
|
||||
<url>http://144.38.196.18:8080/manager/text</url>
|
||||
<warFile>target\spring-petclinic-1.5.1.war</warFile>
|
||||
<path>/petclinic</path>
|
||||
<username>joe</username>
|
||||
<password>1francom$</password>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>cobertura-maven-plugin</artifactId>
|
||||
|
|
|
@ -100,6 +100,6 @@ The [issue tracker](https://github.com/spring-projects/spring-petclinic/issues)
|
|||
|
||||
For pull requests, editor preferences are available in the [editor config](.editorconfig) for easy use in common text editors. Read more and download plugins at <http://editorconfig.org>.
|
||||
|
||||
|
||||
# foo
|
||||
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ sonar.projectVersion=1.0
|
|||
|
||||
# Comma-separated paths to directories with sources (required)
|
||||
sonar.sources=src
|
||||
sonar.java.binaries=src
|
||||
|
||||
# Language
|
||||
sonar.language=java
|
||||
|
|
|
@ -18,6 +18,8 @@ package org.springframework.samples.petclinic;
|
|||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
import org.springframework.boot.web.support.SpringBootServletInitializer;
|
||||
|
||||
/**
|
||||
* PetClinic Spring Boot Application.
|
||||
|
@ -26,7 +28,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
*
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class PetClinicApplication {
|
||||
public class PetClinicApplication extends SpringBootServletInitializer {
|
||||
@Override
|
||||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
||||
return application.sources(PetClinicApplication.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(PetClinicApplication.class, args);
|
||||
|
|
Loading…
Reference in a new issue