We are trying to upgrading from 2.9.1 to 2.11.0 and we have already using org.apache.ignite.transactions.spring.SpringTransactionManager which is now not available in core lib, when we checked docs https://ignite.apache.org/docs/latest/extensions-and-integrations/spring/spring-tx#maven-configuration its sugge…
Tag: maven
Vaadin object is not an instance of declaring class
I’m trying to call a method in class named (DataActions) to the dashboard view so the grid can be able to receive the objects given after the method execution, but still no luck solving this error (java.lang.IllegalArgumentException: object is not an instance of declaring class). -Class (DataSession) is…
Spring Boot returns Error 404 even though mapping has been set
I downloaded a Spring Boot project from Spring Initializr. I am trying to call sayHello() method in DemoApplication.java. Here are my code. DemoApplication.java pom.xml When I run on http://localhost:8080/hello it returns error 404 page. It does not call sayHello() method even though I have set the GET mappin…
How can I import the Maven shade plugin properly?
I am very frustrated. I’ve spent a long time trying to compile a Maven project into an Uber/Fat jar file using the Maven shade plugin, but I still keep getting “mvn is not recognized as an internal or external command” error in command prompt. Here are the important bits of my pom.xml: I don…
Why can’t Maven Tycho find the correct JDK in toolchains.xml?
I have made a simple RCP application to test Maven builds. My question is why Maven Tycho can’t find the JDK’s defined in the toolchain and how can I fix those issues? My RCP plugin uses JDK-15 and I believe that the target-platform brings the dependencies to JDK-11 and JDK-16. I run ‘mvn cl…
the declared package does not match the expected package
I have imported a maven project from git. As the sources were not seen I add the src directories as sources. Maven compiles correctly. But In Eclipse I have the error. Tthe declared package com.mypackage does not match the expected package src.main.java.com.mypackage I have another error when updating import …
UnknownElementException on Java 17 record class
With excitement I downloaded Java 17 today and got a simple record class However when doing mvn compile, it throws me error Fatal error compiling: javax.lang.model.element.UnknownElementException: Unknown element: “com.xxx.TestCls” I double checked java -version and it looks right to me: Would any…
Maven: Classpath dependencies and starters?
in this tutorial https://usha-dewasi.medium.com/service-registry-using-spring-cloud-netflix-eureka-cba573c693b under “Installing Eureka on Server Side” there is the instruction to Add org.springframework.boot:spring-cloud-starter-eureka-server on your classpath. Now as a beginner with maven and sp…
Could not transfer artifact com.squareup.okhttp3:mockwebserver:pom:4.9.1 from/to central (https://repo.maven.apache.org/maven2)
I have encountered a problem while importing the MockWebServer dependencies into my project Idea is showing 2 problems: Dependency ‘com.squareup.okhttp3:okhttp:4.9.1’ not found Dependency ‘com.squareup.okhttp3:mockwebserver:4.9.1’ not found And reload all maven projects results in a bi…
How to resolve arquillian static variable = null
Since i upgraded to WildFly 23 I have not been able to get shrinkwrap/arquillian to resolve classes correctly. Here is the createDeployment function My issue is that for testing we have some test data that exists at: org.<company>.crs.utils, it is a bunch of static data that we use for our functional te…