-
Notifications
You must be signed in to change notification settings - Fork 48
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
Integrate ODF Validator using Maven #215
Comments
Neither the .war file nor the -with-dependencies.jar file can be easily reused as a Maven dependency; let's try if this works better.
so apparently the binary files in the maven repository are: odfvalidator-0.11.0.war the .war file is built because validator/pom.xml specifies i'm afraid none of these is designed to be used as a library jar file, these are intended for use as a web application or a command line application. in contrast in odfdom/pom.xml there is an ordinary perhaps it will "work" to manually download -with-dependencies.jar and put now it's not clear to me how to add a plain jar file to be built by validator/pom.xml; is that even possible or should there be an additional pom.xml to build the plain jar file and another to build the .war file? hmm... apparently there's an https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses if i add this i get one new file, and it appears to have the appropriate content: a special syntax is required to reference it as a dependency via what i don't know, will "mvn deploy" upload this file or not? |
Neither the .war file nor the -with-dependencies.jar file can be easily reused as a Maven dependency; let's try if this works better.
Argh, accidentally wrote archiveClasses not attachClasses as intended.
Argh, accidentally wrote archiveClasses not attachClasses as intended.
@Asbjoedt We needed two further iterations but now the latest SNAPSHOT release Could you please test it with Maven and give feedback using the following configuration:
|
according to https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses that's not complete, you need to use:
please try and report if this actually works. |
Hi I tried to test this (spent quite some time) but I cannot resolve the dependency. I think it is my own problems with using Idea to import the jar file into the external libraries without using Maven Central. I hope you can find other help on how to test if this fix now works. |
@Asbjoedt Windows: Linux: I have aside of Netbeans as well IntelliJ, what is your scenario? Anything you might provide and I download to verify? In any case, good luck! :-) @Asbjoedt |
Thanks for the reply. I don't see that file/folder. I have this folder It contains these two files |
@Asbjoedt
If you checkout the latest sources of ODF TOOLKIT:
You will have the same directory on your disk: Sorry, I have forgotten to mention this earlier. Best regards, |
Hi!
I am having trouble integrating the ODF Validator through Maven in my Java project.
I can't find the proper import option as part of
org.odftoolkit
.I also had to add
<type>pom</type>
to the pom.xml dependency configuration. See issue: #212This is the code I am using, which in theory should work (I think):
Can you help me?
The text was updated successfully, but these errors were encountered: