What is the best way to embed jetty in a war file? - maven

I'm trying to embed jetty in a war file so I can launch it frcom the command line, but I'm struggling. I'm using maven, has anyone done this before?
Thanks! Steph

I don't know if you already did this, but as far as I remember, you need to copy all dependencies that are provided in your war file as direct dependencies of the jetty plugin.
Providing more details about your current architecture and issues may help...

Related

Use of maven with artifactory and jenkins

I am very new to maven, artifactory and jenkins as well. I made a directory 'repository' under path /home/apache-maven-3.2.1/.m2/repository. I am trying to deploy a jar through artifactory UI into this directory. Please suggest some configuration so that i can do this. Jars which i deployed already were deployed successfully but when I see inside repository, there is nothing in it.
One other question is how to set dependencies while deploying any artifacts?
These questions may be silly because i don't know anything about the above three tools and i am unable to set relation between them also.
Thanks in advance.
I'm also quite new to maven and still struggling with it, but the thing to do is try to configure a pom.xml file with your settings. Since you didn't give any indication on how the jar file has to be build, you got to find a guide in order to do it.
Useful links:
https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
https://www.tutorialspoint.com/maven/maven_pom.htm
Hope this can help!

War file, build by Gradle, do not find resource with withspace

I am unsure where my problem exactly is...it shows as following:
Build my project using Maven, everything works
Build my project using Gradle, start up and behavior are fine; except for one icon that has a white space in his name
If I open the URL I get a 404
In my log file I get:
2016-02-02 16:55:49 INFO VaadinServlet:738 - Requested resource [/VAADIN/themes/ThemeName/icon/ic-A A_active.png] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
If I look into the folder in webapps on the server, the file is there. With exactly the same size as in the folder of the maven build.
I use pretty basic stuff and the examples provided by spring boot (for gradle & maven)...
The only difference between maven & gradle that I could spot was that gradle do not have the transform steps of the parent-pom of spring-boot.
Is that the reason? Because spring boot is configuring the war file slightly differently so that white spaces are okay?
Anybody an idea how I can allow white spaces in the war file?
I hope you can understand my questions. I can upload my build files, but they are pretty standard in this regards...
Best regards
Found the issue, it was based on missing BOMs in gradle.
I skipped the VAADIN BOM but it was updating the version of some VAADIN dependencies...

Maven Enhancing / Exploding war file

first of all sorry if this is a stupid question, but i am quite new to the topic of Maven. So please correct me if i am doing something wrong or not best practise like
Currently I have following issue:
I have an 3rd party application in several war-files which i would like to extend (this 3rd party party allows to extend the software with own individual implementation).
Therefore i have created a Maven Project where i added the required war-files as dependencies in my pom.xml
My assumption is:
I have to somehow unpack the war file and then have to add my new implementation to it and then have to compile everything and then have to repack everything into a new war.
Is that correct or not?
How would i do it?
Thanks a lot for your help
The Maven War Plugin supports overlays that allow you to do exactly what you desire.

How to create executable obfuscated jar for a JavaFX application?

I need to create an executable jar of my JavaFX application. I have done that using ANT. I also need to obfuscate this jar. When I obfuscate using proguard, it is no more executable. Please provide inputs if anyone has worked on it. TIA.
I'm the maintainer of the javafx-maven-plugin.
I've uploaded a working project for using proguard when using maven with javafx-maven-plugin, the kudos goes to Maxim Dobryakov.

Adding existing source packages to a Maven Web Application in Netbeans

I have a normal Netbeans project, and I would like to add the source packages of this project to a project that is a Maven Web Application, also within Netbeans.
I tried copy-pasting the packages into the /src project directory of the Maven application, but this doesn't seem to work.
Could someone please tell me how I could do this ?
If this is not possible, could someone tell me if I can convert the entire normal project into a Maven Web Application ? Thank you :)
It sounds like you need to add the dependency to your web-application instead of the source code, cause maven is intended to handle exactly such situations.

Resources