Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-501

Maven error with DN enhancer: required artifact missing

    XMLWordPrintableJSON

Details

    • Dependency upgrade
    • Status: Closed
    • Major
    • Resolution: Fixed
    • objectstore-jdo-1.3.0
    • objectstore-jdo-1.3.0
    • Persistence JDO
    • None

    Description

      Seems that there has been changes on the DN repositories and/or dependencies recently.

      The current snapshot fails to build with message:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1:23.839s
      [INFO] Finished at: Tue Aug 27 21:14:03 CEST 2013
      [INFO] Final Memory: 59M/123M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.datanucleus:datanucleus-maven-plugin:3.2.0-release:enhance (default) on project isis-objectstore-jdo-applib: Execution default of goal org.datanucleus:datanucleus-maven-plugin:3.2.0-release:enhance failed: Plugin org.datanucleus:datanucleus-maven-plugin:3.2.0-release or one of its dependencies could not be resolved: Could not find artifact javax.jdo:jdo-api:jar:3.1-SNAPSHOT -> [Help 1]

      The solution, detailed on [1], is to go to the pom.xml of the "dom" (domain) module and force the "datanucleus-maven-plugin" to use the jdo-api 3.0.1 version, instead of a the 3.0.1-SNAPSHOT version. To do that, simply add this:

      <build>
      <plugins>
      <plugin>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-maven-plugin</artifactId>
      <version>3.2.0-release</version>
      <dependencies>

      .....
      <dependency>
      <groupId>javax.jdo</groupId>
      <artifactId>jdo-api</artifactId>
      <version>3.0.1</version>
      </dependency>

      .....

      [1] http://www.datanucleus.org/servlet/jira/browse/NUCMAVEN-27

      Attachments

        Activity

          People

            oscarbou Óscar Bou
            oscarbou Óscar Bou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: