gaiaresources / ala-citizenscience

Automatically exported from code.google.com/p/ala-citizenscience
1 stars 4 forks source link

problem generation SQL creation files #372

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the step " setting up the database " , after create the tables , I run 
the command as in the installation guide . 
2. $ mvn -Pdev -DskipTests clean package hibernate3:hbm2ddl

3. here is the output :
Apache Maven 3.0.4 (r1232337; 2012-01-17 16:44:56+0800)
Maven home: /usr/share/java/maven
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_09/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.37.6-24-desktop", arch: "i386", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/java/maven/conf/settings.xml
[DEBUG] Reading user settings from /root/.m2/settings.xml
[DEBUG] Using local repository at /root/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for 
/root/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project au.com.gaiaresources:bdrs-core:war:2.0: 
(none)
[DEBUG] Looking up lifecyle mappings for packaging war from 
ClassRealm[plexus.core, parent: null]
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were 
encountered while processing the POMs:
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-resources-plugin is missing. @ line 685, column 
21
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:tomcat-maven-plugin is missing. @ line 797, column 21
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 677, column 21
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-war-plugin is missing. @ line 731, column 21
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-jar-plugin is missing. @ line 719, column 21
[ERROR] 
'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.de
pendency.scope' for postgresql:postgresql:jar must be one of [compile, runtime, 
system] but is 'provided'. @ line 850, column 32
[ERROR] 
'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.de
pendency.scope' for org.postgis:postgis-jdbc:jar must be one of [compile, 
runtime, system] but is 'provided'. @ line 856, column 32
[WARNING] 'reporting.plugins.plugin.version' for 
org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 
978, column 21
[WARNING] 'reporting.plugins.plugin.version' for 
org.codehaus.mojo:cobertura-maven-plugin is missing. @ line 997, column 25
[WARNING] 'reporting.plugins.plugin.version' for 
org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ line 1015, 
column 21

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[ERROR]   
[ERROR]   The project au.com.gaiaresources:bdrs-core:2.0 
(/home/Downloads/source/ala-citizenscience-read-only/pom.xml) has 2 errors
[ERROR]     
'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.de
pendency.scope' for postgresql:postgresql:jar must be one of [compile, runtime, 
system] but is 'provided'. @ line 850, column 32
[ERROR]     
'build.plugins.plugin[org.codehaus.mojo:hibernate3-maven-plugin].dependencies.de
pendency.scope' for org.postgis:postgis-jdbc:jar must be one of [compile, 
runtime, system] but is 'provided'. @ line 856, column 32
[ERROR] 
[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/ProjectBuildingException

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
The product version I believe is the latest  one , I got from here :
# svn checkout http://ala-citizenscience.googlecode.com/svn/trunk/ 
ala-citizenscience-read-only

OS is opensuse 11.4 . 

Please provide any additional information below.

Original issue reported on code.google.com by gaugu...@gmail.com on 26 Nov 2012 at 5:16

GoogleCodeExporter commented 9 years ago
ok , I spent a few hours and got the problem fix . 
I did the follow . 

added the mavin 2 officel opensuse 11.4 repo . 
# zypper ar 
http://download.opensuse.org/repositories/home:/decriptor:/maven2/openSUSE_11.4/

and then , I added the follow packages :

# zypper install maven-jar-plugin  maven-resources-plugin maven-compiler-plugin

One more think that I was having problem too, was "java.lang.OutOfMemoryError" 
after run:
$ mvn -Pdev -DskipTests clean package hibernate3:hbm2ddl

I fixed it doing the follow:
Before run the command , set and export the follow variable :

# export MAVEN_OPTS=-Xmx1024m 

hope I can help someone . 

GB

Original comment by gaugu...@gmail.com on 27 Nov 2012 at 12:55