You are correct about the monitor project using the database connectivity
project.
Is this the m-assembly-p configuration? Until 2 days ago all I could do was
spell Maven so I don't have much knowledge about it as yet.
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.p1s.mps.monitor.MpsMonitor</mainClass>
<addClasspath>true</addClasspath>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
<manifestEntries> <!-- buildNumber here means timestamp
-->
<!--suppress MavenModelInspection -->
<Implementation-Build>${teamcity.build.number}
-> ${buildNumber}</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
I've tried to exclude the .mar file in this plugin but I kept getting the error
or a syntax error.
I'm not sure what the assembly descriptor file is. I'm could post the whole
project file for monitor but I'm hesitant to paste 568 lines.
-----Original Message-----
From: Wayne Fay [mailto:[email protected]]
Sent: Thursday, June 20, 2013 12:44 PM
To: Maven Users List
Subject: Re: Error adding file-set for 'org.apache.axis2:addressing:mar:1.6.2'
to archive
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-assembly-plugin:2.2:
> single (assembly) on project monitor:
> Failed to create assembly: Error adding file-set for
> 'org.apache.axis2:addressing:mar:1.6.2' to archive:
> Error adding archived file-set. PlexusIoResourceCollection not found for:
> C:\Users\alan.buck\.m2\repository\org\apache\axis2\addressing\1.6.2\ad
> dressing-1.6.2.mar: No such archiver: 'mar'. -> [Help 1] [ERROR]
>
> From my Google'ing it seems to be an issue around trying to unpack this .mar
> file. However, I could be really incorrect here with my analysis.
>
> Why would the later module try to use/unpack the addressing .mar file and
> throw this error?
Your "monitor" project seems to be invoking the maven-assembly-plugin to "do
something." Most likely the monitor project is depending on the database
connectivity module which has a dependency on this Axis2 mar file.
What does the m-assembly-p configuration look like in your monitor project? How
about the assembly descriptor file? This is where you need to be looking.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]