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