You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2015/05/06 09:54:00 UTC
[jira] [Comment Edited] (SOLR-7012) add an ant target to package a
plugin into a jar
[ https://issues.apache.org/jira/browse/SOLR-7012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530111#comment-14530111 ]
Shalin Shekhar Mangar edited comment on SOLR-7012 at 5/6/15 7:53 AM:
---------------------------------------------------------------------
I propose that we piggy back on maven's archetype support and have Solr publish its own solr-plugin archetype. Then anybody who wants to write a solr plugin can execute e.g.
{code}
mvn archetype:generate -DgroupId=com.my.solrplugin -DartifactId=my-solr-plugin
-DarchetypeGroupId=org.apache.solr -DarchetypeArtifactId=solr-plugin -DinteractiveMode=false
{code}
This will create project structure with a custom pom.xml with appropriate defaults that we (Solr) can control.
See http://maven.apache.org/guides/mini/guide-creating-archetypes.html
was (Author: shalinmangar):
I propose that we piggy back on maven's archetype support and have Solr publish its own solr-plugin archetype. Then anybody who wants to write a solr plugin can execute e.g.
{code}
mvn archetype:generate -DgroupId=com.my.solrplugin -DartifactId=my-solr-plugin
-DarchetypeGroupId=org.apache.solr -DarchetypeArtifactId=solr-plugin -DinteractiveMode=false
{code}
This will create project structure with a custom pom.xml with appropriate defaults that we (Solr) can control.
> add an ant target to package a plugin into a jar
> ------------------------------------------------
>
> Key: SOLR-7012
> URL: https://issues.apache.org/jira/browse/SOLR-7012
> Project: Solr
> Issue Type: Sub-task
> Reporter: Noble Paul
> Assignee: Noble Paul
> Attachments: SOLR-7012-sdk.patch, SOLR-7012.patch, SOLR-7012.patch, SOLR-7012.patch
>
>
> Now it is extremely hard to create plugin because the user do not know about the exact dependencies and their poms
> we will add a target to solr/build.xml called plugin-jar
> invoke it as follows
> {code}
> ant -Dplugin.package=my.package -Djar.location=/tmp/my.jar plugin-jar
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org