Maven build problem

Hi everybody,

I am not sure what is wrong with my pom.xml file, but I am getting
the following error when I execute "mvn clean install" from the
command line.

Project ID: org.elasticsearch:elasticsearch

Reason: Error getting POM for 'org.elasticsearch:elasticsearch' from
the reposit
ory: Unable to read local copy of metadata: Cannot read metadata from
'C:.m2\re
pository\org\elasticsearch\elasticsearch\0.16.0-SNAPSHOT\maven-
metadata-sonatype
-snapshots.xml': expected START_TAG or END_TAG not TEXT (position:
TEXT seen ...
javadoc</... @14:30)
org.elasticsearch:elasticsearch:pom:0.16.0-SNAPSHOT

for project org.elasticsearch:elasticsearch

Here are my dependency and repository for elastic search:

................................... org.elasticsearch elasticsearch 0.16.0-SNAPSHOT
<repositories>
	<repository>
		<id>oss.sonatype.org</id>
		<name>OSS Sonatype</name>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
		<url>https://oss.sonatype.org/content/repositories/releases/</url>
	</repository>
	<repository>
		<id>sonatype-snapshots</id>
        <name>Sonatype Snapshots Repository</name>
        <url>http://oss.sonatype.org/content/repositories/snapshots/</

url>

true



maven2-repository.dev.java.net
Java.net Repository for Maven
http://download.java.net/maven/2/
default

</repositories>

Could anyone please help me resolve that error, if you have seen it
before?

Thank you,
Eugene.

I found a workaround by removing snapshotVersions tag from "'C:
.m2\repository\org\elasticsearch\elasticsearch\0.16.0-SNAPSHOT\maven-
metadata sonatype-snapshots.xml" file. If anyone in this group ever
runs into that problem, please follow this link:

http://www.e-programmers.com/63988-maven-build-problem-ldquounable-to-read-local-copy-of-metadatardquo.html

I hope it helps. If you know any other solution, please feel free to
share.

Thanks,
Eugene.

On Mar 18, 5:54 pm, eugene efur...@gmail.com wrote:

Hi everybody,

I am not sure what is wrong with my pom.xml file, but I am getting
the following error when I execute "mvn clean install" from the
command line.

Project ID: org.elasticsearch:elasticsearch

Reason: Error getting POM for 'org.elasticsearch:elasticsearch' from
the reposit
ory: Unable to read local copy of metadata: Cannot read metadata from
'C:.m2\re
pository\org\elasticsearch\elasticsearch\0.16.0-SNAPSHOT\maven-
metadata-sonatype
-snapshots.xml': expected START_TAG or END_TAG not TEXT (position:
TEXT seen ...
javadoc</... @14:30)
org.elasticsearch:elasticsearch:pom:0.16.0-SNAPSHOT

for project org.elasticsearch:elasticsearch

Here are my dependency and repository for Elasticsearch:

................................... org.elasticsearch elasticsearch 0.16.0-SNAPSHOT
    <repositories>
            <repository>
                    <id>oss.sonatype.org</id>
                    <name>OSS Sonatype</name>
                    <releases>
                            <enabled>true</enabled>
                    </releases>
                    <snapshots>
                            <enabled>false</enabled>
                    </snapshots>
                    <url>https://oss.sonatype.org/content/repositories/releases/</url>
            </repository>
            <repository>
                    <id>sonatype-snapshots</id>
            <name>Sonatype Snapshots Repository</name>
            <url>http://oss.sonatype.org/content/repositories/snapshots/</

url>

true



maven2-repository.dev.java.net
Java.net Repository for Maven
http://download.java.net/maven/2/
default

    </repositories>

Could anyone please help me resolve that error, if you have seen it
before?

Thank you,
Eugene.