Adobe BlazeDS 4 artifacts maven repository? - maven-2

Does anybody know if Adobe has a maven repository to download the latest BlazeDS artifacts from?
I only can find the "older" versions of BlazeDS in the central mvn repository.
The other option is to deploy the downloaded BlazeDS jar files from the Adobe website into my local repository but it would be nice when Adobe provides the artifacts via a maven repository.

Spring's maven external repository does not contain these artifacts anymore (licencing issue?).
You should download the desired release from adobe, unzip and jar -x the contained war file and at last you must drop all the flex* jars into your local repo with:
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-common -Dfile=flex-messaging-common.jar
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-core -Dfile=flex-messaging-core.jar
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-opt -Dfile=flex-messaging-opt.jar
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-proxy -Dfile=flex-messaging-proxy.jar
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-remoting -Dfile=flex-messaging-remoting.jar
mvn install:install-file -Dpackaging=jar -DgroupId=com.adobe.blazeds -Dversion=4.0.0.14931 -DartifactId=blazeds-rds-server -Dfile=flex-rds-server.jar
or upload each in your private maven repository (i.e. artifactory or nexus).
Note: replace the version with the one you've downloaded
thanks to pledge's post in flex forum

https://src.springsource.org/svn/spring-flex/tags/spring-flex-1.5.0.RELEASE/local-repo/ seems to be working.
Add this repo to your pom.xml or settings.xml :
<repository>
<id>SpringFlex</id>
<name>SpringFlex Source Repo</name>
<url>https://src.springsource.org/svn/spring-flex/tags/spring-flex-1.5.0.RELEASE/local-repo/</url>
</repository>
This repository does not include checksums, so you will need to run Maven with the --lax-checksums option if you use this repository.

No, Adobe does not have a maven repository for BlazeDS. This thread can help. You can find BlazeDS 4 in the Spring maven repository: http://s3browse.springsource.com/browse/maven.springframework.org/external/com/adobe/blazeds/

After lot of searching, i have figured out proper maven repository for Blazeds-4.x.x.
<repository>
<id>spring-milestones</id>
<url>http://repo.spring.io/libs-milestone/</url>
This worked for me!!!

Thanks Cornel. I added the following snippet to my pom.
<repositories>
<repository>
<id>spring-maven-external</id>
<name>Springframework Maven External Repository</name>
<url>http://maven.springframework.org/external</url>
</repository>
</repositories>

I was missing blazeds-opt-4.0.0.14931, since it wasn't in the spring repository that srini posted. The following nexus repository provided the jar I needed:
<repository>
<id>NexusThirdParty</id>
<name>Nexus third party components</name>
<url>http://zcode.sunji.net/nexus/content/repositories/thirdparty/</url>
</repository>

https://src.springsource.org/svn/spring-flex/tags/spring-flex-1.5.2.RELEASE/local-repo/ seems to be working.
Add this repo to your pom.xml or settings.xml :
<repository>
<id>SpringFlex</id>
<name>SpringFlex Source Repo</name>
<url>https://src.springsource.org/svn/spring-flex/tags/spring-flex-1.5.2.RELEASE/local-repo/</url>
</repository>

Related

Maven 3.8.1 How to direct dependencies in pom to the right location and not take the repo url from settings.xml

