Maven Questions
Ad
Place MySQL connector JAR in WEB-INF/lib of my WAR instead of in $CATALINA_HOME/common/lib?
I'm about to use mysql with hibernate on a tomcat 5.5.x server. do i have to put
AspectJ annotations are not working in JAVA maven project (Not spring project)
I'm trying to implement aspectj annotations in java maven project without spring. i have added aspects and create annotation. but its not invoking
Maven - How to use two mirrors
I have to use two mirrors. in .m2/settings i have <mirrors> <mirror> <id>nexus_xyz</id>
In Maven 2, is it possible to specify a mirror for everything, but allow for failover to direct repositories?
I understand that part of the appeal of setting up a maven mirror, such as the following: <mirror>
Maven archetype - optional property, empty by default
I want to be able to generate a project from my archetype with one of the properties being empty by default, or populated if
Can a Maven profile enable/disable another profile from its definition?
Given two profiles a and b, is it possible to specify something within profile a definition
Is it possible to have Maven "WAR" pom.xml package up my classes up in a JAR and put the JAR in the /WEB-INF/lib folder?
I have a simple java spring mvc web app. i build the war file using a maven pom.xml file. when i do a "maven install", it produces a war
Controlling Maven final name of jar artifact
I'm trying to define a property in our super pom which will be used by all child projects as the destination of the generated artifact.
change deployed artifact name based on profile
I have in a web application's pom file, a build profile, which does some necessary things (in my code) for qa testing. i have this code on
How to override default maven-install-plugin behavior?
I'm need of custom artifact installation and can't figure how to override the default one (from default maven lifecycle). so my question is:
Ad
Maven how to copy a specific folder inside a dependency to target/classes/myfolder
I have a dependency: <dependency> <groupid>org.webjars</groupid>
How to copy jar-with-dependencies in my webapp\myfolder in maven Idea
I have the maven project in idea with two modules: 1)web and 2)web-start-swt-jar. the web-start-swt-jar pom.xml is configured to package
Can't compile style.scss with sass-maven-plugin
I would like to use sass-maven-plugin to compile some sass template style.scss into css style.css. i have added the
Where is the default maven-release-plugin defined?
Mvn:effective-pom claims my project uses <plugin>
Sample Guestbook GAE Project - 'Plugin execution not covered by lifecycle configuration'
I'm new to programming (and web development) and thought it would be good practice to try and build the sample google app engine project through
Google App Engine Java with mvn devserver failed: missing "guestbook/target/guestbook-1.0-SNAPSHOT"
I'm trying to go through the simple
Using git commit count and commit hash as version in artifact generated by Maven
I've seen so many (answered) questions about using git commit hash as suffix in the version generated when releasing library. but i can't find any
How does ${awsjavasdk.version} work in POM
Some sdk in maven has a pom file, with dependencies like this: <dependencies>
How to ensure all firebase SDKs are the compatible version?
Currently we have a lot of firebase version. firebase_core_version = '16.0.6' firebase_perf_version = '16.2.2'
What is Maven repository in Android Studio?
Can anyone explain clairly what is maven repository in android studio ? i try to understand it but i don't find better explainations.
Is it possible to use the Android-framework in a Java-module?
I am new to android development. i have the question if and how it is possible to use android-framework code, like e.g. usbmanager in a
Ad
Flutter/Dart error: Execution failed for task ':app:checkDebugAarMetadata'
I recently went back to my old flutter project and updated a bunch of things because i was getting errors. now i'm getting the error below. i have
Build getting failed due to firebase sdk dependency
I have created pom.ml file as mentioned below: <project xmlns="http://maven.apache.org/pom/4.0.0"
Can a Maven solution have polyglot projects? (Java, Python, Scala)
Is it possible to have in the same solution a project in java, another in python and another in scala? or all the projects must be either in java
Maven publication of multi-modules android library
I am working on an android sdk made of multiple library modules and a test app module: mysdk |-test-app |-lib-core |-lib-ui |-...
Could not GET 'https://google.bintray.com/.../maven-metadata.xml'. Received status code 403 from server: Forbidden
When i try to build my flutter application i faced is problem: could not determine the dependencies of task
maven wildfly deploy could not resolve dependencies
I have a maven project with two modules : core and webapp. the webapp module is a war file to be deployed to wildfly. it has a dependency to the
GitHub Actions: Required property is missing: shell
Introduction i am currently to crate a composite github actions that build a javadoc from java project and publish it automatically to a
Package Spring Boot application inside a React app with maven
I have a working react app, and i would like to add a spring boot application to it. my final goal is to have a single war file with the
How can I perform a vulnerability scan in an angular/node application
I'm trying to setup a process to check the known vulnerabilities in an angular 7 / node project. how can i run a process like this? are there any
Receive push notifications on a Java Cross Platform Desktop app
I'm developing a java desktop app, using javafx and i'm trying to receive push notifications from a server. my first approach was to use firebase.
Skipping upload for missing aar and pom file
I'm building an aar library for android and im facing an issue. pom and arr files are not uploaded. there is a error
Ad
How to publish in my maven local repository an existing aar with gradle?
I have a project that have the following structure: projectroot build.gradle module1/
Android: Include all image resources in library
I converted an android project app_1 (that contains some images resources in drawable folder and xml files in values folder) to a library and then
Gradle build tool cannot find play-services-tasks.aar? Why?
Today suddenly, i got an error when i tried to run my app in android studio. it is: error: could not find
Spring Boot war or jar for rest api project
I want to develop sample rest api project using spring boot. i am confused what should be the proper approach as we have multiple options for
Maven Apache - Terminal error [cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment]
I'm debugging a code not mine, as the first compilation with maven apache i get this error. has anyone managed to fix it? i assume there is a
404 Error - Java Spring MVC using Maven in Eclipse from Tutorial
my system: os: ubuntu linux 16.04 ide: eclipse neon with servlet engine: apache tomcat/8.0.48 i try to learn the spring mvc
How to run a spring-boot jar with external jars which compile with maven dependency system?
3rd party jars are not in the repo, may be updated from time to time. i use dependency in maven as <dependency>
Maven jar plugin - Failed to read artifact descriptor
I'm trying to run my selenium tests through teamcity on another server. the project starts compiling, but there's an error with
Gradle vs. Maven: Which one is the best option for Android development
What are the major differences between gradle and apache maven? why do they benefit in android applications?
How to recompile and launch Java FX application with Maven and Intell IJ idea?
In tutorial for java fx application with maven, only following code was in pom.xml: <?xml version="1.0"
Spark MLlib in java does not work
My problem is that i have downloaded apache spark for java and create a dependency: <dependency>
Ad
NoClassDefFoundError when running server - GoogleAppEngine/Maven
I'm using maven to handle the dependencies of my project, but when i try to test my code, i get the following error & stack trace :
How to set the generated sources as target bytecode 1.7 when using jooq-codegen-maven
I use jooq to implement mysql dao layer. and my part of pom.xml is as below, <properties>
Maven. Skip plugin execution when running tests
In my pom.xml i have frontend-maven-plugin. <plugin>
Strange JavaFX NPE "Location is required"
I am building a large javafx application with a lot of scenes and am now trying to deploy the application with maven. maven expects
OpenShift: Java maven build "Generic Build failure" but log shows no error
I am building a maven project on openshift
JUnit 5: Is it possible to set a TestExecutionListener in Maven Surefire Plugin?
I want to use junit 5 and the testexecutionlistener interface to do some clean up after the test run is done. the whole project is
How to bypass corporate firewall/proxy for Maven
I have been trying to create a new maven project in eclipse (i am using windows 10), however when the project is created, it shows:
Specify the order in which Maven plugins' executions run
I'm using the copy-rename-maven-plugin during the package phase to first copy the jar that i just generated
Dspace Installation Error
I am trying to install dpsace on my windows computer. i dont have a proxy and my internet connection is fast enough, i get the error :
Why annotation cannot be resolved despite proper import?
I have maven project with spring dependency successfully added. component annotation is resolved when used, but autowired annotation generates
import toml4j in Java fails
I'm trying to import toml4j into my my maven project. i added this to my
Ad
How to detect release/snapshot versioning of maven artifact?
I want to deploy bunch of maven artifacts(war,jar,pom) to a remote repository(artifactory) and
AssertJ no such method error when building locally
I'm having an issue during local build of a multi-module project. tests run: 1, failures: 0, errors: 1, skipped: 0, time elapsed:
NoClassDefFoundError ForkedBooter
I own a project for fast inmemory compilation at
Execute assembly:single goal during package phase
Below is the pom.xml. when i try running it with mvn package, the fat jar is not getting built. but mvn assembly:single
Could not find builder.jar (com.android.tools.build:builder:3.1.0)
I wanted to setting up android studio, i have installed the latest version(3.1.0) of it and i downloaded and installed the latest version of
Tests do not run when dependency on mockito-core present
I've added mockito-core to my dependencies but i seem to be unable to run tests (errors when running) unless i also add
java Runtime error with module logic: java.lang.NoClassDefFoundError: javax/xml/ws/Service
Since i migrate to jdk9 i'm getting the following error at runtime: java.lang.noclassdeffounderror: javax/xml/ws/service
Could not resolve substitution to value :$akka.stream-blocking io dispatcher
I am new to akka,kindly help me with this. on running the executable jar, i get the error:could not resolve substitution to value
Spring controllers aren't response to https
I run maven spring boot application with mvn spring-boot:run. i declared https configuration with application.properties as
Migrate from jCenter to MavenCentral, should I create a third party library JAR file containing all its dependencies?
I'm working on migrating all the third party libraries in my project from jcenter to mavencentral. but some of them are really old and have
Wrong JRE in a JavaScript Project Imported Into Eclipse
I imported a maven project into eclipse. it is a javascript project, but still i get the following warnings: - build path specifies execution
Ad
How to add Jetty-Servlets into Java Project via Maven for Cross-Origin-Header
I am working with the pesto project from this
maven dependencies copied from dependent project after zip assemby
If this already has an answer, i haven't managed to find it. i have spent many hours getting this far, before throwing in the towel and asking
spring boot multi module spring-boot-maven-plugin compilation failure
I have a multi module project with maven and spring boot. my main pom.xml: <?xml version="1.0"
How can I refresh a folder with Java code?
What i am trying to do: generate a test report after the test execution is done and then email it( i am using maven,
what is the difference between <parent></parent>and<dependency><dependency> in maven?
In my project i alway use <dependency><dependency> but i can see <parent></parent> in some
Is there any maven goal that is similar to 'dist'?
I'm working on a project that used ant. i had a target dist that would basically do jar first, and then
GWT module may need to be (re)compiled REDUX
When running in compiled mode i get this dreaded gwt module 'mymodule' may need to be (re)compiled dialog message. i've compiled a list of
mvn test - override values in application.properties
I have these properties in my application.properties:
Could not get configured mojo for org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check {execution: validate} Plugin
Here is the screenshot of this issue. i've tried removing the entire .m2 and reinstalling java and eclipse still didn't works. i am using eclipse
Cannot find symbol (all the constructors, getters and setters) in spring boot
My project was working fine earlier, but when i open this in sts and then opened it in intellij, it started giving me this error. i was searching
How to set environment variable in React JS..?
I am new to react js. i am trying to build war file from react app but stuck somewhere below. it gives me below errors. creating
Ad
Maven not running tests through eclipse in multimodule project
I have a simple multimodule maven project structure as below : main-project : -test-child-one : -test-child-three :
Maven properties loading order
I know that maven properties can be defined in different locations: ~/.m2/settings.xml on the local machine
Build Success | Not Getting any error in Maven Project in Eclipse but nothing is happening
I created a new maven project in eclipse. when i try to run any method annotated with test, the content inside it does not get executed. i checked
The type org.springframework.data.repository.Repository cannot be resolved. It is indirectly referenced from required .class files
I am new for spring boot, i got this problem when i follow the spring guide-accessing data with mysql i got an error in my sts ide, i
Maven way to include a runtime dependency when packaging
I have two maven projects, a and b, where a depends on b at compile time, but at runtime b needs some classes of a. what i did is:
Maven compile with multiple src directories
Is there a way to compile multiple java source directories in a single maven project?
How to convert JavaFX project to Maven correctly?
I wrote javafx project in eclipse ide, it worked correctly. once i converted it into maven project, my fmxl files stopped opening. however,
Maven Install Warnings
I'm new to react and webpack. maven seems to be unable to process my css files. running mvn install has a syntax error unexpected token on the
Can I use a jar, compiled in Java 7 as a dependency in a project that is compiled against Java 6?
Can i use a jar, compiled in java 7 as a dependency in a project that is compiled for compatibility with java 6? i do not have the source code of
Why is Maven downloading log4j-1.2.12.jar?
I am trying to remove all the vulnerable log4j dependencies from my maven project. i am using log4j 2.16 dependency in my
Avoid log4j-to-slf4j to download automatically
I have a project where log4j-to-slf4j-2.17.1.jar is automatically downloading as a part of dependency. i have added the exclusions tag as well.
Ad
Replace Log4j library in maven pom file
We use elasticsearch for our application. by a dependency in the pom file, we pull it in, do some configuration, and then repack it as a zip. this
Migrating from log4j to log4j2
I am migrating from log4j1.x to log4j2 due to recent vulnerability. it seems another dependency is referencing the the old log4j1.x file.
java.lang.NoClassDefFoundError after workspace was moved
I have a few projects that were developed by a different developer. he won't work on it anymore, so i'm supposed to take over his work. i copied
sbt release generates from folder structure in maven central
I'm trying to release a library via sonatype to maven-central. when
Maven: is it necessary to put maven-jar-plugin in POM?
I found that even without specifying maven-jar-plugin in the pom, when i run mvn package, it will still generate the jar. so
Spring-Boot upgrade to 2.6.2 gives error at runtime - BeanCreationException
We have gone upgrading to spring-boot latest version to 2.6.2. however we get maven build success, we have been knocked
Libgdx: library not showing up on autocomplete even after successful build?
I'm using android studio and i want to add a graph library to my libgdx desktop app. i followed the instructions on the libgdx docs and added the
Java Spring Boot- build MVN in docker
I build a project by mvn. it success but call api, i have an issue: > 2022-01-09 08:47:28.680 info 1 --- [nio-8083-exec-1]
spring-mvc-404 page not found error in maven project
I have been trying to understand and clone the spring mvc login and registration process. as far as i know i am following the same code and
How can I setup JBoss Dev Studio project imported from Red Hat BPM Suite 6.4 to build Java
Following the instructions from the red hat bpm suite getting started guide and developers guide, i have imported a repo using git into jboss
How do I include all empty directory in a maven assembly?
I want use maven-assembly-plugin. my assembly descriptor:
Ad
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.tick(J)V
I use jetty in the dubbo.when i start to run the jar,i get info(cycle output in approximately 0.5 second cycle): 2018-03-22
How to select an attribute of a list elements in jpql
I have a project entity, containing a list of its creators, public class project implements serializable { @manytomany
Ad
Blog Categories
Ad