Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

jobs:
build-and-test:
docker:
- image: cimg/openjdk:8.0
steps:
- checkout
- restore_cache:
keys:
# when lock file changes, use increasingly general patterns to restore cache
- maven-repo-v1-{{ .Branch }}-{{ checksum "pom.xml" }}
- maven-repo-v1-{{ .Branch }}-
- maven-repo-v1-
- run:
name: Build
command: mvn -B -DskipTests clean site package
- run:
name: Test
command: mvn verify
- save_cache:
paths:
- ~/.m2
key: maven-repo-v1-{{ .Branch }}-{{ checksum "pom.xml" }}

workflows:
ci:
jobs:
- build-and-test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.idea/
File renamed without changes.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Fork of Apache Web Services Commons
[![CircleCI](https://circleci.com/gh/evolvedbinary/apache-ws-commons/tree/main.svg?style=svg)](https://circleci.com/gh/evolvedbinary/apache-ws-commons/tree/main)
[![Java 8](https://img.shields.io/badge/java-8+-blue.svg)](https://adoptopenjdk.net/)
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://opensource.org/licenses/Apache2.0)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.evolvedbinary.thirdparty.org.apache.ws.commons.util/ws-commons-util/badge.svg)](https://search.maven.org/search?q=g:com.evolvedbinary.thirdparty.org.apache.ws.commons.util)


[Apache WS-Commons](https://ws.apache.org/commons/) is no longer officially maintained by Apache.
This is a simple fork for the purposes of:
1. Providing a new bug free implementation of `org.apache.ws.commons.util.NamespaceContextImpl`

* The Apache WS-Commons source code was imported to Git from the archived SVN Apache WS-Common repository at: https://svn.apache.org/repos/asf/webservices/commons/

*NOTE*: This fork was created for our own purposes, and we offer no guarantee that we will maintain it beyond our own requirements.

*NOTE*: As the SVN release tags appear to have been deleted, we have tried to reconstruct the following git tags:
* `ws-commons-util-1.0.2` contains only the original source code that we have inferred made up the last Apache release of WS-Commons Util.
* `ws-commons-1.0.1` contains only the original source code that we have inferred made up the last Apache release of WS-Commons Util and Java 5.

However, if you want an Apache WS-Commons that has been improved over the last Apache version, then this fork's artifacts are available from Maven Central as:

## WS-Commons Util
```xml
<dependency>
<groupId>com.evolvedbinary.thirdparty.org.apache.ws.commons.util</groupId>
<artifactId>ws-commons-util</artifactId>
<version>1.1.0</version>
</dependency>
```

## WS-Commons Java 5
```xml
<dependency>
<groupId>com.evolvedbinary.thirdparty.org.apache.ws.commons.java5</groupId>
<artifactId>ws-commons-java5</artifactId>
<version>1.1.0</version>
</dependency>
```

## Perfoming a Release
To release a new version for Evolved Binary to Maven Central, simply run:
``` bash
mvn -Dmaven.site.skip=true -Dmaven.site.deploy.skip=true -Dgpg.keyname=D4A08A8AB731BF576354A8183EF2B4866A540119 -Darguments="-Dmaven.site.skip=true -Dmaven.site.deploy.skip=true -Dgpg.keyname=D4A08A8AB731BF576354A8183EF2B4866A540119" release:prepare

...

mvn -Dmaven.site.skip=true -Dmaven.site.deploy.skip=true -Dgpg.keyname=D4A08A8AB731BF576354A8183EF2B4866A540119 -Darguments="-Dmaven.site.skip=true -Dmaven.site.deploy.skip=true -Dgpg.keyname=D4A08A8AB731BF576354A8183EF2B4866A540119" release:perform
```

Then visit https://central.sonatype.com/ and login, and release the staged artifacts to Maven Central

89 changes: 89 additions & 0 deletions java5/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.evolvedbinary.thirdparty.org.apache.ws.commons</groupId>
<artifactId>ws-commons</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>

<groupId>com.evolvedbinary.thirdparty.org.apache.ws.commons.java5</groupId>
<artifactId>ws-commons-java5</artifactId>
<packaging>jar</packaging>

<name>Apache WebServices Java 5 Classes</name>
<!-- Be sure, that the following is a single line. See
http://jira.codehaus.org/browse/MJAR-39
for the reason. -->
<description>This is a small collection of classes, which are part of the Java 5 Core. In other words, you do not need this library, if you are running Java 5, or later. The Java 5 classes are used by projects like Apache JaxMe, Apache XML-RPC, or the the ws-common-utils.</description>
<url>https://ws.apache.org/commons/ws-commons-java5/</url>

<scm>
<connection>scm:git:https://github.com/evolvedbinary/apache-ws-commons.git</connection>
<developerConnection>scm:git:https://github.com/evolvedbinary/apache-ws-commons.git</developerConnection>
<url>scm:git:https://github.com/evolvedbinary/apache-ws-commons.git</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>com.github.monkeywie</groupId>
<artifactId>copy-rename-maven-plugin</artifactId>
<executions>
<execution>
<id>copy-supporting-files-for-assembly</id>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<fileSets>
<fileSet>
<sourceFile>${project.basedir}/../LICENSE</sourceFile>
<destinationFile>${project.build.directory}/LICENSE</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${project.basedir}/../README.md</sourceFile>
<destinationFile>${project.build.directory}/README.md</destinationFile>
</fileSet>
<fileSet>
<sourceFile>${project.basedir}/../.gitignore</sourceFile>
<destinationFile>${project.build.directory}/.gitignore</destinationFile>
</fileSet>
</fileSets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-java5-assemblies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>src/main/assembly/bin.xml</descriptor>
<descriptor>src/main/assembly/src.xml</descriptor>
</descriptors>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
</dependencies>

</project>
24 changes: 24 additions & 0 deletions java5/src/main/assembly/bin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<assembly>
<id>bin</id>
<formats>
<format>tar.gz</format>
</formats>
<includeSiteDirectory>true</includeSiteDirectory>
<fileSets>
<fileSet>
<outputDirectory></outputDirectory>
<includes>
<include>LICENSE</include>
<include>README.md</include>
</includes>
<directory>${project.build.directory}</directory>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory>/lib</outputDirectory>
<includes>
<include>*.jar</include>
</includes>
</fileSet>
</fileSets>
</assembly>
25 changes: 25 additions & 0 deletions java5/src/main/assembly/src.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<assembly>
<id>src</id>
<formats>
<format>tar.gz</format>
</formats>
<fileSets>
<fileSet>
<includes>
<include>pom.xml</include>
</includes>
</fileSet>
<fileSet>
<outputDirectory></outputDirectory>
<includes>
<include>LICENSE</include>
<include>README.md</include>
<include>.gitignore</include>
</includes>
<directory>${project.build.directory}</directory>
</fileSet>
<fileSet>
<directory>src</directory>
</fileSet>
</fileSets>
</assembly>
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public class XMLConstants {
public static final java.lang.String XML_NS_URI =
"http://www.w3.org/XML/1998/namespace";

/** <p>Constant holding the attribute name for declaration
* of new prefixes. The constant value is "xmlns".</p>
* <p><em>Note</em>: This is both an attribute name
/** Constant holding the attribute name for declaration
* of new prefixes. The constant value is "xmlns".
* <em>Note</em>: This is both an attribute name
* and a namespace prefix: For example, to assign the empty
* prefix to a namespace, one would use
* <pre>
Expand All @@ -66,7 +66,7 @@ public class XMLConstants {
* one would use
* <pre>
* xmlns:pre="http://my.namespace/..."
* </pre></p>
* </pre>
*/
public static final java.lang.String XMLNS_ATTRIBUTE = "xmlns";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
* @since JAXB 1.0
*/
public interface NamespaceContext {
/** <p>Given a prefix, returns the namespace URI associated with the prefix.
/** Given a prefix, returns the namespace URI associated with the prefix.
* More precisely, the following rules apply:
* <table border="1">
* <table border="1" summary="Rules governing Prefix to URI lookup">
* <tr><th>Prefix (Input)</th><th>Namespace URI (Output)</th></tr>
* <tr><th>{@link javax.xml.XMLConstants#DEFAULT_NS_PREFIX} ("")</th>
* <td>The current default namespace URI or null, if there is no
Expand All @@ -52,7 +52,7 @@ public interface NamespaceContext {
* </tr>
* <tr><th>Any other prefix</th><td>The namespace URI currently mapped to the
* prefix or null, if no such mapping is established.</td></tr>
* </table></p>
* </table>
* @param pPrefix The prefix being looked up in the list of mappings.
* @return The Namespace URI to which the input prefix is currently mapped
* or null, if there is no such mapping.
Expand All @@ -61,20 +61,20 @@ public interface NamespaceContext {
public String getNamespaceURI(String pPrefix);


/** <p>This method returns a prefix, which is currently mapped to the given
/** This method returns a prefix, which is currently mapped to the given
* namespace URI. Note, that multiple prefixes may be mapped to the namespace
* URI, in which case the returned prefix is undetermined. Do not make any
* assumptions on the order in such cases. It is a better choice to use
* {@link #getPrefixes(String)} instead, if you depend on some order
* <table border="1">
* <table border="1" summary="Rules governing URI to Prefix lookup">
* <tr><th>Namespace URI (Input)</th><th>Prefix (Output)</th></tr>
* <tr><th>Current default namespace URI</th>
* <td>{@link javax.xml.XMLConstants#DEFAULT_NS_PREFIX} ("")</td></tr>
* <tr><th>{@link javax.xml.XMLConstants#XML_NS_URI} ("http://www.w3.org/XML/1998/namespace")</th>
* <td>{@link javax.xml.XMLConstants#XML_NS_PREFIX} ("xml")</td></tr>
* <tr><th>{@link javax.xml.XMLConstants#XMLNS_ATTRIBUTE_NS_URI} ("http://www.w3.org/2000/xmlns/")</th>
* <td>{@link javax.xml.XMLConstants#XMLNS_ATTRIBUTE}</td></tr>
* </table></p>
* </table>
*
* @param pNamespaceURI The namespace URI being looked up in the list of mappings.
* @return A prefix currently mapped to the given namespace URI or null, if there
Expand All @@ -84,19 +84,19 @@ public interface NamespaceContext {
public java.lang.String getPrefix(java.lang.String pNamespaceURI);


/** <p>This method returns a collection of prefixes, which are currently mapped
/** This method returns a collection of prefixes, which are currently mapped
* to the given namespace URI. Note, that the collection may contain more than
* one prefix, in which case the order is undetermined. If you do not depend
* on a certain order and any prefix will do, you may choose to use
* {@link #getPrefix(String)} instead. The following table describes the
* returned values in more details:
* <table border="1">
* <table border="1" summary="Rules governing URI to Prefixes lookup">
* <tr><th>Namespace URI (Input)</th><th>Prefix collection (Output)</th></tr>
* <tr><th>{@link javax.xml.XMLConstants#XML_NS_URI} ("http://www.w3.org/XML/1998/namespace")</th>
* <td>Collection with a single element: {@link javax.xml.XMLConstants#XML_NS_PREFIX} ("xml")</td></tr>
* <tr><th>{@link javax.xml.XMLConstants#XMLNS_ATTRIBUTE_NS_URI} ("http://www.w3.org/2000/xmlns/")</th>
* <td>Collection with a single element: {@link javax.xml.XMLConstants#XMLNS_ATTRIBUTE}</td></tr>
* </table></p>
* </table>
*
* @param pNamespaceURI The namespace URI being looked up in the list of
* mappings or null, if there is no such mapping.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ public String getPrefix() {
return prefix;
}

/** <p>Returns true, if
/** Returns true, if
* <ul>
* <li><code>pOther</code> instanceof QName</li>
* <li>getNamespaceURI().equals(pOther.getNamespaceURI())</li>
* <li>getLocalPart().equals(pOther.getLocalPart())</li>
* </ul>
* <em>Note</em>: The prefix is ignored.</p>
* <em>Note</em>: The prefix is ignored.
*/
public boolean equals(Object pOther) {
if (!(pOther instanceof QName)) {
Expand Down
File renamed without changes.
14 changes: 8 additions & 6 deletions modules/java5/src/site/site.xml → java5/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<project name="ws-commons-util">
<skin>
<groupId>org.apache.maven.skins</groupId>
<artifactId>maven-fluido-skin</artifactId>
<version>2.1.0</version>
</skin>
<bannerLeft>
<name>Apache Webservices Java 5 Classes</name>
<src>http://ws.apache.org/images/project-logo.jpg</src>
Expand All @@ -11,12 +16,9 @@
<item name="WS Commons" href="http://ws.apache.org/commons/"/>
<item name="Java 5 Classes" href="http://ws.apache.org/commons/ws-commons-java5/"/>
</links>

<menu name="WS Commons Java5 Classes">
<item name="Overview" href="/index.html"/>
<item name="Overview" href="index.html"/>
</menu>

${reports}

<menu ref="reports"/>
</body>
</project>
</project>
9 changes: 0 additions & 9 deletions modules/.classpath

This file was deleted.

17 changes: 0 additions & 17 deletions modules/.project

This file was deleted.

Loading