Skip to content

Commit 77a3f65

Browse files
committed
pom update
1 parent f77c8b0 commit 77a3f65

File tree

3 files changed

+119
-38
lines changed

3 files changed

+119
-38
lines changed

pom.xml

Lines changed: 107 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,119 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4+
<description>A facility to parse Xml efficiently using a stack.</description>
5+
<url>https://globsframework.org</url>
46
<groupId>org.globsframework</groupId>
5-
<artifactId>saxstack</artifactId>
67
<packaging>jar</packaging>
7-
<version>4.1.0</version>
8+
<artifactId>saxstack</artifactId>
89
<name>SAXStack</name>
10+
<version>4.1.1</version>
911

10-
<dependencies>
11-
<dependency>
12-
<groupId>junit</groupId>
13-
<artifactId>junit</artifactId>
14-
<version>4.13.2</version>
15-
<scope>test</scope>
16-
</dependency>
17-
</dependencies>
12+
<developers>
13+
<developer>
14+
<name>Regis Medina</name>
15+
</developer>
16+
<developer>
17+
<name>Marc Guiot</name>
18+
<email>marc.guiot@free.fr</email>
19+
</developer>
20+
</developers>
1821

1922
<distributionManagement>
20-
<repository>
23+
<snapshotRepository>
2124
<id>github-globsframework</id>
2225
<name>GitHub Globsframework Packages</name>
2326
<url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url>
24-
</repository>
27+
</snapshotRepository>
2528
</distributionManagement>
2629

2730
<licenses>
2831
<license>
29-
<name>The Apache License, Version 2.0</name>
30-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
32+
<name>Apache License</name>
33+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
3134
</license>
3235
</licenses>
3336

37+
<properties>
38+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39+
</properties>
40+
41+
<repositories>
42+
<repository>
43+
<id>github-globsframework</id>
44+
<url>https://maven.pkg.github.com/globsframework/*</url>
45+
</repository>
46+
</repositories>
47+
48+
<scm>
49+
<url>https://github.com/globsframework/saxstack</url>
50+
</scm>
51+
52+
<profiles>
53+
<profile>
54+
<id>release</id>
55+
<build>
56+
<plugins>
57+
<plugin>
58+
<groupId>org.sonatype.central</groupId>
59+
<artifactId>central-publishing-maven-plugin</artifactId>
60+
<version>0.7.0</version>
61+
<extensions>true</extensions>
62+
<configuration>
63+
<publishingServerId>central</publishingServerId>
64+
</configuration>
65+
</plugin>
66+
<plugin>
67+
<groupId>org.apache.maven.plugins</groupId>
68+
<artifactId>maven-source-plugin</artifactId>
69+
<version>2.2.1</version>
70+
<executions>
71+
<execution>
72+
<id>attach-sources</id>
73+
<goals>
74+
<goal>jar-no-fork</goal>
75+
</goals>
76+
</execution>
77+
</executions>
78+
</plugin>
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-javadoc-plugin</artifactId>
82+
<version>2.9.1</version>
83+
<executions>
84+
<execution>
85+
<id>attach-javadocs</id>
86+
<goals>
87+
<goal>jar</goal>
88+
</goals>
89+
</execution>
90+
</executions>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.apache.maven.plugins</groupId>
94+
<artifactId>maven-gpg-plugin</artifactId>
95+
<version>1.5</version>
96+
<executions>
97+
<execution>
98+
<id>sign-artifacts</id>
99+
<phase>verify</phase>
100+
<goals>
101+
<goal>sign</goal>
102+
</goals>
103+
<configuration>
104+
<gpgArguments>
105+
<arg>--pinentry-mode</arg>
106+
<arg>loopback</arg>
107+
</gpgArguments>
108+
</configuration>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
</plugins>
113+
</build>
114+
</profile>
115+
</profiles>
116+
34117
<build>
35118
<plugins>
36119
<plugin>
@@ -42,19 +125,6 @@
42125
<target>17</target>
43126
</configuration>
44127
</plugin>
45-
<plugin>
46-
<groupId>org.apache.maven.plugins</groupId>
47-
<artifactId>maven-source-plugin</artifactId>
48-
<version>2.2.1</version>
49-
<executions>
50-
<execution>
51-
<id>attach-sources</id>
52-
<goals>
53-
<goal>jar-no-fork</goal>
54-
</goals>
55-
</execution>
56-
</executions>
57-
</plugin>
58128
<plugin>
59129
<groupId>org.apache.maven.plugins</groupId>
60130
<artifactId>maven-surefire-plugin</artifactId>
@@ -70,4 +140,14 @@
70140
</plugin>
71141
</plugins>
72142
</build>
143+
144+
<dependencies>
145+
<dependency>
146+
<groupId>junit</groupId>
147+
<artifactId>junit</artifactId>
148+
<version>4.13.2</version>
149+
<scope>test</scope>
150+
</dependency>
151+
</dependencies>
152+
73153
</project>

src/main/java/org/globsframework/saxstack/utils/XmlUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
/**
2020
* Built-in entity reference Replaces character
21-
* &amp; &
22-
* &lt; <
23-
* &gt; >
24-
* &quot; "
25-
* &apos; '
21+
* {@literal &amp; & }
22+
* {@literal &lt; < }
23+
* {@literal &gt; > }
24+
* {@literal &quot; " }
25+
* {@literal &apos; ' }
2626
*/
2727
public class XmlUtils {
2828
public static final int AMP_CHARACTER = '&';

src/main/java/org/globsframework/saxstack/writer/XmlNodeBuilder.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
* It work like an iterator : hasNext is called, then if true, getNextTagName and process are called for the given
88
* tag.
99
* getNextTagName is call to allow this kind of Xml :
10-
* <root>
11-
* <A/>
12-
* <B/>
13-
* </root>
14-
* <p/>
10+
* <code>
11+
* &lt;root&gt;
12+
* &lt;A/&gt;
13+
* &lt;B/&gt;
14+
* &lt;/root&gt;
15+
* </code>;
1516
* Where A and B are represented by the same XmlNodeBuilder.
1617
*/
1718

@@ -22,7 +23,7 @@ public interface XmlNodeBuilder {
2223
String getNextTagName();
2324

2425
/**
25-
* @param tag is the current tag. it is possible to add attribute on the xml tag : <A attr='value'/>
26+
* @param tag is the current tag. it is possible to add attribute on the xml tag : &lt;A attr='value'/&gt;
2627
* if startChild is called the child tag must be closed before the
2728
* @return
2829
* @throws IOException

0 commit comments

Comments
 (0)