Unable to produce Tattletale report with Maven
oranheim Feb 23, 2012 7:47 AMHi,
I'm using maven-3.0.4 and the Tattletale report is not generated.
My maven config:
<profile>
<id>tattletale</id>
<build>
<plugins>
<!-- tattletale is expecting a folder with jars in it, so I need to gather those together -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>copy-dependency-jars-to-tattletale-source-directory</id>
<phase>pre-site</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${tattletale-source-directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- ... gather up the last jars -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.2</version>
<executions>
<execution>
<id>copy-project-jar-and-java-rt-jar-to-tattletale-source-directory</id>
<phase>pre-site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${tattletale-source-directory}</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}</directory>
<filtering>false</filtering>
<includes>
<include>${project.build.finalName}.jar</include>
</includes>
</resource>
<resource>
<directory>${java.home}/lib</directory>
<filtering>false</filtering>
<includes>
<include>rt.jar</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jboss.tattletale</groupId>
<artifactId>tattletale-maven</artifactId>
<!-- The version of the plugin you want to use -->
<version>${tattletale.version}</version>
<executions>
<execution>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- This is the location which will be scanned for generating tattletale reports -->
<source>${tattletale-source-directory}</source>
<!-- This is where the reports will be generated -->
<destination>${tattletale-destination-directory}</destination>
<classloader>org.jboss.tattletale.reporting.classloader.JBossASClassLoaderStructure</classloader>
<profiles>
<profile>java6</profile>
<profile>ee6</profile>
<profile>cdi10</profile>
</profiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
When I issue:
mvn clean package -Ptattletale
The maven output is:
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ musific-next --- [INFO] Packaging webapp [INFO] Assembling webapp [musific-next] in [/Users/oranheim/Documents/workspace/parts/musific-next/target/musific-next] [INFO] Processing war project [INFO] Copying webapp webResources [/Users/oranheim/Documents/workspace/parts/musific-next/src/main/webapp] to [/Users/oranheim/Documents/workspace/parts/musific-next/target/musific-next] [INFO] Copying webapp resources [/Users/oranheim/Documents/workspace/parts/musific-next/src/main/webapp] [INFO] Webapp assembled in [1856 msecs] [INFO] Building war: /Users/oranheim/Documents/workspace/parts/musific-next/target/musific-next.war [INFO] WEB-INF/web.xml already added, skipping [INFO] [INFO] --- tattletale-maven:1.1.2.Final:report (default) @ musific-next --- [INFO] Scanning: /Users/oranheim/Documents/workspace/parts/musific-next/target/tattletale-source [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.075s [INFO] Finished at: Thu Feb 23 13:45:04 CET 2012 [INFO] Final Memory: 29M/81M [INFO] ------------------------------------------------------------------------
When issuing:
mvn clean package site -Ptattletale
The site report is generated, but still not Tattletale report.
So what may be wrong here?
Ove