Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies #2

Closed
maacl opened this issue Sep 6, 2016 · 7 comments
Closed

Missing dependencies #2

maacl opened this issue Sep 6, 2016 · 7 comments

Comments

@maacl
Copy link

maacl commented Sep 6, 2016

How does one build a self-contained executable jar from this? I am on Ubuntu 16.04 using JDK 8. I have in vain looked for a goal/option that will accomplish this.

@ataillefer
Copy link
Contributor

Hello, indeed there is no way to do this with Maven currently.
I've created an internal issue at Nuxeo to solve this: https://jira.nuxeo.com/browse/VEND-29, it should be handled soon, I'll keep you posted.

@maacl
Copy link
Author

maacl commented Sep 7, 2016

Thanks, much appreciated.

ataillefer added a commit that referenced this issue Sep 7, 2016
ataillefer added a commit that referenced this issue Sep 7, 2016
@ataillefer
Copy link
Contributor

Fixed, now when running mvn clean install you will find a daisydiff-1.2-NX4-SNAPSHOT-jar-with-dependencies.jar in the target directory, that you can use like this for instance:

java -jar target/daisydiff-1.2-NX4-SNAPSHOT-jar-with-dependencies.jar http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/ http://web.archive.org/web/20070107182640/http://news.bbc.co.uk/ --css=http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/nol/shared/css/news_r5.css

Also performed the release-1.2-NX3 release.

@maacl
Copy link
Author

maacl commented Sep 7, 2016

I get the following when trying the above:


java -jar target/daisydiff-1.2-NX4-SNAPSHOT-jar-with-dependencies.jar http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/ http://web.archive.org/web/20070107182640/http://news.bbc.co.uk/ --css=http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/nol/shared/css/news_r5.css
Daisy Diff https://github.com/DaisyDiff/DaisyDiff
Comparing documents: http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/ and http://web.archive.org/web/20070107182640/http://news.bbc.co.uk/
Diff type: html
Writing html output to daisydiff.htm
Adding external css files:
  http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/nol/shared/css/news_r5.css

.Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
.Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
..done

@ataillefer
Copy link
Contributor

Yes, so as it is written: Writing html output to daisydiff.htm, you can find the resulting HTML diff file daisydiff.htm in the current folder and open it with your favorite browser.

@maacl
Copy link
Author

maacl commented Sep 7, 2016

Ok, my bad.

Please note that the second example, ie:

java -jar daisydiff.jar http://cocoondev.org/wiki/291-cd/version/15/part/SimpleDocumentContent/data http://cocoondev.org/wiki/291-cd/version/17/part/SimpleDocumentContent/data --css=http://cocoondev.org/resources/skins/daisysite/css/daisy.css --output=xml --file=daisysite.htm

contains a redirect to:

http://cocoondev.org/wiki/291-cd/version/17/part/SimpleDocumentContent/data/?gtnjs=1

@ataillefer
Copy link
Contributor

Right, bad example from the original code base.
Removing it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants