Skip to content

Commit 04084b5

Browse files
committed
Issue #5 - RestFB 2.0.0 is used now
1 parent c3460a1 commit 04084b5

File tree

6 files changed

+186
-423
lines changed

6 files changed

+186
-423
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ You can run the examples afterwards like this:
1111
```bash
1212
$ mvn exec:java@run-reader-examples -Daccess_token=MY_ACCESS_TOKEN
1313
$ mvn exec:java@run-publisher-examples -Daccess_token=MY_ACCESS_TOKEN
14-
$ mvn exec:java@run-legacy-examples -Daccess_token=MY_ACCESS_TOKEN
1514
$ mvn exec:java@run-login-example -Dapp_id=APP_ID -Dapp_secret=APP_SECRET
1615
```
1716

pom.xml

Lines changed: 164 additions & 174 deletions
Original file line numberDiff line numberDiff line change
@@ -2,187 +2,177 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
5+
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>restfb</groupId>
8-
<artifactId>restfb-example</artifactId>
9-
<version>1.0-SNAPSHOT</version>
10-
<packaging>jar</packaging>
11-
<name>RestFB examples</name>
12-
<description>Source code examples for RestFB usage</description>
13-
<url>https://github.com/restfb/restfb-examples</url>
14-
15-
<issueManagement>
16-
<url>https://github.com/restfb/restfb-examples/issues</url>
17-
<system>GitHub Issues</system>
18-
</issueManagement>
7+
<groupId>restfb</groupId>
8+
<artifactId>restfb-example</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<packaging>jar</packaging>
11+
<name>RestFB examples</name>
12+
<description>Source code examples for RestFB usage</description>
13+
<url>https://github.com/restfb/restfb-examples</url>
1914

20-
<licenses>
21-
<license>
22-
<name>MIT License</name>
23-
<url>http://www.opensource.org/licenses/mit-license.php</url>
24-
<distribution>repo</distribution>
25-
</license>
26-
</licenses>
15+
<issueManagement>
16+
<url>https://github.com/restfb/restfb-examples/issues</url>
17+
<system>GitHub Issues</system>
18+
</issueManagement>
2719

28-
<scm>
29-
<url>https://github.com/restfb/restfb-examples</url>
30-
<connection>scm:git:git://github.com/restfb/restfb-examples.git</connection>
31-
<developerConnection>scm:git:git@github.com:restfb/restfb-examples.git</developerConnection>
32-
</scm>
20+
<licenses>
21+
<license>
22+
<name>MIT License</name>
23+
<url>http://www.opensource.org/licenses/mit-license.php</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
3327

34-
<developers>
35-
<developer>
36-
<id>mark.a.allen</id>
37-
<name>Mark Allen</name>
38-
<email>mark.a.allen@gmail.com</email>
39-
<url>http://restfb.com</url>
40-
<roles>
41-
<role>Project Lead</role>
42-
</roles>
43-
<timezone>-5</timezone>
44-
</developer>
45-
<developer>
46-
<id>nbartels</id>
47-
<name>Norbert Bartels</name>
48-
<url>http://www.phpmonkeys.de</url>
49-
<roles>
50-
<role>Maintainer</role>
51-
<role>Developer</role>
52-
</roles>
53-
<timezone>Europe/Berlin</timezone>
54-
</developer>
55-
</developers>
28+
<scm>
29+
<url>https://github.com/restfb/restfb-examples</url>
30+
<connection>scm:git:git://github.com/restfb/restfb-examples.git</connection>
31+
<developerConnection>scm:git:git@github.com:restfb/restfb-examples.git</developerConnection>
32+
</scm>
5633

57-
<properties>
58-
<access_token/>
59-
<app_id />
60-
<app_secret />
61-
</properties>
34+
<developers>
35+
<developer>
36+
<id>mark.a.allen</id>
37+
<name>Mark Allen</name>
38+
<email>mark.a.allen@gmail.com</email>
39+
<url>http://restfb.com</url>
40+
<roles>
41+
<role>Project Lead</role>
42+
</roles>
43+
<timezone>-5</timezone>
44+
</developer>
45+
<developer>
46+
<id>nbartels</id>
47+
<name>Norbert Bartels</name>
48+
<url>http://www.phpmonkeys.de</url>
49+
<roles>
50+
<role>Maintainer</role>
51+
<role>Developer</role>
52+
</roles>
53+
<timezone>Europe/Berlin</timezone>
54+
</developer>
55+
</developers>
6256

