Comments (10)
The build was indeed broken, but not because of the missing dependencies from the stack trace you posted here. I have fixed the broken build, but I doubt it will resolve your issue. Could you please retry with my latest commit and if the problem is still there, could you please tell me what is the exact command you used to build the project. Thanks!
from jodconverter.
Trying to build after pulling changes.
The command I use is:
gradle build
I will let you know if it works or not.
from jodconverter.
When using gradle, you use the (gradle) distribution installed on your OS (according to the configured PATH). Try this instead:
gradlew build
which will use the gradle wrapper that comes with the project.
from jodconverter.
Still got same issue. Might be something locally at work.
from jodconverter.
This seems to be similar to your problem. I would try this answer if I were you:
http://stackoverflow.com/a/25243438
from jodconverter.
Tried at home and got past that but still was unable to build after checking out latest:
:jodconverter-cli:spotlessJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jodconverter-cli:spotlessJava'.
> The following files had format violations:
jodconverter-cli/src/integTest/java/org/artofsolving/jodconverter/cli/ConvertTest.java
@@ -1,69 +1,69 @@
-/*\r\n
- * Copyright 2004 - 2012 Mirko Nasato and contributors\r\n
- * 2016 - 2017 Simon Braconnier and contributors\r\n
- *\r\n
- * This file is part of JODConverter - Java OpenDocument Converter.\r\n
- *\r\n
- * JODConverter is an Open Source software: you can redistribute it and/or\r\n
- * modify it under the terms of either (at your option) of the following\r\n
- * licenses:\r\n
- *\r\n
- * 1. The GNU Lesser General Public License v3 (or later)\r\n
- * http://www.gnu.org/licenses/lgpl-3.0.txt\r\n
- * 2. The Apache License, Version 2.0\r\n
- * http://www.apache.org/licenses/LICENSE-2.0.txt\r\n
- */\r\n
-\r\n
-package org.artofsolving.jodconverter.cli;\r\n
-\r\n
-import static org.junit.Assert.assertTrue;\r\n
-\r\n
-import java.io.File;\r\n
-\r\n
-import org.junit.Test;\r\n
-\r\n
-public class ConvertTest {\r\n
-\r\n
- private static final String CONFIG_DIR = "src/integTest/resources/config/";\r\n
- private static final String SOURCE_FILE = "src/test/resources/documents/test.doc";\r\n
- private static final String OUTPUT_DIR = "test-output/" + ConvertTest.class.getSimpleName();\r\n
-\r\n
- @Test\r\n
- public void convert() throws Exception {\r\n
-\r\n
- final File inputFile = new File(SOURCE_FILE);\r\n
- final File outputFile = new File(OUTPUT_DIR, "convert.pdf");\r\n
-\r\n
- Convert.main(new String[] {"-k", inputFile.getPath(), outputFile.getPath()});\r\n
-\r\n
- assertTrue(outputFile.isFile() && outputFile.length() > 0);\r\n
- }\r\n
-\r\n
- @Test\r\n
- public void convertWithMultipleFilters() throws Exception {\r\n
-\r\n
- final File filterChainFile = new File(CONFIG_DIR + "filterchain_multiple.xml");\r\n
- final File inputFile = new File(SOURCE_FILE);\r\n
- final File outputFile = new File(OUTPUT_DIR, "convertconvertWithSingleFilters.pdf");\r\n
-\r\n
... (90 more lines that didn't fit)
Violations also present in:
jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/Convert.java
jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/CliConverter.java
jodconverter-cli/src/main/java/org/artofsolving/jodconverter/cli/FilterChainBeanFactory.java
Run 'gradlew spotlessApply' to fix these violations.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
from jodconverter.
from jodconverter.
I'll give it a try and yes I tried on Ubuntu.
from jodconverter.
Yes, that did the trick. On Gradle you should be able to detect the OS and run that command if needed.
from jodconverter.
from jodconverter.
Related Issues (20)
- LibreOffice not starting when run from Systemd / tomcat user HOT 2
- Feature Request - Send multiple documents to JodConverter and receive a merged document? HOT 1
- Use of plug-ins HOT 1
- hwp file cannot be opened HOT 2
- OfficeManager could not be found HOT 2
- Unwanted SSL is triggered HOT 2
- An error is reported after the office manager Temporary folder is deleted HOT 1
- Converting spreadsheetML (XML Spreadsheet 2003) to XLSX (Excel Workbook) results in timeout HOT 5
- Cannot find a valid unoloader.jar path. HOT 2
- While Excel to pdf convertion reference cell values not reflected in other sheet excel . HOT 1
- use jodconverter remote cant start project HOT 4
- How do I convert a particular page of ppt/excel/text file to PNG using Java Uno API's HOT 1
- In jodconverter and its API does pagination (converting a certain page of docx/ppt/excel) to PNG uses MSOffice API internally? HOT 7
- Error: This office manager is not running. HOT 2
- there are a blank column in my pdf HOT 1
- Concurrency convertion not happen HOT 4
- When converting DOCX to PDF the style is confused and many pages are lost HOT 4
- how to use it in android application ? HOT 1
- pptx file conversion of PDF failed HOT 1
- Why Task was cancelled automatically HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jodconverter.