[GeoNetwork-devel] error build 2.10.5-SNAPSHOT

Hi,

I try to build a 2.10.5-SNAPSHOT and did

$ git clone -b 2.10.x --recursive \
  git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ mvn clean install

I get following error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in http://download.osgeo.org/webdav/geotools/
was cached in the local repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced -> [Help 1]

I am not experienced building geonetwork yet and would be thankful for any
hint how to fix this.

Kind regards,
Otto

Hi Otto

I think this is caused due to don’t have the submodules initialised. Execute this command and retry the build:

$ cd geonetwork
$ git submodule update --init
$ mvn clean install

Regards,
Jose García

···

On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com> wrote:

Hi,

I try to build a 2.10.5-SNAPSHOT and did

$ git clone -b 2.10.x --recursive
git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ mvn clean install

I get following error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in http://download.osgeo.org/webdav/geotools/
was cached in the local repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced → [Help 1]

I am not experienced building geonetwork yet and would be thankful for any
hint how to fix this.

Kind regards,
Otto


Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

Hi Jose,

I tried with your hint from scratch

$ git clone -b 2.10.x --recursive \
  git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ git submodule update --init
$ mvn clean install

I get the same error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in http://download.osgeo.org/webdav/geotools/
was cached in the local repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced -> [Help 1]

I tried with the 2.8.x branch, that one compiled fine.

Then I also tried with the 2.11.x branch and there I got this error:

$ git clone -b 2.11.x --recursive \
  git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
$ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
$ cd geonetwork-2.11.x
$ git submodule update --init
$ mvn clean install

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on
project core: There are test failures.

The Maven I use is Apache Maven 3.2.5.
Java version: 1.7.0_55
OpenSUSE 13.1

Regards,
Otto

Am Fri, 6 Mar 2015 09:11:10 +0100
schrieb Jose Garcia <jose.garcia@anonymised.com>:

Hi Otto

I think this is caused due to don't have the submodules initialised.
Execute this command and retry the build:

$ cd geonetwork
$ git submodule update --init
$ mvn clean install

Regards,
Jose García

On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com> wrote:

> Hi,
>
> I try to build a 2.10.5-SNAPSHOT and did
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ mvn clean install
>
> I get following error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve
> dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until
> the update interval of geotools has elapsed or updates are forced ->
> [Help 1]
>
> I am not experienced building geonetwork yet and would be thankful for
> any hint how to fix this.
>
> Kind regards,
> Otto
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> things parallel software development, from weekly thought leadership
> blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoNetwork-devel mailing list
> GeoNetwork-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

--
Geoinformatikbüro Dassau GmbH
Rethelstrasse 153
D - 40237 Düsseldorf
Tel: +49-211-69937750
Fax: +49-211-69937751
Mobile: +49-171-4687540
http://www.gbd-consult.de

Registergericht: Amtsgericht Düsseldorf, HR B 74022
Geschäftsführer: Otto Dassau

Community Advisor - QGIS Project Steering Committee

Hi Otto

Try the following, just in case as there were some changes in some maven repositories used in GeoNetwork.

Replace the repositories section from 2.10.x:

https://github.com/geonetwork/core-geonetwork/blob/2.10.x/pom.xml#L900-L938

with the new ones used in develop:

https://github.com/geonetwork/core-geonetwork/blob/develop/pom.xml#L1065-L1117

If works for you let me know and will update 2.10.x

Regards,
Jose García

···

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:

Hi Jose,

I tried with your hint from scratch

$ git clone -b 2.10.x --recursive
git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ git submodule update --init
$ mvn clean install

I get the same error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in http://download.osgeo.org/webdav/geotools/
was cached in the local repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced → [Help 1]

I tried with the 2.8.x branch, that one compiled fine.

Then I also tried with the 2.11.x branch and there I got this error:

