I have a pom file. I want to read the version of the first dependency in the dependencies tag and use that version to tag our docker image. I am using this command to get the project version. mvn help:evaluate -Dexpression=project.parent.version:1 -q -DforceStdout I want to get the version of the first dependency using command line , and from there
Tag: maven
Surefire maven plugin does not execute one of the tests
I have a project with four packages. With three of them everything is fine. I have generated JUnit tests and they are executed during the build or while I am running mvn test command. But my fourth package, containing just one class. I have created a JUnit test for it, but when I am running the build, Surefire does not
can I include dependent jar files directly in a jboss EAP 7.3 container?
I am migrating a java ear application from weblogic to jboss. The application is an ear with the below maven dependency on antlr in the pom: On localhost we use jetty so it gets included by the pom I guess due to the scope being test. In our test/production environments we deploy on Weblogic and I am trying to get
Problem with GWT application compilation – Error, status 503
I am new to GWT. I have already generated first applications that worked and I stuck on another one – I cannot run. I got in my browser status 503 Did I forget about something? Everything in module section of Project Settings it the same as in other apps, pom.xml is all the same maybe I should all some changes
Is there a way to invoke a java code (something like custom maven plugins) in bazel build?
I made a plugin to run it during compilation of maven modules. But since my org is now moving to bazel — Do we have a way that we can directly run plugins(mojos)in bazel? If not, is there a way during bazel build of a java code that we can invoke another java code which has all the project info
Using custom packaging type as dependency in maven
I have created a custom packaging type in my maven plugin so that I can deploy files in this custom format. E.g. I have a project that uses this format for packaging. The pom.xml has: I am able to deploy successfully to a repository. But now I want to use this as a dependency in another project. E.g. by adding
Maven compiler cannot resolve import
I’m trying to build multiple eclipse products with maven and tycho. I’m currently stuck on an issue, where a Bundle A is dependent on a class from Bundle B. Bundle B has a package structure similar to: When I now try to build A I get a compile error that looks somewhat like this: If you look closely, you see
Cannot prepare the release because you have local modifications :
I am trying to do a Maven realeas prepare but this error keeps happening I tried to execlude the root pom from being checked but it goes now to the other poms and this is an example of my root pom : what can I do to resolve this ? Answer I Committed the pom.xml and it solved the problem.
Integration test fails when upgrading failsafe but passes within intellij
I have a multi maven module project. The project runs fine and everything passes, but if I upgrade failsafe plugin from 2.22.2 to the latest version 3.0.0-M5 the integration test within two of the maven modules(client and server-with-jersey) fails. I have tried different configuration, but I am not quite sure what to do anymore… So I am hoping that the
Choose which dependency to use in class
I want to use a class and in my pom there are two dependencies that support it: dependency1 and dependency2. Using the class with dependency1 crashed my program, so I deleted it completely from pom …