63-
<dependencies>
64-
<dependency>
65-
<groupId>com.restfb</groupId>
66-
<artifactId>restfb</artifactId>
67-
<version>1.44.0</version>
68-
</dependency>
69-
<dependency>
70-
<groupId>org.slf4j</groupId>
71-
<artifactId>slf4j-api</artifactId>
72-
<version>1.7.21</version>
73-
</dependency>
74-
<!-- <dependency>
75-
<groupId>org.slf4j</groupId>
76-
<artifactId>slf4j-simple</artifactId>
77-
<version>1.7.21</version>
78-
</dependency> -->
79-
<dependency>
80-
<groupId>org.slf4j</groupId>
81-
<artifactId>jul-to-slf4j</artifactId>
82-
<version>1.7.21</version>
83-
</dependency>
84-
<dependency>
85-
<groupId>ch.qos.logback</groupId>
86-
<artifactId>logback-classic</artifactId>
87-
<version>1.1.7</version>
88-
</dependency>
57+
<properties>
58+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59+
<access_token/>
60+
<app_id/>
61+
<app_secret/>
62+
</properties>
8963

90-
<dependency>
91-
<groupId>ch.qos.logback</groupId>
92-
<artifactId>logback-core</artifactId>
93-
<version>1.1.7</version>
94-
</dependency>
95-
</dependencies>
64+
<dependencies>
65+
<dependency>
66+
<groupId>com.restfb</groupId>
67+
<artifactId>restfb</artifactId>
68+
<version>2.0.0</version>
69+
</dependency>
70+
<dependency>
71+
<groupId>org.slf4j</groupId>
72+
<artifactId>slf4j-api</artifactId>
73+
<version>1.7.21</version>
74+
</dependency>
75+
<!-- <dependency>
76+
<groupId>org.slf4j</groupId>
77+
<artifactId>slf4j-simple</artifactId>
78+
<version>1.7.21</version>
79+
</dependency> -->
80+
<dependency>
81+
<groupId>org.slf4j</groupId>
82+
<artifactId>jul-to-slf4j</artifactId>
83+
<version>1.7.21</version>
84+
</dependency>
85+
<dependency>
86+
<groupId>ch.qos.logback</groupId>
87+
<artifactId>logback-classic</artifactId>
88+
<version>1.1.7</version>
89+
</dependency>
9690

97-
<build>
98-
<plugins>
99-
<plugin>
100-
<groupId>org.codehaus.mojo</groupId>
101-
<artifactId>exec-maven-plugin</artifactId>
102-
<version>1.2.1</version>
103-
<executions>
104-
<execution>
105-
<id>run-login-example</id>
106-
<goals>
107-
<goal>java</goal>
108-
</goals>
109-
<configuration>
110-
<mainClass>com.restfb.example.LoginJavaFXExample</mainClass>
111-
<arguments>
112-
<argument>${app_id}</argument>
113-
<argument>${app_secret}</argument>
114-
</arguments>
115-
</configuration>
116-
</execution>
117-
<execution>
118-
<id>run-reader-examples</id>
119-
<goals>
120-
<goal>java</goal>
121-
</goals>
122-
<configuration>
123-
<mainClass>com.restfb.example.GraphReaderExample</mainClass>
124-
<arguments>
125-
<argument>${access_token}</argument>
126-
</arguments>
127-
</configuration>
128-
</execution>
129-
<execution>
130-
<id>run-publisher-examples</id>
131-
<goals>
132-
<goal>java</goal>
133-
</goals>
134-
<configuration>
135-
<mainClass>com.restfb.example.GraphPublisherExample</mainClass>
136-
<arguments>
137-
<argument>${access_token}</argument>
138-
</arguments>
139-
</configuration>
140-
</execution>
141-
<execution>
142-
<id>run-legacy-examples</id>
143-
<goals>
144-
<goal>java</goal>
145-
</goals>
146-
<configuration>
147-
<mainClass>com.restfb.example.LegacyExample</mainClass>
148-
<arguments>
149-
<argument>${access_token}</argument>
150-
</arguments>
151-
</configuration>
152-
</execution>
153-
</executions>
154-
</plugin>
155-
<plugin>
156-
<groupId>com.mycila</groupId>
157-
<artifactId>license-maven-plugin</artifactId>
158-
<version>2.11</version>
159-
<configuration>
160-
<header>LICENSE</header>
161-
<excludes>
162-
<exclude>LICENSE</exclude>
163-
<exclude>**/*.xml</exclude>
164-
<exclude>**/README.md</exclude>
165-
<exclude>target/**</exclude>
166-
<exclude>src/main/resources/**</exclude>
167-
</excludes>
168-
</configuration>
169-
<executions>
170-
<execution>
171-
<goals>
172-
<goal>check</goal>
173-
</goals>
174-
</execution>
175-
</executions>
176-
</plugin>
177-
<plugin>
178-
<groupId>org.apache.maven.plugins</groupId>
179-
<artifactId>maven-compiler-plugin</artifactId>
180-
<configuration>
181-
<source>1.8</source>
182-
<target>1.8</target>
183-
</configuration>
184-
</plugin>
185-
</plugins>
186-
</build>
91+
<dependency>
92+
<groupId>ch.qos.logback</groupId>
93+
<artifactId>logback-core</artifactId>
94+
<version>1.1.7</version>
95+
</dependency>
96+
</dependencies>
18797

98+
<build>
99+
<plugins>
100+
<plugin>
101+
<groupId>org.codehaus.mojo</groupId>
102+
<artifactId>exec-maven-plugin</artifactId>
103+
<version>1.2.1</version>
104+
<executions>
105+
<execution>
106+
<id>run-login-example</id>
107+
<goals>
108+
<goal>java</goal>
109+
</goals>
110+
<configuration>
111+
<mainClass>com.restfb.example.LoginJavaFXExample</mainClass>
112+
<arguments>
113+
<argument>${app_id}</argument>
114+
<argument>${app_secret}</argument>
115+
</arguments>
116+
</configuration>
117+
</execution>
118+
<execution>
119+
<id>run-reader-examples</id>
120+
<goals>
121+
<goal>java</goal>
122+
</goals>
123+
<configuration>
124+
<mainClass>com.restfb.example.GraphReaderExample</mainClass>
125+
<arguments>
126+
<argument>${access_token}</argument>
127+
</arguments>
128+
</configuration>
129+
</execution>
130+
<execution>
131+
<id>run-publisher-examples</id>
132+
<goals>
133+
<goal>java</goal>
134+
</goals>
135+
<configuration>
136+
<mainClass>com.restfb.example.GraphPublisherExample</mainClass>
137+
<arguments>
138+
<argument>${access_token}</argument>
139+
</arguments>
140+
</configuration>
141+
</execution>
142+
</executions>
143+
</plugin>
144+
<plugin>
145+
<groupId>com.mycila</groupId>
146+
<artifactId>license-maven-plugin</artifactId>
147+
<version>2.11</version>
148+
<configuration>
149+
<header>LICENSE</header>
150+
<excludes>
151+
<exclude>LICENSE</exclude>
152+
<exclude>**/*.xml</exclude>
153+
<exclude>**/README.md</exclude>
154+
<exclude>target/**</exclude>
155+
<exclude>src/main/resources/**</exclude>
156+
</excludes>
157+
</configuration>
158+
<executions>
159+
<execution>
160+
<goals>
161+
<goal>check</goal>
162+
</goals>
163+
</execution>
164+
</executions>
165+
</plugin>
166+
<plugin>
167+
<groupId>org.apache.maven.plugins</groupId>
168+
<artifactId>maven-compiler-plugin</artifactId>
169+
<version>3.5.1</version>
170+
<configuration>
171+
<source>1.8</source>
172+
<target>1.8</target>
173+
<encoding>${project.build.sourceEncoding}</encoding>
174+
</configuration>
175+
</plugin>
176+
</plugins>
177+
</build>
188178
</project>

0 commit comments

Comments
 (0)