$ git clone -b 2.11.x --recursive
git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
$ export MAVEN_OPTS=“-Xmx512M -XX:MaxPermSize=256M”
$ cd geonetwork-2.11.x
$ git submodule update --init
$ mvn clean install

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on
project core: There are test failures.

The Maven I use is Apache Maven 3.2.5.
Java version: 1.7.0_55
OpenSUSE 13.1

Regards,
Otto

Am Fri, 6 Mar 2015 09:11:10 +0100
schrieb Jose Garcia <jose.garcia@anonymised.com>:

Hi Otto

I think this is caused due to don’t have the submodules initialised.
Execute this command and retry the build:

$ cd geonetwork
$ git submodule update --init
$ mvn clean install

Regards,
Jose García

On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com> wrote:

Hi,

I try to build a 2.10.5-SNAPSHOT and did

$ git clone -b 2.10.x --recursive
git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ mvn clean install

I get following error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not
resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in
http://download.osgeo.org/webdav/geotools/ was cached in the local
repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced →
[Help 1]

I am not experienced building geonetwork yet and would be thankful for
any hint how to fix this.

Kind regards,
Otto


Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub
for all
things parallel software development, from weekly thought leadership
blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

Geoinformatikbüro Dassau GmbH
Rethelstrasse 153
D - 40237 Düsseldorf
Tel: +49-211-69937750
Fax: +49-211-69937751
Mobile: +49-171-4687540
http://www.gbd-consult.de

Registergericht: Amtsgericht Düsseldorf, HR B 74022
Geschäftsführer: Otto Dassau

Community Advisor - QGIS Project Steering Committee

GeoCat Bridge for ArcGIS allows instant publishing of data and metadata on GeoServer and GeoNetwork. Visit http://geocat.net for details.


Jose García
GeoCat bv
Veenderweg 13
6721 WD Bennekom
The Netherlands
http://GeoCat.net

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:

Hi Jose,

I tried with your hint from scratch

$ git clone -b 2.10.x --recursive \
  git://github.com/geonetwork/core-geonetwork.git geonetwork
$ cd geonetwork
$ git submodule update --init
$ mvn clean install

I get the same error:

[ERROR] Failed to execute goal on project geonetwork-main: Could not resolve
dependencies for project
org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
find marc4j:marc4j:jar:2.3.1 in http://download.osgeo.org/webdav/geotools/
was cached in the local repository, resolution will not be reattempted until
the update interval of geotools has elapsed or updates are forced -> [Help 1]

I tried with the 2.8.x branch, that one compiled fine.

Then I also tried with the 2.11.x branch and there I got this error:

$ git clone -b 2.11.x --recursive \
  git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
$ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
$ cd geonetwork-2.11.x
$ git submodule update --init
$ mvn clean install

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on
project core: There are test failures.

The Maven I use is Apache Maven 3.2.5.
Java version: 1.7.0_55
OpenSUSE 13.1

Regards,
Otto

Am Fri, 6 Mar 2015 09:11:10 +0100
schrieb Jose Garcia <jose.garcia@anonymised.com>:

Hi Otto

I think this is caused due to don't have the submodules initialised.
Execute this command and retry the build:

$ cd geonetwork
$ git submodule update --init
$ mvn clean install

Regards,
Jose García

On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com> wrote:

> Hi,
>
> I try to build a 2.10.5-SNAPSHOT and did
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ mvn clean install
>
> I get following error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve
> dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until
> the update interval of geotools has elapsed or updates are forced ->
> [Help 1]
>
> I am not experienced building geonetwork yet and would be thankful for
> any hint how to fix this.
>
> Kind regards,
> Otto
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub
> for all
> things parallel software development, from weekly thought leadership
> blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoNetwork-devel mailing list
> GeoNetwork-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>

Hi Otto,

It looks like you are missing this dependency:
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1

Do you have this folder on your checkout? It should be on the root of
your checkout:
https://github.com/geonetwork/core-geonetwork/tree/2.11.x

