<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
 <BR>Hi <font style="" color="#494429"><b><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">Adrián </span></b></font>,<br><br>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. <br><br><br><br><hr id="stopSpelling">Date: Tue, 1 Jun 2010 09:46:08 +0200<br>From: A.Rodriguez@comundus.com<br>To: opencms-dev@opencms.org<br>Subject: Re: [opencms-dev] Maven Build Error<br><br>







<style>
.ExternalClass .ecxshape
{;}
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass p.ecxMsoAcetate, .ExternalClass li.ecxMsoAcetate, .ExternalClass div.ecxMsoAcetate
{margin-bottom:.0001pt;font-size:8.0pt;font-family:'Tahoma','sans-serif';}
.ExternalClass span.ecxE-MailFormatvorlage18
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.ecxSprechblasentextZchn
{font-family:'Tahoma','sans-serif';}
.ExternalClass .ecxMsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">Hi Graeme, sorry for the late answer,</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US">Greetings</span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span></p>

<div>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);" lang="EN-US"> </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES">_________________________________________ </span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">   </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES"></span></p>

<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">Adrián Rodríguez</span></b><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">IT-Berater</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">    </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES"></span></p>

<p class="ecxMsoNormal"><b><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;" lang="ES">comundus GmbH</span></b><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);" lang="ES"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">Schüttelgrabenring 3, D-71332 Waiblingen</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">Telefon +49 7151-50028-20</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">E-Mail a.rodriguez@comundus.com</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">Internet www.comundus.com</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"> </span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">Geschäftsführer Klaus Hillemeier  </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">Amtsgericht Stuttgart, HRB 264290</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">         </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 7.5pt; font-family: 'Arial','sans-serif'; color: gray;">comundus ist ein Unternehmen der IT EXCELLENCE Group</span><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"></span></p>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);">_________________________________________</span></p>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif'; color: rgb(255, 127, 0);"> </span></p>

</div>

<table class="ecxMsoNormalTable" style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
 <tbody><tr>
  <td style="width: 63.4pt; padding: 0cm 5.4pt;" valign="top" width="85">
  <p class="ecxMsoNormal"><b><span style="font-size: 9pt; font-family: 'HelveticaNeueLT Pro 45 Lt','sans-serif'; color: rgb(31, 73, 125);"><img id="ecxBild_x0020_11" src="cid:image001.jpg@01CB016E.E7EAB4A0" alt="Kundenzufriedenheit-bei-com" height="67" width="64"></span></b><b><span style="font-size: 9pt; font-family: 'HelveticaNeueLT Pro 45 Lt','sans-serif'; color: rgb(31, 73, 125);"></span></b></p>
  </td>
  <td style="width: 413.9pt; padding: 0cm 5.4pt;" valign="top" width="552">
  <p class="ecxMsoNormal"><span style="font-size: 8pt; font-family: 'Arial','sans-serif'; color: rgb(31, 73, 125);"> </span></p>
  <p class="ecxMsoNormal"><span style="font-size: 8pt; font-family: 'Arial','sans-serif'; color: rgb(31, 73, 125);"> </span></p>
  <p class="ecxMsoNormal"><span style="font-size: 8pt; font-family: 'Arial','sans-serif'; color: rgb(31, 73, 125);">Die Kundenzufriedenheit bei comundus wieder verbessert -<br>
  Durchschnittsnote jetzt 1,7.</span></p>
  <p class="ecxMsoNormal"><b><span style="font-size: 9pt; font-family: 'HelveticaNeueLT Pro 45 Lt','sans-serif'; color: rgb(31, 73, 125);"> </span></b></p>
  </td>
 </tr>
</tbody></table>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<p class="ecxMsoNormal"><span style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: rgb(31, 73, 125);"> </span></p>

<div>

<div style="border-right: medium none; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="ecxMsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';">
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b>On
Behalf Of </b>Graeme Kidd<br>
<b>Sent:</b> Saturday, May 22, 2010 3:44 AM<br>
<b>To:</b> opencms-dev@opencms.org<br>
<b>Subject:</b> [opencms-dev] Maven Build Error</span></p>

</div>

</div>

<p class="ecxMsoNormal"> </p>

<p class="ecxMsoNormal" style="margin-bottom: 12pt;"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';"><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</span></p>

<div class="ecxMsoNormal" style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">

<hr align="center" size="2" width="100%">

</span></div>

<p class="ecxMsoNormal"><span style="font-size: 10pt; font-family: 'Verdana','sans-serif';">Get
a free e-mail account with Hotmail. <a href="http://clk.atdmt.com/UKM/go/197222280/direct/01/">Sign-up
now.</a></span></p>

</div>                                      <br /><hr />Get a new e-mail account with Hotmail – Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>