Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-501

Maven error with DN enhancer: required artifact missing

    Details

      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

            • Assignee:
              oscarbou Oscar Bou
              Reporter:
              oscarbou Oscar Bou
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: