I am currently working on a project that has a built-in library loader for maven dependencies. This is my current code: The issue I’m experiencing is that every time the program is restarted and the library loader is called again, the resolver tries to download the maven-metadata.xml file of the dependency from all repositories that didn’t have it in the
Tag: repository
Spring repository : Junit test succeeds on custom delete even when @Transactional is missing
I have a Spring repository that has a method like this : When testing this method in a Junit Test, it does work as intended. However, the delete does not work on our production DB. For it to work on the production DB, we had to add the @Transactional annotation to the method in the repository This is an issue
JPA repository Boolean Query – return null pointer exception
I have Java springBoot project With repository that included boolean custom query. but the system run to null pointer exception apart from return “false”. this is the query: I called the method: and this is the error: Answer Your query is designed to return whatever entity (called CustomersVsCoupons from now on) is mapped to the table customer_vs_coupons, not a Boolean.
How to count records from database and put them into List,each row represent by the letter?
I need to take values from a database and put them into a List<Long>. I made a native query but it doesn’t work correctly. Here’s a picture of the column on my database: I need to count the same statuses (“W” and “I” represent the same status but are represented by another letter). I prepared a query as shown below:
Merging multiple LiveData sources?
To make it easier to visualize my problem I drew the following: I am using a RoomDatabase, a Repository, a Viewmodel and Livedata. Areas have a 1 to n relationship with Gateways and Gateways a 1 to n relationship with Items. I created both an AreaWithGateways entity and a GatewayWithItems entity. Items can move from a gateway to another, which
How do I force Maven to use external repos to retrieve artifacts?
I got following error while trying to build the project. The project is spring project and use IntelliJ with java 8. Is there a way to fix it through setting.xml? I have not access to any configuration on http://maven:8081/nexus/content/groups/public This is my setting. Answer If you set then you send every request to this repository, regardless of the rest of
Maven Command Line Args in the settings.xml
Good afternoon, I’m trying to find out whether there is a possibility to outsource Command Line Args in the Settings.xml. I can’t use the MAVEN_OPTS Env-Var and the .mavenrc file, but i need the Settings in every project. It is important that no plugins are used which are not included after the installation (the settings are needed for a connection
Repository Pattern with Repository Factory
I’m trying to improve my Android persistence layer to be used across multiple applications. What i have done so far is to setup a base repository abstract class and also a base repository interface, the complete code can be check here: https://github.com/grmaciel/android-repository-ormlite Interface: Now all my repositories extends my base repository, like this: What i’m trying to achieve now is
Maven error: Not authorized, ReasonPhrase:Unauthorized
I checked out my code from the Nexus repository repository. I changed the password for my account and set it correctly inside my settings.xml file. While executing mvn install clean I get the error saying Not authorized, ReasonPhrase:Unauthorized when it tries to download files from that repository. Any idea how to solve this error? I am using Windows 7 with