Questions tagged as 'maven'

1
answer

The requested profile "pom.xml" could not be activated because it does not exist

When doing mvn clean or mvn install from the jboss developer it shows me the following error. I have reviewed the following link, but it does not help or says much to configure from eclipse: similar question The error that shows me in conso...
asked by 29.05.2018 / 00:39
0
answers

Implement Swagger in Maven project - Error 404

As indicated, and tried for days to implement swagger in the services layer of a maven project that has different modules. Watching tutorials, and view several ways to configure it without giving results, that's why I ask this question. Dependen...
asked by 24.05.2018 / 18:54
1
answer

Securizando the controllers do not work the roles, lets enter without being admin admin

I have the Spring Security functionality configured and in the database I have a user role and I define in SecurityConfiguration @PreAuthorize ("hasRole ('ROLE_ADMIN')") so that only the ADMIN role has access to the path @ GetMapping ("/ contact...
asked by 24.05.2018 / 18:28
0
answers

Problems configuring LWJGL: NoClassDefFoundError org / lwjgl / glfw / GLFW

I am trying to configure lwjgl in my Java application, this is the code that is giving me problems: import org.lwjgl.*; import org.lwjgl.glfw.*; import org.lwjgl.opengl.*; import org.lwjgl.system.*; import java.nio.*; import static org.lwjgl...
asked by 22.05.2018 / 12:53
0
answers

Save .xml in meta-inf folder?

When I compile a JAR POM in Maven it does not save an .xml file that I need in the meta-inf folder. How can I save this file in the pom? Example:                                            / src / META-INF /                                ...
asked by 27.04.2018 / 00:45
0
answers

I can not access a resource from JDBC Resources in the Glassfish

about my problem, I have seen other questions but none has been able to solve my problem. Before going on I want to clarify that I am new to the subject and I am watching a tutorial on JAVA EE. The technologies I use are: - JPA - JTA - Mys...
asked by 12.04.2018 / 05:54
1
answer

Call another .java [duplicate]

I'm trying to create a discord bot with java maven and I would like to have the core separated from the commands, and that the core call (start) the commands so that they can be used, I tried to call it in the following way but not it works, i...
asked by 28.03.2018 / 00:25
0
answers

JUnit Test. NullPointerException in @Inject of the interface

My problem is as follows. I have a Java application whose beans I annotated with @Named and to do the dependency injection between those beans (whether @Controller, @Services ...) I use the @Inject notation. So far so good. The problem com...
asked by 28.03.2018 / 11:50
1
answer

Failed to execute goal org.apache.maven.plugins: maven-compiler-plugin: 3.1: compile (default-compile)

I am using NetBeans and Maven stopped compiling, I increase a class and it no longer compiles, I remove it and normal, I already tried deleting the repository, changing JDK, JRI, even netbeans and nothing cd D:\ASUS\Documents\NetBeansPro...
asked by 17.02.2018 / 17:39
1
answer

Spring maven Webjars loads css bootstrap but not jquery or js

I have the following pom file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 h...
asked by 15.02.2018 / 19:20