You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Diesler (JIRA)" <ji...@codehaus.org> on 2008/05/01 12:26:46 UTC

[jira] Created: (MCOMPILER-72) Add support for include/exclude files

Add support for include/exclude files
-------------------------------------

                 Key: MCOMPILER-72
                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
             Project: Maven 2.x Compiler Plugin
          Issue Type: New Feature
    Affects Versions: 2.0.2
            Reporter: Thomas Diesler


Similar to Ant, the compiler plugin should support excludes defined in an external file like this

{code:xml}
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.0.2.SP1</version>
            <configuration>
              <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
            </configuration>
          </plugin>
{code}

The exclude file would look like this


{code}   
# [JBWS-2135] WebServiceException: Undefined port type
org/jboss/test/ws/jaxws/jbws1822/**

# [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
org/jboss/test/ws/jaxws/namespace/**

# [JBAS-5359] mapped-name is required for context of deployment
org/jboss/test/ws/jaxws/jbws1611/**
{code}   



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

        

[jira] Commented: (MCOMPILER-72) Add support for include/exclude files

Posted by "Thomas Diesler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133194#action_133194 ] 

Thomas Diesler commented on MCOMPILER-72:
-----------------------------------------

For an implementation please see
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/maven/plugins/maven-compiler-plugin/tags/maven-compiler-plugin-2.0.2.SP1/src/main/java/org/apache/maven/plugin/TestCompilerMojo.java?revision=72917&view=markup

> Add support for include/exclude files
> -------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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

        

[jira] Updated: (MCOMPILER-72) Add support for specifying includes/excludes in an external file

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MCOMPILER-72:
-------------------------------------

    Summary: Add support for specifying includes/excludes in an external file  (was: Add support for include/exclude files)

> Add support for specifying includes/excludes in an external file
> ----------------------------------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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

        

[jira] Commented: (MCOMPILER-72) Add support for specifying includes/excludes in an external file

Posted by "Thomas Diesler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133645#action_133645 ] 

Thomas Diesler commented on MCOMPILER-72:
-----------------------------------------

Folks have been reporting

[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2.SP1:compile': Una
ble to find the mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2.SP1:compile' in the plugin 'org.apache.maven.plugins:ma
ven-compiler-plugin'
org/codehaus/plexus/compiler/util/scan/InclusionScanException
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal 'org.apache.maven.plug
ins:maven-compiler-plugin:2.0.2.SP1:compile': Unable to find the mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2.SP1:co
mpile' in the plugin 'org.apache.maven.plugins:maven-compiler-plugin'
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mojo 'org.apache.maven.plugins:maven-compiler-plugin
:2.0.2.SP1:compile' in the plugin 'org.apache.maven.plugins:maven-compiler-plugin'
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:575)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:425)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.mav
en.plugin.Mojoorg.apache.maven.plugins:maven-compiler-plugin:2.0.2.SP1:compile', it could not be created
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
        at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:566)
        ... 18 more
Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException: Could not instanciate component: role: 'null', i
mplementation: 'org.apache.maven.plugin.CompilerMojo'
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
        at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
        at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93
)
        at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
        ... 20 more
Caused by: java.lang.NoClassDefFoundError: org/codehaus/plexus/compiler/util/scan/InclusionScanException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
        at java.lang.Class.getConstructor0(Class.java:2671)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
        ... 24 more


Unfortunately, I don't know what could be causing this. I've tested the plugin with maven 2.0.7 and 2.0.9 

> Add support for specifying includes/excludes in an external file
> ----------------------------------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>         Attachments: svndiff.txt
>
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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

        

[jira] Commented: (MCOMPILER-72) Add support for specifying includes/excludes in an external file

Posted by "Thomas Diesler (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=133198#action_133198 ] 

Thomas Diesler commented on MCOMPILER-72:
-----------------------------------------

The binary is here
http://repository.jboss.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2.SP1/

> Add support for specifying includes/excludes in an external file
> ----------------------------------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>         Attachments: svndiff.txt
>
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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

        

[jira] Commented: (MCOMPILER-72) Add support for specifying includes/excludes in an external file

Posted by "Manik Surtani (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134779#action_134779 ] 

Manik Surtani commented on MCOMPILER-72:
----------------------------------------

Seeing the same error as well, not using the <testExcludeFile> tag though.

> Add support for specifying includes/excludes in an external file
> ----------------------------------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>         Attachments: svndiff.txt
>
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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

        

[jira] Updated: (MCOMPILER-72) Add support for specifying includes/excludes in an external file

Posted by "Thomas Diesler (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated MCOMPILER-72:
------------------------------------

    Attachment: svndiff.txt

The diff is attached

> Add support for specifying includes/excludes in an external file
> ----------------------------------------------------------------
>
>                 Key: MCOMPILER-72
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-72
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Thomas Diesler
>         Attachments: svndiff.txt
>
>
> Similar to Ant, the compiler plugin should support excludes defined in an external file like this
> {code:xml}
>           <plugin>
>             <artifactId>maven-compiler-plugin</artifactId>
>             <version>2.0.2.SP1</version>
>             <configuration>
>               <testExcludeFile>../test-excludes-jboss422.txt</testExcludeFile>
>             </configuration>
>           </plugin>
> {code}
> The exclude file would look like this
> {code}   
> # [JBWS-2135] WebServiceException: Undefined port type
> org/jboss/test/ws/jaxws/jbws1822/**
> # [JBWS-2136] ClassCastException: com.sun.xml.ws.server.EndpointMessageContextImpl
> org/jboss/test/ws/jaxws/namespace/**
> # [JBAS-5359] mapped-name is required for context of deployment
> org/jboss/test/ws/jaxws/jbws1611/**
> {code}   

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