Problems trying to migrate/build using OpenSAML3 (3.3.0) with Eclipse and Maven
o haya
ohaya at yahoo.com
Sat Feb 23 12:59:57 EST 2019
Hi,
I am trying to migrate the application that I had written (a modified version of SAMLWriter.java) earlier using OpenSAML 2.6.6, now, to OpenSAML 3.3.0 using Eclipse and Maven.
I am not that familiar with Maven, but anyway, I added dependencies in the pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>gx</groupId>
<artifactId>opensaml3.4-mavenized</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-core</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-api</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-impl</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-api</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-impl</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-api</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-impl</artifactId>
<version>3.3.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-core</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-api</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-messaging-impl</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-api</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-saml-impl</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-api</artifactId>
</dependency>
<dependency>
<groupId>org.opensaml</groupId>
<artifactId>opensaml-security-impl</artifactId>
</dependency>
</dependencies>
</project>
But, when I do Run As ==> Maven Build ==> clean install -U, I am getting some errors that I haven't been able to resolve so far:
- Configuration cannot be resolved
- IdentifierGenerator cannot be resolved to a type
- SecureRandomIdentifierGenerator cannot be resolved to a type
- SecurityConfiguration cannot be resolved to a type
- SecurityHelper cannot be resolved
- The constructor BasicX509Credential() is undefined
- XMLHelper cannot be resolved
For the BasicX509Credential() error, this is the line that it is flagging in my code:
BasicX509Credential credential = new BasicX509Credential();
As I said, I am not that familiar with Maven, so I am not sure if I need to add some other dependencies in the pom, or do I need to modify code that uses those types that are getting the errors?
Also, as I said I have the dependencies configured for opensaml version 3.3.0, but is there not a 3.4.2 in Maven?
Thanks,
Jim
More information about the dev
mailing list