Re: build problem

2010-03-02 Thread kolaloka

Hi Csaba,

This is what I find in the repository:

bal...@black:~/.m2/repository/com/oracle$ find
.
./sdoapi
./sdoapi/11.2.0
./sdoapi/11.2.0/sdoapi-11.2.0.jar
./sdoapi/maven-metadata-local.xml
./xdb
./xdb/11.2.0
./xdb/11.2.0/xdb-11.2.0.jar
./xdb/maven-metadata-local.xml
./sdotype
./sdotype/11.2.0
./sdotype/11.2.0/sdotype-11.2.0.jar
./sdotype/maven-metadata-local.xml
./xmlparserv2
./xmlparserv2/11.2.0
./xmlparserv2/11.2.0/xmlparserv2-11.2.0.jar
./xmlparserv2/maven-metadata-local.xml
./sdoutl
./sdoutl/11.2.0
./sdoutl/11.2.0/sdoutl-11.2.0.jar
./sdoutl/maven-metadata-local.xml
./sdooutl
./sdooutl/11.2.0
./georasterapi
./georasterapi/11.2.0
./georasterapi/11.2.0/georasterapi-11.2.0.jar
./georasterapi/maven-metadata-local.xml
./dummy_spatial
./dummy_spatial/8.1.8
./dummy_spatial/8.1.8/dummy_spatial-8.1.8.jar.sha1
./dummy_spatial/8.1.8/dummy_spatial-8.1.8.pom.sha1
./dummy_spatial/8.1.8/dummy_spatial-8.1.8.pom
./dummy_spatial/8.1.8/dummy_spatial-8.1.8.jar
./ojdbc6
./ojdbc6/11.2.0
./ojdbc6/11.2.0/ojdbc6-11.2.0.jar
./ojdbc6/maven-metadata-local.xml

and this is the output:

bal...@black:/usr/local/src/geotools-2.5.8$ mvn compile
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Geotools
[INFO]   Build tools for Geotools 2
[INFO]   Maven plugins for Geotools 2
...
[INFO]

[INFO] Building Geotools
[INFO]task-segment: [compile]
[INFO]

[INFO] No goals needed for project - skipping
[INFO]

[INFO] Building Build tools for Geotools 2
[INFO]task-segment: [compile]
[INFO]

[INFO] No goals needed for project - skipping
[INFO]

[INFO] Building Maven plugins for Geotools 2
[INFO]task-segment: [compile]
[INFO]

[INFO] No goals needed for project - skipping
[INFO]

[INFO] Building Geotools Archetype
[INFO]task-segment: [compile]
[INFO]

[INFO] [plugin:descriptor {execution: default-descriptor}]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 0 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[WARNING] 
[WARNING] ***
[WARNING] Deprecation Alert:
[WARNING] No mojo descriptors were found in this project which has a
packaging type of maven-plugin.
[WARNING] In future versions of the plugin tools, this will fail the build.
[WARNING] If this project is an archetype, change the packaging type from
maven-plugin to maven-archetype.
[WARNING] 
 many similar blocks follow
[INFO]

[INFO] Building imagemosaic-jdbc module
[INFO]task-segment: [compile]
[INFO]

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] snapshot org.h2database:h2:1.0-SNAPSHOT: checking for updates from
maven2-repository.dev.java.net
[INFO] snapshot org.h2database:h2:1.0-SNAPSHOT: checking for updates from
osgeo
[INFO] snapshot org.h2database:h2:1.0-SNAPSHOT: checking for updates from
opengeo
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 31 source files to
/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/target/classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[25,31]
package oracle.spatial.georaster does not exist

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[26,31]
package oracle.spatial.georaster does not exist

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[27,31]
package oracle.spatial.georaster does not exist

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[29,17]
package oracle.sql does not exist


Re: build problem

2010-03-02 Thread kolaloka

Hi Eduardo,

Seems like you are missing one or more dependencies in the pom for  
this project, or their scopes are incorrect.

What does this mean?

