Hello again,

here are the sources,

here is my maven.xml:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns:j="jelly:core" xmlns:ant="jelly:ant" default="war">
  <preGoal name="java:compile">
    <mkdir dir="${maven.build.dir}/xdoclet/webdoclet/WEB-INF" />
        <attainGoal name="xdoclet:webdoclet" />
  </preGoal>
</project>

followed by the project.properties, for those who don't want to have a
build.properties in their homefolder

projet.properties:

maven.xdoc.date=left
maven.war.webapp.dir=${maven.build.dir}/xdoclet/webdoclet
maven.xdoclet.webdoclet.0=true
maven.xdoclet.webdoclet.0.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-I
NF
maven.xdoclet.webdoclet.0.mergeDir=src/merge
maven.xdoclet.webdoclet.deploymentdescriptor.0.destDir=${maven.build.dir}/xd
oclet/webdoclet/WEB-INF
maven.xdoclet.webdoclet.deploymentdescriptor.0.mergeDir=src/merge

de.oio.portlets.project.name.app=FirstPortlet


and the next is the project.xml

<project>
        <pomVersion>1</pomVersion>
        <id>FirstPortlet</id>
        <groupId>portlet</groupId>
        <name>portletExample</name>
        <currentVersion>1.0</currentVersion>
        <organization>
                <name>Orientation in Objects GmbH</name>
                <url>http://www.oio.de/</url>
                <logo>http://oio.de/i/h.jpg</logo>
        </organization>
        <inceptionYear>2005</inceptionYear>
        <package>de.oio.portlet</package>
        <logo/>
        <description>An example project for porlet development</description>
        <shortDescription>An example project for porlet
development</shortDescription>
        <url/>
        <issueTrackingUrl/>
        <siteAddress/>
        <siteDirector/>
        <distributionDirectory/>
        <mailingLists/>
        <!-- who the developers are for the project -->
        <developers>
  </developers>
        <!-- jar files the project is dependent on -->
        <dependencies>
                <dependency>
                        <groupId>servletapi</groupId>
                        <artifactId>servlet-api</artifactId>
                        <version>2.4-20040521</version>
                        <type>jar</type>
                </dependency>
                <dependency>
                        <groupId>portlet-api</groupId>
                        <artifactId>portlet-api</artifactId>
                        <version>1.0</version>
                        <type>jar</type>
                        <properties>
                                <war.bundle>false</war.bundle>
                        </properties>
                </dependency>
                <!-- XDoclet dependencies -->
                <dependency>
                        <id>xdoclet</id>
                        <version>1.2</version>
                </dependency>
                <dependency>
                        <groupId>xdoclet</groupId>
                        <artifactId>xdoclet-web-module</artifactId>
                        <version>1.2</version>
                        <url>http://xdoclet.sf.net/</url>
                </dependency>
                <dependency>
                        <groupId>xdoclet</groupId>
                        <artifactId>xjavadoc</artifactId>
                        <version>1.0.2</version>
                        <url>http://xdoclet.sf.net/</url>
                </dependency>
                <dependency>
                        <groupId>xdoclet</groupId>
                        <artifactId>maven-xdoclet-plugin</artifactId>
                        <version>1.2</version>
                        <type>plugin</type>
                        <url>http://xdoclet.sf.net/</url>
                </dependency>
        </dependencies>
        <build>
                <sourceDirectory>src/java</sourceDirectory>
                <unitTestSourceDirectory/>
                <resources>
                        <resource>
                                <directory>src/conf</directory>
                                <includes>
                                        <include>*.properties</include>
                                </includes>
                        </resource>
                </resources>
        </build>
</project>

last the portlet.xml:

<?xml version="1.0" encoding="UTF-8"?>

<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";
version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";>

<portlet>
    <portlet-name>FirstPortlet</portlet-name>
    <portlet-class>de.oio.portlets.RssPortlet</portlet-class>
    <expiration-cache>30</expiration-cache>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>edit</portlet-mode>
      <portlet-mode>help</portlet-mode>
    </supports>
    <supported-locale>en-US</supported-locale>

     <portlet-info>
      <title>FirstPortlet</title>
      <short-title>first try</short-title>
      <keywords>test</keywords>
    </portlet-info>
   </portlet>

</portlet-app>

hope you can deploy now your first portlet.

best regards,

Benjamin Bratkus

--
Orientation in Objects GmbH
Weinheimerstr. 68
D-68309 Mannheim
http://www.oio.de
Tel +49(0)621-71839-0
Fax. +49(0)621-71839-50



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to