[apache-commons-beanutils] Update to upstream version 1.9.0
by Mikolaj Izdebski
commit 0326dcca33ef36267c1bf1dda2d315047f661fb2
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Mon Jan 6 09:35:36 2014 +0100
Update to upstream version 1.9.0
.gitignore | 1 +
apache-commons-beanutils.spec | 8 +++++---
sources | 2 +-
3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2d99030..bc39342 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
commons-beanutils-1.8.3-src.tar.gz
+/commons-beanutils-1.9.0-src.tar.gz
diff --git a/apache-commons-beanutils.spec b/apache-commons-beanutils.spec
index 276c685..e4d068b 100644
--- a/apache-commons-beanutils.spec
+++ b/apache-commons-beanutils.spec
@@ -2,8 +2,8 @@
%global short_name commons-%{base_name}
Name: apache-%{short_name}
-Version: 1.8.3
-Release: 11%{?dist}
+Version: 1.9.0
+Release: 1%{?dist}
Summary: Java utility methods for accessing and modifying the properties of arbitrary JavaBeans
License: ASL 2.0
URL: http://commons.apache.org/%{base_name}
@@ -38,7 +38,6 @@ Obsoletes: jakarta-%{short_name}-javadoc <= 0:1.7.0
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' *.txt
-%pom_remove_plugin :maven-antrun-plugin
%pom_remove_plugin :maven-assembly-plugin
%mvn_alias :{*} :@1-core :@1-bean-collections
@@ -66,6 +65,9 @@ rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
%doc LICENSE.txt NOTICE.txt
%changelog
+* Mon Jan 6 2014 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 1.9.0-1
+- Update to upstream version 1.9.0
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.8.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/sources b/sources
index e8725be..1fc6041 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-12c522d95db2b75b326c1f0bb8182f75 commons-beanutils-1.8.3-src.tar.gz
+7874bb9e6dfc9af183cbaf5f579c29ea commons-beanutils-1.9.0-src.tar.gz
10 years, 4 months
[javapackages/pom_editor.py] [macros] minor fixes in macro comments
by Michael Šimáček
commit 9ca67432bc43836d341c2fdea02c3839bc2ae74e
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Sun Jan 5 02:05:18 2014 +0100
[macros] minor fixes in macro comments
etc/macros.fjava | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/etc/macros.fjava b/etc/macros.fjava
index 04180cc..3485eea 100644
--- a/etc/macros.fjava
+++ b/etc/macros.fjava
@@ -183,7 +183,7 @@ sort -u -o ${_filelist} ${_filelist} \
#
# Usage: %pom_xpath_inject <XPath> [XML code] [POM location]
#
-# This macro patches specified POM file appending some code as childreen of all
+# This macro patches specified POM file appending some code as children of all
# XML nodes described by the XPath expression.
#
# XPath is an expression describing a set of XML nodes in the POM file to which
@@ -251,11 +251,6 @@ sort -u -o ${_filelist} ${_filelist} \
# directory containing pom.xml. If POM location is not given then pom.xml from
# current working directory is used.
#
-# Note: If specified POM has already a reference to parent POM this macro will
-# not alter or remove it. Instead a second reference will be added. This is
-# usually not the expected behavior, so if you want to replace existing parent
-# POM reference, consider using %pom_set_parent macro instead.
-#
%pom_add_parent() %{expand: %{__pom_call}add_parent %*
}
@@ -303,7 +298,7 @@ sort -u -o ${_filelist} ${_filelist} \
# <dependencyManagement>.
#
# groupId and artifactId are identifiers of Maven artifact on which dependency
-# is to be added.. They must be specified. If version is not specified then
+# is to be added. They must be specified. If version is not specified then
# default value of "any" is used. If scope is not specified then no scope is
# defined (Maven defaults to "compile" in this case).
#
10 years, 4 months
[javapackages/pom_editor.py] [pom_editor.py] print usage on error
by Michael Šimáček
commit 4aa7e8cf672c044ac9f5a6a86c3bd2bf84c4afec
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Sun Jan 5 01:54:13 2014 +0100
[pom_editor.py] print usage on error
java-utils/pom_editor.py | 31 +++++++++++++++++++++++++------
test/pom_macros_test.py | 10 ++++++++++
2 files changed, 35 insertions(+), 6 deletions(-)
---
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
index debee8c..480beba 100644
--- a/java-utils/pom_editor.py
+++ b/java-utils/pom_editor.py
@@ -6,6 +6,7 @@ import sys
from lxml import etree
from os import path
+from textwrap import dedent
# all macro fuctions that can be called from external world
macros = {}
@@ -63,6 +64,10 @@ def get_indent(node):
text = node.text.split('\n')[-1]
return re.sub(r'\S.*', '', text)
+def print_usage(function):
+ print >> sys.stderr, "Usage: %{name} {doc}".format(name=function.__name__,
+ doc=function.__doc__)
+
def macro(outer_function):
def decorator(function):
def decorated(*args):
@@ -70,8 +75,7 @@ def macro(outer_function):
maxargcount = len(arglist)
minargcount = maxargcount - len(defaults or [])
if len(args) > maxargcount or len(args) < minargcount:
- print >> sys.stderr, "Usage: %pom_{name} {doc}".format(name=function.__name__,
- doc=function.__doc__)
+ print_usage(function)
sys.exit(1)
pomspec_pos = arglist.index('pom')
if pomspec_pos < len(args):
@@ -83,6 +87,7 @@ def macro(outer_function):
pompath = find_pom(pomspec)
except PomException as exception:
print >> sys.stderr, exception.message
+ print_usage(function)
sys.exit(2)
try:
@@ -97,6 +102,7 @@ def macro(outer_function):
except (PomException, etree.XMLSyntaxError, OSError, IOError) as exception:
print >> sys.stderr, "Error in processing {0}".format(pompath)
print >> sys.stderr, exception.message
+ print_usage(function)
sys.exit(3)
macros[function.__name__] = decorated
@@ -210,8 +216,9 @@ class Pom(object):
raise PomQueryInvalid("XPath query '{0}': {1}.".format(query,
error.message))
if len(query_result) == 0:
- raise PomQueryNoMatch("XPath query '{0}' didn't match any node."\
- .format(query))
+ raise PomQueryNoMatch(dedent("""\
+ XPath query '{0}' didn't match any node.
+ (Did you forget to specify 'pom:' namespace?)""").format(query))
return query_result
def subtree_from_string(self, xml_string, root='root'):
@@ -234,27 +241,31 @@ ScopedArtifact = MetaArtifact(artifact_spec_scoped, version='any')
@macro
def pom_xpath_inject(where, xml_string, pom=None):
+ """<XPath> [XML code] [POM location]"""
for element in pom.xpath_query(where):
pom.inject_xml(element, Pom.comment(xml_string))
@macro
def pom_xpath_replace(where, xml_string, pom=None):
+ """<XPath> <XML code> [POM location]"""
for element in pom.xpath_query(where):
pom.replace_xml(element, Pom.comment(xml_string))
@macro
def pom_xpath_remove(where, pom=None):
+ """<XPath> [POM location]"""
for element in pom.xpath_query(where):
pom.replace_xml(element, "<!-- element removed by maintainer -->")
@macro
def pom_xpath_set(where, content, pom=None):
+ """<XPath> <new contents> [POM location]"""
for element in pom.xpath_query(where):
- #TODO check content
pom.replace_xml_content(element, Pom.comment(content))
@macro
def pom_remove_dep(dep, pom=None):
+ """[groupId]:[artifactId] [POM location]"""
try:
artifact = VersionedArtifact(dep)
xpath = "//pom:dependency[{0}]".format(artifact.get_xpath_condition())
@@ -266,6 +277,7 @@ def pom_remove_dep(dep, pom=None):
@macro
def pom_remove_plugin(plugin, pom=None):
+ """[groupId]:[artifactId] [POM location]"""
try:
artifact = VersionedArtifact(plugin)
xpath = "//pom:plugin[{0}]".format(artifact.get_xpath_condition())
@@ -277,6 +289,7 @@ def pom_remove_plugin(plugin, pom=None):
@macro
def pom_disable_module(module, pom=None):
+ """<module name> [POM location]"""
try:
xpath = "//pom:module[normalize-space(text())='{0}']".format(module)
elements = pom.xpath_query(xpath)
@@ -287,6 +300,7 @@ def pom_disable_module(module, pom=None):
@macro
def pom_add_parent(parent, pom=None):
+ """groupId:artifactId[:version] [POM location]"""
if pom.root.find('pom:parent', namespaces=Pom.NSMAP) is not None:
raise PomException("POM already has a parent.")
artifact = DefaultVersionedArtifact(parent)
@@ -294,6 +308,7 @@ def pom_add_parent(parent, pom=None):
@macro
def pom_remove_parent(pom=None):
+ """[POM location]"""
try:
pom.replace_xml(pom.xpath_query_element("/pom:project/pom:parent"),
"<!-- parent POM reference removed by maintainer -->")
@@ -302,8 +317,9 @@ def pom_remove_parent(pom=None):
@macro
def pom_set_parent(parent, pom=None):
+ """groupId:artifactId[:version] [POM location]"""
try:
- artifact = ScopedArtifact(parent)
+ artifact = DefaultVersionedArtifact(parent)
element = pom.xpath_query_element("/pom:project/pom:parent")
pom.replace_xml_content(element, artifact.get_xml())
except PomQueryNoMatch:
@@ -311,18 +327,21 @@ def pom_set_parent(parent, pom=None):
@macro
def pom_add_dep(dep, pom=None, xml_string=''):
+ """groupId:artifactId[:version[:scope]] [POM location] [extra XML]"""
artifact = ScopedArtifact(dep)
pom.inject_artifact('pom:dependencies', 'dependency', artifact,
xml_string)
@macro
def pom_add_dep_mgmt(dep, pom=None, xml_string=''):
+ """groupId:artifactId[:version[:scope]] [POM location] [extra XML]"""
artifact = ScopedArtifact(dep)
pom.inject_artifact('pom:dependencyManagement/pom:dependencies',
'dependency', artifact, xml_string)
@macro
def pom_add_plugin(plugin, pom=None, xml_string=''):
+ """groupId:artifactId[:version] [POM location] [extra XML]"""
artifact = MetaArtifact(artifact_spec, version='any',
groupId='org.apache.maven.plugins')(plugin)
pom.inject_artifact('pom:build/pom:plugins', 'plugin', artifact,
diff --git a/test/pom_macros_test.py b/test/pom_macros_test.py
index 90cd0b5..e85ff58 100644
--- a/test/pom_macros_test.py
+++ b/test/pom_macros_test.py
@@ -64,6 +64,16 @@ class PomMacrosTest(unittest.TestCase):
pass
os.chdir(cls.olddir)
+ def test_usage(self):
+ package = Package("usage")
+ pompath = os.path.join(WORKDIR, "pom_remove_dep.xml")
+ package.add_source(pompath, "pom.xml")
+ package.append_to_prep('%pom_remove_dep')
+ _, stderr, return_value = package.run_prep()
+ self.assertEqual(return_value, 1)
+ self.assertIn("Usage: %pom_remove_dep "\
+ "[groupId]:[artifactId] [POM location]", stderr)
+
@exec_macro("pom_remove_dep :commons-io", "pom_remove_dep.xml")
def test_remove_dep(self, stdin, stderr, returncode, pom_path):
self.assertEqual(returncode, 0, stderr)
10 years, 4 months
[javapackages/pom_editor.py] [test] test for extra xml content in pom macros
by Michael Šimáček
commit 36c5cb718ac8519fc6ff1e9461c4e44acdbb2a09
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Sun Jan 5 01:12:54 2014 +0100
[test] test for extra xml content in pom macros
test/data/pom_macros/pom_add_dep_extra.xml | 13 +++++++
test/data/pom_macros/pom_add_dep_extra.xml-want | 21 +++++++++++
test/data/pom_macros/pom_add_dep_mgmt_extra.xml | 13 +++++++
.../pom_macros/pom_add_dep_mgmt_extra.xml-want | 23 ++++++++++++
test/data/pom_macros/pom_add_plugin_extra.xml | 25 ++++++++++++++
test/data/pom_macros/pom_add_plugin_extra.xml-want | 36 ++++++++++++++++++++
test/pom_macros_test.py | 36 ++++++++++++++++++--
7 files changed, 164 insertions(+), 3 deletions(-)
---
diff --git a/test/data/pom_macros/pom_add_dep_extra.xml b/test/data/pom_macros/pom_add_dep_extra.xml
new file mode 100644
index 0000000..45736ef
--- /dev/null
+++ b/test/data/pom_macros/pom_add_dep_extra.xml
@@ -0,0 +1,13 @@
+<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">
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+</project>
diff --git a/test/data/pom_macros/pom_add_dep_extra.xml-want b/test/data/pom_macros/pom_add_dep_extra.xml-want
new file mode 100644
index 0000000..f658189
--- /dev/null
+++ b/test/data/pom_macros/pom_add_dep_extra.xml-want
@@ -0,0 +1,21 @@
+<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">
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>1.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+</project>
diff --git a/test/data/pom_macros/pom_add_dep_mgmt_extra.xml b/test/data/pom_macros/pom_add_dep_mgmt_extra.xml
new file mode 100644
index 0000000..45736ef
--- /dev/null
+++ b/test/data/pom_macros/pom_add_dep_mgmt_extra.xml
@@ -0,0 +1,13 @@
+<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">
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+</project>
diff --git a/test/data/pom_macros/pom_add_dep_mgmt_extra.xml-want b/test/data/pom_macros/pom_add_dep_mgmt_extra.xml-want
new file mode 100644
index 0000000..29714b6
--- /dev/null
+++ b/test/data/pom_macros/pom_add_dep_mgmt_extra.xml-want
@@ -0,0 +1,23 @@
+<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">
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>foo</groupId>
+ <artifactId>bar</artifactId>
+ <version>1.2</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+</project>
diff --git a/test/data/pom_macros/pom_add_plugin_extra.xml b/test/data/pom_macros/pom_add_plugin_extra.xml
new file mode 100644
index 0000000..68752f4
--- /dev/null
+++ b/test/data/pom_macros/pom_add_plugin_extra.xml
@@ -0,0 +1,25 @@
+<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">
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>my.group</groupId>
+ <artifactId>my-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>my.group</groupId>
+ <artifactId>My-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/test/data/pom_macros/pom_add_plugin_extra.xml-want b/test/data/pom_macros/pom_add_plugin_extra.xml-want
new file mode 100644
index 0000000..41a4f1e
--- /dev/null
+++ b/test/data/pom_macros/pom_add_plugin_extra.xml-want
@@ -0,0 +1,36 @@
+<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">
+ <parent>
+ <groupId>org.apache.commons</groupId>
+ <artifactId>commons-parent</artifactId>
+ <version>17</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ <name>Commons Lang</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>plugin</groupId>
+ <artifactId>plug</artifactId>
+ <version>3</version>
+ <executions>
+ <id>default-compile</id>
+ <goals>
+ <goal>testCompile</goal>
+ </goals>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>my.group</groupId>
+ <artifactId>my-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>my.group</groupId>
+ <artifactId>My-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/test/pom_macros_test.py b/test/pom_macros_test.py
index 0a2ba08..90cd0b5 100644
--- a/test/pom_macros_test.py
+++ b/test/pom_macros_test.py
@@ -13,7 +13,7 @@ DATADIR = os.path.join(DIRPATH, "data", "pom_macros")
WORKDIR = os.path.join(DATADIR, "..", 'pom_macros_workdir')
-def exec_macro(command = "", pom = "pom.xml"):
+def exec_macro(command = "", pom = "pom.xml", tail=''):
def test_decorator(function):
def test_decorated(self, *args, **kwargs):
pompath = os.path.join(WORKDIR, pom)
@@ -21,8 +21,8 @@ def exec_macro(command = "", pom = "pom.xml"):
package = Package(function.__name__)
package.add_source(pompath)
pomsourcepath = os.path.join(package.buildpath, pomname)
- package.append_to_prep('%{command} {pom}'.format(command=command,
- pom=pomname))
+ package.append_to_prep('%{command} {pom} {tail}'.format(command=command,
+ pom=pomname, tail=tail))
stdin, stderr, return_value = package.run_prep()
function(self, stdin, stderr, return_value, pomsourcepath)
@@ -145,6 +145,22 @@ class PomMacrosTest(unittest.TestCase):
report, res = check_result(pom_path)
self.assertEqual(res, True, report)
+ @exec_macro("pom_add_dep foo:bar:1.2", "pom_add_dep_extra.xml",
+ "'<scope>test</scope>'")
+ def test_add_dep_extra(self, stdout, stderr, returncode, pom_path):
+ self.assertEqual(returncode, 0, stderr)
+
+ report, res = check_result(pom_path)
+ self.assertEqual(res, True, report)
+
+ @exec_macro("pom_add_dep_mgmt foo:bar:1.2", "pom_add_dep_mgmt_extra.xml",
+ "'<scope>test</scope>'")
+ def test_add_dep_mgmt_extra(self, stdout, stderr, returncode, pom_path):
+ self.assertEqual(returncode, 0, stderr)
+
+ report, res = check_result(pom_path)
+ self.assertEqual(res, True, report)
+
@exec_macro("pom_add_dep gdep:adep:3.2:test", "pom_add_dep_whitespace.xml")
def test_add_dep_whitespace(self, stdin, stderr, returncode, pom_path):
self.assertEqual(returncode, 0, stderr)
@@ -194,6 +210,20 @@ class PomMacrosTest(unittest.TestCase):
report, res = check_result(pom_path)
self.assertEqual(res, True, report)
+ @exec_macro("pom_add_plugin plugin:plug:3", "pom_add_plugin_extra.xml",
+ """'<executions>
+ <id>default-compile</id>
+ <goals>
+ <goal>testCompile</goal>
+ </goals>
+ </executions>
+ '""")
+ def test_add_plugin_extra(self, stdin, stderr, returncode, pom_path):
+ self.assertEqual(returncode, 0, stderr)
+
+ report, res = check_result(pom_path)
+ self.assertEqual(res, True, report)
+
@exec_macro("pom_add_plugin plug:plug", "pom_add_plugin2.xml")
def test_add_plugin2(self, stdin, stderr, returncode, pom_path):
self.assertEqual(returncode, 0, stderr)
10 years, 4 months
[javapackages/pom_editor.py] [pom_editor.py] extra xml in pom_add_plugin
by Michael Šimáček
commit 7c1f80a40ba23429e8a9e266c2b71cf4412bedeb
Author: Michael Simacek <msimacek(a)redhat.com>
Date: Sun Jan 5 00:55:08 2014 +0100
[pom_editor.py] extra xml in pom_add_plugin
java-utils/pom_editor.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
index bbb2a2e..debee8c 100644
--- a/java-utils/pom_editor.py
+++ b/java-utils/pom_editor.py
@@ -322,10 +322,11 @@ def pom_add_dep_mgmt(dep, pom=None, xml_string=''):
'dependency', artifact, xml_string)
@macro
-def pom_add_plugin(plugin, pom=None):
+def pom_add_plugin(plugin, pom=None, xml_string=''):
artifact = MetaArtifact(artifact_spec, version='any',
groupId='org.apache.maven.plugins')(plugin)
- pom.inject_artifact('pom:build/pom:plugins', 'plugin', artifact)
+ pom.inject_artifact('pom:build/pom:plugins', 'plugin', artifact,
+ xml_string)
if __name__ == '__main__':
if len(sys.argv) <= 1:
10 years, 4 months