I use apache maven for the build project, so I want to add my javascript framework dependencies automatically based on their version, organizing javascript frameworks, and loading only modifications to the shortcut version. Is there some kind of plugin similar to java dependencies or alternative with maven?
There is a standard way to do this using the api servlet function of version 3. Any bank can set up web resources (javascripts, css, images, etc.), which are located in the META-INF / resources section.
To solve your problem, I would create a maven project of type "jar" for each javascript infrastructure that you want to reuse in your webapp projects.
The only caveat is that servlet-api v3 requires Tomcat 7, which in turn requires Java 6, but this is usually not a problem.
See this blog: http://alexismp.wordpress.com/2010/04/28/web-inflib-jarmeta-infresources/
Api 3 servlet link: http://download.oracle.com/otndocs/jcp/servlet-3.0-fr-eval-oth-JSpec/
You can enable javascript frameworks as <dependency> via WebJars: http://www.webjars.org/documentation
<dependency>
Then you can enable, for example, AngularJs like this:
<dependency> <groupId>org.webjars</groupId> <artifactId>angularjs</artifactId> <version>1.4.8</version> </dependency>
WebJars are also hosted in the central maven repository: http://search.maven.org/#artifactdetails%7Corg.webjars.bower%7Cangularjs%7C1.5.0-rc.1%7Cjar
Source: https://habr.com/ru/post/945523/More articles:SHOUTcast script daemon not working properly - shellPandas: create a new data framework that averages duplicates from another data frame - pythonCan't change the structure in the list? - c #java.sql.SQLException: Io exception: socket timeout compared to closed connection - javaquery set limit for ManyToMany MultipleSelect in Django admin - djangoWhen using JAX-RS Jersey, is there a way to distinguish between fields sent as null and fields not being sent at all? - javaICC function error from Cordoba Android - androidevent grouping in C # - c #Custom TaskStack terminates parent activity from notification - androidJQuery gets switch id by checking value - jqueryAll Articles