[GeoNetwork-devel] trouble building from source

(sorry , my last email was wrong , so I retry )

Hi,
Using Maven 3.0.2, ANT 1.8.2 and Java JDK 1.6.0_25 on a Debian 32 bit,
I was able to build GN from trunk until some week ago.
But now retry-ing again to build with last trunk version , Maven report me some Errors.

This is the error it report
trying to build the last trunk version (r7840) :


[INFO] ------------------------------

[INFO] Building GeoNetwork opensource 2.7.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://oss.sonatype.org/content/repositories/github-releases/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
597 B [WARNING] Checksum validation failed, could not read expected checksum: Error transferring file: Connection timed out for http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-compiler-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] GeoNetwork opensource … FAILURE [6:19.662s]
[INFO] Caching xslt module … SKIPPED
[INFO] Jeeves modules … SKIPPED
[INFO] Oaipmh modules … SKIPPED
[INFO] ArcSDE module (dummy-api) … SKIPPED
[INFO] GeoNetwork Web module … SKIPPED
[INFO] GeoServer module … SKIPPED
[INFO] Gast module … SKIPPED
[INFO] GeoNetwork Integration Tests … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:22.349s
[INFO] Finished at: Fri Jun 10 12:17:22 CEST 2011
[INFO] Final Memory: 3M/39M
[INFO] ------------------------------------------------------------------------
[ERROR] Error resolving version for plugin ‘org.apache.maven.plugins:maven-compiler-plugin’ from the repositories [local (/home/archivio/tomcat/.m2/repository), oss.sonatype.org-github-releases (http://oss.sonatype.org/content/repositories/github-releases), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException

Also I attach the full Log to this email.

I try some changing to the pom.xml but without success.

I like to know if this is a generalized problem or if is only for my PC.

thx,

Andrea Peri
. . . . . . . . .
qwerty àèìòù

(attachments)

log.zip (1.5 KB)

Hi me too i'm facing the same problem ! Did you find a solution ?

i've tried every imaginable way but i'm not abble till now to go througth
it. I'm still looking for a solution.

Here are some pist.

-I cretated the eclipse project
- I downloaded the maveen pluggin for eclipse [m2eclipse -
http://m2eclipse.sonatype.org/sites/m2e\]
- The i create projects in my workspace : "create a project from an existing
maven project "
- I was abble to build with some maven command in eclipse
[ maven install
  maven package
  maven test
maven sourche:jar
]

but the resulting "geonetwork.war" file is also unusable in tomcat :-(. All
the other projects worked pretty good. so if you find a solution for the
directeory "web" let me know please

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/trouble-building-from-source-tp6461651p6466599.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

We have compiled it successfully from trunk using eclipse and deployed to
tomcat 7 and also tomcat 6.0.29. We did not face any issues.

We did face connect timeout during build process while downloading maven
dependencies in eclipse, the server from where it is trying to download
libraries might be down or not reachable so keep retrying if you get connect
time out during build process and it will go through.

Which version of tomcat are you deploying it to? Based on your error
snapshot I think there is another instance of geonetwork running under jetty
which is using the port 9157 so try changing the port inside tomcat to
another port

Change the jdbc port to a new port in WEB-INF\db\db.conf

jdbc_server_port=9157

then in web-inf\config.xml change the corresponding port

<resource enabled="false">
      <name>main-db</name>
      <provider>jeeves.resources.dbms.DbmsPool</provider>
      <config>
        <user>BayACrsQ</user>
        <password>Qf7Po9T0</password>
        <driver>com.mckoi.JDBCDriver</driver>
        <url>jdbc:mckoi://localhost:9157/</url>
        <poolSize>10</poolSize>
      </config>

    <activator
class="org.fao.geonet.activators.McKoiActivator"><configFile>WEB-INF/db/db.c
onf</configFile></activator></resource>

Regards
Kumaran

-----Original Message-----
From: marcelsnews [mailto:marcelsnews@anonymised.com]
Sent: Sunday, June 12, 2011 10:57 AM
To: geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] trouble building from source

Hi me too i'm facing the same problem ! Did you find a solution ?

i've tried every imaginable way but i'm not abble till now to go througth
it. I'm still looking for a solution.

Here are some pist.

-I cretated the eclipse project
- I downloaded the maveen pluggin for eclipse [m2eclipse -
http://m2eclipse.sonatype.org/sites/m2e\]
- The i create projects in my workspace : "create a project from an existing
maven project "
- I was abble to build with some maven command in eclipse [ maven install
  maven package
  maven test
maven sourche:jar
]

but the resulting "geonetwork.war" file is also unusable in tomcat :-(. All
the other projects worked pretty good. so if you find a solution for the
directeory "web" let me know please

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/trouble-building-from-source-tp646165
1p6466599.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image Editing
and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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

I resolved my problem.

It was a problem to connect to the main repository Maven.

So to solution was to add in the settings.xml file of Maven, the addres to a mirror.

I use this:

    <mirrors>
      <mirror>
        <id>UK</id>
        <mirrorOf>central</mirrorOf>
        <name>UK Central</name>
        <url>http://uk.maven.org/maven2&lt;/url&gt;
      </mirror>
    </mirrors>

Now the build end with success, but unfortunately Fails the next phase of tests. :frowning:

Andrea.

Il 12/06/2011 07:27, marcelsnews ha scritto:

Hi me too i'm facing the same problem ! Did you find a solution ?

i've tried every imaginable way but i'm not abble till now to go througth
it. I'm still looking for a solution.

Here are some pist.

-I cretated the eclipse project
- I downloaded the maveen pluggin for eclipse [m2eclipse -
http://m2eclipse.sonatype.org/sites/m2e\]
- The i create projects in my workspace : "create a project from an existing
maven project "
- I was abble to build with some maven command in eclipse
[ maven install
   maven package
   maven test
  maven sourche:jar
]

but the resulting "geonetwork.war" file is also unusable in tomcat :-(. All
the other projects worked pretty good. so if you find a solution for the
directeory "web" let me know please

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/trouble-building-from-source-tp6461651p6466599.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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

Hello

I did nothing more. but it seems as it compiles well using "mvn install" cmd
in eclipse.

That's what i did:

- i cleaned up everything in my directories (even eclipse) :frowning:
- i downloaded eclipse `eclipse-SDK-3.6.2-win32` in the official site
- i downloaded maven plugin for eclipse and install it on eclipse:
[m2eclipse Core Update Site: http://m2eclipse.sonatype.org/sites/m2e\]
using this tutorial :
http://m2eclipse.sonatype.org/installing-m2eclipse.html
- i downloaded the latest version of the entire GN project from the branch
path at the URL:
https://geonetwork.svn.sourceforge.net/svnroot/geonetwork/branches/2.6.x/

- Then i executed on my DOS the cmd: mvn eclipse:eclipse ...not necessary i
think
- i open eclipse and create the project using the maven pluggin: [new Maven
project from an existing project ]
- Then i execute the eclipse : "run as" cmd, then choosed [9- Maven install]

Everything pass ithout no problem :-).
.......
[INFO] Installing
C:\Code\igl691\GeoImageSolutions\geonetwork_2.6.x\web\target\geonetwork-classes.jar
to
C:\Users\tawm2301\.m2\repository\org\geonetwork-opensource\geonetwork-main\2.6.5-SNAPSHOT\geonetwork-main-2.6.5-SNAPSHOT-classes.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:31.858s
[INFO] Finished at: Mon Jun 13 23:11:20 EDT 2011
[INFO] Final Memory: 26M/63M
[INFO]
------------------------------------------------------------------------

Now i'll try to see if i could use the .war file and deploy it in tomcat and
make it works.

hope it helps dude

By the way do you know which tool can i use to open ".koi" file ? i want to
see waht GN writes in the DB and manage things there when necessary.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/trouble-building-from-source-tp6461651p6472622.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hi

Finaly it works for me on TOMCAT without no problem now.

The fact is that i had another instance of GN runing on jetty server... i'm
not sure but once i stopped everything and then deploy the war file on
tomcat (v6.0.32 , v7.0.11 and v7.0.12) everything was good.

thanks for the tip about "jdbc_server_port=9157 " it solves another problem
i had.

:wink:

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/trouble-building-from-source-tp6461651p6494867.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.