[Geoserver-devel] GeoServer 1.7.x build error

Hi,

I’m trying to build GeoServer 1.7.x with maven (2.0.9) at ubuntu 9.04, but I get the build error below when I use “mvn install”

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /config.build.xml [config]: Failed to execute.

Unable to locate configuration: /home/user/workspace/geoserver/src/web/app/minimal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 46 minutes 35 seconds
[INFO] Finished at: Fri Jul 17 13:14:44 BRT 2009
[INFO] Final Memory: 152M/217M
[INFO] ------------------------------------------------------------------------

I tried to build both trunk and branch (1.7.x) but the same message appears. I tried to use “mvn install -Pweb2” and it didn’t work either. Can anyone help me?

Thanks!

Luis Amorim

Luis Amorim ha scritto:

Hi,

I'm trying to build GeoServer 1.7.x with maven (2.0.9) at ubuntu 9.04, but I get the build error below when I use "mvn install"

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /config.build.xml [config]: Failed to execute.

Unable to locate configuration: /home/user/workspace/geoserver/src/web/app/minimal

web/app? it should be web/minimal instead.
Not sure why do you have the extra app in the mix, did you set any
extra variable and the like?

"app" was a directory present in the web module on trunk, and I see
you're trying -Pweb2 which also is about building an old version
of trunk. Maybe you're mixing up instructions between the 1.7.x
and the trunk series?

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi,

I tried again “mvn install” at branch 1.7.x and got the following message:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /config.build.xml [config]: Failed to execute.

Unable to locate configuration: /home/user/workspace/geoserver/src/web/minimal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 minutes 47 seconds
[INFO] Finished at: Sat Jul 25 14:37:30 BRT 2009
[INFO] Final Memory: 156M/236M
[INFO] ------------------------------------------------------------------------

At least now I get the /web/minimal instead of “app”; but still doesn`t work.

““app” was a directory present in the web module on trunk, and I see
you’re trying -Pweb2 which also is about building an old version
of trunk. Maybe you’re mixing up instructions between the 1.7.x
and the trunk series?”

I tried -Pweb2 just at trunk.

Thanks!

Luis.

2009/7/24 Andrea Aime <aaime@anonymised.com…>

Luis Amorim ha scritto:

Hi,

I’m trying to build GeoServer 1.7.x with maven (2.0.9) at ubuntu 9.04, but I get the build error below when I use “mvn install”

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /config.build.xml [config]: Failed to execute.

Unable to locate configuration: /home/user/workspace/geoserver/src/web/app/minimal

web/app? it should be web/minimal instead.
Not sure why do you have the extra app in the mix, did you set any
extra variable and the like?

“app” was a directory present in the web module on trunk, and I see
you’re trying -Pweb2 which also is about building an old version
of trunk. Maybe you’re mixing up instructions between the 1.7.x
and the trunk series?

Cheers
Andrea


Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Luis F. Amorim França ha scritto:

Hi,

I tried again "mvn install" at branch 1.7.x and got the following message:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to execute: Executing Ant script: /config.build.xml [config]: Failed to execute.

Unable to locate configuration: /home/user/workspace/geoserver/src/web/minimal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 minutes 47 seconds
[INFO] Finished at: Sat Jul 25 14:37:30 BRT 2009
[INFO] Final Memory: 156M/236M
[INFO] ------------------------------------------------------------------------

At least now I get the /web/minimal instead of "app"; but still doesn`t work.

Hmmm... so yo don't have the minimal directory in the web folder?
It's a svn external, should be checked out by svn automatically.

To double check I just did a:

svn co http://svn.codehaus.org/geoserver/branches/1.7.x geoserver

and got this output:

A geoserver/doc
A geoserver/doc/en
A geoserver/doc/en/theme
A geoserver/doc/en/theme/_static
A geoserver/doc/en/theme/_static/doctools.js
A geoserver/doc/en/theme/_static/searchtools.js
A geoserver/doc/en/theme/_static/blueprint
A geoserver/doc/en/theme/_static/blueprint/LICENSE
A geoserver/doc/en/theme/_static/blueprint/print.css
A geoserver/doc/en/theme/_static/blueprint/ie.css
A geoserver/doc/en/theme/_static/blueprint/AUTHORS
A geoserver/doc/en/theme/_static/blueprint/screen.css
A geoserver/doc/en/theme/_static/GeoServer_500.png
A geoserver/doc/en/theme/_static/jquery.js
A geoserver/doc/en/theme/_static/default.css
A geoserver/doc/en/theme/_static/chrome
A geoserver/doc/en/theme/_static/chrome/search_icon_green.png
A geoserver/doc/en/theme/_static/chrome/header-bg.png
...