I have a pom with dependencies like selenium-java, com.saucelabs etc. and repositories with url pointing to JFrog repos. For the artifactory in JFrog repo I have commented out the block in conf/settings.xml since it is HTTP. And I have the repo listed in .m2/settings.xml.
I am running into this error when I run mvn install
Could not resolve dependencies for project com.github.frameworkium:frameworkium-core:jar:4.0.0-BETA2-SNAPSHOT: Failed to collect dependencies at org.seleniumhq.selenium:selenium-java:jar:4.1.1: Failed to read artifact descriptor for org.seleniumhq.selenium:selenium-java:jar:4.1.1: Could not transfer artifact org.seleniumhq.selenium:selenium-java:pom:4.1.1 from/to snapshots (http://xxx-xxx.xxx/artifactory/libs-snapshot-local)
Before adding Jfrog repo url to settings.xml I was able to pull the dependencies successfully.
What should I change/add in settings.xml to pull all the dependencies such as selenium-java from the right location and the repositories from JFrog repo url.
Thanks #khmarbaise. I was able to get the deps from its right location. I added central to point to maven repo and the other dependencies to point to Jfrog repo.
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central-artifactory</id>
<name>libs-release</name>
<url>http://xxxx.xxx/artifactory/libs-releaselocal</url>
</repository>
<repository>
<snapshots />
<id>snapshots-artifactory</id>
<name>libs-snapshot</name>
<url>http://xxxx.xxx/artifactory/libs-releaselocal</url>
</repository>
<repository>
<id>central</id>
<name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>

Maven download source codes command line using POM.xml

I want to download the source codes of json-simple library using maven2 command line interaface. So, I download this .pom file into ~/project/pom.xml
http://json-simple.googlecode.com/svn/trunk/pom.xml
And then, using the relevant SO question's answer: How to install Maven artifact with sources from command line?, I try to download source codes with the following commands,
$ cd ~/project
$ mvn eclipse:eclipse -DdownloadSources=true
$ ls
The output is only the pom.xml. What is wrong?
$ mvn --version
Apache Maven 2.2.1 (rdebian-8)
Use the get goal of the dependency plugin
Full command line (execute somewhere - you do not need a pom)
mvn -DgroupId=com.googlecode.json-simple
-DartifactId=json-simple
-Dversion=1.1.1
-Dclassifier=sources
-DremoteRepositories=http://nexus.dmz1.heuboe.hbintern:8080/nexus/content/repositories/central/
org.apache.maven.plugins:maven-dependency-plugin:2.8:get
or as a oneliner
mvn -DgroupId=com.googlecode.json-simple -DartifactId=json-simple -Dversion=1.1.1 -Dclassifier=sources -DremoteRepositories=http://nexus.dmz1.heuboe.hbintern:8080/nexus/content/repositories/central/ org.apache.maven.plugins:maven-dependency-plugin:2.8:get
Normally I am using Maven 3 but I tested this also with Maven 2.2.1 on Windows and it works.
You can also consider to use the m2e Maven Integration in eclipse (check the eclipse Marketplace to install this if not already installed) instead of the maven-eclipse-plugin (eclipse:eclipse). You than have an eclipse preferences option to download the sources.

Maven project build problems

I have a maven 2 web project which I have checked out of svn.
My settings file has a mirror configured.
When I do a clean install maven is trying to download jars from the mirror and since it is unable to find the jars it says the build fails.
But when i check my local repo I see all the required jars.
So is it possible to change my local repo as the mirror location ?
Is this a right approach ?
Editing the question to post my error
First I get a set of warnings
[WARNING] Missing POM for org.apache.ws.security:wss4j:jar:1.5.2
[WARNING] Missing POM for org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
[WARNING] Missing POM for cglib:cglib:jar:2.2
[WARNING] Missing POM for org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
[WARNING] Missing POM for opensymphony:oscache:jar:2.3
[WARNING] Missing POM for commons-digester:commons-digester:jar:1.8
[WARNING] Missing POM for org.richfaces.framework:richfaces-api:jar:3.3.3.Final
[WARNING] Missing POM for com.sun.facelets:jsf-facelets:jar:1.1.14.P1
[WARNING] Missing POM for javax.faces:jsf-api:jar:1.2_12
[WARNING] Missing POM for javax.faces:jsf-impl:jar:1.2_12
[WARNING] Missing POM for javax.servlet:servlet-api:jar:2.4
[WARNING] Missing POM for javax.servlet.jsp:jsp-api:jar:2.1
[WARNING] Missing POM for org.jboss.el:jboss-el:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
[WARNING] Missing POM for org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
[WARNING] Missing POM for org.springframework:spring:jar:2.5
[WARNING] Missing POM for commons-math:commons-math:jar:1.2
[WARNING] Missing POM for org.springframework:spring-mock:jar:2.0.6
[WARNING] Missing POM for javax.persistence:persistence-api:jar:1.0
[WARNING] Missing POM for hibernate:hibernate3:jar:3.2.4.SP1
[WARNING] Missing POM for hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
[WARNING] Missing POM for hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
[WARNING] Missing POM for org.hibernate:hibernate-validator:jar:3.0.0.ga
[WARNING] Missing POM for org.apache.lucene:lucene-core:jar:2.4.0
[WARNING] Missing POM for commons-lang:commons-lang:jar:2.3
[WARNING] Missing POM for commons-validator:commons-validator:jar:1.1.3
[WARNING] Missing POM for org.slf4j:slf4j-api:jar:1.5.6
[WARNING] Missing POM for org.slf4j:slf4j-log4j12:jar:1.5.6
[WARNING] Missing POM for opensymphony:quartz:jar:1.6.3
[WARNING] Missing POM for opensymphony:quartz-oracle:jar:1.6.3
[WARNING] Missing POM for jfree:jfreechart:jar:1.0.12
[WARNING] Missing POM for com.itextpdf:itextpdf:jar:5.0.5
[WARNING] Missing POM for org.springmodules:spring-modules-cache:jar:0.9
[WARNING] Missing POM for com.thoughtworks.xstream:xstream:jar:1.3.1
[WARNING] Missing POM for ehcache:ehcache:jar:1.2.3
Then I get the following set of errors
1) nekohtml:nekohtml:jar:0.9.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=nekohtml -DartifactId=nekohtml -Dversion=0.9.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) nekohtml:nekohtml:jar:0.9.5
2) ehcache:ehcache:jar:1.2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=ehcache -DartifactId=ehcache -Dversion=1.2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) ehcache:ehcache:jar:1.2.3
3) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ioc -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ioc:jar:2.0.1.GA
4) commons-validator:commons-validator:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-validator -DartifactId=commons-validator -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-validator:commons-validator:jar:1.1.3
5) org.apache.lucene:lucene-core:jar:2.4.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=2.4.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.apache.lucene:lucene-core:jar:2.4.0
6) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final
7) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-api:jar:3.3.3.Final
8) commons-digester:commons-digester:jar:1.8
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-digester -DartifactId=commons-digester -Dversion=1.8 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-digester:commons-digester:jar:1.8
9) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final
10) commons-lang:commons-lang:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-lang -DartifactId=commons-lang -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-lang:commons-lang:jar:2.3
11) com.thoughtworks.xstream:xstream:jar:1.3.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.thoughtworks.xstream -DartifactId=xstream -Dversion=1.3.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.thoughtworks.xstream:xstream:jar:1.3.1
12) org.springframework:spring:jar:2.5
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring -Dversion=2.5 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring:jar:2.5
13) org.slf4j:slf4j-api:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.slf4j -DartifactId=slf4j-api -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-api:jar:1.5.6
14) org.slf4j:slf4j-log4j12:jar:1.5.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.slf4j -DartifactId=slf4j-log4j12 -Dversion=1.5.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.slf4j:slf4j-log4j12:jar:1.5.6
15) cglib:cglib:jar:2.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=cglib -DartifactId=cglib -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) cglib:cglib:jar:2.2
16) opensymphony:oscache:jar:2.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=oscache -Dversion=2.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:oscache:jar:2.3
17) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.facelets -DartifactId=jsf-facelets -Dversion=1.1.14.P1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) com.sun.facelets:jsf-facelets:jar:1.1.14.P1
18) javax.faces:jsf-api:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-api:jar:1.2_12
19) javax.faces:jsf-impl:jar:1.2_12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl -Dversion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.faces:jsf-impl:jar:1.2_12
20) javax.servlet:servlet-api:jar:2.4
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet -DartifactId=servlet-api -Dversion=2.4 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.servlet -DartifactId=servlet-api -Dversion=2.4 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet:servlet-api:jar:2.4
21) javax.servlet.jsp:jsp-api:jar:2.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.servlet.jsp -DartifactId=jsp-api -Dversion=2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.servlet.jsp:jsp-api:jar:2.1
22) org.jboss.el:jboss-el:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.el -DartifactId=jboss-el -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.el:jboss-el:jar:2.0.1.GA
23) org.jboss.seam:jboss-seam:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam:jar:2.0.1.GA
24) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-debug -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-debug:jar:2.0.1.GA
25) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-ui -Dversion=2.0.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.jboss.seam:jboss-seam-ui:jar:2.0.1.GA
26) commons-math:commons-math:jar:1.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=commons-math -DartifactId=commons-math -Dversion=1.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) commons-math:commons-math:jar:1.2
27) org.springframework:spring-mock:jar:2.0.6
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springframework -DartifactId=spring-mock -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springframework -DartifactId=spring-mock -Dversion=2.0.6 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springframework:spring-mock:jar:2.0.6
28) javax.persistence:persistence-api:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.persistence -DartifactId=persistence-api -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.persistence -DartifactId=persistence-api -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) javax.persistence:persistence-api:jar:1.0
29) hibernate:hibernate3:jar:3.2.4.SP1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate -DartifactId=hibernate3 -Dversion=3.2.4.SP1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate:hibernate3:jar:3.2.4.SP1
30) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-annotations -DartifactId=hibernate-annotations -Dversion=3.3.0.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-annotations:hibernate-annotations:jar:3.3.0.GA
31) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=hibernate-entitymanager -DartifactId=hibernate-entitymanager -Dversion=3.3.1.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) hibernate-entitymanager:hibernate-entitymanager:jar:3.3.1.GA
32) org.hibernate:hibernate-validator:jar:3.0.0.ga
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.hibernate -DartifactId=hibernate-validator -Dversion=3.0.0.ga -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.hibernate:hibernate-validator:jar:3.0.0.ga
33) opensymphony:quartz:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz:jar:1.6.3
34) org.springmodules:spring-modules-cache:jar:0.9
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.springmodules -DartifactId=spring-modules-cache -Dversion=0.9 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) org.springmodules:spring-modules-cache:jar:0.9
35) jfree:jfreechart:jar:1.0.12
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jfree -DartifactId=jfreechart -Dversion=1.0.12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) jfree:jfreechart:jar:1.0.12
36) opensymphony:quartz-oracle:jar:1.6.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=opensymphony -DartifactId=quartz-oracle -Dversion=1.6.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) myproject:war:1.0.0-SNAPSHOT
2) opensymphony:quartz-oracle:jar:1.6.3
All these dependencies with the same version are already there in my local repository.
I also tried using the tips given but of no avail
Maven does look at the local repository first, before it queries the mirror/remote repository. It looks like your local repository has the jars, but not the pom files. Could these have copied/placed manually? As it is, it is not useful to maven.
There are two ways to solve the issue.
Allow maven to download the dependencies by connecting to the internet (if the mirror does not hold the jars). This is what happens by default. If you are behind a proxy, you can configure a <proxy> setting so that maven connect to central repo through the proxy.
Manually install each dependant jars using the maven install:install-file command in the local repository. This will automatically create the poms for the jars and thus make it available to maven in subsequent runs.
You can use the offline flag in Maven -o so that only your local repo will be used. If build then still complains about a missing dependency, the problem is somewhere else (maybe your local repo contains another version, or something like this).

