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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:16:54+00:00 2026-05-13T09:16:54+00:00

We are using maven to manage our idea projects but I’m having a problem

  • 0

We are using maven to manage our idea projects but I’m having a problem excluding a directory from the idea project.

Using idea, I would just go to Project Settings | Modules | Sources and select the folder I wanted to exclude and click on the “Excluded” button. When loading the project from the pom, target is excluded automatically. I want to exclude a logs folder as well.

In maven I’m using an idea maven plugin and it says I can exclude folders. I’m using this code but it doesn’t seem to work:

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-idea-plugin</artifactId>
            <version>2.3-atlassian-1</version>
            <configuration>
                <downloadSources>true</downloadSources>
                <downloadJavadocs>true</downloadJavadocs>
                <exclude>
                    ${project.basedir}/logs
                </exclude>
            </configuration>
        </plugin>

I’ve tried different formats as well as putting in the fully qualified path (as a test) but nothing seems to exclude the logs directory from my idea project.

Anyone any ideas on how to get this working?

Thanks, Nick.

  • 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-13T09:16:54+00:00Added an answer on May 13, 2026 at 9:16 am

    I just did a small test and, with the following snippet:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-idea-plugin</artifactId>
      <configuration>
        <exclude>test-output,.clover,logs</exclude>
      </configuration>
    </plugin>
    

    The generated .iml file contains the following entries:

      <excludeFolder url="file://$MODULE_DIR$/.clover"/>
      <excludeFolder url="file://$MODULE_DIR$/logs"/>
      <excludeFolder url="file://$MODULE_DIR$/target"/>
      <excludeFolder url="file://$MODULE_DIR$/test-output"/>
    

    Which is to my knowledge the expected result.

    Do you get something different? Are you expecting somehting else?

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

Sidebar

Related Questions

I'm working on a large existing java project using maven to manage our builds
I have a small command line utility project that I'm using Maven to manage.
I am considering using Maven for a Java open source project I manage. In
i would like to release a snapshot project 'foo-1.0-SNAPSHOT' using the maven release plugin.
We've just recently converted our project to using Maven for builds and dependency management,
I am using Maven in Eclipse to manage the project dependencies which are resolved
We recently started using maven for dependency management. Our team uses eclipse as it's
I've got a project using Maven 2 as the build tool. Now I am
I'm using the build-helper-maven-plugin to add it to my build, but I'd like to
We are using Maven for a large build process (> 100 modules). We have

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.