new problem in idea-12.1(missing files when compile)

Hi all,
  I catch a problem in developing when update to idea-12.1.

  when I run a main I got an error that missing some configuration files. But it is there.
  I search the directory after compiled. The configuration files are missing!

My env: idea-12.1 maven ubuntu-12.04
My files:

--build
  --com
  --src
  --configuration files should here! But it is not.

When I copy the configuration files to the build directory every thing is ok.

When I down to the idea-11 It works well.

thans all.

8 comments

Hi June,

Could you provide a sample project which illustrates the problem?

Denis

0

Hi, test this bug again.
That I found when I put the configuration files in a directory named "resource" everything is ok.
Well for some history reserved reasons or others we have not this directory.

I upload this test bug project.

src/
├── main
│   ├── java
│   │   ├── cn
│   │   │   └── z
│   │   │       └── june
│   │   │           └── Idea1210Bug.java
│   │   ├── idea-12-bug.properties
│   │   └── idea-12-bug.xml
│   └── resources
│       └── is-here-ok.xml



bug: We can see the lost of some configuration files named "idea-12-bug.properties", "idea-12-bug.xml"

classes/
├── cn
│   └── z
│       └── june
│           └── Idea1210Bug.class
└── is-here-ok.xml



Attachment(s):
HelloMaven.tar
0

Hi, I upload a simple project.
Thanks~

0

Thanks. It's ok when added build resource configuration:

    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.*</include>
                </includes>
            </resource>
        </resources>
    </build>



When I post this "bug" I had run the maven compile command line without idea IDE. It showed that it's not the idea's bug.
But why I back to idea-11 it works well?
0

IJ 12 follows maven rules for resources processing but IJ 11 does not.

Denis

0

Thanks for your help~

Maybe I had to update many files.

0

Please sign in to leave a comment.