If you are having problems with that folder, try to install it
manually on maven. Like the error info says.

Regards,
María.

Am Fri, 6 Mar 2015 09:50:14 +0100
schrieb María Arias de Reyna <delawen@anonymised.com>:

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:
> Hi Jose,
>
> I tried with your hint from scratch
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ git submodule update --init
> $ mvn clean install
>
> I get the same error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until the update interval
> of geotools has elapsed or updates are forced -> [Help 1]
>
> I tried with the 2.8.x branch, that one compiled fine.
>
> Then I also tried with the 2.11.x branch and there I got this error:
>
> $ git clone -b 2.11.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
> $ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
> $ cd geonetwork-2.11.x
> $ git submodule update --init
> $ mvn clean install
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
> on project core: There are test failures.
>
> The Maven I use is Apache Maven 3.2.5.
> Java version: 1.7.0_55
> OpenSUSE 13.1
>
> Regards,
> Otto
>
> Am Fri, 6 Mar 2015 09:11:10 +0100
> schrieb Jose Garcia <jose.garcia@anonymised.com>:
>
>> Hi Otto
>>
>> I think this is caused due to don't have the submodules initialised.
>> Execute this command and retry the build:
>>
>> $ cd geonetwork
>> $ git submodule update --init
>> $ mvn clean install
>>
>> Regards,
>> Jose García
>>
>>
>> On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I try to build a 2.10.5-SNAPSHOT and did
>> >
>> > $ git clone -b 2.10.x --recursive \
>> > git://github.com/geonetwork/core-geonetwork.git geonetwork
>> > $ cd geonetwork
>> > $ mvn clean install
>> >
>> > I get following error:
>> >
>> > [ERROR] Failed to execute goal on project geonetwork-main: Could not
>> > resolve
>> > dependencies for project
>> > org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT:
>> > Failure to find marc4j:marc4j:jar:2.3.1 in
>> > http://download.osgeo.org/webdav/geotools/ was cached in the local
>> > repository, resolution will not be reattempted until
>> > the update interval of geotools has elapsed or updates are forced ->
>> > [Help 1]
>> >
>> > I am not experienced building geonetwork yet and would be thankful for
>> > any hint how to fix this.
>> >
>> > Kind regards,
>> > Otto
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Dive into the World of Parallel Programming The Go Parallel Website,
>> > sponsored
>> > by Intel and developed in partnership with Slashdot Media, is your hub
>> > for all
>> > things parallel software development, from weekly thought leadership
>> > blogs to
>> > news, videos, case studies, tutorials and more. Take a look and join
>> > the conversation now. http://goparallel.sourceforge.net/
>> > _______________________________________________
>> > GeoNetwork-devel mailing list
>> > GeoNetwork-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>> > GeoNetwork OpenSource is maintained at
>> > http://sourceforge.net/projects/geonetwork
>> >
>>
>>
>>

Hi Otto,

It looks like you are missing this dependency:
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1

Do you have this folder on your checkout? It should be on the root of
your checkout:
https://github.com/geonetwork/core-geonetwork/tree/2.11.x

If you are having problems with that folder, try to install it
manually on maven. Like the error info says.

Regards,
María.

Hi Jose,

yes, I also assumed this, but I didn't know how to add missing
dependencies. What would be the right procedure?

What does "try to install it manually on maven" mean? Just copy the folder
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1
into my local geonetwork folder? So it looks like this:

$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.jar
$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.pom

?

could you maybe send me the steps in detail, so I understand what I have to
do?

Thanks a lot
Otto

On Fri, Mar 6, 2015 at 10:36 AM, Otto Dassau <dassau@anonymised.com> wrote:

