Skip to content

Commit 5226c5f

Browse files
nguyenminhtuanfitzhendrikse
authored andcommitted
BAEL-406 (eugenp#902)
* Change text/xml to application/xml * Revert "Change text/xml to application/xml" This reverts commit b61b82c. * Apache CXF Aegis data bindings * remove else condition * remove else condition * spring retry introduction * remove else condition * remove spring retry, format code * BAEL-315 Removing the unnecessary version on spring session. Renaming the module from spring-cloud-integration to spring-could-bootstrap * add unit test * BAEL-40: Add NDC and JBoss Logging to the demo application (eugenp#880) * Add NDC and JBoss Logging to the demo application * NDC for Log4j, Log4j2 and JBoss Logging * Simplify NDC example by making it a single operation instead of two * Make NDC example as RestController, Use JBoss Logging only as a logging bridge * Fix merge conflicts in pull request - log-mdc pom.xml updated * Simulated Annealing algorithm (eugenp#900) * @async and Spring Security * @async with SecurityContext propagated * Spring and @async * Simulated Annealing algorithm * Simulated Annealing algorithm * Rebase * Rebase * create intelliJ formatter * fix intelliJ formatter * add unit test * BAEL-36 BAEL-282 Getting file size using Java and apache commons IO api. Also grep in Java (eugenp#890) * BAL-36 File size api in java and apache commons IO * BAEL-36 Getting file size using Java and commons IO api. * BAEL-282 Added support for grep functionality. * BAEL-282 Rename the text file extension. * maven fix and small formatting work * BAEL-35: Added test methods using Apache Commons Collections4 * Created README.md and added relevant articles (eugenp#901) * Added relevant articles * Added relevant articles * Added relevant articles * Created README.md and added relevant articles * Created README.md and added relevant articles * Added relevant articles * Added relevant articles * Created README.md and added relevant articles * Created README.md and added relevant articles * Created README.md and added relevant articles * Added relevant articles * Created README.md and added relevant articles * Added relevant articles * Added relevant articles * Update README.md * Added relevant articles * Added relevant articles * Added relevant articles * Update README.md * Added relevant articles * Update README.md * Created README.md and added relevant articles * Added relevant articles * Added relevant articles * Added relevant articles * Added relevant articles * Created README.md and added relevant articles * Update README.md * Refactor EJBClient.java * BAEL-282 - Grep in Java after code review (eugenp#903) * BAEL-242 Package refactoring after code review for article Grep in Java * BAEL-282 Updated readme file * Update README.md * maven cleanup work * maven cleanup work * Pull Request for "A Guide to Rolling File Appenders" article. (eugenp#876) * First test with log4j rolling appenders * small fix * Log4j rolling appender * First set up with rolling file on log4j 2 * Added logback code. * log4j2 more detailed example * log4j2 more detailed example * Improved names and examples * Fixed configurations * improved configs * formatted * Final fix * fixed formatting * Formatting fix * Fix sample apps to avoid try / catch * Fix request to replace files * Fix end lines * maven work * init * cleanup work * cleanup work * Update README.md * set default timezone * Simulated Annnealing fixes (eugenp#907) * @async and Spring Security * @async with SecurityContext propagated * Spring and @async * Simulated Annealing algorithm * Simulated Annealing algorithm * Rebase * Rebase * Nashorn (eugenp#896) * Simulated Annealing fix (eugenp#910) * @async and Spring Security * @async with SecurityContext propagated * Spring and @async * Simulated Annealing algorithm * Simulated Annealing algorithm * Rebase * Rebase * SA further fixes * change tab to space in xml files and add equal, hashcode, toString using apache commons lang * BAEL-315 Adding test class for demonstrating features of Spring Session and Spring Cloud * add integration profile * add live profile * add integration profile * add integration profile * add integration profile * BAEL-127: Spring Security - @PreFilter and @PostFilter (eugenp#911) * BAEL-127: simple app with filters * removed data rest dependency, final adjustments * added first live test for the rest api * move filters code to new module * moved to root of module, create service layer, standard pom * added spring-security-core module to root pom * Modified code to reflect the code from the article * Merge changes from branch * BAEL-315 - skipping live test * adding missing modules to parent pom * Advanced Camel article (eugenp#905) * - changed test package name from org.baeldung to com.baeldung - streams are added where neccessary - format fixes * Adding Java config for Content Based File Router * Adding Java config for Content Based File Router * Code for Map (eugenp#909) * made changes to java reflection * removed redundant method makeSound in Animal abstract class * added project for play-framework article * added project for regex * changed regex project from own model to core-java * added project for routing in play * made changes to regex project * refactored code for REST API with Play project * refactored student store indexing to zero base * added unit tests, removed bad names * added NIO Selector project under core-java module * requested changes made * added project for nio2 * standardized exception based tests * fixed exception based tests * removed redundant files * added network interface project * used UUID other than timestamps * fixed network interface tests * removed filetest change * made changes to NIO2 FileTest names * added project for asyncronous channel apis * added project for NIO2 advanced filesystems APIS * merge conflicts * merged changes to asyncfiletest with future get API * removed while loops from async client and server * added project for java8 optional * fixed merge conflicts in spring-core * fixed optional * fixed optional * fixed asyncechotest * shifted optional to own package * made additional tests to demo filter API * added code for Map * change unit test package dir * minor maven cleanup * Reformat JaxbTest * Added demonstration of @jsonformat and associated test. (eugenp#906) * remove duplicate test * rename tests * delete bool.xml file * remove jaxb * spring retry introduction * remove else condition * remove spring retry, format code
1 parent d61e7ec commit 5226c5f

5 files changed

Lines changed: 185 additions & 249 deletions

File tree

‎jaxb/book.xml‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎jaxb/pom.xml‎

Lines changed: 166 additions & 187 deletions
Original file line numberDiff line numberDiff line change
@@ -1,188 +1,167 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.baeldung</groupId>
5-
<artifactId>jaxb</artifactId>
6-
<version>0.0.1-SNAPSHOT</version>
7-
<name>jaxb</name>
8-
9-
<dependencies>
10-
<dependency>
11-
<groupId>org.glassfish.jaxb</groupId>
12-
<artifactId>jaxb-runtime</artifactId>
13-
<version>${jaxb.version}</version>
14-
</dependency>
15-
16-
<dependency>
17-
<groupId>org.glassfish.jaxb</groupId>
18-
<artifactId>jaxb-core</artifactId>
19-
<version>${jaxb.version}</version>
20-
</dependency>
21-
22-
<!-- utils -->
23-
<dependency>
24-
<groupId>com.sun.istack</groupId>
25-
<artifactId>istack-commons-runtime</artifactId>
26-
<version>3.0.2</version>
27-
</dependency>
28-
29-
<dependency>
30-
<groupId>commons-io</groupId>
31-
<artifactId>commons-io</artifactId>
32-
<version>2.5</version>
33-
</dependency>
34-
35-
<dependency>
36-
<groupId>org.slf4j</groupId>
37-
<artifactId>slf4j-api</artifactId>
38-
<version>${org.slf4j.version}</version>
39-
</dependency>
40-
41-
<dependency>
42-
<groupId>ch.qos.logback</groupId>
43-
<artifactId>logback-classic</artifactId>
44-
<version>${logback.version}</version>
45-
</dependency>
46-
47-
<dependency>
48-
<groupId>ch.qos.logback</groupId>
49-
<artifactId>logback-core</artifactId>
50-
<version>${logback.version}</version>
51-
</dependency>
52-
53-
<dependency>
54-
<groupId>junit</groupId>
55-
<artifactId>junit</artifactId>
56-
<version>${junit.version}</version>
57-
</dependency>
58-
59-
<dependency>
60-
<groupId>org.apache.commons</groupId>
61-
<artifactId>commons-lang3</artifactId>
62-
<version>3.5</version>
63-
</dependency>
64-
</dependencies>
65-
66-
<build>
67-
<finalName>jaxb</finalName>
68-
<resources>
69-
<resource>
70-
<directory>src/main/resources</directory>
71-
<filtering>true</filtering>
72-
</resource>
73-
</resources>
74-
75-
<pluginManagement>
76-
<plugins>
77-
<plugin>
78-
<groupId>org.eclipse.m2e</groupId>
79-
<artifactId>lifecycle-mapping</artifactId>
80-
<version>1.0.0</version>
81-
<configuration>
82-
<lifecycleMappingMetadata>
83-
<pluginExecutions>
84-
<pluginExecution>
85-
<pluginExecutionFilter>
86-
<groupId>org.codehaus.mojo</groupId>
87-
<artifactId>jaxb2-maven-plugin</artifactId>
88-
<versionRange>[${jaxb2-maven-plugin.version},)</versionRange>
89-
<goals>
90-
<goal>schemagen</goal>
91-
<goal>xjc</goal>
92-
</goals>
93-
</pluginExecutionFilter>
94-
<action>
95-
<execute />
96-
</action>
97-
</pluginExecution>
98-
</pluginExecutions>
99-
</lifecycleMappingMetadata>
100-
</configuration>
101-
</plugin>
102-
</plugins>
103-
</pluginManagement>
104-
105-
<plugins>
106-
<plugin>
107-
<groupId>org.apache.maven.plugins</groupId>
108-
<artifactId>maven-compiler-plugin</artifactId>
109-
<version>${maven-compiler-plugin.version}</version>
110-
<configuration>
111-
<source>1.8</source>
112-
<target>1.8</target>
113-
</configuration>
114-
</plugin>
115-
116-
<!-- xjc -->
117-
<plugin>
118-
<groupId>org.codehaus.mojo</groupId>
119-
<artifactId>jaxb2-maven-plugin</artifactId>
120-
<version>${jaxb2-maven-plugin.version}</version>
121-
<executions>
122-
<execution>
123-
<id>xjc</id>
124-
<goals>
125-
<goal>xjc</goal>
126-
</goals>
127-
</execution>
128-
</executions>
129-
<configuration>
130-
<xjbSources>
131-
<xjbSource>src/main/resources/global.xjb</xjbSource>
132-
</xjbSources>
133-
<sources>
134-
<source>src/main/resources/user.xsd</source>
135-
</sources>
136-
<outputDirectory>${basedir}/src/main/java</outputDirectory>
137-
<clearOutputDir>false</clearOutputDir>
138-
</configuration>
139-
</plugin>
140-
141-
<!-- schemagen -->
142-
<!--
143-
<plugin>
144-
<groupId>org.codehaus.mojo</groupId>
145-
<artifactId>jaxb2-maven-plugin</artifactId>
146-
<version>${jaxb2-maven-plugin.version}</version>
147-
<executions>
148-
<execution>
149-
<id>schemagen</id>
150-
<goals>
151-
<goal>schemagen</goal>
152-
</goals>
153-
</execution>
154-
</executions>
155-
<configuration>
156-
<sources>
157-
<source>src/main/java/com/baeldung/jaxb/gen</source>
158-
</sources>
159-
<outputDirectory>src/main/resources</outputDirectory>
160-
<clearOutputDir>false</clearOutputDir>
161-
<transformSchemas>
162-
<transformSchema>
163-
<uri>http://www.baeldung.com/jaxb/gen</uri>
164-
<toPrefix>user</toPrefix>
165-
<toFile>gen-schema.xsd</toFile>
166-
</transformSchema>
167-
</transformSchemas>
168-
</configuration>
169-
</plugin>
170-
-->
171-
</plugins>
172-
</build>
173-
174-
<properties>
175-
<!-- jaxb -->
176-
<jaxb.version>2.2.11</jaxb.version>
177-
178-
<!-- logging -->
179-
<org.slf4j.version>1.7.21</org.slf4j.version>
180-
<logback.version>1.1.7</logback.version>
181-
182-
<!-- maven plugins -->
183-
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
184-
<jaxb2-maven-plugin.version>2.3</jaxb2-maven-plugin.version>
185-
<junit.version>4.12</junit.version>
186-
</properties>
187-
188-
</project>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>jaxb</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
<name>jaxb</name>
8+
9+
<dependencies>
10+
<dependency>
11+
<groupId>org.glassfish.jaxb</groupId>
12+
<artifactId>jaxb-runtime</artifactId>
13+
<version>${jaxb.version}</version>
14+
</dependency>
15+
16+
<dependency>
17+
<groupId>org.glassfish.jaxb</groupId>
18+
<artifactId>jaxb-core</artifactId>
19+
<version>${jaxb.version}</version>
20+
</dependency>
21+
22+
<!-- utils -->
23+
<dependency>
24+
<groupId>com.sun.istack</groupId>
25+
<artifactId>istack-commons-runtime</artifactId>
26+
<version>3.0.2</version>
27+
</dependency>
28+
29+
<dependency>
30+
<groupId>commons-io</groupId>
31+
<artifactId>commons-io</artifactId>
32+
<version>2.5</version>
33+
</dependency>
34+
35+
<dependency>
36+
<groupId>org.slf4j</groupId>
37+
<artifactId>slf4j-api</artifactId>
38+
<version>${org.slf4j.version}</version>
39+
</dependency>
40+
41+
<dependency>
42+
<groupId>ch.qos.logback</groupId>
43+
<artifactId>logback-classic</artifactId>
44+
<version>${logback.version}</version>
45+
</dependency>
46+
47+
<dependency>
48+
<groupId>ch.qos.logback</groupId>
49+
<artifactId>logback-core</artifactId>
50+
<version>${logback.version}</version>
51+
</dependency>
52+
53+
<dependency>
54+
<groupId>junit</groupId>
55+
<artifactId>junit</artifactId>
56+
<version>${junit.version}</version>
57+
</dependency>
58+
59+
<dependency>
60+
<groupId>org.apache.commons</groupId>
61+
<artifactId>commons-lang3</artifactId>
62+
<version>3.5</version>
63+
</dependency>
64+
</dependencies>
65+
66+
<build>
67+
<finalName>jaxb</finalName>
68+
<resources>
69+
<resource>
70+
<directory>src/main/resources</directory>
71+
<filtering>true</filtering>
72+
</resource>
73+
</resources>
74+
75+
<pluginManagement>
76+
<plugins>
77+
<plugin>
78+
<groupId>org.eclipse.m2e</groupId>
79+
<artifactId>lifecycle-mapping</artifactId>
80+
<version>1.0.0</version>
81+
<configuration>
82+
<lifecycleMappingMetadata>
83+
<pluginExecutions>
84+
<pluginExecution>
85+
<pluginExecutionFilter>
86+
<groupId>org.codehaus.mojo</groupId>
87+
<artifactId>jaxb2-maven-plugin</artifactId>
88+
<versionRange>[${jaxb2-maven-plugin.version},)</versionRange>
89+
<goals>
90+
<goal>schemagen</goal>
91+
<goal>xjc</goal>
92+
</goals>
93+
</pluginExecutionFilter>
94+
<action>
95+
<execute />
96+
</action>
97+
</pluginExecution>
98+
</pluginExecutions>
99+
</lifecycleMappingMetadata>
100+
</configuration>
101+
</plugin>
102+
</plugins>
103+
</pluginManagement>
104+
105+
<plugins>
106+
<plugin>
107+
<groupId>org.apache.maven.plugins</groupId>
108+
<artifactId>maven-compiler-plugin</artifactId>
109+
<version>${maven-compiler-plugin.version}</version>
110+
<configuration>
111+
<source>1.8</source>
112+
<target>1.8</target>
113+
</configuration>
114+
</plugin>
115+
116+
<!-- xjc -->
117+
<plugin>
118+
<groupId>org.codehaus.mojo</groupId>
119+
<artifactId>jaxb2-maven-plugin</artifactId>
120+
<version>${jaxb2-maven-plugin.version}</version>
121+
<executions>
122+
<execution>
123+
<id>xjc</id>
124+
<goals>
125+
<goal>xjc</goal>
126+
</goals>
127+
</execution>
128+
</executions>
129+
<configuration>
130+
<xjbSources>
131+
<xjbSource>src/main/resources/global.xjb</xjbSource>
132+
</xjbSources>
133+
<sources>
134+
<source>src/main/resources/user.xsd</source>
135+
</sources>
136+
<outputDirectory>${basedir}/src/main/java</outputDirectory>
137+
<clearOutputDir>false</clearOutputDir>
138+
</configuration>
139+
</plugin>
140+
141+
<!-- schemagen -->
142+
<!-- <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxb2-maven-plugin</artifactId>
143+
<version>${jaxb2-maven-plugin.version}</version> <executions> <execution>
144+
<id>schemagen</id> <goals> <goal>schemagen</goal> </goals> </execution> </executions>
145+
<configuration> <sources> <source>src/main/java/com/baeldung/jaxb/gen</source>
146+
</sources> <outputDirectory>src/main/resources</outputDirectory> <clearOutputDir>false</clearOutputDir>
147+
<transformSchemas> <transformSchema> <uri>http://www.baeldung.com/jaxb/gen</uri>
148+
<toPrefix>user</toPrefix> <toFile>gen-schema.xsd</toFile> </transformSchema>
149+
</transformSchemas> </configuration> </plugin> -->
150+
</plugins>
151+
</build>
152+
153+
<properties>
154+
<!-- jaxb -->
155+
<jaxb.version>2.2.11</jaxb.version>
156+
157+
<!-- logging -->
158+
<org.slf4j.version>1.7.21</org.slf4j.version>
159+
<logback.version>1.1.7</logback.version>
160+
161+
<!-- maven plugins -->
162+
<maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version>
163+
<jaxb2-maven-plugin.version>2.3</jaxb2-maven-plugin.version>
164+
<junit.version>4.12</junit.version>
165+
</properties>
166+
167+
</project>

0 commit comments

Comments
 (0)