You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Steven Jardine (JIRA)" <ji...@apache.org> on 2008/11/12 18:49:44 UTC

[jira] Created: (NET-243) Add commons-net-ftp as a module to the maven repository.

Add commons-net-ftp as a module to the maven repository.
--------------------------------------------------------

                 Key: NET-243
                 URL: https://issues.apache.org/jira/browse/NET-243
             Project: Commons Net
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Steven Jardine
            Priority: Minor


Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:

<dependency>
	<groupId>commons-net</groupId>
	<artifactId>commons-net-ftp</artifactId>
	<version>2.0</version>
	<scope>compile</scope>
</dependency>

Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Steven Jardine (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867270#action_12867270 ] 

Steven Jardine commented on NET-243:
------------------------------------

Actually this is not necessary.  The dependency can be added to the pom.xml like this:

<dependency>
	<groupId>commons-net</groupId>
	<artifactId>commons-net</artifactId>
	<classifier>ftp</classifier>
	<version>${commons-net.version}</version>
	<scope>compile</scope>
</dependency>


> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Steven Jardine (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670600#action_12670600 ] 

Steven Jardine commented on NET-243:
------------------------------------

I did some research on this a few months ago and I don't think any POM modifications will work.  This is generally handled using maven modules but that would probably require quite a few modifications to your build system.

I think that the easiest way to do this would be to deploy the commons-net-2.0-ftp.jar directly to the maven repository.  You would use the third party deploy mechanism:

mvn deploy:deploy-file -Durl=file://C:\m2-repo \
                       -DrepositoryId=some.id \
                       -Dfile=commons-net-ftp-2.0.jar \
                       -DpomFile=commons-net-ftp.pom.xml \
                       -DgroupId=commons-net \
                       -DartifactId=commons-net-ftp \
                       -Dversion=2.0 \
                       -Dpackaging=jar

You could leave off the -DpomFile argument and let maven generate one for you but then users have to manually add any additional dependencies.




> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Steven Jardine (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Jardine closed NET-243.
------------------------------

    Fix Version/s: 2.0
       Resolution: Not A Problem

> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>             Fix For: 2.0
>
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647005#action_12647005 ] 

Sebb commented on NET-243:
--------------------------

Perhaps that should be:

     commons-net-ftp-2.0.jar

?

> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Rory Winston (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670581#action_12670581 ] 

Rory Winston commented on NET-243:
----------------------------------

Steven

Do you know how I could do this? Is it just a matter of modifying the POM?

> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.

Posted by "Steven Jardine (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/NET-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647019#action_12647019 ] 

Steven Jardine commented on NET-243:
------------------------------------

In order for it to resolve as a dependency in maven it would have to have a separate directory in the maven repository.

It would have to  have a directory structure like:
commons-net/commons-net-ftp/commons-net-ftp-2.0.jar

instead of
commons-net/commons-net/commons-net-2.0-ftp.jar

This is usually accomplished by creating a module.

> Add commons-net-ftp as a module to the maven repository.
> --------------------------------------------------------
>
>                 Key: NET-243
>                 URL: https://issues.apache.org/jira/browse/NET-243
>             Project: Commons Net
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Steven Jardine
>            Priority: Minor
>
> Currently there is no way to include only the commons-net-2.0-ftp.jar as a dependency in a maven2 project.  I would like to be able to do something like this in maven:
> <dependency>
> 	<groupId>commons-net</groupId>
> 	<artifactId>commons-net-ftp</artifactId>
> 	<version>2.0</version>
> 	<scope>compile</scope>
> </dependency>
> Currently there is no way to depend on only the commons-net-2.0-ftp.jar using the maven dependency management.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.