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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:49:04+00:00 2026-06-13T22:49:04+00:00

Hi I have a multimodule Maven project and i installed Java1.5 and Java1.6 in

  • 0

Hi I have a multimodule Maven project and i installed Java1.5 and Java1.6 in my Windows machine and Path set for Java1.6 in Environment variable(For Eclipse Juno).But i will want to run maven command with Java5 only.How can i set in Parent project pom to use Java5 only for compiling Java files .I added these lines in parent pom.xm file.

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

But i am getting error in chile project pom.xml file

Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile
(execution: default-testCompile, phase: test-compile)

  • 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-13T22:49:05+00:00Added an answer on June 13, 2026 at 10:49 pm

    Please use Plugin_Management instead of Plugins declaration this declaration need to inherit plugins configuration to child projects (http://maven.apache.org/pom.html#Plugin_Management)

    in you case it will be looks in the following manner:

    parent pom.xml

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

    child pom.xml

    <build>
      <plugins>
        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
        </plugin>
      </plugins>
    </build>
    

    Also it is possible to set the following properties in parent pom.xml

    <properties>
       <maven.compiler.source>1.5</maven.compiler.source>
       <maven.compiler.target>1.5</maven.compiler.target>
    </properties>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem related to subversion and a maven multimodule project in eclipse.
I have a maven multimodule project. What the best practices for creating groupId? Can
I have multimodule maven project like this myproject framework1 f1-presentation *.java f1-core *.java f1-tag
I use eclipse and the maven plugin. I have a big multi-module project (~6
I have a multimodule Maven project. One subproject hosts XSL/XML resource files. The other
I have a multimodule maven project. the service module depends on domain module using
I have a multimodule maven project, when dependencymanagament tag is provided in parent pom,
I have a maven multimodule project when I try to build the site, it
I have a multimodule maven setup for my project, made of 5 modules, which
I have a Maven project multimodule project. Some of the modules create custom packaging

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.