-
Notifications
You must be signed in to change notification settings - Fork 0
Updated pom.xml #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -64,6 +64,37 @@ | |||||||||||||||||||||
| <artifactId>spring-boot-starter-test</artifactId> | ||||||||||||||||||||||
| <scope>test</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.springframework.boot</groupId> | ||||||||||||||||||||||
| <artifactId>spring-boot-starter-security</artifactId> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.postgresql</groupId> | ||||||||||||||||||||||
| <artifactId>postgresql</artifactId> | ||||||||||||||||||||||
| <scope>runtime</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.springframework.boot</groupId> | ||||||||||||||||||||||
| <artifactId>spring-boot-starter-webmvc</artifactId> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.springframework.boot</groupId> | ||||||||||||||||||||||
| <artifactId>spring-boot-starter-data-jpa</artifactId> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.projectlombok</groupId> | ||||||||||||||||||||||
| <artifactId>lombok</artifactId> | ||||||||||||||||||||||
| <scope>annotationProcessor</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
|
Comment on lines
+84
to
+88
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid Maven scope: The pipeline failure confirms that For Lombok in Maven, use 🐛 Proposed fix for Lombok configuration <dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
- <scope>annotationProcessor</scope>
+ <scope>provided</scope>
</dependency>Additionally, configure the maven-compiler-plugin for annotation processing: <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<!-- existing spring-boot-maven-plugin -->
</plugins>
</build>📝 Committable suggestion
Suggested change
🧰 Tools🪛 GitHub Actions: CI Pipeline[warning] 87-87: 'dependencies.dependency.scope' for org.projectlombok:lombok:jar must be one of [provided, compile, runtime, test, system] but is 'annotationProcessor'. @ line 87, column 20 🤖 Prompt for AI Agents |
||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.springframework.security</groupId> | ||||||||||||||||||||||
| <artifactId>spring-security-test</artifactId> | ||||||||||||||||||||||
| <scope>test</scope> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| <dependency> | ||||||||||||||||||||||
| <groupId>org.thymeleaf.extras</groupId> | ||||||||||||||||||||||
| <artifactId>thymeleaf-extras-springsecurity6</artifactId> | ||||||||||||||||||||||
| </dependency> | ||||||||||||||||||||||
| </dependencies> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| <build> | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,9 @@ | ||
| spring.application.name=Projekt-arendehantering | ||
|
|
||
| spring.datasource.url=jdbc:postgresql://localhost:5432/arende | ||
| spring.datasource.username=arende | ||
| spring.datasource.password=arende | ||
|
|
||
| spring.jpa.hibernate.ddl-auto=update | ||
| spring.datasource.driver-class-name=org.postgresql.Driver | ||
| spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spring Security will break existing header-based authentication.
The codebase uses
HeaderCurrentUserAdapterwhich readsX-User-IdandX-Roleheaders for authentication. Addingspring-boot-starter-securitywithout defining a customSecurityFilterChainbean will:/,/ui/cases, etc.)You must provide a
SecurityFilterChainbean that integrates with your header-based authentication or permits the appropriate endpoints.💡 Example SecurityFilterChain to preserve header-based auth
🤖 Prompt for AI Agents