portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maccybex <maccy...@gmail.com>
Subject Problem building JetSpeed 2 (Invalid or non-existing target directory)
Date Thu, 16 Sep 2010 15:35:26 GMT
Hello everyone,

(I am following the official tutorial, this step can be found here
http://portals.apache.org/jetspeed-2/tutorial/01/build-it.html)

When I try to build jetexpress with mvn jetspeed:mvn -Dtarget=all, I get the
following error message:

--------------------------------BEGIN-----------------------------------------
D:\workspace\jetspeed\jetexpress>mvn jetspeed:mvn -Dtarget=all
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   jetexpress portal project
[INFO]   jetexpress portal
[INFO]   jetexpress portlet application
[INFO]
------------------------------------------------------------------------
[INFO] Building jetexpress portal project
[INFO]    task-segment: [jetspeed:mvn] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [jetspeed:mvn {execution: default-cli}]
[INFO] Resolved target(s) order: [install-portal, install-pa, install,
db-porta
, db, deploy-portal, deploy-pa, all]
[INFO] Executing target: install-portal
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Invalid or non-existing target directory
D:\workspace\jetspeed\jetexpres
-portal
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Sep 16 18:15:34 EEST 2010
[INFO] Final Memory: 9M/17M
[INFO]
------------------------------------------------------------------------
----------------------------------END------------------------------------------


I've modified jetspeed-mvn-settings.xml according to the official tutorial;
these are the changes I've made:
<org.apache.jetspeed.server.home>C:/tomcat/</org.apache.jetspeed.server.home>
<org.apache.jetspeed.production.database.url>jdbc:derby:C:/jetspeed/derby/productiondb;create=true</org.apache.jetspeed.production.database.url>

Tomcat 6 server is already there and the database should be created at this
location.

Also, I've created settings.xml at C:\Documents and Settings\Username\.m2
with the following contents (without begin and end lines):

--------------------------------BEGIN-----------------------------------------
<settings xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
       http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <pluginGroups>
    <pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>
  </pluginGroups>

  <!-- There might be more configuration here -->

</settings>
----------------------------------END------------------------------------------


Path D:\workspace\jetspeed conatins directory from
jetspeed-2-2.2.1-source-release.zip, and D:\workspace\jetspeed\jetexpress
contains the result of
"mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=jetspeed-archetype -DarchetypeVersion=2.2.1
-DartifactId=jetexpress -Dpackage=org.apache.portals.tutorials
-DgroupId=org.apache.portals.tutorials -Dversion=1.0-SNAPSHOT".


Could you please tell me what is wrong with my build?
It seems the directory is misplaced: it shows
D:\workspace\jetspeed\jetexpres-portal in this message, but it should be
D:\workspace\jetspeed\jetexpress\jetexpress-portal.
I am using Windows XP SP2, JDK 1.6, Tomcat 6.


Thanks for any information!

Best regards,
Andrey!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message