Am Fri, 6 Mar 2015 09:50:14 +0100
schrieb María Arias de Reyna <delawen@anonymised.com>:

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:
> Hi Jose,
>
> I tried with your hint from scratch
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ git submodule update --init
> $ mvn clean install
>
> I get the same error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until the update interval
> of geotools has elapsed or updates are forced -> [Help 1]
>
> I tried with the 2.8.x branch, that one compiled fine.
>
> Then I also tried with the 2.11.x branch and there I got this error:
>
> $ git clone -b 2.11.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
> $ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
> $ cd geonetwork-2.11.x
> $ git submodule update --init
> $ mvn clean install
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
> on project core: There are test failures.
>
> The Maven I use is Apache Maven 3.2.5.
> Java version: 1.7.0_55
> OpenSUSE 13.1
>
> Regards,
> Otto
>
> Am Fri, 6 Mar 2015 09:11:10 +0100
> schrieb Jose Garcia <jose.garcia@anonymised.com>:
>
>> Hi Otto
>>
>> I think this is caused due to don't have the submodules initialised.
>> Execute this command and retry the build:
>>
>> $ cd geonetwork
>> $ git submodule update --init
>> $ mvn clean install
>>
>> Regards,
>> Jose García
>>
>>
>> On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I try to build a 2.10.5-SNAPSHOT and did
>> >
>> > $ git clone -b 2.10.x --recursive \
>> > git://github.com/geonetwork/core-geonetwork.git geonetwork
>> > $ cd geonetwork
>> > $ mvn clean install
>> >
>> > I get following error:
>> >
>> > [ERROR] Failed to execute goal on project geonetwork-main: Could not
>> > resolve
>> > dependencies for project
>> > org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT:
>> > Failure to find marc4j:marc4j:jar:2.3.1 in
>> > http://download.osgeo.org/webdav/geotools/ was cached in the local
>> > repository, resolution will not be reattempted until
>> > the update interval of geotools has elapsed or updates are forced ->
>> > [Help 1]
>> >
>> > I am not experienced building geonetwork yet and would be thankful for
>> > any hint how to fix this.
>> >
>> > Kind regards,
>> > Otto
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Dive into the World of Parallel Programming The Go Parallel Website,
>> > sponsored
>> > by Intel and developed in partnership with Slashdot Media, is your hub
>> > for all
>> > things parallel software development, from weekly thought leadership
>> > blogs to
>> > news, videos, case studies, tutorials and more. Take a look and join
>> > the conversation now. http://goparallel.sourceforge.net/
>> > _______________________________________________
>> > GeoNetwork-devel mailing list
>> > GeoNetwork-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>> > GeoNetwork OpenSource is maintained at
>> > http://sourceforge.net/projects/geonetwork
>> >
>>
>>
>>

Hi Otto,

It looks like you are missing this dependency:
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1

Do you have this folder on your checkout? It should be on the root of
your checkout:
https://github.com/geonetwork/core-geonetwork/tree/2.11.x

If you are having problems with that folder, try to install it
manually on maven. Like the error info says.

Regards,
María.

Hi Jose,

yes, I also assumed this, but I didn't know how to add missing
dependencies. What would be the right procedure?

What does "try to install it manually on maven" mean? Just copy the folder
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1
into my local geonetwork folder? So it looks like this:

$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.jar
$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.pom

?

could you maybe send me the steps in detail, so I understand what I have to
do?

Thanks a lot
Otto

Hi Otto,

That may work, but the right way to do it is this one:

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

I think that the maven error should show you (a few lines after what
you copied) the exact command line string you have to use.

On Fri, Mar 6, 2015 at 10:37 AM, María Arias de Reyna <delawen@anonymised.com.> wrote:

On Fri, Mar 6, 2015 at 10:36 AM, Otto Dassau <dassau@anonymised.com> wrote:

