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

  • Home
  • SEARCH
  • 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 1109663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:16:20+00:00 2026-05-17T02:16:20+00:00

Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java

  • 0

Possible Duplicate:
compiling project with jdk1.5 using maven2

I am trying to build java project that is using java 5 features, so maven is understandably returning an error message:

... variable-arity methods are not supported in -source 1.3 
(use -source 5 or higher to enable variable-arity methods) ...

Could somebody help me understand:
– Why maven is not compiling against only installed jdk that is 6?
– How can I configure it to compile against a different jdk ie, 5 or 6?
– Do I need to install maven enforcer plugin whose only beta is available to date?

Thanks in advance

  • 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-17T02:16:21+00:00Added an answer on May 17, 2026 at 2:16 am

    I really wish Maven would not default to Java 1.3 compiler settings.

    Here is what I put in all my POM files:

    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
            <target>1.5</target>
            <source>1.5</source>
          </configuration>
        </plugin>
      </plugins>
    </build>
    

    Please anyone tell me that there is a better way.

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

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Compiling a java program into an exe Hi, I'd like to convert
Possible Duplicate: Why this is not compiling in Java? In java, curly braces are
Possible Duplicate: error using CArray Duplicate : error using CArray so, i am trying
Possible Duplicate: Plugging in to Java compilers Edit - this appears to be a
Possible Duplicate: Compiling C code for .NET I have a bunch of C source
Possible Duplicate: Should I learn C before learning C++? As a professional (Java) programmer
I'm trying to build a Chrome browser extension, that should enhance the way the
Possible Duplicate: How to write program during compiling? I found this problem on a
Possible Duplicate: Python not sorting unicode properly. Strcoll doesn't help. I'm trying to sort

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.