XML Merge + Maven

Help
2013-06-10
2013-06-10
  •  Malte Brunnlieb

    Malte Brunnlieb - 2013-06-10

    Hi all,

    first of all, thanks for XML Merge. I used it in a new Generator-Approach for merging existing and newly generated contents.
    Actually, I want to transform my generator project to a maven-driven project. Unfortunately I cannot get XML Merge as a dependency to work.
    I found this example: https://github.com/remillet/XMLMerge-Example/blob/master/pom.xml but trying this leads to the following exception:

    ch.elca.el4j.modules:module-xml_merge-common:jar:3.1 (compile)]: Failed to read artifact descriptor for javax.inject:inject:jar:1.0: Could not transfer artifact javax.inject:inject:pom:1.0 from/to collectionspace-remote-repos (http://source.collectionspace.org:8081/artifactory/remote-repos): Connection to http://source.collectionspace.org:8081 refused: Connection timed out: connect -> [Help 1]

    Are there currently any problems with your maven repository?

     
    Last edit: Malte Brunnlieb 2013-06-10
  • Martin Zeltner

    Martin Zeltner - 2013-06-10

    Hi Malte

    The artifact that is requested is in maven central but under artifact-id javax.inject instead of just inject.
    http://search.maven.org/#artifactdetails%7Cjavax.inject%7Cjavax.inject%7C1%7Cjar

    I recommend to add an exclusion xml-element to dependency javax.inject:inject and add the following dependency beside:

    <dependency>
        <groupId>ch.elca.el4j.modules</groupId>
        <artifactId>module-xml_merge-common</artifactId>
        <version>3.1</version>
        <exclusions>
            <exclusion>
                <groupId>javax.inject</groupId>
                <artifactId>inject</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    
    <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
    </dependency>
    

    Cheers
    Martin

     

Log in to post a comment.