The "base" directory's POM.xml:

<project>
   <modelVersion>4.0.0</modelVersion>
   <properties>
           <base.version>2.1.2-SNAPSHOT</base.version>
   </properties>
   <groupId>com.solbright</groupId>
   <version>${base.version}</version>
   <artifactId>base</artifactId>
   <packaging>pom</packaging>
   <name>base</name>
   <modules>
      <module>jar</module>
          <module>servlet</module>
          <module>har</module>
   </modules>
   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>com.solbright.base</groupId>
            <artifactId>jar</artifactId>
                        <version>${base.version}</version>
                        <type>jar</type>
         </dependency>
                 <dependency>
                         <groupId>com.solbright.base</groupId>
                         <artifactId>servlet</artifactId>
                         <version>${base.version}</version>
                         <type>jar</type>
                 </dependency>
                 <dependency>
                         <groupId>com.solbright.base</groupId>
                         <artifactId>har</artifactId>
                         <version>${base.version}</version>
                         <type>har</type>
                 </dependency>
      </dependencies>
   </dependencyManagement>
</project>

The JAR directory pom:
<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.solbright.base</groupId>
   <artifactId>jar</artifactId>
   <packaging>jar</packaging>
   <name>jar</name>
   <version>${base.version}</version>
   <parent>
      <groupId>com.solbright</groupId>
      <artifactId>base</artifactId>
          <version>${base.version}</version>
   </parent>
        <build>
                <finalName>base</finalName>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <configuration>
                                        <archive>
                                                <manifest>

<addClasspath>true</addClasspath>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                ...
        </dependencies>

And, finally the HAR pom.xml

<project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>com.solbright.base</groupId>
   <artifactId>har</artifactId>
   <packaging>har</packaging>
   <name>har</name>
   <version>${base.version}</version>
   <parent>
      <groupId>com.solbright</groupId>
      <artifactId>base</artifactId>
          <version>${base.version}</version>
   </parent>
        <build>
                <finalName>base-hib</finalName>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <configuration>
                                        <archive>
                                                <manifest>

<addClasspath>true</addClasspath>
                                                </manifest>
                                        </archive>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>net.sf.maven-har</groupId>
                                <artifactId>maven-har-plugin</artifactId>
                                <version>0.9</version>
                                <extensions>true</extensions>
                        </plugin>
                </plugins>
        </build>
        <dependencies>
                <dependency>
                        <groupId>com.solbright.base</groupId>
                        <artifactId>jar</artifactId>
                        <version>${base.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate</artifactId>
                        <version>3.1.3</version>
                </dependency>
                ...
        </dependencies>
</project>

On Wed, Jun 24, 2009 at 7:36 AM, Baptiste MATHUS <[email protected]> wrote:
>
> Well, could you give us at least an excerpt of your pom?
> I'm guessing you want to use some jar and didn't acknowledge the local maven
> repository existence, but I might be wrong.
> In fact you seem to be trying to directory use some given jar that's been
> produced by another projet.
>
> But this is all suppositions and I might be wrong, please let us see your
> poms.
>
> Cheers.
>
> 2009/6/22 David Weintraub <[email protected]>
>
> > I have a project (it's actually a sub-project of another project, so
> > it will get interesting).
> >
> > We build three items: base.jar, base-ui.jar, and base-hib.har. These
> > each are in their own sub-directory, and I can treat them like
> > projects. I was able to get the whole thing working. However, the
> > base-hib.har uses Hibernate, and I couldn't find any information on
> > setting up a project that uses Hibernate.
> >
> > I was able to generate a Hibernate pom.xml using archetype:generate,
> > but it seems like that the POM requires a service file to be named
> > "jboss-service.xml". Unfortunately, ours is named
> > hibernate-service.xml, and I couldn't find anyway to configure this in
> > the POM.
> >
> > Another question: I build the base.jar file, and the other two
> > projects depend upon that file. I've setup the POMs to show this
> > dependency: Everything builds, but when I run analyze:dependency, it
> > tells me it is missing base.jar
> >
> > --
> > David Weintraub
> > [email protected]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !



--
David Weintraub
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to