openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: How does <dependency> to OpenJPA be declared in pom.xml?
Date Mon, 30 Jul 2007 07:42:55 GMT
That looks to me like what works in geronimo, except for <scope>...</ 

In my experience sometimes maven gets confused and stops trying to  
download stuff if there's something wrong with one of the xml  
metadata files.  i would try first mvn -U and if that doesn't work
rm -rf ~/.m2/repository/org/apache/openjpa
mvn -U

If you are trying to build your own openjpa locally you might need to  
run mvn install on openjpa to get it into your local repo. I believe  
package only builds the jar, but does not copy it into the local repo  
so anything else can use it.

hope this helps
david jencks

On Jul 30, 2007, at 12:25 AM, Pinaki Poddar wrote:

> Hi,
>   How does <dependency> to OpenJPA be declared in other pom.xml?
> I have following <dependency> declared in a pom.xml.
> <dependency>
>       <groupId>org.apache.openjpa</groupId>
>       <artifactId>openjpa</artifactId>
>       <version>1.0.0-SNAPSHOT</version>
>       <scope>compile</scope>
> </dependency>
> On a fresh Maven repository, 'mvn package' complaints the following:
> [INFO] Failed to resolve artifact.
> Missing:
> ----------
> 1) org.apache.openjpa:openjpa:jar:1.0.0-SNAPSHOT
>   Try downloading the file manually from the project website.
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.apache.openjpa
> -DartifactId=openjpa \
>           -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/ 
> file
>   Path to dependency:
>         1) org.apache.openjpa:sdo-persistence:jar:0.2.0-SNAPSHOT
>         2) org.apache.openjpa:openjpa:jar:1.0.0-SNAPSHOT
> Pinaki Poddar
> 972.834.2865
> Notice:  This email message, together with any attachments, may  
> contain information  of  BEA Systems,  Inc.,  its subsidiaries   
> and  affiliated entities,  that may be confidential,  proprietary,   
> copyrighted  and/or legally privileged, and is intended solely for  
> the use of the individual or entity named in this message. If you  
> are not the intended recipient, and have received this message in  
> error, please immediately return this by email and then delete it.

View raw message