eclipse 4.13.0 - dependency repository - spring

I recently downloaded eclipse ee so I can learn more about Java Spring Framework. I am certain that I installed the correct Spring IDE plugin and a Maven Integration plugin is already pre-installed, I double checked. I ran into the issue when I began a new Maven project and I tried adding Spring Dependencies in the pom.xml file. It seems as if eclipse is not looking in the Global Repository because it cannot find any dependencies from the Spring Framework.
I've tried looking online for a solution. Most posts say to check the preferences on Maven and make sure to select the 'Download repository index updates on starup'. I tried that but still no luck.
If anyone has a solution please let me know
pom.xml screenshot

Related

Missing Maven Repositories node in Services tab in Netbeans

Maven is installed on my computer and Netbeans can find it because I can create a new project from Archetype just fine. However, I need to add some repositories on Maven but I don't know any other way other than the one in the services tab, but for some reason, the Maven Repositories node in the services tab had gone missing (it was there before). I tried restarting netbeans and closing the services tab and opening it again. Is there any other way to add repositories to Maven or have the Maven Repositories show up again?
I am using Apache Netbeans 12.
Thanks.
Edit:
I attached a screenshot of the specific problem. I have Maven correctly installed and can create a new project. But I can't add a new archetype catalog because "Maven repositories" is missing:
After checking the suggestion of #skomisa, the log showed that the error is caused by me adding a repository that is unavailable. How do I remove this repository since the "Maven Repositories" option is unavailable in services? Thank you.
NetBeans is coming with bundled version of Maven. So when you've installed maven and NetBeans is able to create a new project. It does not mean NetBeans is using our installed version of Maven.
When you add a repository to the services tab it already mentions:
Adding a repository here doesn't affect your Maven builds in any way.
It's only used to provide the IDE with information from the repositorie's index
Since you haven't described what you want with that repository I assume that it's needed to retrieve artifacts from that repo. So most likely you need to add the repo to your project's pom.xml in the <repositories> section.
I solved the problem by reinstalling Netbeans and deleting the cache in C:\Users<user>\AppData\Local and Roaming.

Intellij - No maven module

I was trying to create a new project in intelliJ using maven module but notice that it has disappear. I tried google but can't find a solution.
Perhaps you need to enable Maven Integration in your plugins.

IntelliJ No files were downloaded for xyz

I've created a new project in IntelliJ.
When I go in to:
Project Structure -> Libraries -> Add -> From Maven -> 'com.atlassian.seraph:atlassian-seraph:3.0.3'
I get the error message 'No files were downloaded for com.atlassian.seraph:atlassian-seraph:3.0.3'
Backstory:
I'm using IntelliJ to write a custom SSO authenticator for JIRA. This is not a JIRA plugin, it's just a class that a custom JSP will use.
I intend to produce a JAR and put it in WEB-INF/lib.
I'm not sure what I've missed here. This is my first exposure to maven and I've googled this extensively.
If you did not change the default remote repository of your maven, it should be this . It seems that the artifact (com.atlassian.seraph:atlassian-seraph:3.0.3), you are looking for, is not in the default remote repository. There are two solutions for your case,
1.Add a new remote repository, which has this artifact, to your project.
2.Find the jar file somewhere on internet, add it to your project as an external jar file. Here is a great tutorial about this.
I've changed from idea 14 to idea 15, and downloading maven jar feature started to work)
My Maven setup in ide aimed to external v3.2.1, but may be it would work even with bundled one.

Maven can't create dependecies for jsf-component archetype project in kepler

When I try to create a project to work with jsf+ejb+jpa by choosing org.richfaces.cdk:maven-archetype-jsf-component archetype maven has failed to build the according directory structure and dependencies. It displayed the following error:
Could not calculate build plan:
Plugin org.richfaces.cdk:maven-cdk-plugin:3.3.4.Final
or one of its dependencies could not be resolved.
Failed to read artifact descriptor for
org.richfaces.cdk:maven-cdk.plugin:jar:3.3.4.Final
I'm using Kepler SP2 (on W7 SP1) for Java EE development with Spring and Hibernate plugins. Can they be the source of problem or it's another issue.
Could someone give some advice how to solve this one.
And any suggestions for a better way to create JSF+EJB+JPA projects are welcome. I'm going to use maybe spring and spring-security for sure in the future.

Where can I find spring3.1 aspect Java source code. Seem to be nowhere in github or anywhere else

Usually I learn new frameworks by going through each line of the source code
I have spring 3.2 in my eclipse project but java aspect classes are not included.
I tried to decompile them but they look messed up
Any where can I find them?
If you have your code a maven project, and it is setup well, it will download the sources automatically. So I recommend you setup your project in maven.
you can find here a good configuration of a spring 3.2 project with maven,
https://github.com/andonescu/springmvc-freemarker
and use maven to download source code, see this link to help you
Maven – Always download sources and javadocs

Resources