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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:05:12+00:00 2026-05-24T17:05:12+00:00

I’ve been given the task of migrating an existing project — formerly built with

  • 0

I’ve been given the task of migrating an existing project — formerly built with Ant — to use Apache Maven. I’m brand new to the entire concept, though I’ve spent the last several hours doing as much research as I can on the subject. Sadly, I’m having some proxy issues when it comes to installing things like m2e and Eclipse IAM, so everything must be done from the command prompt. As of right now, I do have maven installed properly; the trick now is to use it in my project rather than Ant. I’ve looked online and found a few tutorials, but they are all too vague for me considering my lack of experience with all of this. If anyone can break the steps down for me one-by-one in a detailed manner, that would be more than amazing. On a side note, I’ve been told to add the following to the local Maven Settings:

<settings>
  <servers>
    <server>
        <id>local_tomcat</id>
        <username>admin</username>
        <password>tomcat</password>
    </server>
    <server>
        <id>artifactory</id>
        <username>user</username>
        <password>password</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>artifactory</id>
      <name>Artifactory</name>
      <url>https://jenkins.web.jw.local/artifactory/repo1</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxy.jw.local</host>
      <port>80</port>
      <username>user</username>
      <password>password</password>
      <nonProxyHosts>*.jw.local</nonProxyHosts>
    </proxy>
  </proxies>
</settings>

With the obvious username and password information filled in. I think I’ve managed that thus far by simply adding the necessary blocks into the settings.xml file under my ApacheMaven\conf directory. Other than that single step, I’m pretty much lost. Again, any help, especially that of a detailed tutorial in terms of command line instructions to build this project would be wonderful. Oh, and on another side-note, I am using Eclipse… Not sure if that would matter much.

EDIT: Considering Petr Kozelka’s answer, I’ve attempted to make a pom.xml file for my project. Here’s what I have so far…

<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.company</groupId>
    <artifactId>appName</artifactId>
    <version>1.0.0</version>
    <packaging>war</packaging>
    <name>Application Name</name>
    <description>Yadda Yadda</description>
    <build>
        <plugins>
        </plugins>
    </build>
    <dependencies>
    </dependencies>
    <repositories>
    </repositories>
</project>

Is this heading in the right direction? Also, do I need to construct the archetype.xml file myself, or will Maven do that through the command line somehow? If I need to do it myself, this is what I’ve come up with thus far:

<archetype xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd">
    <id>lighthouse</id>
    <sources>
        <source>src/com/jeldwen/lighthouse/controller/AddTimeController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/BugController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/DeleteTimeController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/EnterTimeController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/ModifyTimeController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/PersonController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/ProjectController.java</source>
        <source>src/com/jeldwen/lighthouse/controller/TimeController.java</source>
        <source>src/com/jeldwen/lighthouse/model/Area.java</source>
        <source>src/com/jeldwen/lighthouse/model/Bug.java</source>
        <source>src/com/jeldwen/lighthouse/model/DBModel.java</source>
        <source>src/com/jeldwen/lighthouse/model/DefaultModel.java</source>
        <source>src/com/jeldwen/lighthouse/model/JWModel.java</source>
        <source>src/com/jeldwen/lighthouse/model/JWTime.java</source>
        <source>src/com/jeldwen/lighthouse/model/Person.java</source>
        <source>src/com/jeldwen/lighthouse/model/Project.java</source>
        <source>src/com/jeldwen/lighthouse/util/Lighthouse.java</source>
        <source>src/com/jeldwen/lighthouse/util/LighthouseApplicationListener.java</source>
        <source>src/com/jeldwen/lighthouse/util/LighthouseServlet.java</source>
        <source>src/com/jeldwen/lighthouse/util/LighthouseSystemProperties.java</source>
        <source>src/com/jeldwen/lighthouse/LighthouseApp.java</source>
    </sources>
    <testSources>
        <!-- None -->
    </testSources>
    <allowPartial>true</allowPartial>
</archetype>
  • 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-24T17:05:12+00:00Added an answer on May 24, 2026 at 5:05 pm

    First of all: if you wish to customize settings.xml, do not touch the one in maven distro – instead, create a new file in $HOME/.m2/settings.xml where maven finds and uses it.

    As the very first step, I recommend you to not use settings.xml at all.
    Create a supersimple maven project, and try to compile it:

    mvn clean install
    

    Second step

    Use very simple settings.xml:

    • you probably do not need proxy
    • servers part is needed only for publishing artifacts to a maven repository; that’s not important at the beginning
    • here it is:
    <?xml version="1.0" encoding="UTF-8"?>
    <settings>
      <mirrors>
        <mirror>
          <id>repos</id>
          <mirrorOf>*</mirrorOf>
          <name>internal mirror</name>
          <url>https://jenkins.web.jw.local/artifactory/repo1</url>
        </mirror>
      </mirrors>
      <!-- TODO: the proxy part here -->
    </settings>
    

    This assumes that you use inhouse maven repository, for instance Nexus or Artifactory.

    Using maven repo makes only sense if your projects are not happy with deps available in the Maven Central Repository – otherwise, you can safely go without it. (let’s neglect the performance effect of repoman for now)

    Now, add some java sources, dependencies etc. – and watch how new depenencies get automatically downloaded to your local repository…

    Third step

    Learn how to add further repositories to your repository manager (group “public” on Nexus)…

    The rest is probably subject of further research.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
string formIdList = 8256, 8258, 8362, 8120, 8270, 8271, 8272, 8273, 8257, 8279, 8212,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

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.