question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

liberty:deploy not working

See original GitHub issue

Hi

I am trying to explore this OpenLiberty maven plugin and I am facing the deploy issue It says

Nothing to deploy - appArchive or appArtifact must be set. -> [Help 1]

I have the following configured in my pom.xml, please let me know if am doing something wrong.

<pluginManagement>
            <plugins>
                <plugin>
                    <groupId>net.wasdev.wlp.maven.plugins</groupId>
                    <artifactId>liberty-maven-plugin</artifactId>
                    <version>3.0.M1</version>
                    <configuration>
                        <assemblyArtifact>
                            <groupId>io.openliberty</groupId>
                            <artifactId>openliberty-runtime</artifactId>
                            <version>19.0.0.8</version>
                            <type>zip</type>
                        </assemblyArtifact>
                        <executions>
                            <execution>
                                <id>deploy-app</id>
                                <phase>pre-integration-test</phase>
                                <goals>
                                    <goal>deploy</goal>
                                </goals>
                                <configuration>                                    
 <appArchive>${project.build.directory}/${project.artifactId}.war</appArchive>
                                </configuration>
                            </execution>
                        </executions>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

At first, I have started the server in the background

mvn clean install liberty:start

Then, I tried to deploy it

mvn liberty:deploy

but it doesn’t seem to find the appArchive tag in xml. as in below error trace.

Nothing to deploy - appArchive or appArtifact must be set. -> [Help 1]

And, I tried to use in dev mode, but for me it’s not working.

mvn liberty:dev

I am using the Java 1.8 version, maven 3.5.3 version,

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sairaghavakcommented, Aug 29, 2019

@cherylking It works good, verified. Thanks @chyt

0reactions
cherylkingcommented, Aug 29, 2019

@sairaghavak Once you try the suggestion from chyt, please update here whether your issue is resolved. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting tips for Liberty - IBM
The troubleshooting information describes solutions for common problems.
Read more >
Deploying Spring Boot War to Liberty not working
I have a simple Spring Boot application that i can run fine when runnig using my Liberty server in Eclipse, the problem is...
Read more >
Problems with server.xml generation when deploying - YouTrack
Liberty (WLP) Deployment - Problems with server.xml generation when deploying. 1. Hello everyone! :-) We just switched to IntelliJ in our company.
Read more >
Deploy a Java application with Open Liberty/WebSphere ...
If you don't, diagnose and resolve the problem before continuing. Installed Operators showing Open Liberty is installed. Create an OpenShift ...
Read more >
Getting started with Open Liberty
Make sure that your container is running and does not have Exited as its status: ... This JAR file can then be run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found