Re: cannot resolve maven-wolifecycle-plugin

From: M.Y. Tjoe (tjo..ow.edu.au)
Date: Fri Oct 24 2008 - 00:33:05 EDT

  • Next message: Lachlan Deck: "entity modeler loading extra models"

    Hi Henrique,

    The new one that I created from scratch doesn't have
    <packaging>woapplication</packaging> (it has <packaging>war</
    packaging> instead, I've attached the new pom.xml). I didn't create
    the maven project from eclipse. I create the project from command line
    and imported it into eclipse and fixed the library references (like
    er.extension.* to er.extensions.appserver.*). mvn help:effective-pom
    run successfully but mvn clean jetty:run-war gives errors. I'll keep
    trying. Hopefully it wouldn't take me too long. Thanks guys.

    Regards,
    Harvey

    On 23/10/2008, at 11:41 PM, Henrique Prange wrote:

    > Hi Harvey,
    >
    > Which version of Maven are you using? Could you try to execute the
    > following command?
    >
    > mvn help:effective-pom
    >
    > If you get the same error, remove the
    > <packaging>woapplication</packaging> declaration and try again.
    >
    > Cheers,
    >
    > Henrique
    >
    > M.Y. Tjoe wrote:
    >> here is the pom.xml:
    >>
    >>
    >> <?xml version="1.0" encoding="UTF-8"?>
    >> <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>
    >> <groupId>its.uow</groupId>
    >> <artifactId>testMaven</artifactId>
    >> <packaging>woapplication</packaging>
    >> <version>0.1</version>
    >> <name>testMaven WebObjects App</name>
    >> <url>http://maven.apache.org>
    >>
    >> <properties>
    >> <woversion>5.4.3</woversion>
    >> </properties>
    >>
    >> <build>
    >> <finalName>testMaven</finalName>
    >> <resources>
    >> <resource>
    >> <targetPath>Resources</targetPath>
    >> <directory>${basedir}/src/main/resources</directory>
    >> </resource>
    >> <resource>
    >> <targetPath>Resources</targetPath>
    >> <directory>${basedir}/src/main/components</directory>
    >> </resource>
    >> <resource>
    >> <targetPath>WebServerResources</targetPath>
    >> <directory>
    >> ${basedir}/src/main/webserver-resources
    >> </directory>
    >> </resource>
    >> </resources>
    >> <plugins>
    >> <plugin>
    >> <groupId>org.objectstyle.woproject.maven2</groupId>
    >> <artifactId>maven-wolifecycle-plugin</artifactId>
    >> <version>2.0.14</version>
    >> <extensions>true</extensions>
    >> </plugin>
    >> </plugins>
    >> </build>
    >> <repositories>
    >> </repositories>
    >>
    >> <dependencies>
    >> <dependency>
    >> <groupId>com.webobjects</groupId>
    >> <artifactId>JavaFoundation</artifactId>
    >> <version>${woversion}</version>
    >> </dependency>
    >> <dependency>
    >> <groupId>com.webobjects</groupId>
    >> <artifactId>JavaWebObjects</artifactId>
    >> <version>${woversion}</version>
    >> </dependency>
    >> <dependency>
    >> <groupId>com.webobjects</groupId>
    >> <artifactId>JavaEOAccess</artifactId>
    >> <version>${woversion}</version>
    >> </dependency>
    >> </dependencies>
    >> </project>
    >>
    >> Regards,
    >> Harvey
    >>
    >>
    >>
    >> On 23/10/2008, at 4:58 PM, Lachlan Deck wrote:
    >>
    >>> On 23/10/2008, at 4:46 PM, M.Y. Tjoe wrote:
    >>>
    >>>> I added profile id to setting/xml
    >>>>
    >>>> <id>default</id>
    >>>> <activation>
    >>>> <activeByDefault>true</activeByDefault>
    >>>> </activation>
    >>>>
    >>>> and getting new error shown below. I think the dependency issue is
    >>>> resolved. Thanks guys.
    >>>
    >>> Great.
    >>>
    >>>> MBP:testMaven mytjoe$ mvn package
    >>>> [INFO] Scanning for projects...
    >>>> [INFO]
    >>>> ------------------------------------------------------------------------
    >>>> [ERROR] FATAL ERROR
    >>>> [INFO]
    >>>> ------------------------------------------------------------------------
    >>>> [INFO] Error building POM (may not be this project's POM).
    >>>>
    >>>> Project ID: unknown
    >>>> POM Location: /Users/mytjoe/.m2/testMaven/pom.xml
    >>>>
    >>>> Reason: Parse error reading POM. Reason: Duplicated tag:
    >>>> 'packaging' (position: START_TAG seen ...</artifactId>\n\t
    >>>> \t<packaging>.....1:14) for project unknown at /Users/mytjoe/.m2/
    >>>> testMaven/pom.xml
    >>>>
    >>>>
    >>>> [INFO]
    >>>> ------------------------------------------------------------------------
    >>>> [INFO] Trace
    >>>> org.apache.maven.reactor.MavenExecutionException: Parse error
    >>>> reading POM. Reason: Duplicated tag: 'packaging' (position:
    >>>> START_TAG seen ...</artifactId>\n\t\t<packaging>.....1:14) for
    >>>> project unknown at /Users/mytjoe/.m2/testMaven/pom.xml
    >>>
    >>> And your pom looks like? It's complaining that you've got a
    >>> duplicate
    >>> tag.
    >>>
    >>> with regards,
    >>> --
    >>>
    >>> Lachlan Deck
    >>>
    >>>
    >>>
    >>



    This archive was generated by hypermail 2.0.0 : Fri Oct 24 2008 - 00:34:17 EDT