where to download jsapar - I cannot find the download section or update link - collabnet

The jsapar.tigris.org site seems to be very different; I just cannot find a way to download the jsapar jar; is also not available in any of the maven repositories. any help for the download link will help. Thanks!

It looks to me like they are posting releases in the "Documents and Files" section of the project. See here:
http://jsapar.tigris.org/servlets/ProjectDocumentList?folderID=11435
Looks like they offer a zip with the JAR and JavaDoc included and another with the source code.
Update 2019: binaries are found in the Maven repository automatically. For code, you can visit their website at GitHub at the following address:
https://github.com/org-tigris-jsapar/jsapar

As of 1.5.0 version of the library has now finally been published to the maven central repository.
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.tigris.jsapar%22%20AND%20a%3A%22jsapar%22
<dependency>
<groupId>org.tigris.jsapar</groupId>
<artifactId>jsapar</artifactId>
<version>1.5.0</version>
</dependency>
EDIT: The project has moved from tigris.org to github.com, see their website here:
https://github.com/org-tigris-jsapar/jsapar

Related

Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd'

I have installed Liquibase runner 1.3.0 plugins in Jenkins and trying to execute liquibase changelog script file which I got after executing 'diffChangeLog' command. While executing script file, I am getting Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd' as exception.
I have checked my changelog file and it has below mentioned header.
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro="http://www.liquibase.org/xml/ns/pro"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
http://www.liquibase.org/xml/ns/pro
http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd
http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
But now here, when I replace '3.8' to '3.5' in both the location in the header, then its getting executed successfully. I want this to get executed with '3.8' only.
Please help.
The header in the changelog specifies only which xsd (XML Schema Description) is used when parsing the changelog xml file into objects. That xsd is embedded in the liquibase jar file that is being used when the command runs. The issue that you are facing is that the Liquibase Runner plugin for Jenkins v 1.3.0 has an older version of the liquibase jar embedded in it. If you look at the change history for that plugin, you will see that it includes version 3.5.3 of Liquibase, so you can only use XML tags that were available in that version. You can set the xsd to reference version 3.5.
The folks at Liquibase (including myself) are currently working on releasing a newer version of the Liquibase runner plugin for Jenkins that would have a newer version of Liquibase in it. I am working with the original author to resolve the security issues that the Jenkins team has flagged. I don't have a date when that will be done. You could build the plugin yourself if you need it sooner, applying PR#16 to your local copy before building it. The source code for the plugin is at https://github.com/jenkinsci/liquibase-runner-plugin
If you'd like to learn more about Liquibase XML and xsd, I have written a section in the Liquibase FAQ that covers this topic.
I saw this error when running a Spring Boot project, but SteveDonie's answer still led me to my solution. The cause of the error is that the changelog file was created with a newer version of Liquibase than what is running. For me, I had to update the liquibase version in my maven pom.
Maybe i can help somebody!:)
Check all your files in resources/db/changelog/* ! If you change in one file -> you must do it anywhere! I think it must be similar;
Check https://docs.liquibase.com/concepts/basic/xml-format.html official documentation liquibase, its best for you, because information in official doc is actualite.
PS sorry for my english:)

How to use RatingStars Vaadin addon

How to use RatingStars Vaadin addon?
I want to use RatingStars addon on all our vaadin pages so that we can get quick feedback from user.
Is there any example available which shows how to use that?
Using widgets with Vaadin (with or without Maven) usually means you have to do 3 things before starting your application:
adding the widget dependency to your classpath
compiling the widgetst
specifying your widgetset
From your description you've already done the first but you had some trouble, so let's take them separately and since you're already using Maven we'll just continue down this road:
1: Adding widgets
I used dependency in project but maven couldn't find this jar so it's failing
<dependency>
<groupId>org.vaadin.addons</groupId>
<artifactId>ratingstars</artifactId>
<version>2.1</version>
</dependency>
Some of the widgets, also known as add-ons, may not be available in the central maven repo, so make sure you add the Vaadin dedicated repo in your POM:
<repositories>
<repository>
<id>vaadin-addons</id>
<url>http://maven.vaadin.com/vaadin-addons</url>
</repository>
...
</repositories>
Now it should resolve and download your dependency, adding it to the classpath.
2: Compiling the widgetset
Then I manually downloaded that jar, unzipped it and kept that my source location. But it's still failing for
Failed to execute goal com.vaadin:vaadin-maven-plugin:7.6.1:compile (default) on project vaadin-widgetset: GWT Module org.vaadin.teemu.ratingstars.RatingStars not found in project sources or resources
Now, before you can run your app, you also need to compile the widgetset. If you've generated your project skeleton using the vaadin-archetype-application everything should be already configured and you simply need to run mvn package (or mvn vaadin:compile for just the compilation process).
Otherwise take a look at this sample project for a standard vaadin-maven-plugin configuration.
P.S. Depending on you IDE, you can also use dedicated IDE plugins for these tasks, but that's up to you.
3: Specifying the widgetset
Finally, depending on your servlet version and app setup you can define your widgetset location by:
using the web.xml file:
<init-param>
<description>Application widgetset</description>
<param-name>widgetset</param-name>
<param-value>com.example.MyWidgetSet</param-value>
</init-param>
annotating your UI with #Widgetset("com.example.MyWidgetSet")
Now you should be able to run your application and see the widget on your screen :-)

Create REST API documentation via swagger.io

I have my REST API created with JAX-RS and Resteasy. I annotated with swagger annotation and I would like to generate the documentation by running some task via the Eclipse maven plugin. (Eclipse Luna/Maven 3).
I included the following dependencies in the project .pom
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.2-M2</version>
</dependency>
I create a new configuration under Eclipse -> Run Configuration with a Goal set to Package, but when I run it nothing happens.
Am I missing some dependencies?
Can anyone suggest some tips, I am not making out in using this tool and the site documentation is not helping.
Thanks
take a look at the swagger-samples project, which shows how you need to configure your application after adding the annotations (which, I suggest you update to the latest, 1.5.7).

Using Maven API download a JAR

In a simple java program, How can I download a JAR from a Maven repository ?
The repository can be local as well as remote ? I am using Maven 3.
As noted by #amit your use of Maven-3 is not relevant. Your application is interested in accessing a JAR at runtime. It just so happens that this JAR is available at a Maven repository. Maven is a build-time tool. It cannot help you at runtime.
So if we have interpreted your question correctly, the issue is one of formulating the URL and making an HTTP request. Since you say the JAR is hosted by a Maven repository you know the format of the URL:
http://repository.url/group_id_segments_separated_with_slashes/artifact_id/version/artifact_id-version.jar
You can take advantage of this in your program if you need to access more than one JAR in this fashion.
define the necessary mapping for dependency tags in POM.xml and than provide repository information inside repository tags... for example..
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.11</version>
</dependency>
and
<repository>
<id>snapshot-repository.java.net</id>
<name>Java.net Snapshot Repository for Maven</name>
<url>https://maven.java.net/content/repositories/snapshots/</url>
<layout>default</layout>
</repository>
see more about this here

ant-metricstask.jar

Warning : since version 1.3.6 the anttask.jar as been renamed ant-metricstask.jar
As of version 1.3.2 the metrics plugin contains some ant tasks that can be used for headless operations as part of a nightly build for example. This section describes how to do this.
Where can i get it? I can not find it anywhere.
Are you looking for ant-metricstask.jar?
It's available in the eclipse plugin downloadable at
http://sourceforge.net/projects/metrics/files/
Point eclipse directly at the URL or download the updatesite_1.3.6.zip and you can get the jar inside.

Resources