Customising Maven Settings
If I press Alt-Insert on a Maven pom file there is the opportunity to insert a repository template.
This has stuff like central, codehaus, java.net etc in it.
How do I add my company repository into this list? I can't seem to find any option in the settings anywhere.
There is an option to add your nexus repository to the indices
http://www.jetbrains.com/idea/webhelp/maven-repository-indices.html
However, when I put in my company site nothing is found.
Does it matter how I put it in?
e.g. is there a difference between putting https://nexus.mycompany.net/nexus/index.html and https://nexus.mycompany.net/nexus/ or does IDEA scan both?
The site is password protected. How are credentials handled from IDEA?
IDEA allows creation of modules from archetypes, but I can't see any option to create the archetypes myself.
I am busy making several templates for my company and figured that createing archetypes via
mvn archetype:create-from-project
Would be a good option, but there doesn't seem to be anyway to do it from IDEA.
Once I have the archetypes created and hosted on my company repository, is there any easy way to make them available to all my staff?
请先登录再写评论。
That would be a nice feature to be able to add ones company repositories to the list. I do not believe there is any where currently to do such a setting. It looks like the values are stored in ${idea-install-dir}\plugins\maven\lib\maven.jar::org\jetbrains\idea\maven\dom\converters\repositories\repositories.xml
I shutdown IDEA, edited that file in the jar to add our repos, and restarted IDEA. I then had our company's repositories in the list. Obviously that's a bit of a hassle. But worth it to have our repos in the list. I'll just need to add that to my list of tweaks I do when installing a new version IDEA.
As for the archetypes, lit looks that is picked up from ${idea-install-dir}\plugins\maven\lib\archetype-common-2.0-alpha-4-SNAPSHOT.jar::archetype-catalog.xml Since we do not have any custom archetypes, I did not look any more into what would be needed to add one. But that might give you a starting point to do a hack while waiting for a new feature. It would be nice to be able to easily add custom archetypes to IDEA.
I added it to youtrack with an extra request to make it easier to use company wide.
http://youtrack.jetbrains.net/issue/IDEA-75736