Sample No:4 jaxws-addressbook

Got following error while building.

------------------------------
-----------------------------------------------------

1 required artifact is missing.

for artifact:
  org.apache.axis2.samples:jaxws-addressbook:jar:SNAPSHOT

----------------------------------------------------------------------------------


In the pom.xml version of the axis2-jaxws dependancy defined as SNAPSHOT.

    <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-jaxws</artifactId>
            <version>SNAPSHOT</version>
        </dependency>

But in the pom.xml in modules/jaxws directory, version is defined as
1.7.0-SNAPSHOT

    <parent>
        <groupId>org.apache.axis2</groupId>
        <artifactId>axis2-parent</artifactId>
        <version>1.7.0-SNAPSHOT</version>
        <relativePath>../parent/pom.xml</relativePath>
    </parent>

Therefore the .jar file created in the .m2 local repo is named as
axis2-jaxws-1.7.0-SNAPSHOT.jar

This is the reason for the missing artifact error.

After doing this small change to the sample's pom.xml it built successfully.

    <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-jaxws</artifactId>
            <version>1.7.0-SNAPSHOT</version>
        </dependency>


Thanks and regards,
Piyum Fernando

Reply via email to