Access Spring Web Flow snapshot version using Maven - spring

I need to try the current snapshot version 2.3.1 of Spring Web Flow in my project, hoping it will fix this bug for me. I have read the documentation on how to access nightly builds and added the following to my pom.xml:
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-webflow</artifactId>
<version>2.3.1.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.webflow</groupId>
<artifactId>spring-faces</artifactId>
<version>2.3.1.BUILD-SNAPSHOT</version>
</dependency>
And the repository needed:
<repository>
<id>org.springsource.maven.snapshot</id>
<name>SpringSource Maven Central-compatible Snapshot Repository</name>
<url>http://maven.springframework.org/snapshot</url>
</repository>
But when I try a mvn clean install maven fails to resolve the dependencies:
*[ERROR] ... The following artifacts could not be resolved: org.springframework.webflow:spring-webflow:jar:2.3.1.BUILD-SNAPSHOT, org.springframework.webflow:spring-faces:jar:2.3.1.BUILD-SNAPSHOT ...
Am I missing something obvious? Am I using the wrong snapshot version? Is there a way to list the contents of the snapshot repository? Any hints are appreciated...
P.S.: I cross-posted this question on the SpringSource community forum and will of course post the answer here if I get it there.

I could not find the version of the snap shot you have in the dependency, Here are all the web flow snap shot down loads that I can see from spring source site http://static.springsource.org/downloads/nightly/snapshot-download.php?project=SWF
If you change the version tag in you'r pom.xml that will resolve the issue.
<version>2.3.0.BUILD-SNAPSHOT</version>

Related

Not able to download TibjmsConnectionFactory dependency

From where can I get TibjmsConnectionFactory dependency? I want to use TibjmsConnectionFactory in my Springboot application to publish and receive message in tibco EMS
You could try this:
First, add this to your pom.xml
<repositories>
<repository>
<id>tibjms</id>
<url>http://repository.openmindonline.it/</url>
</repository>
</repositories>
and then dependency
<dependency>
<groupId>tibco-ems</groupId>
<artifactId>tibjms</artifactId>
<version>4.1</version>
</dependency>
There is a newer version from this repository but it looks like it cannot be accessed publicly.
It's available in maven repository. https://mvnrepository.com/artifact/com.tibco/tibjms
latest available version on March 2021 is 8.38.3
<!-- https://mvnrepository.com/artifact/com.tibco/tibjms -->
<dependency>
<groupId>com.tibco</groupId>
<artifactId>tibjms</artifactId>
<version>8.38.3</version>
</dependency>
if 8.38.3 is not working try 6.3.0 (it was problem with repo not sure if fixed already)
Please note that you also can get your current TibcoEMS version jars from EMS server C:\tibco\ems\8.2\lib
and then upload them to your local repo.
tibjms.jar is the jar contains TibjmsConnectionFactory class
mvn install:install-file -Dfile=tibjms.jar -DgroupId=com.tibco.ems -DartifactId=tibjms -Dversion=8.2 -Dpackaging=jar -DgeneratePom=true
<dependency>
<groupId>com.tibco</groupId>
<artifactId>tibjms</artifactId>
<version>8.38.3</version>
</dependency>
This is the latest version.

Maven doesn't find an existing remote artifact

I'm trying to use docker-compose-rule to run docker-compose files in junit integration tests.
I use the following dependency in my pom.xml file:
<dependency>
<groupId>com.palantir.docker.compose</groupId>
<artifactId>docker-compose-rule-core</artifactId>
<version>0.32.0</version>
<type>pom</type>
</dependency>
<!-- https://mvnrepository.com/artifact/com.palantir.docker.compose/docker-compose-rule-junit4 -->
<dependency>
<groupId>com.palantir.docker.compose</groupId>
<artifactId>docker-compose-rule-junit4</artifactId>
<version>0.32.0</version>
</dependency>
but for some reason the artifact is not found by maven (for none of the available versions).
As far as I can say, the artifact is found in the jcenter as shows in bintray.
It also exists on maven repository.
Can someone please tell why can't I use these libraries?
Alternatively, can I reference maven to take the library from a specific url with a specific jar file, for example from github, or from here?
According to mvnrepository, the jar you are looking for is not in the maven default Central repository, but is in the Palantir repository. You can add
<repositories>
<repository>
<id>Palantir</id>
<url>https://dl.bintray.com/palantir/releases/</url>
</repository>
</repositories>
into your pom.xml, and try again.

facelets-taglib-jsf20-spring-3 missing

Hi we used to include this dependency in our project
<repository>
<id>org.springframework.security.taglibs.facelets</id>
<url>http://spring-security-facelets-taglib.googlecode.com/svn/repo/</url>
</repository>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>facelets-taglib-jsf20-spring-3</artifactId>
<version>0.5</version>
</dependency>
somehow it is gone now in maven repository. Does anybody know why and where it has gone?
Recently the spring-security- facelets - taglib library was moved from GoogleCode to GitHub .
Google also provided the Maven repository and it was used in the projects.
Unfortunately the library has not yet been moved to another repository, but already we contacted the author, and will be placed in the central Maven repository in the coming days.

Maven can't resolve the dependency it just found

