opwvhk commented on code in PR #1908:
URL: https://github.com/apache/avro/pull/1908#discussion_r1019333250
##########
lang/java/maven-plugin/src/main/java/org/apache/avro/mojo/AbstractAvroMojo.java:
##########
@@ -192,6 +192,14 @@ public abstract class AbstractAvroMojo extends
AbstractMojo {
*/
protected boolean enableDecimalLogicalType;
+ /**
+ * Transformations to be applied when converting an Avro namespace to a Java
+ * package-name. Values are of format "namespacePrefix->packageName"
+ *
+ * @parameter property="namespaceMappings"
+ */
+ protected String[] namespaceMappings = new String[0];
Review Comment:
Ah, ok.
In terms of configuration, I prefer simple values.Your 2nd example is more
verbose, and IMHO doesn't look nice (I'm not a fan of XML...), but does fit the
format better and is easier to use.
Maven can support it, by creating an array of JavaBeans (i.e. POJO with
getters & setters)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]