Questions tagged [maven-plugin]
Do not use this tag for the use of specific Maven plugins. Use it only for Maven plugins development related questions.
maven-plugin
3,705
questions
0
votes
3
answers
27
views
jar file is not generated in my spring project
My name is Alex. I am learning spring and I have already completed a project. Now I want to upload it to the internet and publish it in my portfolio. However, when I give the following command in cmd: ...
0
votes
0
answers
9
views
JAR package only necessary classes and dependencies
I am new to maven and I would like to know what would be the best way to package only those classes and dependencies that are needed to run that class. For example if I have a lot of classes A, B, C ...
0
votes
1
answer
24
views
Set language for Open Liberty logs running with Maven plugin
I have a Jakarta EE project based on Maven and use the openliberty-runtime plugin to be able to directly start the application in dev mode.
It works, but the log messages are German, since that is my ...
-2
votes
0
answers
39
views
Maven dependency release dates [closed]
I've noticed that some Maven dependencies have release dates earlier than the components they depend on. I'm investigating the reasons behind this and suspect that the upstream component might have ...
0
votes
0
answers
26
views
Maven test pass, but with install tests fail
I'm using maven, liquibase in project and spock with groovy to test java code.
Normally my tests pass, but when I'm using packaging/install then tests fails with error of spring context initializing ...
-1
votes
1
answer
38
views
Cannot run program "docker-credential-desktop": error=2, No such file or directory
I am using MAC OS. I am getting following error, while running mvn clean package docker:build
Error getting the credentials for localhost:8082 from the configured credential helper[m: Failed to start '...
0
votes
0
answers
25
views
How to use @org.apache.maven.plugins.annotations.Parameter in not-mojo object with maven plugin
I know that @Parameter can be used directly in mojo, and I know that the documentation of @Parameter says
Beans injected into Mojo parameters are prepared by Sisu JSR330-based container: this ...
1
vote
0
answers
29
views
CodenameOne duplicate dependencies
I'm using CodenameOne in IntelliJ, and when I tried to run, it said that there was 'duplicate dependencies'. I have a couple of other errors in my app's common pom.xml as well. They are all as follows:...
0
votes
0
answers
35
views
MojoFailureException maven pom.xml error caused by plugin or dependencies
I've tried to make a maven project. But every time I try to start my build it gives me an error in the console. I'm pretty sure this is a plugin/dependencies error. But I'm still learning so I may be ...
1
vote
1
answer
66
views
JAXB generated classes not seeing their own dependencies in IntelliJ IDEA
I have a maven project that auto generates some classes using the JAXB plugin in the POM. Everything in the project works fine, the project builds correctly, and runs without any issues, however ...
0
votes
0
answers
33
views
Dependency 'org.mapstruct:mapstruct:1.6.0.Beta2' not found
I have added the mapstruct dependency:
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>1.6.0.Beta2</version&...
1
vote
0
answers
59
views
Kotlin multiplatform library publishing. Can't use classes in commonMain
I have created a pure Kmm library without using platform-specific functions. all the code is in commonMain only. It's simple class:
class TemperatureConverter {
fun celsiusToFahrenheit(celsius: ...
0
votes
0
answers
57
views
MavenProject coming null inside ITestContext
My end goal here is to read all pom.xml from different modules from a custom Testng listener which is present in one IntegrationTests module.
Expected behavior
iTestContext.getAttribute("maven....
-1
votes
1
answer
57
views
Custom Maven plugin: How to process FileSet?
I am developing my custom maven plugin. One of the parameters this plugin shall receive is a fileset. Here's a snippet from the plugin itself:
@Parameter
private FileSet[] filesets;
It compiles well ...
0
votes
0
answers
24
views
How to replace the direct dependency `A` with all transitive dependencies of `A` in the artifact pom.xml?
I have a maven project named A which is dependent on artifacts B and C, I want to generate a thin jar which will have only the classes of A, B and C from project A with As pom. I can do this using ...