You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jerome CARRE (JIRA)" <ji...@codehaus.org> on 2006/05/02 21:08:41 UTC

[jira] Created: (MDEP-22) copy of provided dependencies

copy of provided dependencies
-----------------------------

         Key: MDEP-22
         URL: http://jira.codehaus.org/browse/MDEP-22
     Project: Maven 2.x Dependency Plugin
        Type: Wish

 Environment: all
    Reporter: Jerome CARRE
    Priority: Minor


create an attribute to say "don't copy 'provided' dependencies", into copy-dependencies goal.

-- 
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: (MDEP-22) copy of provided dependencies

Posted by "mark struberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-22?page=all ]

mark struberg updated MDEP-22:
------------------------------

    Attachment: MDEP-21.patch

oops wrongly attached this to MDEP-21 first, for sanity i also attach it here.

> copy of provided dependencies
> -----------------------------
>
>                 Key: MDEP-22
>                 URL: http://jira.codehaus.org/browse/MDEP-22
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>         Environment: all
>            Reporter: Jerome CARRE
>         Assigned To: Brian Fox
>            Priority: Minor
>             Fix For: 2.0-alpha-1
>
>         Attachments: MDEP-21.patch
>
>
> create an attribute to say "don't copy 'provided' dependencies", into copy-dependencies goal.

-- 
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] Closed: (MDEP-22) copy of provided dependencies

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-22?page=all ]

Brian Fox closed MDEP-22.
-------------------------

         Assignee: Brian Fox
       Resolution: Fixed
    Fix Version/s: 2.0-ALPHA1

Added the ability to specify a scope to exclude. This uses the plexus ScopeArtifactFilter, which defines what scopes are included. For example, since test scope effectively includes all other scopes, then excluding the test scope would exclude everything. (which the plugin won't allow)

> copy of provided dependencies
> -----------------------------
>
>                 Key: MDEP-22
>                 URL: http://jira.codehaus.org/browse/MDEP-22
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>         Environment: all
>            Reporter: Jerome CARRE
>         Assigned To: Brian Fox
>            Priority: Minor
>             Fix For: 2.0-ALPHA1
>
>
> create an attribute to say "don't copy 'provided' dependencies", into copy-dependencies goal.

-- 
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: (MDEP-22) copy of provided dependencies

Posted by "mark struberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-22?page=comments#action_77152 ] 
            
mark struberg commented on MDEP-22:
-----------------------------------

There are some bugs in the test cases if running under *nix

The reason is the shortening of the long time value to seconds for some file systems.

If you set a long time of actual value 
> 1160492034512
to a file and afterwards read the lastModificationDate, you'll only get 
> 1160492034000

So here are 2 failure situations:

1.) For some test cases you simply have to extend the time-offset from 222 to 2222:

.) TestMarkerFileFilter.java
.) TestDefaultMarkerFileHandler.java
.) TestSourcesMarkerFileHandler.java
If you have an actual time value of 
> 1160492034112
you'll get 
> 1160492034334
which will be truncated by the file system to
> 1160492034000
which is lower then the original value! -> assert will fail
adding 2222 (bit over 2 seconds) will help.


2.) As i explained above, some time values have to be truncate to seconds:

.) TestCopyDependenciesMojo.java line 523
assertEquals( time/1000, copiedFile.lastModified()/1000 );

.) TestCopyDependenciesMojo.java line 488 and 550
Thread.sleep( 1001 ); // sleep a bit more than a second...


at least it works on Linux this way. Please retest under Windoof ;)

best regards,
strub

> copy of provided dependencies
> -----------------------------
>
>                 Key: MDEP-22
>                 URL: http://jira.codehaus.org/browse/MDEP-22
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>         Environment: all
>            Reporter: Jerome CARRE
>         Assigned To: Brian Fox
>            Priority: Minor
>             Fix For: 2.0-alpha-1
>
>
> create an attribute to say "don't copy 'provided' dependencies", into copy-dependencies goal.

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