You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by waaraa1331 <wa...@yahoo.com> on 2008/11/04 20:26:42 UTC

Error opening jar file and end-tag /meta

Hola,
I am trying to use archiva and maven together.  I would like to set it up so
that when a repository from maven is accessed, it goes through archiva to
access the repository.  I try am trying to do mvn install for one of my
projects but I am getting these error messages.  Below are the two I am
getting right now.  (I am pretty new to this so if it sounds like I don't
really know what I'm talking about, I most likely don't)

thanks for the help

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

C:\dev\sim\trunk>mvn install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building blah Device Load Simulator
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'com.blah:blah-core:pom:2.0:compile' is invalid. It will
be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
com.blah:blah-core at C:\Documents and
Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.pom
[WARNING] POM for 'com.blah:sys-net:pom:2.0:compile' is invalid. It will be
ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
com.blah:sys-net at C:\Documents and
Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.pom
[WARNING] POM for 'com.blah:sys-config:pom:2.0:compile' is invalid. It will
be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
com.blah:sys-config at C:\Documents and
Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.pom
[INFO] [compiler:compile]
[INFO] Compiling 70 source files to C:\dev\sim\trunk\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

error: error reading C:\Documents and
Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.jar;
error in opening zip file
error: error reading C:\Documents and
Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.jar;
error in opening zip file
error: error reading C:\Documents and
Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.jar;
error in opening zip file

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

2008-11-04 12:50:47,753 [http-8080-1] WARN 
org.apache.maven.archiva.consumers.database.ProjectModelToDatabaseConsumer 
- Unable to read project model
/export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom
: Unable to parse project xml
file:/export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom:
Error on line 6 of document  : The element type "meta" must be terminated by
the matching end-tag "</meta>". Nested exception: The element type "meta"
must be terminated by the matching end-tag "</meta>".



-- 
View this message in context: http://www.nabble.com/Error-opening-jar-file-and-end-tag--meta-tp20329252p20329252.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Error opening jar file and end-tag /meta

Posted by waaraa1331 <wa...@yahoo.com>.
I'm afraid I'm not sure what your looking for...do you want a config file or
something else?


Maria Odea Ching-5 wrote:
> 
> Hi,
> 
> Hmm, looks like a corrupted pom.. Could you try deleting the artifact(s)
> (and everything associated with it -- pom, metadata and checksum files)
> causing the error?
> Also, how did you configure Archiva to do the proxying?
> 
> Thanks,
> Deng
> 
> On Wed, Nov 5, 2008 at 3:26 AM, waaraa1331 <wa...@yahoo.com> wrote:
> 
>>
>> Hola,
>> I am trying to use archiva and maven together.  I would like to set it up
>> so
>> that when a repository from maven is accessed, it goes through archiva to
>> access the repository.  I try am trying to do mvn install for one of my
>> projects but I am getting these error messages.  Below are the two I am
>> getting right now.  (I am pretty new to this so if it sounds like I don't
>> really know what I'm talking about, I most likely don't)
>>
>> thanks for the help
>>
>>
>> -----------------------------------------------------------------------------------------------------
>>
>> C:\dev\sim\trunk>mvn install -e
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building blah Device Load Simulator
>> [INFO]    task-segment: [install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [WARNING] POM for 'com.blah:blah-core:pom:2.0:compile' is invalid. It
>> will
>> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
>> com.blah:blah-core at C:\Documents and
>> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.pom
>> [WARNING] POM for 'com.blah:sys-net:pom:2.0:compile' is invalid. It will
>> be
>> ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
>> com.blah:sys-net at C:\Documents and
>> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.pom
>> [WARNING] POM for 'com.blah:sys-config:pom:2.0:compile' is invalid. It
>> will
>> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
>> com.blah:sys-config at C:\Documents and
>>
>> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.pom
>> [INFO] [compiler:compile]
>> [INFO] Compiling 70 source files to C:\dev\sim\trunk\target\classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>>
>> error: error reading C:\Documents and
>> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.jar;
>> error in opening zip file
>> error: error reading C:\Documents and
>> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.jar;
>> error in opening zip file
>> error: error reading C:\Documents and
>>
>> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.jar;
>> error in opening zip file
>>
>>
>> -----------------------------------------------------------------------------------------------------
>>
>> 2008-11-04 12:50:47,753 [http-8080-1] WARN
>> org.apache.maven.archiva.consumers.database.ProjectModelToDatabaseConsumer
>> - Unable to read project model
>>
>> /export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom
>> : Unable to parse project xml
>>
>> file:/export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom:
>> Error on line 6 of document  : The element type "meta" must be terminated
>> by
>> the matching end-tag "</meta>". Nested exception: The element type "meta"
>> must be terminated by the matching end-tag "</meta>".
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-opening-jar-file-and-end-tag--meta-tp20329252p20329252.html
>> Sent from the archiva-users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-opening-jar-file-and-end-tag--meta-tp20329252p20389718.html
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Error opening jar file and end-tag /meta

Posted by Maria Odea Ching <oc...@apache.org>.
Hi,

Hmm, looks like a corrupted pom.. Could you try deleting the artifact(s)
(and everything associated with it -- pom, metadata and checksum files)
causing the error?
Also, how did you configure Archiva to do the proxying?

Thanks,
Deng

On Wed, Nov 5, 2008 at 3:26 AM, waaraa1331 <wa...@yahoo.com> wrote:

>
> Hola,
> I am trying to use archiva and maven together.  I would like to set it up
> so
> that when a repository from maven is accessed, it goes through archiva to
> access the repository.  I try am trying to do mvn install for one of my
> projects but I am getting these error messages.  Below are the two I am
> getting right now.  (I am pretty new to this so if it sounds like I don't
> really know what I'm talking about, I most likely don't)
>
> thanks for the help
>
>
> -----------------------------------------------------------------------------------------------------
>
> C:\dev\sim\trunk>mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building blah Device Load Simulator
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING] POM for 'com.blah:blah-core:pom:2.0:compile' is invalid. It will
> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
> com.blah:blah-core at C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.pom
> [WARNING] POM for 'com.blah:sys-net:pom:2.0:compile' is invalid. It will be
> ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
> com.blah:sys-net at C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.pom
> [WARNING] POM for 'com.blah:sys-config:pom:2.0:compile' is invalid. It will
> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
> com.blah:sys-config at C:\Documents and
>
> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.pom
> [INFO] [compiler:compile]
> [INFO] Compiling 70 source files to C:\dev\sim\trunk\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> error: error reading C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.jar;
> error in opening zip file
> error: error reading C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.jar;
> error in opening zip file
> error: error reading C:\Documents and
>
> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.jar;
> error in opening zip file
>
>
> -----------------------------------------------------------------------------------------------------
>
> 2008-11-04 12:50:47,753 [http-8080-1] WARN
> org.apache.maven.archiva.consumers.database.ProjectModelToDatabaseConsumer
> - Unable to read project model
>
> /export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom
> : Unable to parse project xml
>
> file:/export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom:
> Error on line 6 of document  : The element type "meta" must be terminated
> by
> the matching end-tag "</meta>". Nested exception: The element type "meta"
> must be terminated by the matching end-tag "</meta>".
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Error-opening-jar-file-and-end-tag--meta-tp20329252p20329252.html
> Sent from the archiva-users mailing list archive at Nabble.com.
>
>

