I am upgrading current system to spring boot 2.5.2 . I have custom spring boot starter which I installed to my local maven repository. But its generating plain jar. I installed plain jar but the project I am gonna use this starter looking for normal jar. When I disable plain jar and install normal jar , its looking plain jar. Is there any way to install both or is there any other way to look only plain jar or normal jar.
Java version is 11, Gradle version is 6.8.3, spring boot version is 2.5.2 , spring boot dependency management version is 1.0.8
In the custom starter one of the module added as a "api project" when I change that to "compile project" in build.gradle it worked. Because of "api project" when it generating jar and pom file it was adding classifier as a "plain" and it was searching plain-jar. After change it, everything worked for me.
sorry , I can't comment. I can't understand your mean.
depend on your message , I know you have write a starter that install to local maven, maybe like mvn install , but I don't know what is plain jar, what is normal jar.
Related
I just downloaded the Spring IDE and Tool suite from Eclipse Market place.I am creating a sample Spring project using Spring core containers. I am following a tutorial video for that. I want to set build path by adding external downloaded Spring jars for that I have gone to build path of a specific project and I don't know where my downloaded external spring jars. I have searched in my local drive in java folder in programming files and also where my eclipse is saved. But I cannot find where my external spring jar files saved.
Kindly tell me the path where I can find external downloaded jars from eclipse Marketplace
Spring Suite tool is Rapid Application Development plugin, which helps to decrease spring configuration time and help you focus on core logic of your application.
Even though, As Martin Lippert Explain below, you might have to use Maven (Build Automation tool, And project dependency manager) for creating spring project.
people often use Maven for their dependency management (or Ivy or something else) and would like to use a specific version of the Spring framework (instead of the libs that are inside STS and used by STS itself). But you can define a user-defined Library that contains all the necessary Spring framework JARs and maybe others and just add that user-defined library to each project. Would make it a bit easier as adding several JARs all over again.
Maven uses a filesystem tree as a repository to store jar files with there metadata(dependency, version, etc.) which is located (by default) under your home or My Document Path within .m2 directory (folder).
I imported a sample project into my workspace and when i tried executing it, I found build path errors as
.../springframework/..3.1.0 release.jar(missing)
.
.
.
.
.//all such framework .jar files missing
I tried importing spring framework libraries all those missing libraries shown in the build path, but couldn't solve the errors.(i have imported spring release of 4.0.5 version)
If i need to only import 3.1.0 release, please do share the link from where i have to download the required libraries.
Probably the project you imported has absolute references to the Spring jars. Right click on the project and go to Properties/Java Build path/Libraries. Remove the absolute references and add the new ones.
Concerning the Spring 3.1 jars, you can download them from here: http://mvnrepository.com/artifact/org.springframework/spring-core/3.1.1.RELEASE
Add spring jar dependency into pom.xml then click on mvn clean & install.
Hello I am new to Spring and Ubuntu.
I have set up eclipse kepler in ubuntu and I want to add Spring framework to eclipse but I did't understand the spring documentation and I cannot find the download link of framework. How can I add spring to eclipse.
As far as I know I have to download Spring Jar files and copy them to the classpath. However I couldn't download Spring
Download Spring Tool Suit IDE. Run some template project. These projects are maven based. This is the first step to learn and run Springframework for any OS (Windows, Ubuntu).
You have to add Spring dependencies in your build path.
Check out this tutorial.
As per my experience with Spring, it depends upon multiple jars which is tedious to manage as described above. So, personally I use Maven as build dependency management tool. You can find lots of POM.xml example in Web for Spring, however this pom.xml is from one of my project in which I've used Spring.
Maven can be used for many aspects of build process as per your knowledge and if you're new to Maven, some basic guides and tutorials will do to use Maven as build-dependency-management tool.
It would be better if you use Spring-Tool-Suite with your eclipse for productivity.
Spring's new site Spring.io is very helpful resource to learn Spring.
And Maven Plugin for Eclipse: m2eclipse
I am writing an application that uses GWT, some Spring MVC and Spring Security. Maven is be used to manage the dependencies and Eclipse is my IDE. I've created my application as follows:
webAppCreator -noant -maven -XnoEclipse -out MyApp com.example.MyApp
Then I've imported it into Eclipse as follows:
Imported as Maven project into Eclipse workspace.
In the project settings the "Use Google Web Toolkit" checkbox is ticked.
This project has a WAR directory" is checked. The WAR directory is set to src/main/webapp. The "Launch and deploy from this directory" is unchecked.
Then I test it's all OK:
Click run/debug, choose Web Application (the Google choice), and select target/www as the WAR directory.
So far, so good. Now I want to know how to control the development cycle. For example, I now want to add Spring to my application so I add this block to pom.xml and save it. The Maven Dependencies in Eclipse are expanded to show many new jars (Spring and its dependencies).
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
I also edit the web.xml to configure the Spring DispatcherServlet...
Once I've edited pom.xml and web.xml, clicking the debug/run icon on the toolbar will simply run from target/www again without any other steps taking place. This means the old web.xml is used, and target/www/WEB-INF/lib doesn't contain the Spring jars (and Spring's dependent jars). Do I need to drop to the command-line and issue Maven commands whenever particular changes are made?
The ideal answer will describe the development cycle for the above scenario.
My configuration:
GWT: 2.1.
Eclipse: Helios (3.6).
Maven: 2.2.1.
JRE/JDK: JDK 1.6.0.21.
Google Plugin for Eclipse 3.6 version 1.4.0.v201010280102.
Maven Integration for Eclipse (m2eclipse) version 0.10.2.20100623-1649 (this has been configured to point to Maven 2.2.1 environment and NOT to use the embedded Maven3 "instance").
I didn't understand you question completely but I use to create a separated gwt maven project and use apache web server to serve gwt files and then config my main webapp to load gwt files at client/browser. That save me from mixing gwt codes with my main webapp.
Edit regarding your comment:
Forget about gwt for start and read on ...
First you need to make sure that eclipse and maven are playing together correctly so that when you add dependency to you pom eclipse will recognize them too, and your eclipse project setup and structure match with maven.
Second you need to set up a web development configuration so that you can run/test your webapp. You can use maven jetty or tomcat plugin or eclipse tomcat server. IMHO using maven jetty plugin is better.
And Finally you need to package (using maven) and deploy (using maven or not) webapp to your deployment environment.
If you have been successful till now, then you can add gwt in using maven gwt plugin.
If you have installed eclipse maven plugin you can run maven commands from inside eclipse but it wouldn't hurt to run them from command prompt any way.
I have a maven war module which run eclipse WTP tomcat server like normal. Now i want to reuse that module artifact by using maven war overlay: i just create a new war project and include that module in project dependencies. The problem is now i cannot use eclipse "Run on server" anymore because i don't have any resource or config file (like web.xml) in the new project, everything is in the war dependencies but eclipse cannot resolve it.
Is there anyway to use a maven war overlay project run with eclipse ?
Thank you.
If you're trying to have a war dependency on a war project, in other words doing a "war overlay", then it's not currently supported by m2eclipse
Jer developped a plugin to implement this feature, you can give it a try : http://code.google.com/p/m2eclipse-wtp-ext/
I've test this(to debug my first JASIG CAS server), and found it works in eclipse:
Using Jetty Maven Plugin to run/debug war overlayed web apps.
Hope helpful~
I am having the same issue here. I agree with you that it's not supported yet (and has not been for almost 2 years!). There seems to be an alternative using q4e version 0.11.0+: http://wiki.eclipse.org/IAM_WTP_support which you can download from https://code.google.com/p/q4e/ or using the update site http://q4e.googlecode.com/svn/trunk/updatesite-iam/ . I'll give it a try and see whether and how it works (with m2eclipse at the same time active).