Here's the contents of my custom pom, it's modeled after the custom poms
i've seen for previous version of Hibernate:

By the way, when is the latest version of hibernate (3.2.2.ga) going to get
into the main repository?  If that's soon I wouldn't have to deal with
this.  ;-)


<?xml version="1.0"?>

<project
   xmlns="http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";

   <modelVersion>4.0.0</modelVersion>
   <groupId>org.hibernate</groupId>
   <artifactId>hibernate</artifactId>
   <packaging>jar</packaging>
   <version>3.2.1.ga</version>

   <name>Hibernate</name>
   <description>Relational Persistence for Java</description>
   <url>http://www.hibernate.org</url>

   <organization>
       <name>JBoss Inc.</name>
       <url>http://www.jboss.com</url>
   </organization>

   <issueManagement>
       <system>Jira</system>
       <url>http://opensource.atlassian.com/projects/hibernate/browse/HHH
</url>
   </issueManagement>

   <scm>
   <url>http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate3/</url>
       <connection>scm:svn:
http://anonhibernate.labs.jboss.com/trunk/Hibernate3</connection>
       <developerConnection>scm:svn:
https://hibernate.labs.jboss.com/repos/hibernate</developerConnection>
   </scm>

   <licenses>
       <license>
           <name>GNU LESSER GENERAL PUBLIC LICENSE</name>
           <url>http://www.gnu.org/licenses/lgpl.txt</url>
       </license>
   </licenses>

   <dependencies>
       <dependency>
           <groupId>ehcache</groupId>
           <artifactId>ehcache</artifactId>
           <version>1.2.3</version>
       </dependency>
       <dependency>
           <groupId>swarmcache</groupId>
           <artifactId>swarmcache</artifactId>
           <version>1.0RC2</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>jboss</groupId>
           <artifactId>jboss-cache</artifactId>
           <version>1.2.2</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>jgroups</groupId>
           <artifactId>jgroups-all</artifactId>
           <version>2.2.8</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>javax.transaction</groupId>
           <artifactId>jta</artifactId>
           <version>1.0.1B</version>
       </dependency>
       <dependency>
           <groupId>commons-logging</groupId>
           <artifactId>commons-logging</artifactId>
           <version>1.0.4</version>
       </dependency>
       <dependency>
           <groupId>c3p0</groupId>
           <artifactId>c3p0</artifactId>
           <version>0.9.1</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>asm</groupId>
           <artifactId>asm-attrs</artifactId>
           <version>1.5.3</version>
       </dependency>
       <dependency>
           <groupId>javax.security</groupId>
           <artifactId>jacc</artifactId>
           <version>1.0</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>dom4j</groupId>
           <artifactId>dom4j</artifactId>
           <version>1.6.1</version>
           <exclusions>
               <exclusion>
                   <groupId>xml-apis</groupId>
                   <artifactId>xml-apis</artifactId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>antlr</groupId>
           <artifactId>antlr</artifactId>
           <version>2.7.6</version>
       </dependency>
       <dependency>
           <groupId>cglib</groupId>
           <artifactId>cglib</artifactId>
           <version>2.1_3</version>
       </dependency>
       <dependency>
           <groupId>opensymphony</groupId>
           <artifactId>oscache</artifactId>
           <version>2.1</version>
           <optional>true</optional>
       </dependency>
       <dependency>
           <groupId>asm</groupId>
           <artifactId>asm</artifactId>
           <version>1.5.3</version>
       </dependency>
       <dependency>
           <groupId>commons-collections</groupId>
           <artifactId>commons-collections</artifactId>
           <version>2.1.1</version>
       </dependency>
       <dependency>
           <groupId>ant</groupId>
           <artifactId>ant</artifactId>
           <version>1.6.5</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>proxool</groupId>
           <artifactId>proxool</artifactId>
           <version>0.8.3</version>
           <optional>true</optional>
       </dependency>
   </dependencies>

</project>



On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:

Hi Christian,

I tried doing what you did (I also used the same hibernate jar), and
when I checked my local repo,
the custom pom was installed along with the jar file.

Btw, what was in your custom pom?
Mine was:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate</artifactId>
  <packaging>jar</packaging>
  <name>Hibernate</name>
  <version>3.2.2.ga</version>
</project>


Thanks,
Deng


Christian Cabanero wrote:

> Hi Guys
>
> I've used mvn install:install-file in the past and usually it works
great
> but....
>
> I'm trying to now use it while using a custom pom for the 3rd party jar
> (hibernate 3.2.2.ga since it's not in the repository yet).  I'm
following
> the instructions in:
>
>
http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
>
>
> and I'm running this:
>
> $> mvn install:install-file -Dfile=hibernate-3.2.2.ga.jar -DgroupId=
> org.hibernate -DartifactId=hibernate -Dversion=3.2.2.ga -Dpackaging=jar
> -DpomFile=hibernate-3.2.2.ga.pom
>
> It's installing the jar file in my local repository but it's not
> installing
> the custom pom file, hibernate-3.2.2.ga.pom.  The pom file is there in
> the
> directory and is formatted correctly.
>
> Any ideas why this isn't working?
>
> Thanks,
> Christian
>
> On 1/31/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi Fredy,
>>
>> You can use the install:install-file goal of the maven-install-plugin
to
>> do this.
>> For more details, please refer to
>> http://maven.apache.org/plugins/maven-install-plugin/index.html (see
>> Generic Pom Example) <
>> http://maven.apache.org/plugins/maven-install-plugin/>
>>
>> Hope this helps! :-)
>>
>> Thanks,
>> Deng
>>
>> SoftwareEngineering Hauschel wrote:
>>
>> > Hi all,
>> > how can I deploy a 3rdPartyPlugIn in my Repo?
>> > I have a "maven-xyz-plugin-1.0.jar" .
>> >
>> > Fredy
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to