Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Earlier at the time of development my project have not consider the requirement of Maven. Since now project size is quite large and having a lot of dependencies so we have to change our existing spring project to maven project .
can any body suggest me the steps by step implementation of converting spring project to maven project. I'm using Spring, JPA, EJB, Apache CXF.
Change the project directory structure to adapt maven standard directory structure
Change the classpath provider (if you are using) to maven
Change project configuration in eclipse to get it detected as maven project
configure maven plugins for your build requirement
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
For the period that I have been using spring I have deployed jars using the export runnable jar option for which the apps seemed to run fine. I was informed that I should be deploying maven projects by doing a maven build (clean package) and deploying the jar in the target folder. I have observed differences in the outcome though. With the exported jar, it fails to find the properties file when using :
getClass().getResourceAsStream(
but the maven jar reads the properties file from within the jar. Also this is a kafka consumer application and with the maven jar, I seem to have an unusual errors of kafka consumer and multi threaded errors which does not happen when running in the IDE.
My question is just to try and understand why there would be these kind of differences and what the differences are between the 2 jars?
For Maven, the pom.xml defines where the resources are and what dependencies to load, for the other method (of whatever IDE?), there might be different default settings.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Hello I've been looking for a step by step guide on how to create a webjar of an existing project. My Front-End project is currently using Angular 2 + webpack, I understand the files need to go in a specific directory META-INF/resources/webjars and that there should be a starter Maven pom file somewhere in the project. The thing is I'm not sure where or how to start implementing this inside my project and so I'm asking here if anyone could help me out or knows where I can find a step by step guide for this.
I plan to use the webjar as a dependency for another project built using Spring Boot. Any help is greatly appreciated.
WebJars is really just a packaging of JS / CSS libs that can easily be used as dependencies in Java builds. By putting the contents of these libraries in the META-INF/resources they are automatically available as static resources in most Java web servers. So to create your own JAR that has static resources in the META-INF/resources you can create a JAR however you like. This is usually done with a build tool like Maven or Gradle. If you want to publish that JAR somewhere that anyone can consume as a dependency then most people use Maven Central.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to implement ADF + maven in JDeveloper 12c and I haven't found many tutorials with these two together.. however one that I saw said to create a Maven Application but that option doesn't show... (when I do New -> Application (-> Maven) )
I'm talking about this tutorial http://www.oracle.com/technetwork/developer-tools/jdev/maven11g-090173.html#5
Any thoughts?
Also, do you think I should start by creating a ADF Fusion Web Application, instead of a Maven project?
First of all, i would suggest you to take a look at this video: Introducing Maven Support in JDeveloper. At the beginning of the "practical" part it shows how to load the Maven extension into JDev, and this should probably be the reason why you don't have the Maven Application option into the creation wizard. Anyway, by loading the extension, you will be able to create a Fusion App and use Maven to build it
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I made a web application with maven spring 4 hibernate 4 and primefaces in one web project now i want to make a multi model project : main(packaging pom) presentation(view packaging ear)
business(packaging war) and integration (for jpa and hibernate) that's alll what i know can someone help me how to do it from the scratch because it's my first time and thx
The structure of which you have spoken is quite good and simple, this tree should reflect it
pom.xml (aggregator, packagin pom)
EAR-front-end
WAR-business
JAR-integration
So let's start from creating your own empty structure, then starting with integration of the various parts of the old structure, beginning from the integration layer...in turn integrates also a solid structure of unit tests, I would not exclude the possibility of dividing even the three main entities, the EAR , the WAR and JAR (integration) in sub-modules to increase the modularity of the application and facilitate the integration and maintenance activities.
I hope this can be a good starting point
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is there a standard way for finding maven entries for any project? For eg if I talk about Spring MVC. Do I need to go the Spring website and find a section there or is there some other standard procedure using which I can find the entries I need to make ?
No, You can find them in the ordinary maven repositories:
http://mvnrepository.com/
http://search.maven.org/
You search for the artificat you want, and get the pom info to include in your dependencies
I just google "maven" and the package name. Some artifacts are only made public in company repos.
I search com.x.y.z maven coordinates on google and almost every time I get the results.