diff --git a/pom.xml b/pom.xml
index 9bca4c26..b0cfd757 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,13 +15,39 @@
OFN Record Manager
jar
+
+
+
+ central-snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
+
+ false
+
+
+ true
+
+
+
+
+
+ central-snapshots
+ https://oss.sonatype.org/content/repositories/snapshots
+
+ false
+
+
+ true
+
+
+
+
UTF-8
17
${jdk.version}
${jdk.version}
- 1.1.3
+ 2.0.0-SNAPSHOT
1.9.20
4.11.0
1.5.5.Final
@@ -153,47 +179,6 @@
org.springframework.boot
spring-boot-maven-plugin
-
- dev.aspectj
- aspectj-maven-plugin
- 1.13.1
-
- ${jdk.version}
-
- ${jdk.version}
-
-
- cz.cvut.kbss.jopa
- jopa-impl
-
-
-
-
-
- org.aspectj
- aspectjtools
- ${org.aspectj.version}
-
-
-
-
- main
- process-classes
-
- compile
-
-
-
-
- test
- process-test-classes
-
- test-compile
-
-
-
-
-
org.apache.maven.plugins
maven-surefire-plugin
diff --git a/src/main/java/cz/cvut/kbss/study/config/AppConfig.java b/src/main/java/cz/cvut/kbss/study/config/AppConfig.java
index bb2a388c..8ae24aaf 100644
--- a/src/main/java/cz/cvut/kbss/study/config/AppConfig.java
+++ b/src/main/java/cz/cvut/kbss/study/config/AppConfig.java
@@ -1,9 +1,7 @@
package cz.cvut.kbss.study.config;
import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.EnableAspectJAutoProxy;
@Configuration
-@EnableAspectJAutoProxy(proxyTargetClass = true)
public class AppConfig {
}
diff --git a/src/main/java/cz/cvut/kbss/study/model/User.java b/src/main/java/cz/cvut/kbss/study/model/User.java
index 836d365a..cf3a5d6a 100644
--- a/src/main/java/cz/cvut/kbss/study/model/User.java
+++ b/src/main/java/cz/cvut/kbss/study/model/User.java
@@ -11,8 +11,6 @@
import cz.cvut.kbss.study.model.util.HasDerivableUri;
import cz.cvut.kbss.study.util.Constants;
import cz.cvut.kbss.study.util.IdentificationUtils;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
import org.springframework.security.crypto.password.PasswordEncoder;
import java.io.Serializable;
@@ -27,8 +25,6 @@
@OWLClass(iri = Vocabulary.s_c_user)
public class User implements HasDerivableUri, Serializable {
- private static final Logger LOG = LoggerFactory.getLogger(User.class);
-
@Id
private URI uri;
@@ -191,7 +187,7 @@ public void encodePassword(PasswordEncoder encoder) {
if (password == null || password.isEmpty()) {
throw new IllegalStateException("Cannot encode an empty password.");
}
- this.password = encoder.encode(password);
+ setPassword(encoder.encode(password));
}
/**
diff --git a/src/test/java/cz/cvut/kbss/study/environment/config/TestPersistenceConfig.java b/src/test/java/cz/cvut/kbss/study/environment/config/TestPersistenceConfig.java
index e90c285a..9edc3713 100644
--- a/src/test/java/cz/cvut/kbss/study/environment/config/TestPersistenceConfig.java
+++ b/src/test/java/cz/cvut/kbss/study/environment/config/TestPersistenceConfig.java
@@ -7,7 +7,6 @@
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
-import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
@@ -15,7 +14,6 @@
import static org.mockito.Mockito.mock;
@TestConfiguration
-@EnableAspectJAutoProxy(proxyTargetClass = true)
@ComponentScan(basePackages = {"cz.cvut.kbss.study.persistence.dao"})
@Import({PersistenceConfig.class, TestPersistenceFactory.class, TestFormGenPersistenceFactory.class})
@EnableTransactionManagement
diff --git a/src/test/java/cz/cvut/kbss/study/service/BaseServiceTestRunner.java b/src/test/java/cz/cvut/kbss/study/service/BaseServiceTestRunner.java
index 9b2fc7f1..68a0777e 100644
--- a/src/test/java/cz/cvut/kbss/study/service/BaseServiceTestRunner.java
+++ b/src/test/java/cz/cvut/kbss/study/service/BaseServiceTestRunner.java
@@ -18,7 +18,6 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
-@EnableAspectJAutoProxy(proxyTargetClass = true)
@ExtendWith(SpringExtension.class)
@ContextConfiguration(classes = {TestServiceConfig.class, TestPersistenceConfig.class})
@DirtiesContext(classMode = DirtiesContext.ClassMode.AFTER_EACH_TEST_METHOD)