[ http://jira.codehaus.org/browse/DOXIA-36?page=comments#action_50544 ] 

Grzegorz Slowikowski commented on DOXIA-36:
-------------------------------------------

After reading source code of PlexusDescriptorMojo.java (plexus-maven-plugin) 
and DefaultComponentDescriptorCreator.java (plexus-cdc) I thing that we can 
avoid creating empty "target/classes/META-INF/plexus" directories and warnings 
like this:

[WARNING] Specified source directory isn't a directory: 
'E:\apache-svn.copy\repos\asf\maven\doxia\trunk\src\main\java'.

when there are no Plexus components in the project (in parent and 
doxia-sink-api projects) 
by changing code order in processSources() method of 
DefaultComponentDescriptorCreator.java

removing lines:

        if ( !outputDirectory.exists() )
        {
            if ( !outputDirectory.mkdirs() )
            {
                throw new ComponentDescriptorCreatorException(
                    "Could not make output directory: '" + 
outputDirectory.getAbsolutePath() + "'." );
            }
        }

from  (line 86) and placing them 
right before:

        File outputFile = new File( outputDirectory, "components.xml" );

(line 172)

I do not include patch because I did not tested this.


> Clean main pom file - remove <build> section
> --------------------------------------------
>
>          Key: DOXIA-36
>          URL: http://jira.codehaus.org/browse/DOXIA-36
>      Project: doxia
>         Type: Task
>     Versions: 1.0-alpha-6
>     Reporter: Grzegorz Slowikowski
>     Assignee: Brett Porter
>     Priority: Trivial

>
>
> This section should be removed. It has nothing to do in this parent module. 
> There are no errors, but there are side effects - unneeded artifacts 
> downloaded and dummy messages in log file while building doxia. This pom is 
> added here by Bret Porter. I don't know, where it comes from (copy-pasted?). 
> Maybe there are more things to remove.

-- 
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

Reply via email to