You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Pinaki Poddar <pp...@bea.com> on 2007/07/30 09:25:41 UTC

How does to OpenJPA be declared in pom.xml?

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.

RE: How does to OpenJPA be declared in pom.xml?

Posted by Pinaki Poddar <pp...@bea.com>.
Found the requisite info at the site:
http://openjpa.apache.org/obtaining.html 


Pinaki Poddar
972.834.2865

-----Original Message-----
From: Pinaki Poddar [mailto:ppoddar@bea.com] 
Sent: Monday, July 30, 2007 2:26 AM
To: dev@openjpa.apache.org
Subject: How does <dependency> to OpenJPA be declared in pom.xml?

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.

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.

RE: How does to OpenJPA be declared in pom.xml?

Posted by Pinaki Poddar <pp...@bea.com>.
Thanks, David.
I was not pointing to the right repository.

Following works (slightly different than the instructions at
http://openjpa.apache.org/obtaining.html 

        <repository>
            <id>apache-snapshots</id>
 
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
        </repository>

         <dependency>
            <groupId>org.apache.openjpa</groupId>
            <artifactId>apache-openjpa</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </dependency>


Pinaki Poddar
972.834.2865

-----Original Message-----
From: David Jencks [mailto:david_jencks@yahoo.com] 
Sent: Monday, July 30, 2007 2:43 AM
To: dev@openjpa.apache.org
Subject: Re: How does <dependency> to OpenJPA be declared in pom.xml?

That looks to me like what works in geronimo, except for <scope>...</ 
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.


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.

Re: How does to OpenJPA be declared in pom.xml?

Posted by David Jencks <da...@yahoo.com>.
That looks to me like what works in geronimo, except for <scope>...</ 
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.