[opencms-dev] Maven Build Error
Brabenetz, Harald
harald.brabenetz at bearingpointconsulting.com
Mon May 31 17:52:02 CEST 2010
If you want use Maven, you can nalso try another maven example:
http://bp-cms-commons.sourceforge.net/m2site/infonova/archetypes/opencms-module-archetype/1.0-SNAPSHOT/
It doesn't have a OpenCms Synch Plugin, but you can import the resulting OpenCms Module ZIP with the CmsShell.
with friendly regards,
Harald
________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Graeme Kidd
Sent: Samstag, 22. Mai 2010 03:44
To: opencms-dev at opencms.org
Subject: [opencms-dev] Maven Build Error
Hi,
Its my first time useing maven and I seem to have run into trouble getting the 'mvn package' goal working. This is what happens when I try and run it:
NetBeans: Executing '"C:\Program Files\Apache Software Foundation\Apache Maven 2.2.1\bin\mvn.bat" -Dnetbeans.deploy=true -Dnetbeans.execution=true package -e'
NetBeans: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14
+ Error stacktraces are turned on.
Scanning for projects...
------------------------------------------------------------------------
Building OpenCms Webapp
task-segment: [package]
------------------------------------------------------------------------
[resources:resources]
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
Copying 2 resources to ../webapp/WEB-INF/classes
Copying 8 resources to ../webapp/WEB-INF/config
[compiler:compile]
No sources to compile
[resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\src\test\resources
[compiler:testCompile]
No sources to compile
[surefire:test]
No tests to run.
[war:war]
Exploding webapp...
Assembling webapp webapp in C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp
Copy webapp webResources to C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp
Generating war C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp.war
Building war: C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp.war
[sql:execute]
Executing file: C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\src\main\scripts\create_tables.sql
31 of 31 SQL statements executed successfully
[vfs:setup]
log4j:WARN No appenders could be found for logger (org.opencms.init).
log4j:WARN Please initialize the log4j system properly.
OpenCms: initial setup
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup
Embedded error: Error reading the project with the name "_setupProject".
Project with name "_setupProject" not found.
------------------------------------------------------------------------
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup
at com.comundus.opencms.vfs.SetupMojo.execute(SetupMojo.java:98)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: org.opencms.db.CmsDbEntryNotFoundException: Error reading the project with the name "_setupProject".
at org.opencms.db.CmsDbEntryNotFoundException.createException(CmsDbEntryNotFoundException.java:75)
at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:238)
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:212)
at org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3723)
at org.opencms.file.CmsObject.readProject(CmsObject.java:3059)
at com.comundus.opencms.VfsSetup.executeSetupTxt(VfsSetup.java:97)
at com.comundus.opencms.VfsSetup.execute(VfsSetup.java:66)
at com.comundus.opencms.vfs.SetupMojo.execute(SetupMojo.java:73)
... 19 more
Caused by: org.opencms.db.CmsDbEntryNotFoundException: Project with name "_setupProject" not found.
at org.opencms.db.generic.CmsProjectDriver.readProject(CmsProjectDriver.java:1667)
at org.opencms.db.CmsDriverManager.readProject(CmsDriverManager.java:6178)
at org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3721)
... 23 more
------------------------------------------------------------------------
Total time: 4 seconds
Finished at: Sat May 22 02:42:10 BST 2010
Final Memory: 39M/374M
Any idea what I am doing wrong?
Thanks,
Graeme
________________________________
Get a free e-mail account with Hotmail. Sign-up now. <http://clk.atdmt.com/UKM/go/197222280/direct/01/>
INFONOVA GmbH
Sitz: Unterpremst?tten bei Graz
Firmenbuchgericht: Landesgericht f?r ZRS Graz
Firmenbuchnummer: FN 44354b
More information about the opencms-dev
mailing list