Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Packaging maven epub3-maven branch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ali Asad Lotia  
View profile  
 More options Oct 25 2012, 10:05 am
From: Ali Asad Lotia <ali.asad.lo...@gmail.com>
Date: Thu, 25 Oct 2012 15:05:10 +0100
Local: Thurs, Oct 25 2012 10:05 am
Subject: Packaging maven epub3-maven branch
Hello All,
When attempting to build a jar within the epub3-maven branch

I do the following within the
epubcheck/branches/epub3-maven/com.adobe.epubcheck directory which
results in a build failure because some test fail.

I have included the full transcript of the mvn package command below.

What am I doing wrong?

Thanks,
Ali

lo...@aal-anobii.local: Thu Oct 25 : 14:59 :
~/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck
$ mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building EpubCheck :: Validation Tool for EPUB 3.0-RC-2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ epubcheck ---
[INFO]
[INFO] --- license-maven-plugin:1.3:add-third-party
(thirdparty-licenses) @ epubcheck ---
[INFO] Merge license [Apache 2] (2 depedencies).
[INFO] Writing third-party file to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-sources/license/THIRD-PARTY.txt
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
epubcheck ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 178 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- xml-maven-plugin:1.0:transform (default) @ epubcheck ---
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-nav-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-svg-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-xhtml-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/media-overlay-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/package-30.sch
[INFO] Transformed 5 file(s).
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-nav-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-svg-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-xhtml-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/media-overlay-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/package-30.sch
[INFO] Transformed 5 file(s).
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ epubcheck ---
[INFO] Compiling 80 source files to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources
(default-testResources) @ epubcheck ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 717 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) @ epubcheck ---
[INFO] Compiling 17 source files to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ epubcheck ---
[INFO] Surefire report directory:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.adobe.epubcheck.api.Epub20CheckExpandedTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.653 sec
Running com.adobe.epubcheck.api.Epub20CheckTest
Tests run: 24, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 4.535
sec <<< FAILURE!
Running com.adobe.epubcheck.api.Epub30CheckExpandedTest
Tests run: 55, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.791 sec
Running com.adobe.epubcheck.api.Epub30CheckTest
Tests run: 20, Failures: 10, Errors: 0, Skipped: 0, Time elapsed:
2.088 sec <<< FAILURE!
Running com.adobe.epubcheck.cli.CLITest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec
Running com.adobe.epubcheck.nav.NavCheckerTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.059 sec
Running com.adobe.epubcheck.ocf.OCFCheckerTest
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.052 sec
Running com.adobe.epubcheck.ocf.OCFFilenameCheckerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.adobe.epubcheck.opf.OPFCheckerTest
Tests run: 53, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.35 sec
Running com.adobe.epubcheck.ops.OPSCheckerTest
Tests run: 49, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.182 sec
Running com.adobe.epubcheck.overlay.OverlayCheckerTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec
Running com.adobe.epubcheck.stress.StressTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running com.adobe.epubcheck.util.ResourceUtilTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec

Results :

