Maven dependency for wsf-spring 1.0
I am using maven as a build tool for my application. When I include 1.0 version of the artifact - wsf-spring, my maven build fails with the following error:
Downloading: http://dist.wso2.org/maven2/org/wso2/spring/ws/wsf-spring/1.0/wsf-spring-1.0.pom
1K downloaded
[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/wso2/spring/ws/wsf-spring/1.0/wsf-spring-1.0.pom - IGNORING
Downloading: http://dist.wso2.org/maven2/org/wso2/spring/ws/wsf-spring-main/${wsf-spring.version}/wsf-spring-main-${wsf-spring.version}.pom
Downloading: http://repo1.maven.org/maven2/org/wso2/spring/ws/wsf-spring-main/${wsf-spring.version}/wsf-spring-main-${wsf-spring.version}.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: null:wsf-spring:jar:${wsf-spring.version}
Reason: Cannot find parent: org.wso2.spring.ws:wsf-spring-main for project: null:wsf-spring:jar:${wsf-spring.version} for project null:wsf-spring:jar:${wsf-spring.version}
I had a look at the wso2's maven repository but i could not find any artifact by the name wsf-spring-main under org.wso2.spring.ws directory.
Is this artifact missing from the repository????
Thanks, Benu
- Login or register to post comments
- Printer friendly version
- 109 reads






















RE: Maven dependency for wsf-spring 1.0
Hello Benu,
I'm facing (nearly) the same problem, did you find a solution?
I guess it's a problem with the wsf-spring artifact's pom file: It seems that the property ${wsf-spring.version} is used with the artifact's parent declaration without being resolved (I'm not a maven expert, but it looks like that ;-).
So I defind the property <wsf-spring.version>1.0</wsf-spring.version> with my pom (along with some other hacks), but it didn't help...
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.wso2.spring.ws
ArtifactId: wsf-spring-main
Version: ${wsf-spring.version}
Reason: Unable to download the artifact from any repository
org.wso2.spring.ws:wsf-spring-main:pom:${wsf-spring.version}
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
wso2 (http://dist.wso2.org/maven2/)
...
@WSO2/WSF-Spring developers: Could this be the cause? If so, could you please fix this? Or am I using the wrong repository?
Currently - as a workaround - we're installing the wsf-spring-1.0.jar from the binary distribution package to our project's repository server with the following command:
mvn install:install-file -Dfile=wsf-spring-1.0.jar -DgroupId=org.wso2.spring.ws -DartifactId=wsf-spring -Dversion=1.0 -Dpackaging=jar -DgeneratePom=true,
but this is not a long term solution for our project.
So in the end this issue will be knock-out criteria for using the WSF-Spring framework with our project and we will use Axis2 and Spring without WSF-Spring.
Regards,
woitek
Missing artifact
Hello Woitek,
You are right. The pom file is refrerring to a missing artifact - "wsf-spring-main" as its parent which should have defined all the properties used by the pom file.
As a workaround, I have changed the version for the artifact - "wsf-spring" to 1.1 in my project's pom file and also renamed all the files (eg: wsf-spring-1.0.jar -> wsf-spring-1.1.jar) along with the folder in my local repository. So now I have version 1.1 for wsf-spring in my repository (\repository\org\wso2\spring\ws\wsf-spring\1.1).
I also modified the wsf-spring-1.1.pom file to remove all references to wsf-spring-main and the properties.
But I agree that this is not a long term solution and hope that wsf-spring team fix their repository soon.
Regards, Benu.