Difference between revisions of "Java client example using OAuth2"
From DarkWiki
(Created page with "==Maven== <source lang="xml"> qwefewqf </source>") |
(→Maven) |
||
| Line 2: | Line 2: | ||
<source lang="xml"> | <source lang="xml"> | ||
| − | + | ||
| + | <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"> | ||
| + | <modelVersion>4.0.0</modelVersion> | ||
| + | <groupId>darkmine</groupId> | ||
| + | <artifactId>darkmine-oauth2</artifactId> | ||
| + | <version>0.0.1-SNAPSHOT</version> | ||
| + | |||
| + | <dependencies> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>org.slf4j</groupId> | ||
| + | <artifactId>slf4j-api</artifactId> | ||
| + | <version>1.7.21</version> | ||
| + | </dependency> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>org.springframework.boot</groupId> | ||
| + | <artifactId>spring-boot-starter</artifactId> | ||
| + | <version>1.3.3.RELEASE</version> | ||
| + | </dependency> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>org.springframework</groupId> | ||
| + | <artifactId>spring-web</artifactId> | ||
| + | <version>4.2.5.RELEASE</version> | ||
| + | </dependency> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>com.fasterxml.jackson.core</groupId> | ||
| + | <artifactId>jackson-core</artifactId> | ||
| + | <version>2.7.3</version> | ||
| + | </dependency> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>com.fasterxml.jackson.core</groupId> | ||
| + | <artifactId>jackson-databind</artifactId> | ||
| + | <version>2.7.3</version> | ||
| + | </dependency> | ||
| + | |||
| + | <dependency> | ||
| + | <groupId>org.springframework.security.oauth</groupId> | ||
| + | <artifactId>spring-security-oauth2</artifactId> | ||
| + | <version>2.0.9.RELEASE</version> | ||
| + | </dependency> | ||
| + | |||
| + | |||
| + | </dependencies> | ||
| + | |||
| + | <build> | ||
| + | <plugins> | ||
| + | |||
| + | <plugin> | ||
| + | <groupId>org.apache.maven.plugins</groupId> | ||
| + | <artifactId>maven-compiler-plugin</artifactId> | ||
| + | <version>3.5.1</version> | ||
| + | <configuration> | ||
| + | <source>1.8</source> | ||
| + | <target>1.8</target> | ||
| + | </configuration> | ||
| + | </plugin> | ||
| + | |||
| + | <plugin> | ||
| + | <groupId>org.springframework.boot</groupId> | ||
| + | <artifactId>spring-boot-maven-plugin</artifactId> | ||
| + | </plugin> | ||
| + | |||
| + | </plugins> | ||
| + | </build> | ||
| + | |||
| + | </project> | ||
</source> | </source> | ||
Revision as of 14:08, 8 April 2016
Maven
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>darkmine</groupId>
<artifactId>darkmine-oauth2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>1.3.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.2.5.RELEASE</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.7.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.7.3</version>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.0.9.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8
<target>1.8</target> </configuration> </plugin>
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin>
</plugins> </build>
</project>
</source>