You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Jencks (JIRA)" <ji...@codehaus.org> on 2008/08/13 18:54:27 UTC

[jira] Created: (MDEP-176) excludes not considered in analyze?

excludes not considered in analyze?
-----------------------------------

                 Key: MDEP-176
                 URL: http://jira.codehaus.org/browse/MDEP-176
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: analyze
    Affects Versions: 2.0
            Reporter: David Jencks
            Assignee: Brian Fox


in dependencyManagement of parent pom I have:

            <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

In a child project...

        <dependency>
            <groupId>org.apache.xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
        </dependency>

dependency:analyze reports

[WARNING] Unused declared dependencies found:
[WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile

but removing the geronimo stax api makes the build fail.



-- 
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] (MDEP-176) excludes not considered in analyze?

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MDEP-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated MDEP-176:
-------------------------------

    Description: 
in dependencyManagement of parent pom I have:

{code:xml}            <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>{code}

In a child project...

{code:xml}        <dependency>
            <groupId>org.apache.xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
        </dependency>{code}

dependency:analyze reports

{noformat}[WARNING] Unused declared dependencies found:
[WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile{noformat}

but removing the geronimo stax api makes the build fail.



  was:
in dependencyManagement of parent pom I have:

            <dependency>
                <groupId>org.apache.xmlbeans</groupId>
                <artifactId>xmlbeans</artifactId>
                <version>2.3.0</version>
                <exclusions>
                    <exclusion>
                        <groupId>stax</groupId>
                        <artifactId>stax-api</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

In a child project...

        <dependency>
            <groupId>org.apache.xmlbeans</groupId>
            <artifactId>xmlbeans</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-stax-api_1.0_spec</artifactId>
        </dependency>

dependency:analyze reports

[WARNING] Unused declared dependencies found:
[WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile

but removing the geronimo stax api makes the build fail.



    
> excludes not considered in analyze?
> -----------------------------------
>
>                 Key: MDEP-176
>                 URL: https://jira.codehaus.org/browse/MDEP-176
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: Brian Fox
>
> in dependencyManagement of parent pom I have:
> {code:xml}            <dependency>
>                 <groupId>org.apache.xmlbeans</groupId>
>                 <artifactId>xmlbeans</artifactId>
>                 <version>2.3.0</version>
>                 <exclusions>
>                     <exclusion>
>                         <groupId>stax</groupId>
>                         <artifactId>stax-api</artifactId>
>                     </exclusion>
>                 </exclusions>
>             </dependency>{code}
> In a child project...
> {code:xml}        <dependency>
>             <groupId>org.apache.xmlbeans</groupId>
>             <artifactId>xmlbeans</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.geronimo.specs</groupId>
>             <artifactId>geronimo-stax-api_1.0_spec</artifactId>
>         </dependency>{code}
> dependency:analyze reports
> {noformat}[WARNING] Unused declared dependencies found:
> [WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile{noformat}
> but removing the geronimo stax api makes the build fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MDEP-176) excludes not considered in analyze?

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MDEP-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MDEP-176.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6
         Assignee: Herve Boutemy  (was: Brian Fox)

duplicate of MDEP-122
                
> excludes not considered in analyze?
> -----------------------------------
>
>                 Key: MDEP-176
>                 URL: https://jira.codehaus.org/browse/MDEP-176
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: Herve Boutemy
>             Fix For: 2.6
>
>
> in dependencyManagement of parent pom I have:
> {code:xml}            <dependency>
>                 <groupId>org.apache.xmlbeans</groupId>
>                 <artifactId>xmlbeans</artifactId>
>                 <version>2.3.0</version>
>                 <exclusions>
>                     <exclusion>
>                         <groupId>stax</groupId>
>                         <artifactId>stax-api</artifactId>
>                     </exclusion>
>                 </exclusions>
>             </dependency>{code}
> In a child project...
> {code:xml}        <dependency>
>             <groupId>org.apache.xmlbeans</groupId>
>             <artifactId>xmlbeans</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.geronimo.specs</groupId>
>             <artifactId>geronimo-stax-api_1.0_spec</artifactId>
>         </dependency>{code}
> dependency:analyze reports
> {noformat}[WARNING] Unused declared dependencies found:
> [WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile{noformat}
> but removing the geronimo stax api makes the build fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MDEP-176) excludes not considered in analyze?

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=145229#action_145229 ] 

Brian Fox commented on MDEP-176:
--------------------------------

Where / how exactly is it failing? Are you extending an interface, or using a constant? Both of these are known to trick the analysis into thinking it's not needed because the compiler optimizes it out.

> excludes not considered in analyze?
> -----------------------------------
>
>                 Key: MDEP-176
>                 URL: http://jira.codehaus.org/browse/MDEP-176
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 2.0
>            Reporter: David Jencks
>            Assignee: Brian Fox
>
> in dependencyManagement of parent pom I have:
>             <dependency>
>                 <groupId>org.apache.xmlbeans</groupId>
>                 <artifactId>xmlbeans</artifactId>
>                 <version>2.3.0</version>
>                 <exclusions>
>                     <exclusion>
>                         <groupId>stax</groupId>
>                         <artifactId>stax-api</artifactId>
>                     </exclusion>
>                 </exclusions>
>             </dependency>
> In a child project...
>         <dependency>
>             <groupId>org.apache.xmlbeans</groupId>
>             <artifactId>xmlbeans</artifactId>
>         </dependency>
>         <dependency>
>             <groupId>org.apache.geronimo.specs</groupId>
>             <artifactId>geronimo-stax-api_1.0_spec</artifactId>
>         </dependency>
> dependency:analyze reports
> [WARNING] Unused declared dependencies found:
> [WARNING]    org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1:compile
> but removing the geronimo stax api makes the build fail.

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