commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Jardine (JIRA)" <>
Subject [jira] Commented: (NET-243) Add commons-net-ftp as a module to the maven repository.
Date Thu, 05 Feb 2009 02:03:59 GMT


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 \
                       -Dfile=commons-net-ftp-2.0.jar \
                       -DpomFile=commons-net-ftp.pom.xml \
                       -DgroupId=commons-net \
                       -DartifactId=commons-net-ftp \
                       -Dversion=2.0 \

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

View raw message