You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Norman <mi...@oracle.com> on 2012/01/30 20:01:13 UTC

surefire report missing css, images

[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject: org.eclipse.persistence:org.eclipse.persistence.oracleddlparser:1.0.0-SNAPSHOT @ C:\_eclipselink\oracleddlparser\oracleddlparser\pom.xml
[WARNING] org.eclipse.persistence.oracleddlparser_1.0.0.qualifier has been replaced by another bundle with the same symbolic name org.eclipse.persistence.oracleddlparser_1.0.0.qualifier
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building EclipseLink Oracle DDL Parser 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier (default-build-qualifier) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-id (default-validate-id) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-version (default-validate-version) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- tycho-compiler-plugin:0.13.0:compile (default-compile) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using compile source roots from build.properties
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-cli) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Compiling 28 source files to C:\_eclipselink\oracleddlparser\oracleddlparser\target\test-classes
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier (default-build-qualifier) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-id (default-validate-id) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-version (default-validate-version) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- tycho-compiler-plugin:0.13.0:compile (default-compile) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using compile source roots from build.properties
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\_eclipselink\oracleddlparser\oracleddlparser\src\test\resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.11:test (test) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Surefire report directory: C:\_eclipselink\oracleddlparser\oracleddlparser\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.eclipse.persistence.tools.oracleddl.test.AllTests
Tests run: 75, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.859 sec

Results :

Tests run: 75, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] >>> maven-surefire-report-plugin:2.11:report (generate-test-report) @ org.eclipse.persistence.oracleddlparser >>>
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:build-qualifier (default-build-qualifier) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-id (default-validate-id) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- tycho-packaging-plugin:0.13.0:validate-version (default-validate-version) @ org.eclipse.persistence.oracleddlparser ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- tycho-compiler-plugin:0.13.0:compile (default-compile) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using compile source roots from build.properties
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\_eclipselink\oracleddlparser\oracleddlparser\src\test\resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.11:test (test) @ org.eclipse.persistence.oracleddlparser ---
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO] 
[INFO] <<< maven-surefire-report-plugin:2.11:report (generate-test-report) @ org.eclipse.persistence.oracleddlparser <<<
[INFO] 
[INFO] --- maven-surefire-report-plugin:2.11:report (generate-test-report) @ org.eclipse.persistence.oracleddlparser ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.124s
[INFO] Finished at: Mon Jan 30 13:38:02 EST 2012
[INFO] Final Memory: 14M/35M
[INFO] ------------------------------------------------------------------------

Re: surefire report missing css, images

Posted by Barrie Treloar <ba...@gmail.com>.
On Tue, Jan 31, 2012 at 6:59 PM, Kristian Rosenvold
<kr...@zenior.no> wrote:
> I've been wondering about SUREFIRE-616; what is the "correct" way to
> actually fix this issue ?

I've been wondering what caused the breakage, but haven't had time to
find what changed.

I think the report secondary artefacts (like css, etc) need to be
built as part of the report generation.  I don't know if we know what
the mappings are but they can't be too hard to work out.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: surefire report missing css, images

Posted by Kristian Rosenvold <kr...@zenior.no>.
I've been wondering about SUREFIRE-616; what is the "correct" way to 
actually fix this issue ?

Kristian

