89,171 questions
0
votes
0
answers
58
views
How to upgrade React Native project from React 17.0.2 / RN 0.68.2 to React 18.2.0 / RN 0.74.1 with Gradle upgrade?
I’m working on upgrading my React Native project
Currently, my setup is:
"react": "17.0.2", "react-native": "0.68.2"
and in android/build.gradle:
classpath(&...
0
votes
1
answer
307
views
Maven + Lombok @Slf4j on JDK 21: “cannot find symbol: variable log” even though annotation processing is configured
I’m building a Spring Boot app with Maven from the CLI (no IDE build). Many classes use Lombok’s @Slf4j, but the build fails like this:
[ERROR] .../src/main/java/com/guardxinc/ui/client/...
0
votes
0
answers
46
views
tycho-compiler-plugin does not find test classes
I have an model module in my project, which follows parser in the pom.
Both have eclipse-plugin as packaging.
parser generates an artifact inez-parser-<version>-testing.jar, which is deployed to ...
0
votes
1
answer
116
views
Specify `--march` in a Spring Boot Native Build
I am building a Spring Boot native image using mvn spring-boot:build-image in a GitHub workflow.
When I try running the image on my VM, I get the following error:
The current machine does not support ...
0
votes
0
answers
46
views
cannot resolve target definition with tycho, works with eclipse
The target definition is the following:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target includeMode="...
3
votes
0
answers
160
views
How to get the new Maven 4 Dependency Injection API to work the same in a Maven plugin between tests and production?
I've been experimenting with Maven 4's new Dependency Injection API. This API replaces the Plexus and
JSR 330 annotations, according to this guide:
Maven DI is the dependency injection framework of ...
0
votes
0
answers
28
views
intall a submodule before build if it is not exist yet?
I have a multi-module project. The whole point of the project is to provide a parent pom for other projects to do a specific way of build, which depends on an artifact created one of the modules. ...
-1
votes
2
answers
238
views
Why does Maven take several seconds to start?
After typing my Maven command, it takes several seconds before the compilation steps gets underway. Why is that? What is happening for those several seconds?
More to the point, is there an option so ...
3
votes
2
answers
75
views
Interfacing with legacy transitive dependencies
I'm using Java 17 with maven 3.9.9. My maven project libfoo is used as a library by other end-user applications say myapp.jar.
libfoo has no choice but to depend on a bar:bar-core:1.2.3 whose code is ...
0
votes
1
answer
89
views
Packaged SpringBoot jar is missing the slf4j libraries, other ways of building work
I have a Maven SpringBoot application with source language Java 21. I think there is something wrong with adding my libraries in the classpath of my generated jar file. When I execute mvn package or ...
2
votes
1
answer
205
views
Problems at running application with Java21, Geotools and Javafx
My target is to create an application, which uses Java 21.0.7 (OpenJDK), JavaFx 23.0.2 and GeoTools 34-SNAPSHOT to show S57 sea charts.
As a prerequirement I have downloaded javafx-sdk-23.0.2 as well ...
2
votes
1
answer
148
views
Intellij modules not finding generated protobuf classes in a multimodule maven project (but works fine via maven cli)
I have a project set up like this:
protos/ # protobuf files here
pom.xml # parent pom
services/common # this module generates the protobuf classes
services/mod-1 # imports ...
1
vote
0
answers
68
views
Use flattened pom for filtering resources
I'm using a script to replace a property's value in flattened pom, but the original pom's property is injected into filtered resources instead. Why? Is it a configuration issue, a bug or simply not ...
0
votes
1
answer
116
views
Micronaut Data method is missing compilation time query information. Ensure that the Micronaut Data annotation processors are declared in your build
I'm having similar issue to this Unexpected error occurred: Micronaut Data method is missing compilation time query information .. but the fix didn't work for me. I have 2 micronaut apps, Contact and ...
0
votes
0
answers
186
views
Why is Android Room not found even though I included the Google Repository?
I'm working in a Kotlin project and want to use the Room library for SQlite.
So like explained on this site, I added the line
id("androidx.room") version "2.7.2"
to the ...
0
votes
1
answer
63
views
Jacoco produces truncated xml and csv file
We are using the Jacoco maven plugin to generate the code coverage for some Quarkus project. It has worked fine so far, but recently we have had some occurrences of an intermittent issue on some of ...
-1
votes
1
answer
138
views
Spring Boot 4.0.0-M1 java.lang.NoClassDefFoundError: Could not initialize class io.opentelemetry.exporter.sender.okhttp.internal.OkHttpGrpcSender
I would like to build a native image with the newly released (as of this writing) Spring Boot 4.0.0-M1 and GraalVM AOT
With this code:
@Configuration
public class TracingConfiguration {
@Bean
...
0
votes
0
answers
25
views
maven release:prepare not using my tag name
I am trying to create a tag using maven:prepare maven:release, but the tag name that is created is ignoring the name I specified.
I have our workflow configured with github so it's run as a github ...
1
vote
2
answers
108
views
slf4j conflict during unit test run
I created a Maven Springboot application where I've written a dummy unit test for to see if the ReporterApplication boots up successfully without exceptions. However I get a depdendency clash of ...
0
votes
0
answers
68
views
Maven Central 401 Unauthorized When Publishing Snapshot with JReleaser
Snapshot Deployment Fails with 401 - JReleaser Configuration
Recently, I migrated from Nexus 2 to the new Maven Central repository.
I'm using JReleaser with Gradle to handle publication.
The release ...
0
votes
1
answer
54
views
Springboot getting property from inactive profile [closed]
Using spring-boot-starter-parent:3.3.12.
I'm calling mvn verify. One of the springboot tests looks a bit like this...
@SpringBootTest
@ActiveProfiles("test")
public class ...
-3
votes
1
answer
109
views
How to start Quarkus application with maven [closed]
I am trying to run Quarkus application. I have about 20 separate Quarkus applications and each one is built as a JAR file using Maven.
I'm trying to figure out the best way to run all of them locally ...
1
vote
1
answer
89
views
Why does Maven multi-module project resolve dependencies based on Nexus, but builds based on local files?
I have a pretty basic multi-module project. The parent is aware of the two modules, the two modules are aware of the parent and module2 includes module1 as dependency as well. So far everything works ...
1
vote
1
answer
39
views
Apache Maven tries to download a dependency previously added
I have a project that will use dependencies from Maven Central and manually downloaded from a local Nexus (with curl). However, after mvn install:install-file, which installed a jar file downloaded ...
0
votes
0
answers
63
views
Maven YAML pipeline not running tests but tests exist
I am trying to test my code in a YAML pipeline using Maven but for whatever reason mvn test seems to skip over the compiled test.
Here is part of my pipeline, with specific point to look at the test ...