Caricamento di oggetto esterno in 'geoserver/data/citewfs-1.1-h2/featureTypes/sf_PrimitiveGeoFeature'
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_PrimitiveGeoFeature/info.xml
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_PrimitiveGeoFeature/schema.xsd
L'oggetto esterno è stato estratto alla revisione 12971.

Caricamento di oggetto esterno in 'geoserver/data/citewfs-1.1-h2/featureTypes/sf_AggregateGeoFeature'
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_AggregateGeoFeature/info.xml
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_AggregateGeoFeature/schema.xsd
L'oggetto esterno è stato estratto alla revisione 12971.

Caricamento di oggetto esterno in 'geoserver/data/citewfs-1.1-h2/featureTypes/sf_EntitéGénérique'
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_EntitéGénérique/info.xml
A geoserver/data/citewfs-1.1-h2/featureTypes/sf_EntitéGénérique/schema.xsd
L'oggetto esterno è stato estratto alla revisione 12971.

Caricamento di oggetto esterno in 'geoserver/data/citewfs-1.1-h2/styles'
A geoserver/data/citewfs-1.1-h2/styles/normal.sld
L'oggetto esterno è stato estratto alla revisione 12971.

Caricamento di oggetto esterno in 'geoserver/src/web/minimal'
A geoserver/src/web/minimal/featureTypes
A geoserver/src/web/minimal/plugIns
A geoserver/src/web/minimal/services.xml
A geoserver/src/web/minimal/styles
A geoserver/src/web/minimal/styles/raster.sld
A geoserver/src/web/minimal/styles/default_line.sld
A geoserver/src/web/minimal/styles/default_polygon.sld
A geoserver/src/web/minimal/styles/default_point.sld
A geoserver/src/web/minimal/demo
A geoserver/src/web/minimal/images
A geoserver/src/web/minimal/images/deleteRed.png
A geoserver/src/web/minimal/images/gs.ico
A geoserver/src/web/minimal/images/rasterLegend.png
A geoserver/src/web/minimal/images/delete.png
A geoserver/src/web/minimal/images/up.png
A geoserver/src/web/minimal/images/down.png
A geoserver/src/web/minimal/images/colorpicker.jpg
A geoserver/src/web/minimal/images/gs.gif
A geoserver/src/web/minimal/mbdemos
A geoserver/src/web/minimal/capabilities
A geoserver/src/web/minimal/catalog.xml
A geoserver/src/web/minimal/data
A geoserver/src/web/minimal/validation
A geoserver/src/web/minimal/coverages
A geoserver/src/web/minimal/templates
L'oggetto esterno è stato estratto alla revisione 12971.

Caricamento di oggetto esterno in 'geoserver/data/citewfs-1.1-h2-xlink/featureTypes/sf_PrimitiveGeoFeature'
A geoserver/data/citewfs-1.1-h2-xlink/featureTypes/sf_PrimitiveGeoFeature/info.xml
A geoserver/data/citewfs-1.1-h2-xlink/featureTypes/sf_PrimitiveGeoFeature/schema.xsd
L'oggetto esterno è stato estratto alla revisione 12971.

...

Caricamento di oggetto esterno in 'geoserver/doc/en/developer/source/subversion'
A geoserver/doc/en/developer/source/subversion/config
L'oggetto esterno è stato estratto alla revisione 33627.

Estratta revisione 12971.

And then:

cd geoserver/src
mvn install
aaime@anonymised.com:/tmp/geoserver/src$ mvn install
[INFO] Scanning for projects...
[WARNING] Overriding profile: 'geosearch' (source: pom) with new instance from source: pom
[INFO] Reactor build order:
[INFO] GeoServer
[INFO] GeoServer Maven Plugins
[INFO] Configuration Deployment PlugIn
[INFO] GeoServer Maven Archetypes
[INFO] GeoServer WFS Output Format Archetype
[INFO] Core Platform Module
[INFO] Data Module
[INFO] Open Web Service Module
[INFO] Main Module
[INFO] Web Coverage Service Module
[INFO] Web Coverage Service 1.1.1 Module
[INFO] Validation Module
[INFO] Web Feature Service Module
[INFO] Web Map Service Module
[INFO] Geoserver REST Support Code
[INFO] GeoWebCache (GWC) Module
[INFO] Web Application Module
[INFO] Community Space
[INFO] GeoServer Extensions
...