Looking into the repository for an actual class
bal...@black:~/.m2/repository/com/oracle$ (for i in `find . -type f|grep
jar$`; do unzip -l $i; done) |grep STRUCT
 5985  06-16-04 11:33   oracle/sql/STRUCT.class
 2830  07-31-09 19:31   oracle/sql/JAVA_STRUCT.class
11087  07-31-09 19:31   oracle/sql/STRUCT.class

seems to be there. Well, two of the STRUCT might be a problem if it once
finds it... others are not duplicated:
bal...@black:~/.m2/repository/com/oracle$ (for i in `find . -type f|grep
jar$`; do unzip -l $i; done) |grep JGeoRaster
10378  08-01-09 10:53   oracle/spatial/georaster/JGeoRaster.class
27539  08-01-09 10:53   oracle/spatial/georaster/JGeoRasterMeta.class

best regards: Balázs Bámer

-- 
View this message in context: 
http://old.nabble.com/build-problem-tp27754729p27755478.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: build problem

2010-03-02 Thread kolaloka

Hi Csaba,

 Maybe try downgrading to version 2.0.9 or try with a newer version of 
 the Geotools source code.

I've removed all the 2.2.1 Maven stuff including repository. Installed the
Ubuntu package maven2 2.0.9 and installed all the Oracle libraries again.
mvn compile ends up in the same errors. (there are more test errors above,
but I don't think they are interesting).

Best regards: Balázs Bámer
-- 
View this message in context: 
http://old.nabble.com/build-problem-tp27754729p27756093.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: build problem

2010-03-02 Thread kolaloka

Hi Eduardo,

It's not enough to have the jar's in your repository, you must list  
them in the pom.xml file so they are used during compilation.

Here is my modification in the main pom.xml:

bal...@black:/usr/local/src/geotools-2.5.8$ less pom.xml
...
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2.0/dbhome_1/jdbc/lib/ojdbc6.jar
-DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar
--
dependency
groupIdcom.oracle/groupId
artifactIdojdbc6/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2.0/dbhome_1/lib/xmlparserv2.jar
-DgroupId=com.oracle -DartifactId=xmlparserv2 -Dversion=11.2.0
-Dpackaging=jar --
dependency
groupIdcom.oracle/groupId
artifactIdxmlparserv2/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2.0/dbhome_1/md/jlib/georasterapi.jar
-DgroupId=com.oracle -DartifactId=georasterapi -Dversion=11.2.0
-Dpackaging=jar --
dependency
groupIdcom.oracle/groupId
artifactIdgeorasterapi/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2.0/dbhome_1/md/jlib/sdoapi.jar
-DgroupId=com.oracle -DartifactId=sdoapi -Dversion=11.2.0 -Dpackaging=jar
--
dependency
groupIdcom.oracle/groupId
artifactIdsdoapi/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2
.0/dbhome_1/md/jlib/sdoutl.jar -DgroupId=com.oracle -DartifactId=sdoutl
-Dversio
n=11.2.0 -Dpackaging=jar --
dependency
groupIdcom.oracle/groupId
artifactIdsdoutl/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
!-- mvn install:install-file
-Dfile=/home/balazs/georaster/product/11.2.0/dbhome_1/rdbms/jlib/xdb.jar
-DgroupId=com.oracle -DartifactId=xdb -Dversion=11.2.0 -Dpackaging=jar --
dependency
groupIdcom.oracle/groupId
artifactIdxdb/artifactId
version11.2.0/version
typejar/type
optionalfalse/optional
/dependency
...

best regards: Balázs Bámer
-- 
View this message in context: 
http://old.nabble.com/build-problem-tp27754729p27756402.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: build problem

2010-03-02 Thread kolaloka

Hi all,

I've found out that there are some fake jars or similars in this source to
allow it build without Oracle jars. There is a switch to allow build with
the real Oracle jar. I need other ones as well, and couldn't get around this
mechanism, so decided to build the Geotools plugin I need by hand (javac).

Best regards: Balázs Bámer
-- 
View this message in context: 
http://old.nabble.com/build-problem-tp27754729p27759330.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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