[
https://issues.apache.org/jira/browse/OPENJPA-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048436#comment-13048436
]
Ognjen Blagojevic commented on OPENJPA-2009:
--------------------------------------------
'mvn install' also works for me.
'mvn compile' of top level OpenJPA project fails. 'mvn compile' of
openjpa-examples, or openbooks works ok.
Steps to reproduce:
1. Checkout top level OpenJPA trunk
(http://svn.apache.org/repos/asf/openjpa/trunk)
2. make sure that %MAVEN_REPO%/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT
does not exist
3. mvn compile (at the top level)
> 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