Saturday, 17 January 2015

Maven Tip: Adding a Custom Jar to your Maven Project

Sometimes you come across a jar which you want to include in your Maven project but is not in Maven Central.  This happened to me recently with a great web scraping library called jaunt which I wanted to include in my Maven java project.

One way (maybe the best way) is to add the jar to you local Maven repository which you can do with this command.


mvn install:install-file -Dfile=jaunt0.9.9.4.jar -DgroupId=com.jaunt.code -DartifactId=jaunt -Dversion=0.9.9.4 -Dpackaging=jar

Then add to your dependencies in Maven as below:

 <dependency>
            <groupId>com.jaunt.code</groupId>
            <artifactId>jaunt</artifactId>
            <version>0.9.9.4</version>
  </dependency>

The issue with this methodology is if you want to share your project with people who don't have access to you local Maven repository.  For example, if you want to put your project on Git for general release.

Of course you could always check in the actual source but that's not always possible or necessarily desirable. If you have any good solutions please leave in the comments.   

3 comments:

  1. Real PCNSE Dumps Practice Exam Questions from marks4sure.com.

    ReplyDelete
  2. Best Guest House near World Trade Tower Noida

    When visiting Noida—whether for business meetings, corporate stays, project visits, or leisure—it’s important to choose accommodation that offers convenience, comfort, and value for money. If your plans revolve around appointments or work commitments at the World Trade Tower Noida in Noida, staying at a nearby guest house can make your trip more efficient and enjoyable. The Best Guest House near World Trade Tower Noida is perfectly positioned to provide all this and more, ensuring your visit is productive, comfortable, and stress‑free.

    Prime Location and Easy Accessibility

    The key advantage of choosing a guest house near World Trade Tower Noida is its strategic location. Being just minutes away from the commercial hub means you spend less time commuting and more time focusing on meetings, presentations, or exploring the city. For business travelers, this proximity is invaluable—especially when schedules are tight and every minute counts.

    World Trade Tower is well connected to major roadways, metro links, and public transport, giving guests easy access to other parts of Noida and the National Capital Region (NCR). Whether you’re heading to the airport, attending a corporate event, or meeting clients across the city, your base near World Trade Tower ensures you’re never far from where you need to be.

    Comfortable and Well‑Equipped Rooms

    Comfort is a top priority at the Best Guest House near World Trade Tower Noida. Designed to cater to both short business stays and extended visits, the guest house offers rooms equipped with modern amenities that make your stay pleasant and productive. Typical features include:

    Spacious, air‑conditioned rooms with comfortable furnishings

    High‑speed Wi‑Fi for work, streaming, and communication

    24/7 power backup for uninterrupted comfort

    Clean, modern bathrooms with daily housekeeping

    TV and entertainment options for relaxation

    Work desks ideal for professionals and business travelers

    Whether you’re preparing for a presentation or unwinding after a long meeting, the guest house provides a comfortable environment to suit your needs.

    Personalized Service and Warm Hospitality

    Unlike large, impersonal hotel chains, the Best Guest House near World Trade Tower Noida offers attentive and personalized hospitality. The friendly staff is committed to ensuring every guest feels welcomed and supported throughout their stay. From arranging local transport and airport transfers to providing travel recommendations and assisting with bookings, the team is there to make your visit seamless and hassle‑free.

    This level of personalized service often makes guests feel more at home—an important factor, especially for long‑term stays or business trips.

    Safety and Peace of Mind

    Safety and security are paramount for all travelers. The guest house near World Trade Tower Noida is located in a secure neighborhood with proper surveillance, trained personnel, and reliable safety measures in place. This creates a peaceful environment for solo travelers, families, and business professionals alike, allowing you to focus on your goals without worry.

    Affordable and Flexible Stay Options

    One of the biggest advantages of choosing a guest house over a traditional hotel is excellent value for money. The Best Guest House near World Trade Tower Noida offers quality accommodation at competitive rates, making it an ideal choice for travelers who want comfort without a high price tag. With flexible booking options—daily, weekly, or monthly—you can tailor your stay according to your schedule and budget.

    This makes the guest house suitable for:

    Corporate professionals and business teams

    Project consultants and interns

    Families on short or extended stays

    Travelers exploring Noida and NCR



    In conclusion, if ease of access, comfort, and excellent service matter to you, this guest house near World Trade Tower Noida promises a pleasant, productive, and unforgettable stay.

    ReplyDelete