Hi, I am not entirely sure this is the correct mailing list to post on for this plugin. The net.sf.mavin-har seems to have no posts. But I will continue on with my problem anyway. If there is a better place please let me know!
I have a multiple module project The first module contains my hibernate xml files and data java beans and packages as har. The second module defines my DAO classes. This module has a dependancy on data java beans with in the har and is defined in pom.xml. The first module compiles, packages and installs fine into my local repository. The problem is when the second modules attempts to compile test case it has a problem finding the packages and class defined in my har module. I get the following output from running mvn install package com.jaymen.vextor.database.pojo does not exist and build fails. I have noticed that if I change the packaging and dependency to use the jar instead it can compile and execute the test cases fine. I have goggled for an answer but can't seem to find a solution. I know this must be a fairly common issue and must have been encountered before, so I must be missing something. If you can point me in the right direction that would be very helpful. I have attached the pom.xml files I am current using.
<?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>com.jaymen.vextor</groupId> <artifactId>vextor</artifactId> <packaging>pom</packaging> <name>vextor</name> <version>1.0-SNAPSHOT</version> <url>http://maven.apache.org</url> <modules> <module>vextor-database</module> <module>vextor-gui</module> <module>vextor-core</module> <module>vextor-struts</module> </modules> </project>
<?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"> <parent> <artifactId>vextor</artifactId> <groupId>com.jaymen.vextor</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.jaymen.vextor.database</groupId> <artifactId>vextor-database</artifactId> <packaging>har</packaging> <version>1.0-SNAPSHOT</version> <name>vextor-database</name> <build> <extensions> <extension> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version>8.2-504.jdbc3</version> </extension> </extensions> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <configuration> <tasks> <ant target="hbm2xml"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <version>2.0-alpha-2</version> <extensions>true</extensions> <executions> <execution> <phase>generate-sources</phase> <goals> <!-- <goal>hbm2hbmxml</goal> --> <!-- <goal>hbm2cfgxml</goal> --> <goal>hbm2java</goal> </goals> </execution> </executions> <configuration> <components> <component> <name>hbm2cfgxml</name> <implementation>jdbcconfiguration</implementation> <outputDirectory>conf/jboss</outputDirectory> </component> <component> <name>hbm2hbmxml</name> <outputDirectory>src/main/resources</outputDirectory> <implementation>jdbcconfiguration</implementation> </component> <component> <name>hbm2java</name> <outputDirectory>src/main/java</outputDirectory> <implementation>jdbcconfiguration</implementation> </component> </components> <componentProperties> <propertyfile>/conf/maven/database.properties</propertyfile> <packagename>com.jaymen.vextor.database.pojo</packagename> <revengfile>/conf/maven/hibernate.reveng.xml</revengfile> <detectmanytomany>true</detectmanytomany> <detectoptmisticlock>false</detectoptmisticlock> </componentProperties> </configuration> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.4</source> <target>1.4</target> </configuration> </plugin> <plugin> <groupId>net.sf.maven-har</groupId> <artifactId>maven-har-plugin</artifactId> <version>1.0</version> <extensions>true</extensions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version>8.2-504.jdbc3</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>3.3.0.ga</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>3.2.5.ga</version> </dependency> <dependency> <groupId>commons-pool</groupId> <artifactId>commons-pool</artifactId> <version>20030825.183949</version> </dependency> </dependencies> </project>
<?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"> <parent> <artifactId>vextor</artifactId> <groupId>com.jaymen.vextor</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>com.jaymen.vextor.core</groupId> <artifactId>vextor-core</artifactId> <name>vextor-core</name> <version>1.0-SNAPSHOT</version> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>20030825.184428</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.0.2</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-mock</artifactId> <version>2.0.5</version> </dependency> <dependency> <groupId>com.jaymen.vextor.database</groupId> <artifactId>vextor-database</artifactId> <version>1.0-SNAPSHOT</version> <type>har</type> </dependency> </dependencies> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]