Den 31.01.2012 01:46, skrev Barrie Treloar:
> On Tue, Jan 31, 2012 at 5:31 AM, Michael Norman
> <mi...@oracle.com>wrote:
>
>>   Running maven 3.0.4 via m2e (Maven Integration for Eclipse version
>> 1.0.100.20110804-1717).
>>
> Google will tell you (
> https://www.google.com/search?q=surefire+report+missing+css) that its a
> known issue http://jira.codehaus.org/browse/SUREFIRE-616.
>
> The work around is to run "site" so that the css/images get generated.
> But dont run "clean" or they will get removed again.
>
> Some people also claim you can downgrade your surefire-report plugin
> version to 2.4.2and it works again (others have tried and it didn't work
> for them).
>
> If you're feeling adventurous a patch to fix this would be appreciated.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: surefire report missing css, images

Posted by Barrie Treloar <ba...@gmail.com>.
On Tue, Jan 31, 2012 at 5:31 AM, Michael Norman
<mi...@oracle.com>wrote:

>  Running maven 3.0.4 via m2e (Maven Integration for Eclipse version
> 1.0.100.20110804-1717).
>

Google will tell you (
https://www.google.com/search?q=surefire+report+missing+css) that its a
known issue http://jira.codehaus.org/browse/SUREFIRE-616.

The work around is to run "site" so that the css/images get generated.
But dont run "clean" or they will get removed again.

Some people also claim you can downgrade your surefire-report plugin
version to 2.4.2and it works again (others have tried and it didn't work
for them).

If you're feeling adventurous a patch to fix this would be appreciated.

Re: surefire report missing css, images

Posted by Stephen Connolly <st...@gmail.com>.
On 30 January 2012 19:01, Michael Norman <mi...@oracle.com> wrote:

>  Running maven 3.0.4 via m2e (Maven Integration for Eclipse version
> 1.0.100.20110804-1717).
> Here is my pom.xml file:
>     <properties>
>       <maven-surefire-plugin.version>2.11</maven-surefire-plugin.version>
>
> <maven-surefire-report-plugin.version>2.11</maven-surefire-report-plugin.version>
>       <jxr-maven-plugin.version>2.3</jxr-maven-plugin.version>
>     </properties>
>
>     <dependencies>
>       <dependency>
>         <groupId>junit</groupId>
>         <artifactId>junit</artifactId>
>         <version>4.8.2</version>
>         <scope>test</scope>
>       </dependency>
>     </dependencies>
>
>     <build>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>${maven-surefire-plugin.version}</version>
>           <executions>
>             <execution>
>               <id>test</id>
>               <phase>test</phase>
>               <configuration>
>                   <forkMode>once</forkMode>
>                   <redirectTestOutputToFile>true</redirectTestOutputToFile>
>                   <includes>
>                       <include>**/AllTests.java</include>
>                   </includes>
>               </configuration>
>               <goals>
>                 <goal>test</goal>
>               </goals>
>             </execution>
>           </executions>
>         </plugin>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-surefire-report-plugin</artifactId>
>           <version>${maven-surefire-report-plugin.version}</version>
>           <executions>
>             <execution>
>               <id>generate-test-report</id>
>               <phase>test</phase>
>               <goals>
>                 <goal>report</goal>
>               </goals>
>             </execution>
>           </executions>
>         </plugin>
>       </plugins>
>     </build>
>
>     <reporting>
>       <plugins>
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-surefire-report-plugin</artifactId>
>           <version>${maven-surefire-report-plugin.version}</version>
>         </plugin>
>         <plugin>
>           <groupId>org.codehaus.mojo</groupId>
>           <artifactId>jxr-maven-plugin</artifactId>
>           <version>${jxr-maven-plugin.version}</version>
>         </plugin>
>       </plugins>
>     </reporting>
>
> When I run 'mvn compile compiler:testCompile test', everything works (see
> attach'd log)
>

OT,

You do understand how the Maven lifecycle works?

You do understand that you should just be doing "mvn test"

as

1. test is farther along the lifecycle than compile, so you are just
running up to compile twice in a row
2. compiler:testCompile is bound to the test-compile phase of the
lifecycle, which is helpfully before the test phase of the lifecycle


> but in the 'target/site' directory, the surefire-report.html does not
> render very nicely because
> of the missing files under 'target/site/css' and 'target/site/images'
>
> I've seen some discussion about this as part of issue SUREFIRE-616<http://jira.codehaus.org/browse/SUREFIRE-616>,
> but I'm not sure if
> there is a fix other than adding the 'site' goal to the mvn invocation.
> This generates about
> a ~dozen or so files/directories, so its a bit overkill.
>
> --
> [image: Oracle] <http://www.oracle.com>
> Mike Norman | Principal Software Designer
> Phone: +6132884638 | Fax: +6132382818
> Server Technologies | EclipseLink Product
> Oracle Canada | 45 O'Connor Street, Suite 400, Ottawa, Ontario | K1P 1A4
> [image: Hardware and Software, Engineered to Work Together]<http://www.oracle.com>
> [image: Oracle is committed to developing practices and products that help
> protect the environment] <http://www.oracle.com/commitment>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>