[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] GeoServer ............................................. SUCCESS [33.684s]
[INFO] GeoServer Maven Plugins ............................... SUCCESS [0.278s]
[INFO] Configuration Deployment PlugIn ....................... SUCCESS [3.124s]
[INFO] GeoServer Maven Archetypes ............................ SUCCESS [0.059s]
[INFO] GeoServer WFS Output Format Archetype ................. SUCCESS [0.254s]
[INFO] Core Platform Module .................................. SUCCESS [3.645s]
[INFO] Data Module ........................................... SUCCESS [57.848s]
[INFO] Open Web Service Module ............................... SUCCESS [13.230s]
[INFO] Main Module ........................................... SUCCESS [23.642s]
[INFO] Web Coverage Service Module ........................... SUCCESS [23.833s]
[INFO] Web Coverage Service 1.1.1 Module ..................... SUCCESS [36.825s]
[INFO] Validation Module ..................................... SUCCESS [0.961s]
[INFO] Web Feature Service Module ............................ SUCCESS [34.207s]
[INFO] Web Feature Service Module ............................ SUCCESS [26.053s]
[INFO] Web Map Service Module ................................ SUCCESS [1:05.780s]
[INFO] Geoserver REST Support Code ........................... SUCCESS [9.292s]
[INFO] GeoWebCache (GWC) Module .............................. SUCCESS [2.708s]
[INFO] Web Application Module ................................ SUCCESS [25.329s]
[INFO] Community Space ....................................... SUCCESS [0.066s]
[INFO] GeoServer Extensions .................................. SUCCESS [0.100s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 2 seconds
[INFO] Finished at: Sat Jul 25 20:09:36 CEST 2009
[INFO] Final Memory: 65M/183M
[INFO] ------------------------------------------------------------------------

I guess there is something different on your system, but I don't know what. I'm on Ubuntu 9.04, svn 1.5.4, java 1.5.0_18, maven 2.1.0

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

2009/7/25 Andrea Aime <aaime@anonymised.com>

Hmmm… so yo don’t have the minimal directory in the web folder?
It’s a svn external, should be checked out by svn automatically.

To double check I just did a:

svn co http://svn.codehaus.org/geoserver/branches/1.7.x geoserver

I did that again and the minimal directory isn’t there, I just have the /src and pom.xml at web folder. I also noticed that this message appears after the checkout:

svn: Can’t convert string from ‘UTF-8’ to native encoding:
svn: geoserver/data/citewfs-1.1/featureTypes/sf_Entit?\195?\169G?\195?\169n?\195?\169rique

Could this be the problem? I guess not…

I guess there is something different on your system, but I don’t know what. I’m on Ubuntu 9.04, svn 1.5.4, java 1.5.0_18, maven 2.1.0

I’m on Ubuntu 9.04, svn 1.5.4, java 1.6.0_0, and maven 2.0.9

Thanks!

Luis.

Luis F. Amorim França ha scritto:

2009/7/25 Andrea Aime <aaime@anonymised.com <mailto:aaime@anonymised.com>>

    Hmmm... so yo don't have the minimal directory in the web folder?
    It's a svn external, should be checked out by svn automatically.

    To double check I just did a:

    svn co http://svn.codehaus.org/geoserver/branches/1.7.x geoserver

I did that again and the minimal directory isn't there, I just have the /src and pom.xml at web folder. I also noticed that this message appears after the checkout:

svn: Can't convert string from 'UTF-8' to native encoding:
svn: geoserver/data/citewfs-1.1/featureTypes/sf_Entit?\195?\169G?\195?\169n?\195?\169rique

Could this be the problem? I guess not....

It most likely is instead, svn will stop checking out there instead of going on.

I guess your OS is not setup to work with UTF8, and the above file just
breaks it. Pity, we need to keep those files in order to pass the OGC
conformance tests.
Depending on your OS you'll need to do different thing in order
to enable UTF-8 support.
Lately I've been working with XP and Ubuntu 9.04, both support the
accented chars out of the box for me.

aaime@anonymised.com:~$ echo $LANG
it_IT.UTF-8

I'm using ext4, but I also checked on a Ubuntu 7.10 server sitting
under my desk and it can handle the checkout fine as well. I have the LANG set to it_IT.UTF-8 there too thought.

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

2009/7/26 Andrea Aime <aaime@anonymised.com>

It most likely is instead, svn will stop checking out there instead of going on.

I guess your OS is not setup to work with UTF8, and the above file just
breaks it. Pity, we need to keep those files in order to pass the OGC
conformance tests.

You were right.

Last month I installed a compiler here and had to modify LANG, but I did it wrong, typing “export LANG=C”. Now I used the “locale” command and noticed that the problem was the LC_ALL variable, not LANG; so I modified it to “LC_ALL=pt_BR.UTF-8” and both compiler and svn worked.

Thanks Andrea!

Luis.