Thanks Eugene for the info. Yes ... i could able to create a maven project as
specified by you. But it's giving an error - 

Project build error:Cannot find artifact for parent POM:
org.mosonex:portal-applications::0.0.1-SNAPSHOT for project
[inherited]:portal:war:[inherited] at /home/raghu/ws/mvn_ws/portal/pom.xml      

Here is my POM file.

<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.4</maven>
    </prerequisites>

    <!-- POM Identification -->

    <artifactId>portal</artifactId>
    <parent>
        <groupId>org.mosonex</groupId>
        <artifactId>portal-applications</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <packaging>war</packaging>
    <name>portal Portal Application</name>

    <!-- Dependencies -->

    <dependencies>

        <!-- Build Dependencies -->
        <dependency>
            <groupId>org.apache.portals.bridges</groupId>
            <artifactId>portals-bridges-velocity</artifactId>
        </dependency>
        <dependency>
            <groupId>velocity</groupId>
            <artifactId>velocity</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
        </dependency>

        <!-- Runtime Dependencies -->
        <dependency>
            <groupId>org.apache.portals.jetspeed-2</groupId>
            <artifactId>jetspeed-webapp-logging</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>taglibs</groupId>
            <artifactId>request</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>velocity-tools</groupId>
            <artifactId>velocity-tools</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <scope>runtime</scope>
        </dependency>

    </dependencies>

    <!-- Build Configuration -->

    <build>

        <!-- J2 Standard Directories -->
        <sourceDirectory>src/java</sourceDirectory>
        <testSourceDirectory>src/test</testSourceDirectory>

        <!-- Resources -->
        <resources>
            <resource>
                <directory>src/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>

        <!-- Test Resources -->
        <testResources>
            <testResource>
                <directory>src/java</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </testResource>
            <testResource>
                <directory>src/test</directory>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </testResource>
        </testResources>

        <!-- Plugins -->
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>hot-deploy-component</id>
                        <phase>install</phase>
                        <configuration>
                            <tasks>
                                <ant target="hot-deploy-war"
antfile="build.xml" dir="${basedir}/../../app-servers" inheritall="off">
                                    <property
name="org.apache.jetspeed.deploy.enable"
                                             
value="${org.apache.jetspeed.env.hotdeploy}"/>
                                    <property
name="org.apache.jetspeed.deploy.target"
                                             
value="${org.apache.jetspeed.env.deploy.target}"/>
                                    <property
name="org.apache.jetspeed.server.home"
                                             
value="${org.apache.jetspeed.server.home}"/>
                                    <property
name="org.apache.jetspeed.deploy.groupid"
                                              value="${pom.groupId}"/>
                                    <property
name="org.apache.jetspeed.deploy.artifactid"
                                              value="${pom.artifactId}"/>
                                    <property
name="org.apache.jetspeed.deploy.version"
                                              value="${pom.version}"/>
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

    </build>

</project>

Please let me know what's wrong with POM file? DO i need any other software
etc? IN which cases the above error appears?

Thank you so much for all your help. I really appreciate it.

THanks again.

-- 
View this message in context: 
http://www.nabble.com/How-do-i-create-a-portal-project-in-eclipse-tp19145272p19171910.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to