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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:35:59+00:00 2026-06-16T14:35:59+00:00

I have an old project in RAD 7.5 that is built as a JAR

  • 0

I have an old project in RAD 7.5 that is built as a JAR to be used as a library in other projects. I’m trying to convert it to be built with Maven (part of a larger effort to move most projects to Maven) and I’m stuck on the classpath. The pom.xml looks liket his:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <name>My Framework Jar</name>
    <groupId>com.mycompany</groupId>
    <artifactId>MyFramework</artifactId>
    <version>1.0.1</version>
    <packaging>jar</packaging>
    <build>
            <!-- can't change the directory structure to how Maven likes it so specify the source directory -->
        <sourceDirectory>src/com/mycompany</sourceDirectory>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <groupId>org.apache.maven.plugins</groupId>
                <version>2.1</version>
                <configuration>

                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <!-- This will add project version into manifest file-->
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
        <finalName>MyFramework</finalName>
    </build>
</project>

The problem is that when I try to produce a jar, I get tonnes of “cannot find symbol” errors that reference class names in the jar files that this project is dependent on. There’s already a .classpath file that seems to be what RAD uses for building the project – is there a way to get Maven to read this file so it knows what jars are needed?

  • 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-16T14:36:01+00:00Added an answer on June 16, 2026 at 2:36 pm

    Since Maven manages the dependencies in the repository on your machine and uses them to compile and run your project those libraries are no longer directly in your project. So you might have to change your .classpath to point to your repo (~/.m2). When I use Maven Eclipse has a nice plugin that allows you to convert the project to a Maven project. This plugin allows the classpaths to be managed in the pom.

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

Sidebar

Related Questions

I have an old project that is using iTextSharp library for PDF generation. iTextSharp
I have an old project that uses MPXJ library to access MS Project 2010.
I have an old project at our company that uses shell scripting a lot.
I have an old project that is mixed C and C++. It makes extensive
I have a very old project that includes the source from another project directly,
I have an old EJB (2.1) project that uses xdoclet (1.2.3) to generate the
I have an old project that I'm resurrecting as it were, and it makes
I have an old personal project written in Java 1.4 that I am porting
I have an old project that does contain HTML with duplicate IDs. Switching selectors
So I'm trying to convert an old project to Automatic Reference Counting. I'm trying

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.