openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ognjen Blagojevic (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2009) OpenJPA trunk won't compile if folder %m2_home%/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT does not exist
Date Wed, 08 Jun 2011 15:31:58 GMT
OpenJPA trunk won't compile if folder %m2_home%/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT
does not exist
------------------------------------------------------------------------------------------------------------

                 Key: OPENJPA-2009
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2009
             Project: OpenJPA
          Issue Type: Bug
         Environment: Windows XP, Maven 2.2.1, Oracle JDK 1.6.0_24
            Reporter: Ognjen Blagojevic
            Priority: Minor


With clean maven repo, when running mvn compile it fails with message:

[INFO] Building OpenJPA Examples - OpenBooks
...
[INFO] Executing tasks
     [echo] Running OpenBooks genmodel

info:
     [echo]
     [echo]                     Builds OpenBooks demo application.
     [echo]                     OpenJPA Library: d:/java/lib-maven2/repo/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT
     [echo]                     Build mode     : jse
     [echo]                     Deploy Location: D:\java-ext\openjpa\openjpa-examples\openbooks/target/openbooks
     [echo]

check-env:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this
line:
D:\java-ext\openjpa\openjpa-examples\openbooks\build.xml:116: *** Error:
                   The directory for OpenJPA libraries can not be located at d:/java/lib-maven2/repo/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT.
                   Make sure openjpa.lib property value is correct in build.properties file.


Workaround:

1. add

    <dependencies>
      <dependency>
        <groupId>org.apache.openjpa</groupId>
        <artifactId>openjpa-all</artifactId>
        <version>2.2.0-SNAPSHOT</version>
      </dependency>
    </dependencies>

to openjpa-examples\pom.xml, run:

2. Fetch jar file using:

  cd openjpa-examples
  mvn dependency:tree


3. Return to root and compile:

  cd ..
  mvn compile





--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message