If there's not an issue in JIRA for this, please add one. I'll try to find a more elegant solution.

On Mar 23, 2009, at 7:52 AM, tibi <t...@dds.nl> wrote:

ok i started a new project with struts 2 and the problem is still there.
i needed to read several emails and bug items to solve so here is the
story put together.

0% coverage is because the fight between aspectj en cobertura.
turning aspectj of will solve the problem.  so i took out this part:
           <!-- removed for cobertura problem
<plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>aspectj-maven-plugin</artifactId>
               <version>1.0</version>
               <configuration>
                   <source>1.5</source>
                   <verbose>true</verbose>
                   <complianceLevel>1.5</complianceLevel>
                   <showWeaveInfo>true</showWeaveInfo>
                   <aspectLibraries>
                       <aspectLibrary>
                           <groupId>org.springframework</groupId>
                           <artifactId>spring-aspects</artifactId>
                       </aspectLibrary>
                   </aspectLibraries>
               </configuration>
               <executions>
                   <execution>
                       <goals>
                           <goal>compile</goal>
                       </goals>
                   </execution>
               </executions>
               <dependencies>
                   <dependency>
                       <groupId>org.aspectj</groupId>
                       <artifactId>aspectjrt</artifactId>
                       <version>1.6.0</version>
                   </dependency>
                   <dependency>
                       <groupId>org.aspectj</groupId>
                       <artifactId>aspectjtools</artifactId>
                       <version>1.6.0</version>
                   </dependency>
               </dependencies>
           </plugin>
-->

but then i get an error that some file can't be found.
i can solve this with adding this bit:
                   <dependency>
                       <groupId>cobertura</groupId>
                       <artifactId>cobertura</artifactId>
                       <version>1.8</version>
                   </dependency>
to this plugin:
          <plugin>
               <groupId>org.codehaus.mojo</groupId>
               <artifactId>hibernate3-maven-plugin</artifactId>
               <version>2.1</version>
               <configuration>
                   <components>
                       <component>
                           <name>hbm2ddl</name>

<implementation>annotationconfiguration</implementation>
                           <!-- Use 'jpaconfiguration' if you're using
JPA. -->

<!--<implementation>jpaconfiguration</implementation>-->
                       </component>
                   </components>
                   <componentProperties>
                       <drop>true</drop>
                       <jdk5>true</jdk5>

<propertyfile>target/classes/jdbc.properties</propertyfile>
                       <skip>${maven.test.skip}</skip>
                   </componentProperties>
               </configuration>
               <executions>
                   <execution>
                       <phase>process-test-resources</phase>
                       <goals>
                           <goal>hbm2ddl</goal>
                       </goals>
                   </execution>
               </executions>
               <dependencies>
                   <dependency>
                       <groupId>${jdbc.groupId}</groupId>
                       <artifactId>${jdbc.artifactId}</artifactId>
                       <version>${jdbc.version}</version>
                   </dependency>
                   <dependency>
                       <groupId>cobertura</groupId>
                       <artifactId>cobertura</artifactId>
                       <version>1.8</version>
                   </dependency>
               </dependencies>
           </plugin>


now it works...

could this be added in comments in de pom.xml (or is that to ugly?)

ciao

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to