openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2009) OpenJPA trunk won't compile if folder %m2_home%/org/apache/openjpa/openjpa-all/2.2.0-SNAPSHOT does not exist
Date Thu, 09 Jun 2011 15:50:58 GMT


Kevin Sutter commented on OPENJPA-2009:

On second thought, the "mvn install" is not even necessary.  Using the code in Trunk, I removed
my repo entry for 2.2.0-SNAPSHOT.  From the openjpa-examples directory, I performed a "mvn
clean" followed by a "mvn compile".  Since the 2.2.0-SNAPSHOT dependency is already part of
the openbooks pom, this dependency was automatically downloaded into my repo without having
to modify the examples pom.

So, I'm not sure that we have an issue here.  You definitely ran into a problem, but given
the information thus far, I can't seem to reproduce it.  There must be something in your environment
that is causing our build process to take a left turn.  If you can help narrow down the specific
scenario for reproducing the problem, we'll take a further look.  But, otherwise, I might
have to return this JIRA as unreproducible.


> 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:
>             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] ------------------------------------------------------------------------
> [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
> 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:

View raw message