Re: Error opening jar file and end-tag /meta

Posted by waaraa1331 <wa...@yahoo.com>.
I don't know what you mean...are you asking for a certain configuration file
or something else?


waaraa1331 wrote:
> 
> Hola,
> I am trying to use archiva and maven together.  I would like to set it up
> so that when a repository from maven is accessed, it goes through archiva
> to access the repository.  I try am trying to do mvn install for one of my
> projects but I am getting these error messages.  Below are the two I am
> getting right now.  (I am pretty new to this so if it sounds like I don't
> really know what I'm talking about, I most likely don't)
> 
> thanks for the help
> 
> -----------------------------------------------------------------------------------------------------
> 
> C:\dev\sim\trunk>mvn install -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building blah Device Load Simulator
> [INFO]    task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [WARNING] POM for 'com.blah:blah-core:pom:2.0:compile' is invalid. It will
> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
> com.blah:blah-core at C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.pom
> [WARNING] POM for 'com.blah:sys-net:pom:2.0:compile' is invalid. It will
> be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for project
> com.blah:sys-net at C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.pom
> [WARNING] POM for 'com.blah:sys-config:pom:2.0:compile' is invalid. It
> will be ignored for artifact resolution. Reason: Not a v4.0.0 POM. for
> project com.blah:sys-config at C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.pom
> [INFO] [compiler:compile]
> [INFO] Compiling 70 source files to C:\dev\sim\trunk\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> 
> error: error reading C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\blah-core\2.0\blah-core-2.0.jar;
> error in opening zip file
> error: error reading C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-net\2.0\sys-net-2.0.jar;
> error in opening zip file
> error: error reading C:\Documents and
> Settings\name.blah\.m2\repository\com\blah\sys-config\2.0\sys-config-2.0.jar;
> error in opening zip file
> 
> -----------------------------------------------------------------------------------------------------
> 
> 2008-11-04 12:50:47,753 [http-8080-1] WARN 
> org.apache.maven.archiva.consumers.database.ProjectModelToDatabaseConsumer 
> - Unable to read project model
> /export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom
> : Unable to parse project xml
> file:/export/home/archiva/tomcat/data/repositories/internal/com/enfora/enfora-core/2.0/enfora-core-2.0.pom:
> Error on line 6 of document  : The element type "meta" must be terminated
> by the matching end-tag "</meta>". Nested exception: The element type
> "meta" must be terminated by the matching end-tag "</meta>".
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-opening-jar-file-and-end-tag--meta-tp20329252p20389717.html
Sent from the archiva-users mailing list archive at Nabble.com.