[
https://issues.apache.org/jira/browse/OPENJPA-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maxim Solodovnik resolved OPENJPA-2009.
---------------------------------------
Resolution: Fixed
I believe this one is fixed in latest master
> 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 Blagojević
> 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 was sent by Atlassian Jira
(v8.20.7#820007)