Пример #1
0
def simple_pom():
    return MavenPom(
        group_id='com.example',
        artifact_id='foobar',
        version='1.2.3',
        parent=None,
        properties={}
    )
Пример #2
0
def grandparent_pom():
    return MavenPom(
        group_id='com.example',
        artifact_id='foobar-grandparent',
        version='1.2.3',
        parent=None,
        properties={
            'yo': 'yo'
        }
    )
Пример #3
0
def parent_pom():
    return MavenPom(
        group_id='com.example',
        artifact_id='foobar-parent',
        version='4.5.6',
        parent=None,
        properties={
            'hiThere': 'hi_there',
            'omg': 'oh-my-god'
        }
    )
Пример #4
0
def pom(parent_pom):
    return MavenPom(
        group_id='com.example.foobar',
        artifact_id='foobar',
        version='1.2.3',
        parent=parent_pom,
        properties={
            'foo.bar': 'FooBar',
            'hello': 'hello-world'
        }
    )
Пример #5
0
def parent_pom(grandparent_pom):
    return MavenPom(
        group_id='com.example',
        artifact_id='foobar-parent',
        version='1.2.3',
        parent=grandparent_pom,
        properties={
            'hiThere': 'hi_there',
            'omg': 'oh-my-god'
        }
    )