Am Fri, 6 Mar 2015 09:50:14 +0100
schrieb María Arias de Reyna <delawen@anonymised.com>:

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:
> Hi Jose,
>
> I tried with your hint from scratch
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ git submodule update --init
> $ mvn clean install
>
> I get the same error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until the update interval
> of geotools has elapsed or updates are forced -> [Help 1]
>
> I tried with the 2.8.x branch, that one compiled fine.
>
> Then I also tried with the 2.11.x branch and there I got this error:
>
> $ git clone -b 2.11.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
> $ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
> $ cd geonetwork-2.11.x
> $ git submodule update --init
> $ mvn clean install
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
> on project core: There are test failures.
>
> The Maven I use is Apache Maven 3.2.5.
> Java version: 1.7.0_55
> OpenSUSE 13.1
>
> Regards,
> Otto
>
> Am Fri, 6 Mar 2015 09:11:10 +0100
> schrieb Jose Garcia <jose.garcia@anonymised.com>:
>
>> Hi Otto
>>
>> I think this is caused due to don't have the submodules initialised.
>> Execute this command and retry the build:
>>
>> $ cd geonetwork
>> $ git submodule update --init
>> $ mvn clean install
>>
>> Regards,
>> Jose García
>>
>>
>> On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I try to build a 2.10.5-SNAPSHOT and did
>> >
>> > $ git clone -b 2.10.x --recursive \
>> > git://github.com/geonetwork/core-geonetwork.git geonetwork
>> > $ cd geonetwork
>> > $ mvn clean install
>> >
>> > I get following error:
>> >
>> > [ERROR] Failed to execute goal on project geonetwork-main: Could not
>> > resolve
>> > dependencies for project
>> > org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT:
>> > Failure to find marc4j:marc4j:jar:2.3.1 in
>> > http://download.osgeo.org/webdav/geotools/ was cached in the local
>> > repository, resolution will not be reattempted until
>> > the update interval of geotools has elapsed or updates are forced ->
>> > [Help 1]
>> >
>> > I am not experienced building geonetwork yet and would be thankful for
>> > any hint how to fix this.
>> >
>> > Kind regards,
>> > Otto
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Dive into the World of Parallel Programming The Go Parallel Website,
>> > sponsored
>> > by Intel and developed in partnership with Slashdot Media, is your hub
>> > for all
>> > things parallel software development, from weekly thought leadership
>> > blogs to
>> > news, videos, case studies, tutorials and more. Take a look and join
>> > the conversation now. http://goparallel.sourceforge.net/
>> > _______________________________________________
>> > GeoNetwork-devel mailing list
>> > GeoNetwork-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>> > GeoNetwork OpenSource is maintained at
>> > http://sourceforge.net/projects/geonetwork
>> >
>>
>>
>>

Hi Otto,

It looks like you are missing this dependency:
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1

Do you have this folder on your checkout? It should be on the root of
your checkout:
https://github.com/geonetwork/core-geonetwork/tree/2.11.x

If you are having problems with that folder, try to install it
manually on maven. Like the error info says.

Regards,
María.

Hi Jose,

yes, I also assumed this, but I didn't know how to add missing
dependencies. What would be the right procedure?

What does "try to install it manually on maven" mean? Just copy the folder
https://github.com/geonetwork/core-maven-repo/tree/master/marc4j/marc4j/2.3.1
into my local geonetwork folder? So it looks like this:

$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.jar
$ geonetwork/marc4j/marc4j/2.3.1/marc4j-2.3.1.pom

?

could you maybe send me the steps in detail, so I understand what I have to
do?

Thanks a lot
Otto

Hi Otto,

That may work, but the right way to do it is this one:

http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

I think that the maven error should show you (a few lines after what
you copied) the exact command line string you have to use.

Sorry, correction: that will not work. I thought you said copying the
folder on the local repository of maven. Forget about that and try to
follow the link steps on
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html

Hi Jose,

I replaced the lines as you suggested and now 2.10.x compiles.

Thanks a lot!
Otto

Am Fri, 6 Mar 2015 09:48:47 +0100
schrieb Jose Garcia <jose.garcia@anonymised.com>:

Hi Otto

