Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

namespace changes #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Additionally it includes simple schemaless converter that converts xml to avro a
1. git clone;
2. mvn package;
3. java -jar target/xml-avro*.jar <xsdFile> <xmlFile> {<avscFile>} {<avroFile>} // converts specified xml+xsd to avro+asvc files
4. java -cp target/xml-avro*.jar ly.stealth.xmlavro.simple.Converter avro <xmlFile> <avroFile> // convert xml to avro
5. java -cp target/xml-avro*.jar ly.stealth.xmlavro.simple.Converter xml <avroFile> <xmlFile> // convert avro to xml
4. java -cp target/xml-avro*.jar net.elodina.xmlavro.simple.Converter avro <xmlFile> <avroFile> // convert xml to avro
5. java -cp target/xml-avro*.jar net.elodina.xmlavro.simple.Converter xml <avroFile> <xmlFile> // convert avro to xml

## Schema-based converter
Usage:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<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>ly.stealth</groupId>
<groupId>net.elodina</groupId>
<artifactId>xml-avro</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.2-SNAPSHOT</version>

<dependencies>
<dependency>
Expand Down Expand Up @@ -92,7 +92,7 @@
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>ly.stealth.xmlavro.Converter</mainClass>
<mainClass>net.elodina.xmlavro.Converter</mainClass>
</transformer>
</transformers>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

import org.apache.avro.Schema;
import org.apache.avro.io.DatumWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

public class ConverterException extends RuntimeException {
public ConverterException(String message) { super(message); }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

import org.apache.avro.Schema;
import org.apache.avro.generic.GenericData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

import org.apache.avro.Schema;
import org.apache.xerces.dom.DOMInputImpl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

import java.util.Objects;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ly.stealth.xmlavro.simple;
package net.elodina.xmlavro.simple;

import org.apache.avro.Protocol;
import org.apache.avro.Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"namespace": "ly.stealth.xmlavro",
"namespace": "net.elodina.xmlavro",
"protocol": "xml",

"types": [
Expand Down
2 changes: 1 addition & 1 deletion test/ly/stealth/xmlavro/ConverterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ly.stealth.xmlavro;
package net.elodina.xmlavro;

import org.apache.avro.Schema;
import org.apache.avro.generic.GenericData;
Expand Down