<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi,<br><br>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:<br><br>NetBeans: Executing '"C:\Program Files\Apache Software Foundation\Apache Maven 2.2.1\bin\mvn.bat" -Dnetbeans.deploy=true -Dnetbeans.execution=true package -e'<br>NetBeans: JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14<br>+ Error stacktraces are turned on.<br>Scanning for projects...<br>------------------------------------------------------------------------<br>Building OpenCms Webapp<br> task-segment: [package]<br>------------------------------------------------------------------------<br>[resources:resources]<br>[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!<br>[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!<br>Copying 2 resources to ../webapp/WEB-INF/classes<br>Copying 8 resources to ../webapp/WEB-INF/config<br>[compiler:compile]<br>No sources to compile<br>[resources:testResources]<br>[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!<br>skip non existing resourceDirectory C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\src\test\resources<br>[compiler:testCompile]<br>No sources to compile<br>[surefire:test]<br>No tests to run.<br>[war:war]<br>Exploding webapp...<br>Assembling webapp webapp in C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp<br>Copy webapp webResources to C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp<br>Generating war C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp.war<br>Building war: C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\target\webapp.war<br>[sql:execute]<br>Executing file: C:\Users\Graeme\Documents\NetBeansProjects\opencms-basic\webapp\src\main\scripts\create_tables.sql<br>31 of 31 SQL statements executed successfully<br>[vfs:setup]<br>log4j:WARN No appenders could be found for logger (org.opencms.init).<br>log4j:WARN Please initialize the log4j system properly.<br>OpenCms: initial setup<br>------------------------------------------------------------------------<br>[ERROR]BUILD ERROR<br>------------------------------------------------------------------------<br>Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup<br><br>Embedded error: Error reading the project with the name "_setupProject".<br>Project with name "_setupProject" not found.<br>------------------------------------------------------------------------<br>Trace<br>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)<br> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)<br> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)<br> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)<br> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br>Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to instantiate (abstract!)com.comundus.opencms.VfsSetup<br> at com.comundus.opencms.vfs.SetupMojo.execute(SetupMojo.java:98)<br> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)<br> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)<br> ... 17 more<br>Caused by: org.opencms.db.CmsDbEntryNotFoundException: Error reading the project with the name "_setupProject".<br> at org.opencms.db.CmsDbEntryNotFoundException.createException(CmsDbEntryNotFoundException.java:75)<br> at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:238)<br> at org.opencms.db.CmsDbContext.report(CmsDbContext.java:212)<br> at org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3723)<br> at org.opencms.file.CmsObject.readProject(CmsObject.java:3059)<br> at com.comundus.opencms.VfsSetup.executeSetupTxt(VfsSetup.java:97)<br> at com.comundus.opencms.VfsSetup.execute(VfsSetup.java:66)<br> at com.comundus.opencms.vfs.SetupMojo.execute(SetupMojo.java:73)<br> ... 19 more<br>Caused by: org.opencms.db.CmsDbEntryNotFoundException: Project with name "_setupProject" not found.<br> at org.opencms.db.generic.CmsProjectDriver.readProject(CmsProjectDriver.java:1667)<br> at org.opencms.db.CmsDriverManager.readProject(CmsDriverManager.java:6178)<br> at org.opencms.db.CmsSecurityManager.readProject(CmsSecurityManager.java:3721)<br> ... 23 more<br>------------------------------------------------------------------------<br>Total time: 4 seconds<br>Finished at: Sat May 22 02:42:10 BST 2010<br>Final Memory: 39M/374M<br><br>Any idea what I am doing wrong?<br><br>Thanks,<br>Graeme<br> <br /><hr />Get a free e-mail account with Hotmail. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>