# pom2classpath **Repository Path**: mirrors_samskivert/pom2classpath ## Basic Information - **Project Name**: pom2classpath - **Description**: A tool for generating Eclipse .classpath files from Maven poms - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-07-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pom2classpath Currently this tool just generates `` elements for all of the dependencies in one or more `pom.xml` files. You are left to merge those into your existing `.classpath` file by hand. Eventually, I'll add support for generating additional elements used by `.classpath` based on the configuration in `pom.xml` as well as add support for updating existing `.classpath` files in place. The tool assumes you use `M2_REPO` as the Eclipse path variable indicating the location of your local Maven installation. This seems to be moderately common practice in the wild, but perhaps I'll eventually add an option for configuring that as well. Finally, I have yet to wire up the necessary build machinations to generate a single executable jar file, so running the tool is not at all convenient as well. So much to do! ## Example input and output Given dependencies like so: commons-digester commons-digester 1.8 compile true org.apache.ant ant 1.7.1 provided junit junit 4.8.1 test You get output like so: Eventually I'll support filtering on scope, as well as checking whether source files exist before adding them. ## TODO * Generate `kind="src"` entries for source directories. * Generate `kind="output"` entries for target directories. * Generate boilerplate `kind="con"` entries. * Check for existence of source jar before adding `sourcepath` attribute. * Add `exported="true"` for non-optional dependencies. * Support in-place update of existing .classpath file, preserving existing elements. * If we see a dependent project with same name as a dependency (just artifact), omit that dependency. * Contemplate how we might avoid repeating dependencies exported by dependent (Eclipse) projects.