Re: cannot resolve maven-wolifecycle-plugin

From: Henrique Prange (hprang..mail.com)
Date: Thu Oct 23 2008 - 08:41:30 EDT

  • Next message: Ray Kiddy: "WOLips perhaps not building..."

    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 : Thu Oct 23 2008 - 08:42:35 EDT