Building Calipso

60 views
Skip to first unread message

Leon Harper

unread,
Nov 7, 2012, 4:56:24 AM11/7/12
to calips...@googlegroups.com
Hello,

I have attempted to build your software using the instructions given in the documentation on CentOS6

When building these errors are returned

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/usr/lib/calipso/svn/calipso-parent/calipso-common/src/test/java/gr/abiss/calipso/CalipsoTest.java:[98,22] cannot find symbol
symbol  : method storeMetadata(gr.abiss.calipso.domain.Metadata)
location: interface gr.abiss.calipso.CalipsoService

/usr/lib/calipso/svn/calipso-parent/calipso-common/src/test/java/gr/abiss/calipso/CalipsoTest.java:[100,36] cannot find symbol
symbol  : method loadMetadata(long)
location: interface gr.abiss.calipso.CalipsoService

Do you have any further information as to why this build might be failing. I have attempted to follow the instructions given in the documentation here:


However the link to the sv checkout fails http://calipso.googlecode.com/svn/trunk/calipso-war

So I attempted to check it out here as in the updated instructions

# svn checkout http://calipso.googlecode.com/svn/trunk/ calipso-read-only

and then here


which did

Java is installed

# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (rhel-1.50.1.11.5.el6_3-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

mvn is installed

# mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)
Java version: 1.6.0_24
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux" version: "2.6.32-279.11.1.el6.x86_64" arch: "amd64" Family: "unix"

ant is installed

# ant -version
Apache Ant version 1.7.1 compiled on August 24 2010

svn is installed

# svn --version
svn, version 1.6.11 (r934486)
   compiled Jun 23 2012, 00:44:03

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme

hsql is running

[root@184611 java]# java -cp hsqldb.jar org.hsqldb.Server -database.0 file:mydb -dbname.0 xdb
[Server@761a626f]: [Thread[main,5,main]]: checkRunning(false) entered
[Server@761a626f]: [Thread[main,5,main]]: checkRunning(false) exited
[Server@761a626f]: Startup sequence initiated from main() method
[Server@761a626f]: Loaded properties from [/usr/share/java/server.properties]
[Server@761a626f]: Initiating startup sequence...
[Server@761a626f]: Server socket opened successfully in 5 ms.
[Server@761a626f]: Database [index=0, id=0, db=file:mydb, alias=xdb] opened sucessfully in 154 ms.
[Server@761a626f]: Startup sequence completed in 159 ms.
[Server@761a626f]: 2012-11-07 09:34:31.277 HSQLDB server 1.8.0 is online
[Server@761a626f]: To close normally, connect and execute SHUTDOWN SQL
[Server@761a626f]: From command line, use [Ctrl]+[C] to abort abruptly

Any information relating to what further steps I could take would be gratefully received.

Emmanouil Batsis (Manos)

unread,
Nov 7, 2012, 5:08:34 AM11/7/12
to calips...@googlegroups.com
On 11/07/2012 11:56 AM, Leon Harper wrote:
> I have attempted to build your software using the instructions given in
> the documentation on CentOS6
>
> When building these errors are returned

I'm afraid the doc is outdated. Please checkout

http://calipso.googlecode.com/svn/calipso-parent

and follow the instructions in

http://code.google.com/p/calipso/source/browse/calipso-parent/README.txt

Please let us know if you find any issues.

Maons

Leon Harper

unread,
Nov 7, 2012, 5:39:05 AM11/7/12
to calips...@googlegroups.com
Thank you very much. I will give that a try.

Leon Harper

unread,
Nov 7, 2012, 6:29:56 AM11/7/12
to calips...@googlegroups.com
Hello,

I have attempt to build again but still get the error below when running the command

mvn clean install -DskipTests=true

[INFO] Compilation failure

/usr/lib/calipso/calipso-parent/calipso-common/src/test/java/gr/abiss/calipso/CalipsoTest.java:[98,22] cannot find symbol
symbol  : method storeMetadata(gr.abiss.calipso.domain.Metadata)
location: interface gr.abiss.calipso.CalipsoService

/usr/lib/calipso/calipso-parent/calipso-common/src/test/java/gr/abiss/calipso/CalipsoTest.java:[100,36] cannot find symbol
symbol  : method loadMetadata(long)
location: interface gr.abiss.calipso.CalipsoService

# Build and run
# ============================================
# 1) Rename this file to "build.properties"
#
# 2) Open a console and navigate to the directory this file lies in:
#       cd /path/to/calipso-parent
#
# 3) Install JARs missing from Maven central. If this produces an error edit the "mvn.executable" property bellow (e.g. to point to mvn.bat for windows)
#       ant mvn-add-jars
#
# 4) Eclipse IDE users will want this. You should know how to import multimodule projects in Eclipse.
#       mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse -DdownloadSources=true -DdownloadJavadocs=true
#
# 5) Build the project:
#       mvn clean install -DskipTests=true

The build.properties  file actually already exists and contains conflicting instructions

# ============================================
# HOWTO BUILD AND RUN
# ============================================
# --------------------------------------------
# For Jetty/HSQLDB (great for development, demos etc):
# --------------------------------------------
# Leave calipso.home below commented out, use the command line
# to navigate into the project folder and run the following commands:
#
#       ant mvn-add-jars
#       mvn jetty:run -DskipTests=true
#
# The first line adds some jars in your local maven repo to be able to build
# the project. The second builds the project and launches it on the Jetty
# servlet container and HSQLDB. The last one is only needed for Eclipse IDE
# users, you should refresh after executing it. Finally, to access Calipso fire
# up a browser and go to http://localhost:8080/calipso-war/
#
# To reload the webapp after making changes in your IDE just hit "enter" while
# in the Jetty console. To setup debugging (JPDA) for Eclipse/Netbeans checkout:
#


If I try this the following error is returned

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------

Would it be possible to clarify which build properties file should be used, and also which instructions? The readme.txt file or the previously existing build.properties file?

Emmanouil Batsis (Manos)

unread,
Nov 7, 2012, 9:04:50 AM11/7/12
to calips...@googlegroups.com
On 11/07/2012 01:29 PM, Leon Harper wrote:
> Hello,
>
> I have attempt to build again but still get the error below when running
> the command
>
> mvn clean install -DskipTests=true

ah, right. please use

mvn clean install -Dmaven.test.skip=true

instead.

Manos


Leon Harper

unread,
Nov 7, 2012, 10:13:55 AM11/7/12
to calips...@googlegroups.com
Perfect! That works. Thank you very much.
Reply all
Reply to author
Forward
0 new messages