You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tomascejka <de...@gmail.com> on 2008/09/16 14:12:18 UTC

What it is repository.xml file

Hi, 

I study Maven and scanning directory .m2 and find repository.xml file. When
I read it, there are list of description about plugins, jars and project,
which I manage via Maven.

There is not try to duplicate threads because I asked about the problem in
Hudson forum - 
http://www.nabble.com/Hudson-log----Fatal-Error--repository.xml%3A3%3A1%3A-Premature-end-of-file.-td18460386.html#a18587472
link . It was not right place to place this question.

What is this file for? 
When does it arise - during all builds or just new plugin or jar was be
added(downloaded)?

[INFO] Parsing file:/root/.m2/repository/repository.xml
[Fatal Error] repository.xml:3:1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.

I have found out that repository.xml is blank. I removed it a executed build
over project again. And problem has not occured already. But there is
question why the situation occured and how I can prevent this problem again.

There is another important problem. When this problem occured Hudson does
not send email about job failed.

Even some test do not executed. There is console output of java bundle:

started
Build failed before it gets to this module
finished: NOT_BUILT


Note:
I tried to find meaning of repository.xml. Only I found out, that file is
generated by Maven, when I read it
. If you have some links about more information. Please send me.

#enviroment
SUSE Sles 10
Hudson 1.229
Maven 2.0.9 


-- 
View this message in context: http://www.nabble.com/What-it-is-repository.xml-file-tp19510483p19510483.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: What it is repository.xml file

Posted by Tim Moloney <t....@verizon.net>.
I believe that it is being generated by the maven-obr-plugin.  Something 
that you built is an OSGi bundle.  When it was installed into your local 
repository, its metadata was added to repository.xml.  This allows your 
local Maven repository to also serve as an OSGi Bundle Repository (OBR).

During your builds look for lines like

...
[INFO] [bundle:install]
[INFO] Parsing file:/home/username/.m2/repository/repository.xml
[INFO] Installing 
org/apache/project/org.apache.project.bundle/0.1.0-SNAPSHOT/org.apache.project.bundle-0.1.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
...

I don't know why your repository.xml got mangled, if that's the case.  
If your repository.xml file is not mangled, the project metadata in 
repository.xml will tell you which projects create OSGi bundles.  If you 
don't want repository.xml, add -DobrRepository=NONE to the build command 
on these projects.  See 
http://cwiki.apache.org/FELIX/apache-felix-maven-obr-plugin.html for 
more information.

Tim


Brett Porter wrote:
> repository.xml is not a Maven file - is there a plugin running shortly
> before this in the output that is attempting to read it?
>
> - Brett
>
> 2008/9/16 tomascejka <de...@gmail.com>:
>   
>> Hi,
>>
>> I study Maven and scanning directory .m2 and find repository.xml file. When
>> I read it, there are list of description about plugins, jars and project,
>> which I manage via Maven.
>>
>> There is not try to duplicate threads because I asked about the problem in
>> Hudson forum -
>> http://www.nabble.com/Hudson-log----Fatal-Error--repository.xml%3A3%3A1%3A-Premature-end-of-file.-td18460386.html#a18587472
>> link . It was not right place to place this question.
>>
>> What is this file for?
>> When does it arise - during all builds or just new plugin or jar was be
>> added(downloaded)?
>>
>> [INFO] Parsing file:/root/.m2/repository/repository.xml
>> [Fatal Error] repository.xml:3:1: Premature end of file.
>> org.xml.sax.SAXParseException: Premature end of file.
>>
>> I have found out that repository.xml is blank. I removed it a executed build
>> over project again. And problem has not occured already. But there is
>> question why the situation occured and how I can prevent this problem again.
>>
>> There is another important problem. When this problem occured Hudson does
>> not send email about job failed.
>>
>> Even some test do not executed. There is console output of java bundle:
>>
>> started
>> Build failed before it gets to this module
>> finished: NOT_BUILT
>>
>>
>> Note:
>> I tried to find meaning of repository.xml. Only I found out, that file is
>> generated by Maven, when I read it
>> . If you have some links about more information. Please send me.
>>
>> #enviroment
>> SUSE Sles 10
>> Hudson 1.229
>> Maven 2.0.9
>>
>>
>> --
>> View this message in context: http://www.nabble.com/What-it-is-repository.xml-file-tp19510483p19510483.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: What it is repository.xml file

Posted by Brett Porter <br...@gmail.com>.
repository.xml is not a Maven file - is there a plugin running shortly
before this in the output that is attempting to read it?

- Brett

2008/9/16 tomascejka <de...@gmail.com>:
>
> Hi,
>
> I study Maven and scanning directory .m2 and find repository.xml file. When
> I read it, there are list of description about plugins, jars and project,
> which I manage via Maven.
>
> There is not try to duplicate threads because I asked about the problem in
> Hudson forum -
> http://www.nabble.com/Hudson-log----Fatal-Error--repository.xml%3A3%3A1%3A-Premature-end-of-file.-td18460386.html#a18587472
> link . It was not right place to place this question.
>
> What is this file for?
> When does it arise - during all builds or just new plugin or jar was be
> added(downloaded)?
>
> [INFO] Parsing file:/root/.m2/repository/repository.xml
> [Fatal Error] repository.xml:3:1: Premature end of file.
> org.xml.sax.SAXParseException: Premature end of file.
>
> I have found out that repository.xml is blank. I removed it a executed build
> over project again. And problem has not occured already. But there is
> question why the situation occured and how I can prevent this problem again.
>
> There is another important problem. When this problem occured Hudson does
> not send email about job failed.
>
> Even some test do not executed. There is console output of java bundle:
>
> started
> Build failed before it gets to this module
> finished: NOT_BUILT
>
>
> Note:
> I tried to find meaning of repository.xml. Only I found out, that file is
> generated by Maven, when I read it
> . If you have some links about more information. Please send me.
>
> #enviroment
> SUSE Sles 10
> Hudson 1.229
> Maven 2.0.9
>
>
> --
> View this message in context: http://www.nabble.com/What-it-is-repository.xml-file-tp19510483p19510483.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org