You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bámer Balázs <ko...@freemail.hu> on 2010/03/02 12:23:37 UTC

build problem

Hi All,

I have problems building the Geotools 2.5.8 source. It requires Maven 2.1.0, I have 2.2.1. It is just out of the box without Oracle jars, which I have to add to it. I installed them in the local repository with commands like 
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

and put fragments like
    <dependency>
        <groupId>com.oracle</groupId>
        <artifactId>ojdbc6</artifactId>
        <version>11.2.0</version>
        <type>jar</type>
        <optional>false</optional>
    </dependency>

into the pom.xml in geotools source root.

However, Maven keeps complaining about missing classes.

What can be wrong? Can I have Maven output somehow the javac and similar steps of the build to be able to repeat it by hand?

thank you in advance, best regards: Balázs Bámer

Telefon, mobil TV, SMS, internet egy havi díjért. MédiaMánia díjcsomagok most dupla benne foglalt forgalommal. T-Mobile


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


Re: build problem

Posted by kolaloka <ko...@freemail.hu>.
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build problem

Posted by Gajo Csaba <cs...@cosylab.com>.
Well it can't find oracle.spatial.georaster and some other packages. But 
looks like you can't build this project at all with your version of 
Maven: 
http://www.mail-archive.com/geotools-gt2-users@lists.sourceforge.net/msg07357.html

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

Csaba


On 03/02/2010 01:27 PM, kolaloka wrote:
> Hi Csaba,
>
> This is what I find in the repository:
>
> balazs@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:
>
> balazs@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
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[135,8]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[137,2]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[159,13]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[183,2]
> cannot find symbol
> symbol  : class JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[186,2]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[205,33]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[206,20]
> cannot find symbol
> symbol  : class JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[207,18]
> cannot find symbol
> symbol  : class JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[208,17]
> cannot find symbol
> symbol  : variable JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[213,33]
> cannot find symbol
> symbol  : class STRUCT
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[214,20]
> cannot find symbol
> symbol  : class JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[219,18]
> cannot find symbol
> symbol  : class JGeoRaster
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[235,3]
> cannot find symbol
> symbol  : class JGeoRasterMeta
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> /usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[286,9]
> cannot find symbol
> symbol  : class GeoRasterException
> location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 47 seconds
> [INFO] Finished at: Tue Mar 02 12:19:30 CET 2010
> [INFO] Final Memory: 32M/254M
> [INFO]
> ------------------------------------------------------------------------
>
> best regards: Balázs Bámer
>    


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


Re: build problem

Posted by kolaloka <ko...@freemail.hu>.
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build problem

Posted by Wayne Fay <wa...@gmail.com>.
> Here is my modification in the main pom.xml:
>
> balazs@Black:/usr/local/src/geotools-2.5.8$ less pom.xml

Does this mean its working now, or still having problems?

Wayne

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


Re: build problem

Posted by kolaloka <ko...@freemail.hu>.
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:

balazs@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>
                <groupId>com.oracle</groupId>
                <artifactId>ojdbc6</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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>
                <groupId>com.oracle</groupId>
                <artifactId>xmlparserv2</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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>
                <groupId>com.oracle</groupId>
                <artifactId>georasterapi</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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>
                <groupId>com.oracle</groupId>
                <artifactId>sdoapi</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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>
                <groupId>com.oracle</groupId>
                <artifactId>sdoutl</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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>
                <groupId>com.oracle</groupId>
                <artifactId>xdb</artifactId>
                <version>11.2.0</version>
                <type>jar</type>
                <optional>false</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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build problem

Posted by Eduardo M KALINOWSKI <ed...@kalinowski.com.br>.
On Ter, 02 Mar 2010, kolaloka wrote:
> Looking into the repository for an actual class
> balazs@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:
> balazs@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

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.



-- 
We cannot do everything at once, but we can do something at once.
		-- Calvin Coolidge

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


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


Re: build problem

Posted by kolaloka <ko...@freemail.hu>.
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
balazs@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:
balazs@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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: build problem

Posted by Eduardo M KALINOWSKI <ed...@kalinowski.com.br>.
On Ter, 02 Mar 2010, kolaloka wrote:
> and this is the output:
>
> balazs@Black:/usr/local/src/geotools-2.5.8$ mvn compile
> [snip]
> [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
>
> [and so on]

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



-- 
Walking on water wasn't built in a day.
		-- Jack Kerouac

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


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


Re: build problem

Posted by kolaloka <ko...@freemail.hu>.
Hi Csaba,

This is what I find in the repository:

balazs@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:

balazs@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

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[135,8]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[137,2]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[159,13]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[183,2]
cannot find symbol
symbol  : class JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[186,2]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[205,33]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[206,20]
cannot find symbol
symbol  : class JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[207,18]
cannot find symbol
symbol  : class JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[208,17]
cannot find symbol
symbol  : variable JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[213,33]
cannot find symbol
symbol  : class STRUCT
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[214,20]
cannot find symbol
symbol  : class JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[219,18]
cannot find symbol
symbol  : class JGeoRaster
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[235,3]
cannot find symbol
symbol  : class JGeoRasterMeta
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

/usr/local/src/geotools-2.5.8/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/GeoRasterThread.java:[286,9]
cannot find symbol
symbol  : class GeoRasterException
location: class org.geotools.gce.imagemosaic.jdbc.GeoRasterThread

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Tue Mar 02 12:19:30 CET 2010
[INFO] Final Memory: 32M/254M
[INFO]
------------------------------------------------------------------------

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


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


Re: build problem

Posted by Gajo Csaba <cs...@cosylab.com>.
Hi,

Maven should output the javac compilation error to you. If you didn't 
see it, it means Maven hasn't reached the point to compile it yet. Maybe 
you could send us the complete output you get from Maven to see why it 
doesn't work. It seems to me that you've installed the jar file 
correctly (maybe check if the file really is there, in 
~/.m2/repository/com/oracle/ojdbc6/11.2.0/ ).

Csaba


On 03/02/2010 12:23 PM, Bámer Balázs wrote:
> Hi All,
>
> I have problems building the Geotools 2.5.8 source. It requires Maven 2.1.0, I have 2.2.1. It is just out of the box without Oracle jars, which I have to add to it. I installed them in the local repository with commands like
> 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
>
> and put fragments like
>      <dependency>
>          <groupId>com.oracle</groupId>
>          <artifactId>ojdbc6</artifactId>
>          <version>11.2.0</version>
>          <type>jar</type>
>          <optional>false</optional>
>      </dependency>
>
> into the pom.xml in geotools source root.
>
> However, Maven keeps complaining about missing classes.
>
> What can be wrong? Can I have Maven output somehow the javac and similar steps of the build to be able to repeat it by hand?
>
> thank you in advance, best regards: Balázs Bámer
>
> Telefon, mobil TV, SMS, internet egy havi díjért. MédiaMánia díjcsomagok most dupla benne foglalt forgalommal. T-Mobile
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>    


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