Questions tagged [liberty-maven-plugin]

22 questions
5
votes
2 answers

How to copy external dependency to Open Liberty during maven build

UPDATE - July 2021: While the accepted answer using the dependency plugin was the best solution at the time, the answer from @ltlBeBoy leverages the 'copyDependencies' support since added to liberty-maven-plugin. Using 'copyDependencies' is usually…
Anton Balaniuc
  • 10,889
  • 1
  • 35
  • 53
2
votes
1 answer

How can I set the context root in Liberty using server configuration (server.xml) for my EAR-packaged WARs?

I tried to set my context root with the value "new-ctx" in Liberty server config: server.xml This was intended to override the setting in my EAR-level pom, which…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
2
votes
1 answer

Use maven filtering in server.xml without breaking mvn liberty:dev

I would like to use maven filtering, in my src/main/liberty/config/server.xml without breaking the use of liberty:dev from the maven-liberty-plugin. My biggest problem seems to be that the liberty-maven-plugin does not honor filtering. For example,…
edburns
  • 482
  • 1
  • 4
  • 13
2
votes
1 answer

How can I start an Open Liberty server in debug mode with the liberty-maven-plugin "run" goal?

The liberty:run goal of the liberty-maven-plugin provides a single goal to create a server, install needed features and deploy my app, but what if I want to attach a debugger to step through my application? The liberty:debug goal isn't the answer…
2
votes
1 answer

Difference between wasdev and openliberty maven plugin

What are the difference between net.wasdev.wlp.maven.plugins and io.openliberty.tools liberty-maven-plugin and which one should I use ?
2
votes
1 answer

How to find a detailed document about what is Liberty Maven Plugin?

Maybe it is a dumb quesion but I really cannot find a good document about what is Liberty Maven Plugin and what it is used for ? I have checked some posts like How to redeploy artifact with liberty-maven-plugin? but it is not about the basic things.…
abidinberkay
  • 1,857
  • 4
  • 36
  • 68
1
vote
1 answer

Configuring Apache Derby dependency in Open Liberty Maven project

I'm trying to connect a Derby database with my Open Liberty application, but I can't get it to work. I don't think I understood the process correctly. Here's what I did. I downloaded db-derby-10.15.2.0-bin.tar.gz from the Derby website and extracted…
1
vote
1 answer

Common library path when using liberty maven plugin

I'm trying to use the open liberty maven plugin. My app has a set of common jars that I define as listed below in the server.xml file. To use the liberty maven plugin I can't use the element (AFAIK) . Can I config a shared library…
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
1
vote
1 answer

liberty:devc: not being honored

I observe that the element, though it points to a valid Dockerfile is not honored by liberty:devc. Consider this output from mvn help:effective-pom:
edburns
  • 482
  • 1
  • 4
  • 13
1
vote
1 answer

How can I debug my tests in Open Liberty server dev mode (using liberty-maven-plugin) and toggle the debugger on/off?

SUMMARY How can I iteratively run my unit/integration tests in "dev mode" of the liberty-maven-plugin and easily turn on and off the launching of the debugger into the JVM running the tests themselves? BACKGROUND While the liberty-maven-plugin by…
1
vote
2 answers

Install a default DataSource in OpenLiberty by maven plugin

I was trying to set a DefaultDataSource for openliberty 20.0.0.1. The src/liberty/config/server.xml is:
Hantsy
  • 8,006
  • 7
  • 64
  • 109
1
vote
1 answer

How can I execute a subset of tests in OpenLiberty dev mode

In order to execute the whole test suite you only have to press enter key in dev mode. But how to execute one only test or a subset of the whole test suite?
Paco Abato
  • 3,920
  • 4
  • 31
  • 54
1
vote
1 answer

OpenLiberty Maven Plugin

I am trying to create a runnale openliberty server as part of my release process. I have a a multi module maven project with a submodule dedicated to packaging the server as a runnable. When I do a mvn clean package a lovely executable jar is…
1
vote
1 answer

How do I start a Liberty server in debug mode in the background with the liberty-maven-plugin?

Use Case The liberty-maven-plugin has a debug goal which allows you to start the server in debug mode, but in the foreground. Often when wanting to attach the debugger, this is all you'd need. You can execute tests separately somehow or via other…
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
1
vote
2 answers

How to deploy to WebSphere Liberty apps directory from WebSphere Liberty Maven plugin?

I have a application running in WebSphere liberty. Through mvn install command I need to deploy my application to liberty apps directory as I am not using dropins directory. Bellow is the working maven plugin code from which I can deploy to dropins…
Roshanck
  • 2,220
  • 8
  • 41
  • 56
1
2