# Error while building from the source

**URL:** <https://discuss.elastic.co/t/error-while-building-from-the-source/8473>\
**Category:** Elasticsearch\
**Created:** [July 20, 2012, 5:00am UTC](https://discuss.elastic.co/t/error-while-building-from-the-source/8473 "2012-07-20T05:00:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yett](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@yett](https://discuss.elastic.co/u/yett)\
**Post date:** [July 20, 2012, 5:00am UTC](https://discuss.elastic.co/t/error-while-building-from-the-source/8473/1 "2012-07-20T05:00:12Z")

</div>

Hi Folks,

I am trying build es from source as guided in  
[http://www.elasticsearch.org/guide/appendix/building-from-source.html](http://www.elasticsearch.org/guide/appendix/building-from-source.html).

I downloaded the zipped and extracted to  
elasticsearch-elasticsearch-v0.19.8-37-g2daa263.

I go to to root directory where the pom.xml exists and executed mvn package  
-DskipTests. I hit the following error

C:\_personal\dev\elasticsearch-elasticsearch-2daa263\>mvn package -DskipTests  
[INFO] Scanning for projects...  
Downloading:  
[http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss](http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss)  
parent/7/oss-parent-7.pom  
Downloading:  
[http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/](http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/)  
ss-parent-7.pom  
[ERROR] The build could not read 1 project -\> [Help 1]  
[ERROR]  
[ERROR] The project org.elasticsearch:elasticsearch:0.19.9-SNAPSHOT  
(C:\_pers  
nal\dev\elasticsearch-elasticsearch-2daa263\pom.xml) has 1 error  
[ERROR] Non-resolvable parent POM: Could not transfer artifact  
org.sonatype  
oss:oss-parent:pom:7 from/to elasticsearch  
([http://elasticsearch.googlecode.com](http://elasticsearch.googlecode.com)  
svn/maven): [elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) and 'parent.relativePath' points  
at wr  
ng local POM @ line 26, column 13: Unknown host  
[elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) -\>  
[Help 2]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e  
swi  
ch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions,  
please re  
d the following articles:  
[ERROR] [Help 1]  
[http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi)  
gException  
[ERROR] [Help 2]  
[http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM](http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM)  
delException

I checked the pom.xml and found the following line there at 26.

```
<parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
</parent>

```

I am new to es and maven. Could the error be error on pom.xml? or Am I  
doing something wrong? I'd appreciate any help.

Thanks,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 20, 2012, 6:07am UTC](https://discuss.elastic.co/t/error-while-building-from-the-source/8473/2 "2012-07-20T06:07:41Z")

</div>

Did you define some settings in your maven installation (settings.xml)?  
Are you behind a firewall?

David

--

Le 20 juil. 2012 à 07:00, Ye Thura Thet [yethura.thet@gmail.com](mailto:yethura.thet@gmail.com) a écrit :

> Hi Folks,
> 
> I am trying build es from source as guided in [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/appendix/building-from-source.html).
> 
> I downloaded the zipped and extracted to elasticsearch-elasticsearch-v0.19.8-37-g2daa263.
> 
> I go to to root directory where the pom.xml exists and executed mvn package -DskipTests. I hit the following error
> 
> C:\_personal\dev\elasticsearch-elasticsearch-2daa263\>mvn package -DskipTests  
> [INFO] Scanning for projects...  
> Downloading: [http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss](http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss)  
> parent/7/oss-parent-7.pom  
> Downloading: [http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/](http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/)  
> ss-parent-7.pom  
> [ERROR] The build could not read 1 project -\> [Help 1]  
> [ERROR]  
> [ERROR] The project org.elasticsearch:elasticsearch:0.19.9-SNAPSHOT (C:\_pers  
> nal\dev\elasticsearch-elasticsearch-2daa263\pom.xml) has 1 error  
> [ERROR] Non-resolvable parent POM: Could not transfer artifact org.sonatype  
> oss:oss-parent:pom:7 from/to elasticsearch ([http://elasticsearch.googlecode.com](http://elasticsearch.googlecode.com)  
> svn/maven): [elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) and 'parent.relativePath' points at wr  
> ng local POM @ line 26, column 13: Unknown host [elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) -\>  
> [Help 2]  
> [ERROR]  
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swi  
> ch.  
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.  
> [ERROR]  
> [ERROR] For more information about the errors and possible solutions, please re  
> d the following articles:  
> [ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi)  
> gException  
> [ERROR] [Help 2] [http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM](http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM)  
> delException
> 
> I checked the pom.xml and found the following line there at 26.
> 
> ```
> <parent>
> <groupId>org.sonatype.oss</groupId>
> <artifactId>oss-parent</artifactId>
> <version>7</version>
> </parent>
> 
> ```
> 
> I am new to es and maven. Could the error be error on pom.xml? or Am I doing something wrong? I'd appreciate any help.
> 
> Thanks,

---

<div class="post-metadata">

**Author:** ![yett](https://avatars.discourse-cdn.com/v4/letter/y/ed655f/32.png) [@yett](https://discuss.elastic.co/u/yett)\
**Post date:** [July 20, 2012, 7:09am UTC](https://discuss.elastic.co/t/error-while-building-from-the-source/8473/3 "2012-07-20T07:09:43Z")

</div>

David,

Thanks for the tips. It was purely my ignorance. _Just like you said,_ the  
issue is in my maven configuration. I am behind the firewall and have not  
set the proxy setting. After specifying proper proxy setting in  
setting.xml, the code is being downloaded now.

Cheers,

Ye

On Friday, July 20, 2012 2:07:41 PM UTC+8, David Pilato wrote:

> Did you define some settings in your maven installation (settings.xml)?  
> Are you behind a firewall?
> 
> David
> 
> --
> 
> Le 20 juil. 2012 à 07:00, Ye Thura Thet a écrit :
> 
> > Hi Folks,
> > 
> > I am trying build es from source as guided in  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/appendix/building-from-source.html).
> > 
> > I downloaded the zipped and extracted to  
> > elasticsearch-elasticsearch-v0.19.8-37-g2daa263.
> > 
> > I go to to root directory where the pom.xml exists and executed mvn  
> > package -DskipTests. I hit the following error
> > 
> > C:\_personal\dev\elasticsearch-elasticsearch-2daa263\>mvn package  
> > -DskipTests  
> > [INFO] Scanning for projects...  
> > Downloading:  
> > [http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss](http://elasticsearch.googlecode.com/svn/maven/org/sonatype/oss/oss)  
> > parent/7/oss-parent-7.pom  
> > Downloading:  
> > [http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/](http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/)  
> > ss-parent-7.pom  
> > [ERROR] The build could not read 1 project -\> [Help 1]  
> > [ERROR]  
> > [ERROR] The project org.elasticsearch:elasticsearch:0.19.9-SNAPSHOT  
> > (C:\_pers  
> > nal\dev\elasticsearch-elasticsearch-2daa263\pom.xml) has 1 error  
> > [ERROR] Non-resolvable parent POM: Could not transfer artifact  
> > org.sonatype  
> > oss:oss-parent:pom:7 from/to elasticsearch (  
> > [http://elasticsearch.googlecode.com](http://elasticsearch.googlecode.com)  
> > svn/maven): [elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) and 'parent.relativePath'  
> > points at wr  
> > ng local POM @ line 26, column 13: Unknown host  
> > [elasticsearch.googlecode.com](http://elasticsearch.googlecode.com) -\>  
> > [Help 2]  
> > [ERROR]  
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the  
> > -e swi  
> > ch.  
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.  
> > [ERROR]  
> > [ERROR] For more information about the errors and possible solutions,  
> > please re  
> > d the following articles:  
> > [ERROR] [Help 1]  
> > [http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi](http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildi)  
> > gException  
> > [ERROR] [Help 2]  
> > [http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM](http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableM)  
> > delException
> > 
> > I checked the pom.xml and found the following line there at 26.
> > 
> > ```
> > <parent> 
> > <groupId>org.sonatype.oss</groupId> 
> > <artifactId>oss-parent</artifactId> 
> > <version>7</version> 
> > </parent> 
> > 
> > ```
> > 
> > I am new to es and maven. Could the error be error on pom.xml? or Am I  
> > doing something wrong? I'd appreciate any help.
> > 
> > Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:19am UTC](https://discuss.elastic.co/t/error-while-building-from-the-source/8473/4 "2017-07-06T03:19:43Z")

</div>


