Oh, thank you for pointing me in the correct direction. The 'exclusions' 
information is what finally allowed the build to complete successfully.

Here is what I finally ended up doing.

Looking at the pom.xml for monitor I noticed a 'dependency' that was:

<dependency>
    <groupId>com.p1s.mps</groupId>
    <artifactId>database-connector</artifactId>
    <version>${project.version}</version>
</dependency>

This is where the 'exclusions' needed to be inserted. So I did this:

<dependency>
    <groupId>com.p1s.mps</groupId>
    <artifactId>database-connector</artifactId>
    <version>${project.version}</version>
    <exclusions>
        <exclusion>
             <groupId>org.apache.axis2</groupId>
             <artifactId>addressing</artifactId>
        </exclusion>
     </exclusions>
</dependency>

Adding the version and type tags caused a syntax error so I removed them. I 
then proceeded to do the normal 'mvn clean install -DskipTests' to complete 
successfully.

I haven't tried to run the application yet but I'll sleep better this weekend.

Wayne - I really do appreciate you sticking with me on this and teaching me 
some more about Maven. I'm still going to learn this tool.

-----Original Message-----
From: Wayne Fay [mailto:[email protected]] 
Sent: Friday, June 21, 2013 3:19 PM
To: Maven Users List
Subject: Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2' 
to archive

> The monitor project does not need the axis2 addressing mar but it is 
> 'grabbing'
> it. In the monitor's assembly.xml file and pom.xml there is no reference to 
> axis2.
> The only reference to it is in the database connectivity project.

In that case, most likely you can simply adjust your current dependency in the 
monitor project's pom file to something like this:
<dependency>
<groupId>com.p1s.mps</groupId> <!-- a guess --> <artifactId>common</artifactId> 
<!-- another guess --> <exclusions>
    <exclusion>
        <groupId>org.apache.axis2</groupId>
        <artifactId>addressing</artifactId>
        <version>${apache.axis2.version}</version>
        <type>mar</type>
    </exclusion>
</exclusions>
</dependency>

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to