You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Eirik Maus (JIRA)" <ji...@codehaus.org> on 2005/08/25 11:12:03 UTC

[jira] Created: (MPIDEA-37) Add resources dirs as source directories

Add resources dirs as source directories
----------------------------------------

         Key: MPIDEA-37
         URL: http://jira.codehaus.org/browse/MPIDEA-37
     Project: maven-idea-plugin
        Type: Improvement
 Reporter: Eirik Maus


We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPIDEA-37) Add resources dirs as source directories

Posted by "Geoffrey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIDEA-37?page=comments#action_46718 ] 

Geoffrey commented on MPIDEA-37:
--------------------------------

It does this already, but not as source directories, but as library directories (else you also need to specify each property extension in idea)

However there is a bug in m1.1-b2, this is the solution:


            <resource>
                <directory>${basedir}/src/resources</directory>
                <targetPath></targetPath><!-- It should be '' instead of null for the idea 1.6 plugin in m1.1-b2 -->
            </resource>

> Add resources dirs as source directories
> ----------------------------------------
>
>          Key: MPIDEA-37
>          URL: http://jira.codehaus.org/browse/MPIDEA-37
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Eirik Maus

>
>
> We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPIDEA-37) Add resources dirs as source directories

Posted by "Ross Mason (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIDEA-37?page=comments#action_47014 ] 

Ross Mason commented on MPIDEA-37:
----------------------------------

Can we have the option of adding them as source / test/source directories ?

That would be really good.

Thanks,

Ross



> Add resources dirs as source directories
> ----------------------------------------
>
>          Key: MPIDEA-37
>          URL: http://jira.codehaus.org/browse/MPIDEA-37
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Eirik Maus

>
>
> We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPIDEA-37) Add resources dirs as source directories

Posted by "Eirik Maus (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIDEA-37?page=comments#action_47087 ] 

Eirik Maus commented on MPIDEA-37:
----------------------------------

After trying both alternatives, I find my self ending up with these directories as both source and libraries in Idea. You want the source-option because you want all the edit possibilities, AND you want them as libraries so when you run you want the newliy edited version of the file to be in the classpath BEFORE the old version that maved has copied to classes / test-classes some while ago (in a previous run). 

It is extremely annoying to spend 15 minutes wondering/exploring why the new changes you just made in spring.xml apparently has no effect when you hit the run-test button in Idea, only to discover that, again, maven has played a trick on you last time you ran from the command line, putting old copies of these files all around the classpath. With the exisitng (and source-dir-only) setup, the default behaviour is that changes have no effect since old copies lying aroung in the classpath take precedence. That is extremely annoying, almost worse than (the current practice of) not being able to run the tests at all because NO copies of the resource files are in the classpath.  

Actually, I would like to have resource files that are both editable and available when you run, both under maven and Idea, and I would also like changes to take effect just as it does with java source files. It is as simple as that. 


> Add resources dirs as source directories
> ----------------------------------------
>
>          Key: MPIDEA-37
>          URL: http://jira.codehaus.org/browse/MPIDEA-37
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Eirik Maus

>
>
> We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPIDEA-37) Add resources dirs as source directories

Posted by "Geoffrey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIDEA-37?page=comments#action_47351 ] 

Geoffrey commented on MPIDEA-37:
--------------------------------

If you put them as source dependencies there is the problem that the default compiler resource patterns loses half of them, instead we should give it this pattern: "[^(.+\.java|package\.(htm|html)]"   (anything but *.java and package.htm(l) )
Be aware you can't have hello.java file as a resource then...

> Add resources dirs as source directories
> ----------------------------------------
>
>          Key: MPIDEA-37
>          URL: http://jira.codehaus.org/browse/MPIDEA-37
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Eirik Maus

>
>
> We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPIDEA-37) Add resources dirs as source directories

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPIDEA-37?page=comments#action_47036 ] 

Brett Porter commented on MPIDEA-37:
------------------------------------

I think they should actually be source directories, as that means they get copied to target/[test-]classes which makes the tests more reliable. This is the only supported way in m2.

> Add resources dirs as source directories
> ----------------------------------------
>
>          Key: MPIDEA-37
>          URL: http://jira.codehaus.org/browse/MPIDEA-37
>      Project: maven-idea-plugin
>         Type: Improvement
>     Reporter: Eirik Maus

>
>
> We use spring for configuration of the modules in a large project. The spring xml files of the respective modules are of course in the resources / test resources directories as specified in the maven POM.  With the current IDEA plugin we have to map these directories as source manually each time we regenerate the idea project file from the POMs (at least once a day). The Idea plugin should set up this by default. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org