How to query Pom version using maven

Is there a goal one can execute that will just echo the version of a pom? I can think of a way to make it work using the maven-ant-plugin, but that requires me to have ant-plugin configuration in the pom and I would like a method that would work with any pom.
mvn help:evaluate -Dexpression=project.version
If you want just the version echoed, and not the rest of the Maven "noise", you would use
mvn help:evaluate -Dexpression=project.version -q -DforceStdout

Maven: Missing: org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT

I'm new to Maven so I may be missing something obvious, but
I've got a maven project and when I try to "mvn package" this project it fails with
ERROR BUILD ERROR INFO
------------------------------------------------------------------------ [INFO] Failed to resolve artifact.
Missing:
---------- 1) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-ftp -Dversion=1.0-rc1-SNAPSHOT -Dpackaging=ja r -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-ftp -Dversion=1.0-rc1-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.cgs:domain:jar:1.0-SNAPSHOT
2) org.apache.maven.wagon:wagon-ftp:jar:1.0-rc1-SNAPSHOT
----------
1 required artifact is missing.
for artifact: com.cgs:domain:jar:1.0-SNAPSHOT
from the specified remote repositories: ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2)
The first thing I don't understand is the version it requires 1.0-rc1-SNAPSHOT. The projects' site says the current version is 1.0-beta-5. And I suppose beta goes before RC.
Anyway, I've tried to download the latest wagon-ftp JAR (1.0 beta 6 jar) and deploy it according to the instructions in the error message.
But guess what, this gave me the same error.
I've just found the solution as I was typing the end of this question.
The problem was that I was running "mvn install:install-file" from the same directory the failing project POM was in. It installed fine when I run it from another directory without a pom.xml.