Try the following, just in case as there were some changes in some maven
repositories used in GeoNetwork.

Replace the repositories section from 2.10.x:

https://github.com/geonetwork/core-geonetwork/blob/2.10.x/pom.xml#L900-L938

with the new ones used in develop:

https://github.com/geonetwork/core-geonetwork/blob/develop/pom.xml#L1065-L1117

If works for you let me know and will update 2.10.x

Regards,
Jose García

On Fri, Mar 6, 2015 at 9:40 AM, Otto Dassau <dassau@anonymised.com> wrote:

> Hi Jose,
>
> I tried with your hint from scratch
>
> $ git clone -b 2.10.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork
> $ cd geonetwork
> $ git submodule update --init
> $ mvn clean install
>
> I get the same error:
>
> [ERROR] Failed to execute goal on project geonetwork-main: Could not
> resolve
> dependencies for project
> org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT: Failure to
> find marc4j:marc4j:jar:2.3.1 in
> http://download.osgeo.org/webdav/geotools/ was cached in the local
> repository, resolution will not be reattempted until
> the update interval of geotools has elapsed or updates are forced ->
> [Help 1]
>
> I tried with the 2.8.x branch, that one compiled fine.
>
> Then I also tried with the 2.11.x branch and there I got this error:
>
> $ git clone -b 2.11.x --recursive \
> git://github.com/geonetwork/core-geonetwork.git geonetwork-2.11.x
> $ export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=256M"
> $ cd geonetwork-2.11.x
> $ git submodule update --init
> $ mvn clean install
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test)
> on project core: There are test failures.
>
> The Maven I use is Apache Maven 3.2.5.
> Java version: 1.7.0_55
> OpenSUSE 13.1
>
> Regards,
> Otto
>
> Am Fri, 6 Mar 2015 09:11:10 +0100
> schrieb Jose Garcia <jose.garcia@anonymised.com>:
>
> > Hi Otto
> >
> > I think this is caused due to don't have the submodules initialised.
> > Execute this command and retry the build:
> >
> > $ cd geonetwork
> > $ git submodule update --init
> > $ mvn clean install
> >
> > Regards,
> > Jose García
> >
> >
> > On Fri, Mar 6, 2015 at 9:05 AM, Otto Dassau <dassau@anonymised.com>
> wrote:
> >
> > > Hi,
> > >
> > > I try to build a 2.10.5-SNAPSHOT and did
> > >
> > > $ git clone -b 2.10.x --recursive \
> > > git://github.com/geonetwork/core-geonetwork.git geonetwork
> > > $ cd geonetwork
> > > $ mvn clean install
> > >
> > > I get following error:
> > >
> > > [ERROR] Failed to execute goal on project geonetwork-main: Could not
> > > resolve
> > > dependencies for project
> > > org.geonetwork-opensource:geonetwork-main:war:2.10.5-SNAPSHOT:
> > > Failure
> to
> > > find marc4j:marc4j:jar:2.3.1 in
> > > http://download.osgeo.org/webdav/geotools/ was cached in the local
> > > repository, resolution will not be reattempted until
> > > the update interval of geotools has elapsed or updates are forced ->
> > > [Help 1]
> > >
> > > I am not experienced building geonetwork yet and would be thankful
> > > for any hint how to fix this.
> > >
> > > Kind regards,
> > > Otto
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > Dive into the World of Parallel Programming The Go Parallel Website,
> > > sponsored
> > > by Intel and developed in partnership with Slashdot Media, is your
> > > hub for all
> > > things parallel software development, from weekly thought leadership
> > > blogs to
> > > news, videos, case studies, tutorials and more. Take a look and join
> the
> > > conversation now. http://goparallel.sourceforge.net/
> > > _______________________________________________
> > > GeoNetwork-devel mailing list
> > > GeoNetwork-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
> > > GeoNetwork OpenSource is maintained at
> > > http://sourceforge.net/projects/geonetwork