You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jaime Hablutzel Egoavil <ha...@hotmail.com> on 2009/11/12 20:11:17 UTC
mvn package raisess error: no such archiver: mar
Hi, I'm experiencing problems when trying to build my swing desktop application with addressing-1.4.mar dependency.
Check the error:
No such archiver: 'mar'.
D:\desarrollo\ModuloEpicrisisMvn>mvn package --offline
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your loca
l
repository will be inaccessible.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ModuloEpicrisis
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 276 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 6 source files to D:\desarrollo\ModuloEpicrisisMvn\target\class
es
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\desarrollo\ModuloEpicrisisMvn\src\
test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: D:\desarrollo\ModuloEpicrisisMvn\target\surefi
re-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running HistoriaClinicaElectronica.ModuloEpicrisis.ManejadorEpicrisisImplTest
[2009-11-12 09:45:05,488]ERROR 0[main] - HistoriaClinicElectronica.ModuloEpi
crisis.ManejadorEpicrisisImpl.obtenerEpicrisisAnterior(ManejadorEpicrisisImpl.ja
va:594) - El argumento ingreso no es correcto = 0
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.922 sec
Running Epicrisis.WfRegistraEpicrisis_EdadTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running pe.gob.hndac.dialogs.PopUpBuscadorTest
GetFilaSelected
isFilaSelected
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.188 sec
Running pe.gob.hndac.temp_jh.TemperaturaTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running pe.gob.hndac.epicrisis.EpicrisisImplTest
[2009-11-12 09:45:05,973]ERROR 485[main] - pe.gob.hndac.epicrisis.model.Epicri
sis.setTipoPaciente(Epicrisis.java:531) - estado de inconsistencia en la db: El
id de tipo de paciente no existe en la base de datos
Tests run: 84, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running ModeloDeNegocio.DbDaoImplTest
current timestamp: 2009-11-12 09:47:16.0
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running ModeloDeNegocio.CamaDaoImplTest
Tamano: 1
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running ModeloDeNegocio.CentroProduccionDaoImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running pe.gob.hndac.reportes.disa.service.ServicioDisaDaoImplTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running pe.gob.hndac.epicrisis.dao.EpicrisisDaoImplTest
searchEpicrisisEgresoByPeriod
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running HistoriaClinicaElectronica.ManejadorHistoriaClinicaTest
getExistHistoriaClinica
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running pe.gob.hndac.reportes.disa.service.ServicioDisaServiceImplTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running pe.gob.hndac.dao.MedicoDaoImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running pe.gob.hndac.hospitalizacion.CamaTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running pe.gob.hndac.epicrisis.dao.HistoriaClinicaDaoImplTest
search
save
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running pe.gob.hndac.NumeroDNITest
getNumeroDocumento, antes de establecerlo: arroja excepcion
setNumeroDocumento
complete happy path
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running pe.gob.hndac.dialogs.JComboBoxWithIndexTest
getSelectedElement beforse setting up anything
setElementoSeleccionado
setElementoSeleccionado happy path
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Results :
Tests run: 142, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar {execution: default-jar}]
[INFO] [axis2-mar:mar {execution: make-assembly}]
[INFO] Generating mar D:\desarrollo\ModuloEpicrisisMvn\target\epicrisis-1.0-SNAP
SHOT.mar
[INFO] Building jar: D:\desarrollo\ModuloEpicrisisMvn\target\epicrisis-1.0-SNAPS
HOT.mar
[INFO] [assembly:attached {execution: make-assembly}]
[INFO] Reading assembly descriptor: D:\desarrollo\ModuloEpicrisisMvn/maven-assem
bly-desc.xml
[WARNING] The assembly id jar-with-dependencies is used more than once.
[INFO] Processing DependencySet (output=null)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to create assembly: Error adding file-set for 'org.apache.axis2:addressing:mar:1.4' to archive: Error adding archived file-set. PlexusIoResourceCo
llection not found for: C:\m2\org\apache\axis2\addressing\1.4\addressing-1.4.mar
No such archiver: 'mar'.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Thu Nov 12 09:45:21 COT 2009
[INFO] Final Memory: 29M/52M
[INFO] ------------------------------------------------------------------------
I've read here: https://jira.jboss.org/jira/browse/MPJDOCBOOK-31
'extensions' in maven resolve to their notion of packaging. jdocbook is
a custom packaging. custom packagings are only available (aka
'recognized') when the plugin defining that packaging is defined in
your pom as an extension.
I
suppose the same applies for .mar extension files, but I'm not sure,
because I have axis2-mar-maven-plugin activated in package phase...
I will really appreciate your help
This is my pom.xml
<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>pe.gob.hndac</groupId>
<artifactId>epicrisis</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>ModuloEpicrisis</name>
<build>
<!--
<resources>
<resource>
<targetPath>META-INF</targetPath>
<directory>src</directory>
<directory>resources</directory>
<includes/>
</resource>
</resources>
-->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>-->
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>Epicrisis.FrameInicioSesion</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
-->
<plugin>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-mar-maven-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>mar</goal>
<!-- <goal>exploded</goal>
<goal>inplace</goal>
-->
</goals>
</execution>
</executions>
<configuration>
<extensions>true</extensions>
<!-- <includeDependencies>false</includeDependencies>
<moduleXmlFile>module.xml</moduleXmlFile>
-->
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<descriptors>
<descriptor>${basedir}/maven-assembly-desc.xml</descriptor>
</descriptors>
-->
<archive>
<manifest>
<mainClass>Epicrisis.FrameInicioSesion</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>attached</goal>
</goals>
</execution>
</executions>
</plugin>
<!--<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.antrun.version}</version>
<inherited>false</inherited>
<executions>
<execution>
<id>service-module-list-generation</id>
<phase>process-resources</phase>
<configuration>
<tasks>
<mkdir dir="target/tmp-repository"/>
<mkdir dir="target/tmp-repository/modules"/>
<mkdir dir="target/tmp-repository/services"/>
<copy file="../../modules/addressing/target/addressing-${version}.mar"
tofile="target/tmp-repository/modules/addressing-${addressing.mar.version}.mar"/>
<copy file="../../modules/ping/target/ping-${version}.mar"
tofile="target/tmp-repository/modules/ping-${ping.mar.version}.mar"/>
<copy file="../../modules/mex/target/mex-${version}.mar"
tofile="target/tmp-repository/modules/mex-${mex.mar.version}.mar"/>
<copy file="../../modules/scripting/target/axis2-scripting-${version}.mar"
tofile="target/tmp-repository/modules/scripting-${scripting.mar.version}.mar"/>
<copy file="../../modules/kernel/target/smtpfault.mar"
tofile="target/tmp-repository/modules/smtpfault.mar"/>
generate modules.list
<echo file="target/tmp-repository/modules/modules.list" append="false">
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
soapmonitor-${soapmonitor.mar.version}.mar
addressing-${addressing.mar.version}.mar
ping-${ping.mar.version}.mar
mex-${mex.mar.version}.mar
scripting-${scripting.mar.version}.mar
</echo>
<copy file="../../modules/samples/target/toWar/services/version.aar"
todir="target/tmp-repository/services"/>
generate services.list
<echo file="target/tmp-repository/services/services.list" append="false">
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
version.aar
</echo>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>delete-temporary-files</id>
<phase>install</phase>
<configuration>
<tasks>
<delete dir="target/tmp-doc-distro"/>
<delete dir="target/tmp-repository"/>
<delete dir="target/archive-tmp"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.10</version>
<executions></executions>
<dependencies>
<dependency>
<groupId>javax.xml</groupId>
<artifactId>webservices-api</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
<configuration>
<sourceDestDir>${project.build.directory}/generated-sources/jaxws-wsimport</sourceDestDir>
<xnocompile>true</xnocompile>
<verbose>true</verbose>
<extension>true</extension>
<catalog>${basedir}/src/jax-ws-catalog.xml</catalog>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>netbeans</id>
<name>Netbeans</name>
<url>http://bits.nbextras.org/maven2</url>
</repository>
<repository>
<id>52north</id>
<!-- <name>Netbeans</name> -->
<url>http://incubator.52north.org/maven/maven-repo/releases</url>
</repository>
<repository>
<id>eviware</id>
<url>http://www.eviware.com/repository/maven2</url>
</repository>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/maven2</url>
</repository>
<repository>
<url>http://download.java.net/maven/2</url>
<id>metro</id>
<layout>default</layout>
<name>Repository for library[metro]</name>
</repository>
<repository>
<url>http://ftp.cica.es/mirrors/maven2</url>
<id>cica</id>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>2.5.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.netbeans</groupId>
<artifactId>jemmy</artifactId>
<version>2.2.7.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.swinglabs</groupId>
<artifactId>swing-worker</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.swinglabs</groupId>
<artifactId>swing-layout</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>jfree</groupId>
<artifactId>jcommon</artifactId>
<version>1.0.15</version>
</dependency>
<dependency>
<groupId>jfree</groupId>
<artifactId>jfreechart</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.10</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
</dependency>
<dependency>
<groupId>com.toedter</groupId>
<artifactId>jcalendar</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>com.jgoodies</groupId>
<artifactId>looks</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>axis2-kernel</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.rampart</groupId>
<artifactId>rampart-core</artifactId>
<version>1.4</version>
<!--
<exclusions>
<exclusion>
<artifactId>addressing</artifactId>
<groupId>org.apache.axis2</groupId>
</exclusion>
</exclusions>-->
</dependency>
<!--
<dependency>
<groupId>org.apache.axis2</groupId>
<artifactId>addressing</artifactId>
<version>1.4</version>
<type>mar</type>
</dependency>
-->
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>3.5.3</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>jexcelapi</groupId>
<artifactId>jxl</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.tango-project</groupId>
<artifactId>tango-icon-theme</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.5.6.SEC01</version>
</dependency>
<dependency>
<groupId>org.netbeans.external</groupId>
<artifactId>AbsoluteLayout</artifactId>
<version>RELEASE67</version>
</dependency>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>webservices-rt</artifactId>
<version>1.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
Jaime Hablutzel | 9-8964-0369
(tildes omitidas intencionalmente)
_________________________________________________________________
Sólo hay un loro experto en Windows 7 en todo el mundo. Y vive en Sietes ¡Cónocelo!
http://www.sietesunpueblodeexpertos.com/