Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7050527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:09:16+00:00 2026-05-28T03:09:16+00:00

I have no experience with maven, so excuse me if this question is silly…

  • 0

I have no experience with maven, so excuse me if this question is silly…

From another question (How does Grails handle plugin dependencies), I’ve learned that I can avoid the jar-hell in grails through maven repositories. But I now have the requirements that…

  • I am not allowed to use remote maven repositories
  • I would like to bundle the needed jars with my plugin (but low priority)
  • I would like to avoid the effort to install a local maven repository

I already worked with a reference to a local folder for plugin resolution. This works great.

But how do I have to structure a local folder in order to use this option:

repositories {
  flatDir name:'myRepo', dirs:'/path/to/repo'
}

I mean, I could just drop the jar files to this folder, but how do I then reference those jar files? Do they have a naming schema like artifact_version.jar? Or do I have to create an XML configuration for this local repository?

Or is the effort to use a local maven repo small and maven is even already on my machine through grails?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:09:17+00:00Added an answer on May 28, 2026 at 3:09 am

    The fact is Maven comes already with a local repository (~/.m2 on linux boxes). If you don’t have access to an external repo, you just have to install your jars in the local repo, with this command

    mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
    

    is ‘jar’ (without quotes) and group-id and artifact-id are either determined if it’s 3rd-party library (go make a search on mvnrepository.com if you don’t know them for a particular library) or you put there your group and artifact ids

    EDIT : In fact, the naming scheme under the repository is for the library example version 1.2 from jexample.com is usually com/jexample/example/1.2/example-1.2.jar (groupId : com.jexample, artifactId : example, version : 1.0)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have experience with running unit tests written in Ruby from within Maven.
Anyone have experience with this plugin? I have it installed but I have no
Does anyone have experience with database links between 10g and 11g? Is this a
Is there a good tutorial or does anyone have experience with setting this up
anyone have experience doing this? when i say imaginary i mean the square root
I only have experience with log4net however that does not mean that there are
Does anybody have experience programming for both the Intel Math Kernel Library and the
Does anyone have experience developing with ESQL/C for INFORMIX-SQL, as in calling C funcs
Does anyone have experience writing professional OpenGL games on Windows? For the Mac, due
I need help because I have no experience using Maven. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.