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 Hart (JIRA)" <ji...@codehaus.org> on 2007/07/25 13:58:13 UTC

[jira] Created: (MEAR-73) Property to disable transitive dependencies resolving

Property to disable transitive dependencies resolving
-----------------------------------------------------

                 Key: MEAR-73
                 URL: http://jira.codehaus.org/browse/MEAR-73
             Project: Maven 2.x Ear Plugin
          Issue Type: Improvement
            Reporter: Thomas Hart


We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103399 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

> I mean that the dependency:resolve with the property excludeTransitive don't have any effects to the ear plugin.

Well I wonder *how* it could have any effect.

And your patch is plain wrong anyway: it works as a side effect. since you have a single dependency and non scope dependencies. Trust me, your simple project does not reflect how this plugin is used at all. 

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

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

Thomas Hart updated MEAR-73:
----------------------------

    Attachment: patch.txt

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

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

Thomas Hart updated MEAR-73:
----------------------------

    Attachment: ear.jpg

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

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

Thomas Hart updated MEAR-73:
----------------------------

    Attachment: patch2.txt

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Kaizer Sogiawala (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134667#action_134667 ] 

Kaizer Sogiawala commented on MEAR-73:
--------------------------------------

Hi Stephane,

Any chance of getting this in? Looks like the above change will not affect the normal flow. This allows folks to explicitly choose what gets EARed up and not worry about transitive dependencies.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Kannan Kesavan (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179834#action_179834 ] 

Kannan Kesavan commented on MEAR-73:
------------------------------------

Hi, 

We are also facing same issue in maven-ear-plugin. In our project, one of our transitive dependency using ".so" files. In that project, they didn't specify any scope for ".so" files. Also it is not possible for us to give scope (entirely different project, and it is not in our hands to change/give scope). Finally when we build our ear module, it is throwing unknown artifact types[so].

Could you please let me know when it will be fixed? 

Thanks,
Kannan

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103264 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

Mmmm, true. 

What you're asking is disabling transitive deps altogether or you want to disable them for a particular dependency?

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Thomas Hart (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103428 ] 

Thomas Hart commented on MEAR-73:
---------------------------------

Ok i see it. Your are right, the patch is wrong.

Please give me a second try, i think {{project.getArtifacts()}} is the right place. To get the list with no  transitive dependencies simply use {{project.getDependencyArtifacts()}}.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Thomas Hart (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103336 ] 

Thomas Hart commented on MEAR-73:
---------------------------------

I check the dependency plugin, it doesn't work. Can i submit a patch, that excludes the code block above?

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Thomas Hart (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103389 ] 

Thomas Hart commented on MEAR-73:
---------------------------------

I mean that the [dependency:resolve|http://maven.apache.org/plugins/maven-dependency-plugin/resolve-mojo.html] with the property {{excludeTransitive}} don't have any effects to the ear plugin.

The patch works for me. The following pom.xml produces the right ear (see image). Only the {{dependencies}} are included *not* the transitive dependencies.
{code:xml}
...
     <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <version>2.3.1-SNAPSHOT</version>
        <configuration>
          <excludeTransitive>true</excludeTransitive>
          <version>5</version>
          <defaultLibBundleDir>lib</defaultLibBundleDir>
          <modules>
            <ejbModule>
              <groupId>suite4p.enabler.jb402</groupId>
              <artifactId>suite4p.enabler.jb402.server</artifactId>
            </ejbModule>
          </modules>
          <jboss>
            <version>4</version>
          </jboss>
        </configuration>
      </plugin>
    </plugins>
  </build>
  
  <dependencies>
    <dependency>
      <groupId>suite4p.enabler.jb402</groupId>
      <artifactId>suite4p.enabler.jb402.server</artifactId>
      <type>ejb</type>
    </dependency>
  </dependencies>
{code}

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103257 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

Not sure it's EAR-plugin related. This sounds more like a maven-core functionnality to me.


> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179841#action_179841 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

you can exclude the dependency. Defining the so dependency again with scope provided will most probably fix the issue

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103386 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

no It won't do what you expect.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Thomas Hart (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103267 ] 

Thomas Hart commented on MEAR-73:
---------------------------------

In my case altogether.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103387 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

WDYM when you say "it doen't work"?

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103400 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

also note that you don't need the ejbModule entry at all. It's only used if you want to customize module's parameters (bundle file name, uri, etc)

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135531#action_135531 ] 

Stephane Nicoll commented on MEAR-73:
-------------------------------------

It's missing test cases so I need to write them first. But that sounds reasonable indeed. It's just not complete as a patch for now.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>            Assignee: Stephane Nicoll
>         Attachments: ear.jpg, patch.txt, patch2.txt
>
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

-- 
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: (MEAR-73) Property to disable transitive dependencies resolving

Posted by "Thomas Hart (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MEAR-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103263 ] 

Thomas Hart commented on MEAR-73:
---------------------------------

Sorry i'm a maven newbie, i don't know where the right position is. But I think the following code block include the unwanted dependencies. 
{code:java|title=org.apache.maven.plugin.ear.AbstractEarMojo}
ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME );
if ( !isArtifactRegistered( artifact, allModules ) && !artifact.isOptional() &&
  filter.include( artifact ) )
{
    EarModule module = EarModuleFactory.newEarModule( artifact, defaultLibBundleDir );
    allModules.add( module );
}
{code}

I try to use the {{excludeTransitive}} parameter for the {{dependency:resolve-plugins}} mojo. Maybe that works for me.

> Property to disable transitive dependencies resolving
> -----------------------------------------------------
>
>                 Key: MEAR-73
>                 URL: http://jira.codehaus.org/browse/MEAR-73
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Improvement
>            Reporter: Thomas Hart
>
> We have ears with a lot of modules. So the transitive dependencies are very huge and to exclude all these with {{<excluded>true</excluded>}} is no option. Also to mark these dependencies with optional is no way. It is possible to create a new property for that?

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