Failed tests:
testValidateEPUBvalid20(com.adobe.epubcheck.api.Epub20CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBvalidIssue169(com.adobe.epubcheck.api.Epub20CheckTest):
[creation date] 1305812502000 not found
  testValidateEPUBPvalid30(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBTestSvg(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBMp3(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBMp3WithFallback(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBFontFallbackChain(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUBvalid30(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUB30ValidExtension1(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1314890214000 not found
  testValidateEPUB30CSSProfile(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1323797838000 not found
  testValidateEPUB30Issue158(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1330492368000 not found
  testValidateEPUB30specValid(com.adobe.epubcheck.api.Epub30CheckTest):
[creation date] 1329214800000 not found

Tests run: 283, Failures: 12, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 39.948s
[INFO] Finished at: Thu Oct 25 15:00:17 BST 2012
[INFO] Final Memory: 18M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.10:test
(default-test) on project epubcheck: There are test failures.
[ERROR]
[ERROR] Please refer to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/surefire-reports
for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Deltour  
View profile  
 More options Oct 25 2012, 7:57 pm
From: Romain Deltour <rdelt...@gmail.com>
Date: Fri, 26 Oct 2012 01:57:51 +0200
Local: Thurs, Oct 25 2012 7:57 pm
Subject: Re: Packaging maven epub3-maven branch
Can you please send more details about your environment (available by running "mvn -v") ?

I've just tested the build successfully on:
- Mac OS X 10.8.2 / Java 1.7.0_07 / Maven 3.0.4
- Ubuntu 12.04 / Java 1.6.0_24 / Maven 3.0.4

Thanks,
Romain.

On 25 oct. 2012, at 16:05, Ali Asad Lotia <ali.asad.lo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Asad Lotia  
View profile  
 More options Oct 27 2012, 8:39 am
From: Ali Asad Lotia <ali.asad.lo...@gmail.com>
Date: Sat, 27 Oct 2012 13:39:12 +0100
Local: Sat, Oct 27 2012 8:39 am
Subject: Re: Packaging maven epub3-maven branch
Dear Romain,
Thanks for the speedy response. I'm sorry it's taken me so long to
reply with the requested output which is provided below.

$ mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: /usr/share/maven
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

Best,
Ali

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Deltour  
View profile  
 More options Oct 27 2012, 3:30 pm
From: Romain Deltour <rdelt...@gmail.com>
Date: Sat, 27 Oct 2012 21:30:51 +0200
Local: Sat, Oct 27 2012 3:30 pm
Subject: Re: Packaging maven epub3-maven branch
I'm confused: I just ran it successfully on the following environment, which is almost the same as yours (except for the OS X version, which shouldn't impact the build or tests):

$ mvn -v
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: /usr/local/Cellar/maven/3.0.4/libexec
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"

Is your subversion working copy up-to-date and with no local modifications ?
If yes, can you maybe try to (temporarily) rename your ~/.m2 Maven local repository to start from a clean Maven environment ?

Romain.

On 27 oct. 2012, at 14:39, Ali Asad Lotia <ali.asad.lo...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Asad Lotia  
View profile  
 More options Oct 29 2012, 11:54 am
From: Ali Asad Lotia <ali.asad.lo...@gmail.com>
Date: Mon, 29 Oct 2012 15:54:14 +0000
Local: Mon, Oct 29 2012 11:54 am
Subject: Re: Packaging maven epub3-maven branch
Hi Romain,
I have now tried it on a CentOS 6.3 machine on which I have installed
maven 3.0.4 and I get the same output. It is downloading all the
required dependencies since it is creating a fresh local maven repo. I
have also tested with renaming my existing maven repo on my MacOS
10.6.8 machine and it fails the same 10 unit tests as are failed
below.
--
Ali

[lotia@dbhack com.adobe.epubcheck]$ mvn package
[INFO] Scanning for projects...
Downloading: http://repo.phloc.com/maven2/org/sonatype/oss/oss-parent/7/oss-parent...
Downloading: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss...
Downloaded: http://repo.maven.apache.org/maven2/org/sonatype/oss/oss-parent/7/oss...
(5 KB at 16.4 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building EpubCheck :: Validation Tool for EPUB 3.0-RC-2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-en...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-en...
(7 KB at 74.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/enforcer/enforce...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/enforcer/enforce...
(12 KB at 165.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/17/...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/17/...
(25 KB at 357.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/7/apache-7.pom
(15 KB at 503.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-en...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-en...
(22 KB at 351.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-p...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-p...
(16 KB at 143.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/30/...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/30/...
(27 KB at 742.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/co...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/4/co...
(5 KB at 109.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-p...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/license-maven-p...
(227 KB at 2179.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-re...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-re...
(7 KB at 82.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
(11 KB at 370.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/19/...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/19/...
(25 KB at 763.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/9/apache-9.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/9/apache-9.pom
(15 KB at 462.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-re...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-re...
(26 KB at 690.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/xml-maven-plugi...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/xml-maven-plugi...
(8 KB at 54.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/mojo-parent/28/...
(26 KB at 238.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/co...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/codehaus-parent/3/co...
(5 KB at 91.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/xml-maven-plugi...
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/xml-maven-plugi...
(34 KB at 535.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-co...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-co...
(8 KB at 265.1 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
(13 KB at 453.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/16/...
(23 KB at 757.6 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-co...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-co...
(29 KB at 694.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-su...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-su...
(11 KB at 181.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefir...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefir...
(12 KB at 415.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/20/...
(25 KB at 500.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-su...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-su...
(30 KB at 242.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ja...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ja...
(6 KB at 162.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
(13 KB at 369.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ja...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-ja...
(32 KB at 969.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-as...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-as...
(15 KB at 358.5 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pl...
(13 KB at 265.3 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/21/...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/21/...
(26 KB at 119.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/apache/10/apache-10.pom
(15 KB at 555.9 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-as...
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-as...
(217 KB at 2097.8 KB/sec)
Downloading: http://repo.phloc.com/maven2/com/phloc/phloc-css/3.2.1/phloc-css-3.2....
Downloaded: http://repo.phloc.com/maven2/com/phloc/phloc-css/3.2.1/phloc-css-3.2....
(4 KB at 36.2 KB/sec)
Downloading: http://repo.phloc.com/maven2/com/phloc/parent-pom/21.1/parent-pom-21....
Downloaded: http://repo.phloc.com/maven2/com/phloc/parent-pom/21.1/parent-pom-21....
(34 KB at 215.5 KB/sec) ...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas  
View profile  
 More options Nov 2 2012, 4:25 pm
From: Thomas <tledou...@gmail.com>
Date: Fri, 2 Nov 2012 13:25:27 -0700 (PDT)
Local: Fri, Nov 2 2012 4:25 pm
Subject: Re: Packaging maven epub3-maven branch

Hi Ali,

I just commited some corrections in r370.
While doing my tests, I run into the same issue than you and I appears that
some file texts used during tested where encoded in UTF-8 with BOM which
make the test to fail.

Could you please retry your build and let me know?

Thanks in advance
  Thomas

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Deltour  
View profile  
 More options Nov 2 2012, 4:44 pm
From: Romain Deltour <rdelt...@gmail.com>
Date: Fri, 2 Nov 2012 21:44:44 +0100
Local: Fri, Nov 2 2012 4:44 pm
Subject: Re: Packaging maven epub3-maven branch

Thomas,

I believe Ali's issue below was not an encoding issue. The problem is that the creation date field in the text file reports is time-zone sensitive. The fix would be to output a creation date relative to UTC when writing to the test reports or to simply get rid of the text file reports altogether, which do not really belong to the unit tests IMHO.

Anyway, wrt encoding issues, I did face an issue some time ago due to a text report file that was encoded in latin1 but opened as utf8, but I transcoded the file since then.

The tests run fine on revision 371 (if you're in the CET zone).

Romain.

On 2 nov. 2012, at 21:25, Thomas <tledou...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Ledoux  
View profile  
 More options Nov 2 2012, 5:15 pm
From: Thomas Ledoux <tledou...@gmail.com>
Date: Fri, 2 Nov 2012 22:15:34 +0100
Local: Fri, Nov 2 2012 5:15 pm
Subject: Re: Packaging maven epub3-maven branch
Romain,

this is quite peculiar. Indeed, the [creation date] comes from the
time of the container.xml file in the zip container. From
http://docs.oracle.com/javase/1.4.2/docs/api/java/util/zip/ZipEntry.h...,
the time is supposed to be "the entry modification time in number of
milliseconds since the epoch". So for me this information should not
depend on the local timezone !!! I will look into that to understand
why this value varies.

By the way, the text files in the test environment are not test
reports; they are just reference information (some interesting part of
the report) to be matched with the actual generated reports as part of
the unit tests.

Best
  Thomas

2012/11/2, Romain Deltour <rdelt...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Deltour  
View profile  
 More options Nov 2 2012, 5:34 pm
From: Romain Deltour <rdelt...@gmail.com>
Date: Fri, 2 Nov 2012 22:34:12 +0100
Local: Fri, Nov 2 2012 5:34 pm
Subject: Re: Packaging maven epub3-maven branch

> this is quite peculiar. Indeed, the [creation date] comes from the
> time of the container.xml file in the zip container. From
> http://docs.oracle.com/javase/1.4.2/docs/api/java/util/zip/ZipEntry.h...,
> the time is supposed to be "the entry modification time in number of
> milliseconds since the epoch". So for me this information should not
> depend on the local timezone !!! I will look into that to understand
> why this value varies.

Well, the ZIP contains no info on the time zone where the ZIP entry was created, so the API returns the entry modification time by assuming that the entry was created in the same time zone as the current one.
In other words, if you call ZipEntry#getTime on two different time zones, you will get two different values.

> By the way, the text files in the test environment are not test
> reports; they are just reference information (some interesting part of
> the report) to be matched with the actual generated reports as part of
> the unit tests.

I know, but I believe that it does not make a lot of sense to test that the report matches for each single test method. The "unit" tests are quite focused ; testing the entire report info makes it a tad more dependent on non-related parts of epubcheck. Additionally, it's a bit more difficult to maintain since every time we will like to update the text report format we will need to re-generate the reports for all the test samples.

Romain.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Ledoux  
View profile  
 More options Nov 2 2012, 6:32 pm
From: Thomas Ledoux <tledou...@gmail.com>
Date: Fri, 2 Nov 2012 23:32:24 +0100
Local: Fri, Nov 2 2012 6:32 pm
Subject: Re: Packaging maven epub3-maven branch
Hi Romain,

indeed you were correct. I now calculate an UTC creation date which is
independent of the local timezone. The tests do now work even when I
pretend to be in India :-)

For the test part, the information in the text files is just an
extract of the validation report (the one we want to test). So the
values in the files need to be changed only when the information is
wrong (like for the creation date) and they have been useful to find
my error...

Best
  Thomas

2012/11/2, Romain Deltour <rdelt...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ali Asad Lotia  
View profile  
 More options Nov 10 2012, 10:28 am
From: Ali Asad Lotia <ali.asad.lo...@gmail.com>
Date: Sat, 10 Nov 2012 10:27:58 -0500
Local: Sat, Nov 10 2012 10:27 am
Subject: Re: Packaging maven epub3-maven branch

Hi Thomas and other list members,
I'm sorry for the slow response time. I've been travelling.

I'm currently on revision 374:

$ svn info
Path: .
URL:
http://epubcheck.googlecode.com/svn/branches/epub3-maven/com.adobe.ep...
Repository Root: http://epubcheck.googlecode.com/svn
Repository UUID: ae9e6ba8-4d41-0410-bbe8-1710a195d073
Revision: 374
Node Kind: directory
Schedule: normal
Last Changed Author: markus.gyll...@gmail.com
Last Changed Rev: 374
Last Changed Date: 2012-11-06 15:16:05 -0500 (Tue, 06 Nov 2012)

All the tests appear to pass and it all works beautifully. FYI, i'm
currently in the US Eastern time zone.

The build output is provided below so you can confirm all went well.

$ mvn clean && mvn package
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building EpubCheck :: Validation Tool for EPUB 3.0-RC-2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ epubcheck ---
[INFO] Deleting
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3.855s
[INFO] Finished at: Sat Nov 10 10:14:07 EST 2012
[INFO] Final Memory: 3M/81M
[INFO]
------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building EpubCheck :: Validation Tool for EPUB 3.0-RC-2-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ epubcheck ---
[INFO]
[INFO] --- license-maven-plugin:1.3:add-third-party (thirdparty-licenses) @
epubcheck ---
[INFO] Merge license [Apache 2] (2 depedencies).
[INFO] Writing third-party file to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-sources/license/THIRD-PARTY.txt
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
epubcheck ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 178 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- xml-maven-plugin:1.0:transform (default) @ epubcheck ---
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-nav-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-svg-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/epub-xhtml-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/media-overlay-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/s rc/main/resources/com/adobe/epubcheck/schema/30/package-30.sch
[INFO] Transformed 5 file(s).
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-nav-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-svg-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/epub-xhtml-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/media-overlay-30.sch
[INFO] Transforming file:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/generated-resources/intermediate-schema/package-30.sch
[INFO] Transformed 5 file(s).
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
epubcheck ---
[INFO] Compiling 80 source files to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ epubcheck ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 718 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
epubcheck ---
[INFO] Compiling 17 source files to
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ epubcheck ---
[INFO] Surefire report directory:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.adobe.epubcheck.api.Epub20CheckExpandedTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.545 sec
Running com.adobe.epubcheck.api.Epub20CheckTest
Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.393 sec
Running com.adobe.epubcheck.api.Epub30CheckExpandedTest
Tests run: 55, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.816 sec
Running com.adobe.epubcheck.api.Epub30CheckTest
Tests run: 20, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.679 sec
Running com.adobe.epubcheck.cli.CLITest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.738 sec
Running com.adobe.epubcheck.nav.NavCheckerTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec
Running com.adobe.epubcheck.ocf.OCFCheckerTest
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.509 sec
Running com.adobe.epubcheck.ocf.OCFFilenameCheckerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec
Running com.adobe.epubcheck.opf.OPFCheckerTest
Tests run: 53, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.651 sec
Running com.adobe.epubcheck.ops.OPSCheckerTest
Tests run: 50, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.254 sec
Running com.adobe.epubcheck.overlay.OverlayCheckerTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.354 sec
Running com.adobe.epubcheck.stress.StressTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
Running com.adobe.epubcheck.util.ResourceUtilTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec

Results :

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

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ epubcheck ---
[INFO] Building jar:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/epubcheck-3.0-RC-2-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.3:single (dist-assembly) @ epubcheck ---
[INFO] Reading assembly descriptor: src/main/assembly/dist.xml
[INFO] Building zip:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/epubcheck-3.0-RC-2-SNAPSHOT.zip
[INFO]
[INFO] --- maven-assembly-plugin:2.3:single (src-assembly) @ epubcheck ---
[INFO] Reading assembly descriptor: src/main/assembly/src.xml
[INFO] Building zip:
/Users/lotia/anobiidev/epubcheck/branches/epub3-maven/com.adobe.epubcheck/t arget/epubcheck-src-3.0-RC-2-SNAPSHOT.zip
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2:45.999s
[INFO] Finished at: Sat Nov 10 10:16:59 EST 2012
[INFO] Final Memory: 17M/81M
[INFO]
------------------------------------------------------------------------

Thanks much,
Best,
Ali

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Ledoux  
View profile  
 More options Nov 10 2012, 1:55 pm
From: Thomas Ledoux <tledou...@gmail.com>
Date: Sat, 10 Nov 2012 19:55:25 +0100
Local: Sat, Nov 10 2012 1:55 pm
Subject: Re: Packaging maven epub3-maven branch
Hi Ali,

thanks for reporting the bug and giving feedback.
It's nice to know the program works even over the atlantic ocean :-)

Best
  Thomas

2012/11/10, Ali Asad Lotia <ali.asad.lo...@gmail.com>:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »