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 7798587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:03:11+00:00 2026-06-02T00:03:11+00:00

From my experience, Maven is often an overkill in small/experimental applications. But depencency management

  • 0

From my experience, Maven is often an overkill in small/experimental applications. But depencency management is very useful feature of Maven and actually the only one that can be really helpful in mentioned type of applications.

I wonder if I can have a very minimal and lightweight Eclipse-Maven integration that provides only adding Maven dependencies to Eclipse project classpath in the simpliest possible way.

Especially I don’t want to:

  • apply to any Maven conventions (including project layout conventons)
  • install and use any specific Eclipse plugins (Eclipse shouldn’t know at all that it is “Maven project” and treat it in any special way)
  • depend on/be bound to Maven in any other way than using it as lightweight jars/libraries downloader

My first (and only) idea is to use Eclipse Maven plugin from command line to manage project classpath. But by default this plugin does more than it (sets up default maven project layout, manage builders). Can I limit this plugin to only do what I want?

Or can I reach the goals I described in any other way?

  • 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-06-02T00:03:12+00:00Added an answer on June 2, 2026 at 12:03 am

    I found a solution that fits very well to needs/use case that I described in question:

    1. I created very minimal pom file in Eclipse project root:

    <project>
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.sobczyk.piotr</groupId>
        <artifactId>mvn-eclipse-test</artifactId>
        <version>1.0.0</version>
    
        <build>
            <sourceDirectory>src</sourceDirectory>
            <outputDirectory>bin</outputDirectory>
        </build>
    
        <dependencies>
            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>1.2.16</version>
            </dependency>
        </dependencies>
    </project>
    

    This .pom file consists of three parts:

    • Required Maven stuff, ie. modelVersion and GAV
    • build section where Maven default source and output directories and overriden to mimic Eclipse environment (it’s the answer to the part of question on limiting maven-eclipse-plugin behaviour, some other eclipse:eclipse goal options like buildcommands may be useful in some more complex cases)
    • dependencies section listing dependencies that I need to have on project classpath

    2. From command line I invoked following commands:

    mvn eclipse:configure-workspace -Declipse.workspace=C:/myworkspace
    cd C:/myworkspace/myproject
    mvn eclipse:eclipse
    

    3. Each time I want to update Eclipse project classpath from Maven file I can do one of two things:

    • invoke last two lines from command line
    • bind mvn eclipse:eclipse to Eclipse external tool configuration and invoke it with single click
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recommendations please (from experience ideally, but anything is useful). Searching Google gives me too
From hard experience I've found it useful to occasionally save the state of my
Does anyone have experience with running unit tests written in Ruby from within Maven.
From previous experience I had been under the impression that it's perfectly legal (though
From your experience, what is the most accurate open-source Optical Character Recognition (OCR) library/software
I have two questions: From personal experience, what free blog engine is the best
It seems like buttons and links are interchangeable these days. From a user-experience perspective,
Does anyone experience to get depth map from stereo pair? I wonder if are
Coming from PHP with some Java Struts 2.0 experience any tips/tricks on learning GWT?
im coming from unix / server / c++ /java background with no GUI experience

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.