Maven must be losing its mind.
I added a dependency using Netbeans Add Dependency dialog. I searched for jax-rs-ri. It updated the index from central and showed several versions of jax-rs-ri. I selected 1.9.1 and it added this to the pom.xml:
<dependency>
<groupId>com.sun.jersey.ri</groupId>
<artifactId>jax-rs-ri</artifactId>
<version>1.9.1</version>
</dependency>
Looks right, but when I build I get the following error:
Failed to execute goal on project reply-to.test-web:
Could not resolve dependencies for project jms:reply-to.test-web:war:1.0-SNAPSHOT:
Could not find artifact com.sun.jersey.ri:jax-rs-ri:jar:1.10-b03 in
central (http://repo1.maven.org/maven2) -> [Help 1]
I've also tried changing the repository the following with the same results:
<repositories>
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2</url>
<layout>default</layout>
</repository>
</repositories>
This was working earlier today. Did something just get broken with Maven?
In these cases it's worth to check the local repository (usually c:\Users\<username>\.m2\repository\com\sun\jersey\ri\jax-rs-ri or /home/<username>/.m2/repository/com/sun/jersey/jax-rs-ri) and Central:
http://search.maven.org/#artifactdetails|com.sun.jersey.ri|jax-rs-ri|1.9.1|pom
(The important part now is the "Available Downloads" table.)
So, there isn't any jar file just a zip (and the POM). You should use <type>zip</type> in your dependency like this:
<dependency>
<groupId>com.sun.jersey.ri</groupId>
<artifactId>jax-rs-ri</artifactId>
<version>1.9.1</version>
<type>zip</type>
</dependency>
Since it's a zip maybe you want to unpack it. This answer could help: Unzip dependency in maven
Please note that 1.9.1 is not the latest jax-rs-ri version and your Maven uses 1.10-b03. If you want to force it to use 1.9.1 you have to use <version>[1.9.1]</version> inside the dependency tag.

where can i get the spring framework 3.0 distribution?

has anyone been able to download the spring framework 3.0.0.M4 release from the spring source site... (or can you provide an alternative download page)?
http://www.springsource.org/download
am I missing something..., the site is giving me the runaround...
when i get to the "Spring Community Downloads" page and choose spring from the LHS menu... I get no download link...
Steps:
Go to http://s3.amazonaws.com/dist.springframework.org/release/SPR/spring-framework-3.0.5.RELEASE.zip
When you hit the URL, your download for jar files starts automatically
After unzipping, there is a folder called dist which contains the following jar files for spring 3.0.5
org.springframework.aop-3.0.5.RELEASE.jar
org.springframework.asm-3.0.5.RELEASE.jar
org.springframework.aspects-3.0.5.RELEASE.jar
org.springframework.beans-3.0.5.RELEASE.jar
org.springframework.context.support-3.0.5.RELEASE.jar
org.springframework.context-3.0.5.RELEASE.jar
org.springframework.core-3.0.5.RELEASE.jar
org.springframework.expression-3.0.5.RELEASE.jar
org.springframework.instrument.tomcat-3.0.5.RELEASE.jar
org.springframework.instrument-3.0.5.RELEASE.jar
org.springframework.jdbc-3.0.5.RELEASE.jar
org.springframework.jms-3.0.5.RELEASE.jar
org.springframework.orm-3.0.5.RELEASE.jar
org.springframework.oxm-3.0.5.RELEASE.jar
org.springframework.test-3.0.5.RELEASE.jar
org.springframework.transaction-3.0.5.RELEASE.jar
org.springframework.web.portlet-3.0.5.RELEASE.jar
org.springframework.web.servlet-3.0.5.RELEASE.jar
org.springframework.web.struts-3.0.5.RELEASE.jar
org.springframework.web-3.0.5.RELEASE.jar
NOTE : You can download any release of spring framwork just by modifying the release version to 3.0.1 or 3.2.5 (any other versions according to your need)in the above mentioned URL
If you are using maven, add this to your <repositories> in your pom.xml:
<repository>
<id>spring-milestone</id>
<name>Spring Portfolio Milestone Repository</name>
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
and declare your spring dependency like this:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<packaging>jar</packaging>
<version>3.0.0.M4</version>
</dependency>
For others artifcats, use the Spring Maven artifact URL for browsing.
More on Spring's maven repositories in this article.
The repository answer is probably the best answer, but if you want to just build it yourself here are some steps to do that.
http://blog.springsource.com/2009/03/03/building-spring-3/
http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/
Depending on what you need, you can use maven central or spring EBR. The above link compares the repositories, and also explains how to get milestone, release, as well as snapshot of springframework.
Here is what he is asking for, there are many Spring external jars that are needed, for example of an import he maybe using:
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
Some Jars that might be needed are:
org.springframework.aop-3.0.2.RELEASE.jar
org.springframework.asm-3.0.2.RELEASE.jar
org.springframework.beans-3.0.2.jar
...and over 20 more, where does one download these?
searching individually, here is one location:
http://grepcode.com/snapshot/repository.springsource.com/org.springframework/org.springframework.beans/3.0.2
Here is another location you may wish to use:
http://ebr.springsource.com/repository/app/library/version/detail?name=org.springframework.spring&version=3.2.3.RELEASE&searchType=librariesBySymbolicName&searchQuery=org.springframework
I'd recommend using a build system like Maven. You can read about it here if you want to learn more.
Then in your pom.xml add the following coordinates:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.0.7.RELEASE</version>
</dependency>
You can check out all the versions of the Spring Framework (now referred to as Spring Core) at MVN Repository

Resources