Hi, There:
This one puzzles me for a few days and I found a solution to it. My solution may not be the most elegant one but it works.
In one of my CXF project, I needed the newest WSS4J dependencies from this following pom.
<dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j</artifactId> <version>2.1.4</version> </dependency> but there is no jar files associated directly with the above dependency because it is of pom packaging type, see below.
<groupId>org.apache.wss4j</groupId> <artifactId>wss4j</artifactId> <version>2.1.4</version> <packaging>pom</packaging>
As a result, the associated underlining jars never got pulled into my project. It kept on saying failed to download the artifact. After many days of trying with changing <scope> etc, etc in vain, I had to explicitly put the underlining dependency from the packaged pom into my project as below. Each one of them is packaged in jar. This works fine now, albeit a bit tedious. I will come back to update on this topic if I find a more elegant solution.
-TY
<dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-bindings</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-policy</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-ws-security-common</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-ws-security-dom</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-ws-security-policy-stax</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-ws-security-stax</artifactId> <version>2.1.4</version> </dependency> <dependency> <groupId>org.apache.wss4j</groupId> <artifactId>wss4j-integration</artifactId> <version>2.1.4</version> </dependency>
Advertisements