Hi, all,
I am using NetBeans IDE to run the dspace-1.7.2-src-release. I load the main
sub-project Dspace assembly and configuration (sub-folder:
dspace-1.7.2-src-release\dspace), as well as all the required sub-projects.
After that, I try to run the sub-project Dspace Discovery: Discovery Provider
Library, indicating IndexClient as the main class.
I am meeting with running errors, as follows, and at the end it also reports
"dspace.cfg not found" error. I tried to search dspace.cfg in all the opened
project loaded into NB, and there is no dspace.cfg. I also tried to run other
sub-projects, and met with similar errors.
I guess the main reason is that some key files are missing, for example
dspace.cfg, which should be in sub-project Dspace assembly and configuration.
That confused me as I have told NB to load the sub-project Dspace assembly and
configuration, and all the required sub-projects.
How would I solve this? Thank you.
============================
cd
C:\Users\bingni\dspace-1.7.2-src-release\dspace-1.7.2-src-release\dspace-discovery\dspace-discovery-provider;
"JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_26" "\"C:\\Program Files
(x86)\\NetBeans 7.0\\java\\maven\\bin\\mvn.bat\"" -Dexec.classpathScope=runtime
"-Dexec.args=-classpath %classpath org.dspace.discovery.IndexClient"
"-Dexec.executable=C:\\Program Files\\Java\\jdk1.6.0_26\\bin\\java.exe"
process-classes org.codehaus.mojo:exec-maven-plugin:1.2:exec
Scanning for projects...
Some problems were encountered while building the effective model for
org.dspace:dspace-discovery-provider:jar:1.7.2
'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. @
org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
41, column 21
'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-surefire-plugin is missing. @
org.dspace:dspace-parent:1.7.2,
C:\Users\bingni\.m2\repository\org\dspace\dspace-parent\1.7.2\dspace-parent-1.7.2.pom,
line 36, column 18
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin
is missing. @ org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
93, column 21
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is
missing. @ org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
48, column 21
The expression ${artifactId} is deprecated. Please use ${project.artifactId}
instead.
The expression ${version} is deprecated. Please use ${project.version} instead.
'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-checkstyle-plugin is missing. @
org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
230, column 21
'reporting.plugins.plugin.version' for org.codehaus.mojo:cobertura-maven-plugin
is missing. @ org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
234, column 21
'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-javadoc-plugin is missing. @
org.dspace:dspace-parent:1.7.2,
C:\Users\bingni\.m2\repository\org\dspace\dspace-parent\1.7.2\dspace-parent-1.7.2.pom,
line 845, column 18
'reporting.plugins.plugin.version' for org.codehaus.mojo:jxr-maven-plugin is
missing. @ org.dspace:dspace-pom:10,
C:\Users\bingni\.m2\repository\org\dspace\dspace-pom\10\dspace-pom-10.pom, line
250, column 21
'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-site-plugin is missing. @
org.dspace:dspace-parent:1.7.2,
C:\Users\bingni\.m2\repository\org\dspace\dspace-parent\1.7.2\dspace-parent-1.7.2.pom,
line 891, column 18
'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-jxr-plugin is missing. @
org.dspace:dspace-parent:1.7.2,
C:\Users\bingni\.m2\repository\org\dspace\dspace-parent\1.7.2\dspace-parent-1.7.2.pom,
line 885, column 18
It is highly recommended to fix these problems because they threaten the
stability of your build.
For this reason, future Maven versions might no longer support building such
malformed projects.
------------------------------------------------------------------------
Building DSpace Discovery :: Discovery Provider Library 1.7.2
------------------------------------------------------------------------
[enforcer:enforce]
[resources:resources]
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources
[compiler:compile]
Nothing to compile - all classes are up to date
>>> cocoon-maven-plugin:1.0.0-M2:prepare (prepare) @ dspace-discovery-provider
>>> >>>
[enforcer:enforce]
[resources:resources]
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources
[compiler:compile]
Nothing to compile - all classes are up to date
<<< cocoon-maven-plugin:1.0.0-M2:prepare (prepare) @ dspace-discovery-provider
<<<
[cocoon:prepare]
Don't execute the Cocoon RCL plugin becaues either its packaging type is not
'jar' or there is no rcl.properties file in the block's base directory.
[exec:exec]
FATAL: Cannot find dspace.cfg
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.dspace.core.Context.<init>(Context.java:95)
at org.dspace.discovery.IndexClient.main(IndexClient.java:42)
Caused by: java.lang.IllegalStateException: Cannot find dspace.cfg
at
org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:915)
at
org.dspace.core.ConfigurationManager.getMutableProperties(ConfigurationManager.java:130)
at
org.dspace.core.ConfigurationManager.getProperty(ConfigurationManager.java:172)
at
org.dspace.storage.rdbms.DatabaseManager.<clinit>(DatabaseManager.java:68)
=================
Best
Bing
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel