I am working through the jetspeed tutorial building jetexpress using java 1.6, 
m2eclipse and maven 2.2.1. I'm new to maven so please forgive me if this is 
easy to resolve and please let me know if you need additional information. The 
following error occurs when jetexpress project Is compiled:
[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]
[INFO] Id: com.tdiinc:jetexpress:pom:0.0.1-SNAPSHOT
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Building jetexpress portal
[INFO]
[INFO] Id: com.tdiinc:jetexpress-portal:war:0.0.1-SNAPSHOT
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [jetspeed-deploy:deploy]
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] jetexpress portal project ............................. SUCCESS [0.000s]
[INFO] jetexpress portal ..................................... FAILED [0.891s]
[INFO] jetexpress portlet application ........................ NOT BUILT
[INFO] ------------------------------------------------------------------------
[ERROR]

The following mojo encountered an error while executing:
Group-Id: org.apache.portals.jetspeed-2
Artifact-Id: jetspeed-deploy-maven-plugin
Version: 2.2.0
Mojo: deploy
brought in via: POM

While building project:
Group-Id: com.tdiinc
Artifact-Id: jetexpress-portal
Version: 0.0.1-SNAPSHOT
>From file: C:\Program 
>Files\eclipse\workspace\jetexpress\__rootArtifactId__-portal\pom.xml
Reason: Artifact org.apache.portals.jetspeed-2:jetspeed-layouts:war dependency 
not defined

Here is the POM.xml in jetexpress-portal project:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing,
  software distributed under the License is distributed on an
  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, either express or implied.  See the License for the
  specific language governing permissions and limitations
  under the License.
--><project 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/maven-v4_0_0.xsd";>

  <modelVersion>4.0.0</modelVersion>
  <prerequisites>
    <maven>2.0.9</maven>
  </prerequisites>

  <artifactId>jetexpress-portal</artifactId>
  <name>jetexpress portal</name>
  <parent>
    <groupId>com.tdiinc</groupId>
    <artifactId>jetexpress</artifactId>
    <version>0.0.1-SNAPSHOT</version>
  </parent>

  <packaging>war</packaging>
  <dependencies>
    <!-- jetspeed compile time dependencies -->
    <!--
    <dependency>
      <groupId>org.apache.portals.jetspeed-2</groupId>
      <artifactId>jetspeed-api</artifactId>
      <version>${org.apache.portals.jetspeed.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.jetspeed-2</groupId>
      <artifactId>jetspeed-portal</artifactId>
      <version>${org.apache.portals.jetspeed.version}</version>
    </dependency>
    -->
    <!-- jetspeed war dependencies -->
    <dependency>
      <groupId>org.apache.portals.jetspeed-2</groupId>
      <artifactId>jetspeed-dependencies</artifactId>
      <version>${org.apache.portals.jetspeed.version}</version>
      <type>pom</type>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.jetspeed-2</groupId>
      <artifactId>jetspeed</artifactId>
      <version>${org.apache.portals.jetspeed.version}</version>
      <type>war</type>
    </dependency>
    <dependency>
      <groupId>org.apache.portals.pluto</groupId>
      <artifactId>pluto-container-api</artifactId>
      <version>${org.apache.pluto.version}</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.portals.jetspeed-2</groupId>
        <artifactId>jetspeed-deploy-maven-plugin</artifactId>
        <version>${org.apache.portals.jetspeed.version}</version>
        <executions>
          <execution>
            <id>deploy-jetspeed-layouts</id>
            <goals>
              <goal>deploy</goal>
            </goals>
            <phase>process-resources</phase>
            <configuration>
              
<targetBaseDir>${project.build.directory}/${project.build.finalName}</targetBaseDir>
              <destinations>
                <local>WEB-INF/deploy/local</local>
              </destinations>
              <deployments>
                <deployment>
                  
<artifact>org.apache.portals.jetspeed-2:jetspeed-layouts:war</artifact>
                  <destination>local</destination>
                </deployment>
              </deployments>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.apache.portals.jetspeed-2</groupId>
            <artifactId>jetspeed-layouts</artifactId>
            <version>${org.apache.portals.jetspeed.version}</version>
            <type>war</type>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warName>${pom.artifactId}</warName>
          <!--<overlays>
            <overlay>
              <id>jetspeed1</id>
              <groupId>org.apache.portals.jetspeed-2</groupId>
              <artifactId>jetspeed</artifactId>
              <includes>
                <include>decorations/layout/css/**</include>
                <include>decorations/portlet/clear/**</include>
                <include>decorations/portlet/decorator.vm</include>
              </includes>
            </overlay>
            <overlay>
              <id>jetspeed2</id>
              <groupId>org.apache.portals.jetspeed-2</groupId>
              <artifactId>jetspeed</artifactId>
              <excludes>
                <exclude>*.jsp</exclude>
                <exclude>ajax/**</exclude>
                <exclude>decorations/**</exclude>
                <exclude>images/**</exclude>
                <exclude>javascript/**</exclude>
                <exclude>WEB-INF/pages/**</exclude>
                <exclude>WEB-INF/min-pages/**</exclude>
              </excludes>
            </overlay>
          </overlays>-->
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>


Sandi Dahl<mailto:[email protected]>, Software Engineer | TDI 
Inc.<http://www.tdiinc.com/> | 17255 N 82nd Street, Scottsdale  AZ  85255| P: 
480.538.7747  | F: 480.515.7447



________________________________
Confidentiality Notice:
The information contained in this communication, including attachments, is 
privileged and confidential. It is intended only for the exclusive use of the 
addressee. If the reader is not the intended recipient, or the employee, or the 
agent responsible for delivering it to the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this communication in error, 
please notify us by return email or telephone immediately. Thank you.

Reply via email to