New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
start-server to skip already started server #8
Comments
This is fixed now. Latest snapshot of liberty-maven-plugin is published to https://oss.sonatype.org/content/repositories/snapshots/. |
I have tried that, but get a unexpected error. Running maven 3.0.4 WARNING: Error injecting: net.wasdev.wlp.maven.plugins.applications.InstallAppsMojo |
I'm unable to replicate. Can you provide any additional details on how you got this error or any way to replicate? Which Java version btw? |
Version is JDK 7u51 64bit for Windows. The command was very simple: mvn –Pliberty I have created a profile for liberty. If I just swith from
To
it works, but I would like the not getting an error when the server is already running… Med vennlig hilsen / Regards from Bjørn-Willy Arntzen Vennligst tenk på miljøet før du skriver ut denne e-posten Fra: Jarek Gawor [mailto:notifications@github.com] I'm unable to replicate. Can you provide any additional details on how you got this error or any way to replicate? Which Java version btw? — |
Does it work when you run the following command: mvn net.wasdev.wlp.maven.plugins:liberty-maven-plugin:1.0-SNAPSHOT:start-server -DserverHome=/path/to/your/wlp/dir I published another snapshot to see if it helps. |
Nope, I had to download it manually and give it a version numer as our Nexus for some reason cannot connect to https://oss.sonatype.org/content/repositories/snapshots/ Where is org/codehaus/mojo/pluginsupport/MojoSupport supposed to be located ? In Maven classpath ? C:\RAD9\workspace5\kundeside-dar>mvn net.wasdev.wlp.maven.plugins:liberty-maven-plugin:1.0.1-KLP:start-server -DserverHome=c:/liberty -U |
The MojoSupport class comes from the following dependency:
See what happens if you delete this jar from your local Maven repository. I got a similar error if I set the size of the plugin-support-1.0-alpha-1.jar to 0 bytes. If you still see the problem please attach (if possible) your maven execution with -X option. |
Some dependency info must be missing. I removed all codehaus from my local repo, After a start-server only codehaus-parent, jettison and plexus was downloaded to my local repo. org.codehaus.mojo was not downloaded to my local repo. Then I started the server with com.ibm.websphere.wlp.maven.plugins</groupId 1.1, and now jackson, mojo and woodstox was downloaded ... Even after the fresh download, I still get the ClassNotFound exception, so It looks like some imports are gone ? |
The mojo dependency is clearly specified in the pom.xml and so it should be available on the classpath when the plug-in executes. Can you send me an output of the maven command when you run it with -X option? If you prefer to email it, you can reach me at jgawor at gmail.com |
I tried this again today, and now it works as designed. I now can redeploy as a wish when the server is running. Great !!! |
If start-server goal is run when server is already running, it's more convenient to just skip and return without a failure
The text was updated successfully, but these errors were encountered: