[opencms-dev] Maven Build Error
Graeme Kidd
coolkidd3 at hotmail.com
Tue Jun 1 16:45:41 CEST 2010
Hi Adrián ,
Thanks for getting back in touch, I sucessfully ran the 'clean' then 'package' goal from the parent project. Then when I tried to run the 'package' goal again without first running 'clean' it failed. Does this imply that the 'package' goal must always succeed 'clean'? I have not made any changes to the POM.xml files except for the changes required to connect to the MySQL database.
Date: Tue, 1 Jun 2010 09:46:08 +0200
From: A.Rodriguez at comundus.com
To: opencms-dev at opencms.org
Subject: Re: [opencms-dev] Maven Build Error
Hi Graeme, sorry for the late answer,
looks like you are trying to run the goal directly on the webapp
project, which is not the usual way to do it. Try to call the goals clean and
package from the parent project.
Anyhow, the error is about an inexistent project ‘_setupProject’
which I don’t know about. If you send me the POMs, I could see what
happens.
Greetings
_________________________________________
Adrián Rodríguez
IT-Berater
comundus GmbH
Schüttelgrabenring 3, D-71332 Waiblingen
Telefon +49 7151-50028-20
E-Mail a.rodriguez at comundus.com
Internet www.comundus.com
Geschäftsführer Klaus Hillemeier
Amtsgericht Stuttgart, HRB 264290
comundus ist ein Unternehmen der IT EXCELLENCE Group
_________________________________________
Die Kundenzufriedenheit bei comundus wieder verbessert -
Durchschnittsnote jetzt 1,7.
From:
opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On
Behalf Of Graeme Kidd
Sent: Saturday, May 22, 2010 3:44 AM
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/195013117/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100601/b868d7d5/attachment.htm>
More information about the opencms-dev
mailing list