[opencms-dev] Maven Build Error

Rodriguez, Adrian A.Rodriguez at comundus.com
Tue Jun 1 09:46:08 CEST 2010


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/197222280/direct/01/> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100601/bf338fb7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1701 bytes
Desc: image001.jpg
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20100601/bf338fb7/attachment.jpg>


More information about the opencms-dev mailing list