0
votes

Showing missing artifacts when they are indeed there.

Description Resource Path Location Type ArtifactDescriptorException: Failed to read artifact descriptor for org.jvnet.staxex:stax-ex:jar:RELEASE: VersionResolutionException: Failed to resolve version for org.jvnet.staxex:stax-ex:jar:RELEASE: Could not find metadata org.jvnet.staxex:stax-ex/maven-metadata.xml in local (C:\Users\joshuach.m2\repository) pom.xml /wap-w9-info-client line 1 Maven Dependency Problem

POM.xml file:

<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">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.ecs.irs</groupId>
    <artifactId>wap-w9-info-client</artifactId>
    <packaging>war</packaging>
    <version>2.1.0</version>

    <parent>
        <groupId>com.ecs</groupId>
        <artifactId>ecs-parent</artifactId>
        <version>1.0.11</version>
    </parent>

    <properties>
        <bds.version>1.0.0</bds.version>
        <cxf.version>2.4.0</cxf.version>
        <irs.data.common.version>3.0.0</irs.data.common.version>
        <org.springframework.version>3.0.5</org.springframework.version>
    </properties>

    <build>
        <finalName>${project.artifactId}</finalName>
        <plugins>

            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                <filesets>
                    <fileset>
                        <directory>src/main/webapp/WEB-INF/classes</directory>
                        <followSymlinks>false</followSymlinks>
                    </fileset>
                    <fileset>
                        <directory>src/main/webapp/WEB-INF/lib</directory>
                        <followSymlinks>false</followSymlinks>
                    </fileset>
                </filesets>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId> 
                <artifactId>maven-compiler-plugin</artifactId> 
                <version>2.0</version><!--$NO-MVN-MAN-VER$--> 
                <configuration>
                    <source>1.6</source> 
                    <target>1.6</target> 
                </configuration>
                </plugin>

            <plugin>
                <artifactId>maven-war-plugin</artifactId> 
                <version>2.0.1</version> 
                <configuration>
                    <webResources>
                        <resource>
                            <directory>
                                ${basedir}/src/main/webapp
                            </directory>
                            <filtering>true</filtering>
                            <excludes>
                                <exclude>**/.MySCMServerInfo</exclude>
                                <exclude>**/*.gif</exclude>
                                <exclude>**/*.png</exclude>
                                <exclude>**/*.jpg</exclude>
                                <exclude>**/*.ftl</exclude>
                            </excludes> 
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

<dependencies>
    <dependency>
        <groupId>com.ccbill.dbd</groupId>
        <artifactId>DBDReplication</artifactId>
        <version>5.1.0</version>
    </dependency>

    <!-- IRS & Data Service  -->
    <dependency>
        <groupId>com.ecs.irs</groupId>
        <artifactId>irs-data-common</artifactId>
        <version>2.1.0</version><!-- Was "${irs.data.common.version}" -->
    </dependency>

    <!--  Bad Data -->
    <dependency>
        <groupId>com.ecs.bds</groupId>
        <artifactId>bds-interfaces</artifactId>
        <version>${bds.version}</version>
    </dependency>

    <!--   Spring  --> 
    <dependency>
        <groupId>org.springframework</groupId> 
        <artifactId>spring-context</artifactId> 
        <version>3.0.6</version><!--$NO-MVN-MAN-VER$, was "${org.springframework.version}"--> 
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId> 
        <artifactId>spring-webmvc</artifactId> 
        <version>3.0.6</version><!--$NO-MVN-MAN-VER$, was "${org.springframework.version}"--> 
    </dependency>

    <dependency>
        <groupId>commons-fileupload</groupId>
        <artifactId>commons-fileupload</artifactId>
        <version>1.2</version>
    </dependency>

    <!-- servlet --> 
    <dependency>
        <groupId>javax.servlet</groupId> 
        <artifactId>servlet-api</artifactId> 
        <version>2.5</version><!--$NO-MVN-MAN-VER$-->
        <scope>provided</scope> 
    </dependency>

    <!-- jackson json mapper -->
    <dependency>
        <groupId>org.codehaus.jackson</groupId>
        <artifactId>jackson-mapper-asl</artifactId>
        <version>1.7.4</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <!-- freemarker --> 
    <dependency>
        <groupId>org.freemarker</groupId> 
        <artifactId>freemarker</artifactId> 
        <version>2.3.16</version><!--$NO-MVN-MAN-VER$--> 
    </dependency>

    <!-- for Persister class -->
    <dependency>
        <groupId>org.simpleframework</groupId>
        <artifactId>simple-xml</artifactId>
        <version>1.7.3</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <!-- asm -->
    <dependency>
        <groupId>asm</groupId>
        <artifactId>asm</artifactId>
        <version>3.2</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <!-- cxf -->
    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxws</artifactId>
        <version>${cxf.version}</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http</artifactId>
        <version>${cxf.version}</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-transports-http-jetty</artifactId>
        <version>${cxf.version}</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>org.jvnet.staxex</groupId>
        <artifactId>stax-ex</artifactId>
        <version>1.2</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-common-utilities</artifactId>
        <version>${cxf.version}</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-databinding-aegis</artifactId>
        <version>${cxf.version}</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <dependency>
        <groupId>com.sun.xml.ws</groupId>
        <artifactId>jaxws-rt</artifactId>
        <version>2.2</version>
    </dependency>

    <dependency>
        <groupId>cglib</groupId>
        <artifactId>cglib</artifactId>
        <version>2.2</version><!--$NO-MVN-MAN-VER$-->
    </dependency>

    <!--  logging  --> 
    <dependency>
        <groupId>log4j</groupId> 
        <artifactId>log4j</artifactId> 
        <scope>compile</scope> 
    </dependency>

    <!-- testing -->
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <scope>provided</scope>
    </dependency>

    <!-- sys5auth -->
    <dependency>
        <groupId>com.ecs.auth</groupId>
        <artifactId>sys5auth</artifactId>
        <version>1.4.1</version>
        <exclusions>
            <exclusion>
            <groupId>com.ccbill.dbd</groupId>
            <artifactId>DBDReplication</artifactId>
        </exclusion>
        <exclusion>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
        </exclusion>
        </exclusions>
    </dependency>

    <!-- DBD Replication    
    <dependency>
        <groupId>com.ccbill.dbd</groupId>
        <artifactId>DBDReplication</artifactId>
        <version>5.1.0</version>
    </dependency>-->

</dependencies>

</project>
1

1 Answers

0
votes

Go to this folder:

 '../.m2/repository/org/jvnet/staxex'

and for all of the versions, remove all the files inside the directories except from the .jar and .pom files. If that does not help, try removing entire directories.

For me sometimes this helps also in order to force the checks bypassing local cached data:

mvn -U clean install