You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Darren Erik Vengroff (JIRA)" <ji...@apache.org> on 2006/05/30 19:36:29 UTC

[jira] Created: (SOLR-19) pom.xml to support maven2

pom.xml to support maven2
-------------------------

         Key: SOLR-19
         URL: http://issues.apache.org/jira/browse/SOLR-19
     Project: Solr
        Type: New Feature

 Environment: all
    Reporter: Darren Erik Vengroff
    Priority: Minor
 Attachments: pom.xml

I created a preliminary pom.xml to support building solr with maven2.

Currently it compiles all the core solr code into a jar and runs the junit tests.

Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


RE: [jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by Darren Vengroff <ve...@gmail.com>.
That's certainly an option.  Before going that route I'd want to put
together an assembly (maven2-speak for a packaged distribution) that
produces exactly the zip file that the current build.xml produces.  

But I also want to make sure I don't get sidetracked by the build system to
the point that I don't look at the actual code, which is obviously the far
more interesting part.

-D

-----Original Message-----
From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
Shapira
Sent: Tuesday, May 30, 2006 12:10 PM
To: solr-dev@lucene.apache.org
Subject: Re: [jira] Commented: (SOLR-19) pom.xml to support maven2

Let's look into the possibility of having maven generate an ant build.xml
file.  The plugins page at http://maven.apache.org/plugins/index.html lists
one such plugin (http://maven.apache.org/plugins/maven-ant-plugin/), which
is extremly tersely documented, but maybe worth a shot?

Yoav

On 5/30/06, Yonik Seeley (JIRA) <ji...@apache.org> wrote:
>     [ 
> http://issues.apache.org/jira/browse/SOLR-19?page=comments#action_1241
> 3871 ]
>
> Yonik Seeley commented on SOLR-19:
> ----------------------------------
>
> While I don't know maven, and don't relish the thought of keeping two
build files up to date, this pom.xml looks pretty simple.
>
> So a tentative +1 from me.
>
> > pom.xml to support maven2
> > -------------------------
> >
> >          Key: SOLR-19
> >          URL: http://issues.apache.org/jira/browse/SOLR-19
> >      Project: Solr
> >         Type: New Feature
>
> >  Environment: all
> >     Reporter: Darren Erik Vengroff
> >     Priority: Minor
> >  Attachments: pom.xml
> >
> > I created a preliminary pom.xml to support building solr with maven2.
> > Currently it compiles all the core solr code into a jar and runs the
junit tests.
> > Dropping this pom.xml into the root dir, in parallel with build.xml,
will let those who wish to build with maven2.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>


--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com


Re: [jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by Yoav Shapira <yo...@apache.org>.
Let's look into the possibility of having maven generate an ant
build.xml file.  The plugins page at
http://maven.apache.org/plugins/index.html lists one such plugin
(http://maven.apache.org/plugins/maven-ant-plugin/), which is extremly
tersely documented, but maybe worth a shot?

Yoav

On 5/30/06, Yonik Seeley (JIRA) <ji...@apache.org> wrote:
>     [ http://issues.apache.org/jira/browse/SOLR-19?page=comments#action_12413871 ]
>
> Yonik Seeley commented on SOLR-19:
> ----------------------------------
>
> While I don't know maven, and don't relish the thought of keeping two build files up to date, this pom.xml looks pretty simple.
>
> So a tentative +1 from me.
>
> > pom.xml to support maven2
> > -------------------------
> >
> >          Key: SOLR-19
> >          URL: http://issues.apache.org/jira/browse/SOLR-19
> >      Project: Solr
> >         Type: New Feature
>
> >  Environment: all
> >     Reporter: Darren Erik Vengroff
> >     Priority: Minor
> >  Attachments: pom.xml
> >
> > I created a preliminary pom.xml to support building solr with maven2.
> > Currently it compiles all the core solr code into a jar and runs the junit tests.
> > Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

[jira] Updated: (SOLR-19) pom.xml to support maven2

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

Ryan McKinley updated SOLR-19:
------------------------------

    Attachment: solr-test-maven.zip

Here is a proposed directory structure and functional poms for a stubbed out solr.

This proposes making 4 artifacts for solr:
# solr-common  (jar)
# solr-client  (jar)
# solr-core  (jar)
# solr-server  (war)

Each artifact depends on the previous ones.

- - - - -

I have a pom working that loads all dependencies.  everything works from remote repositories *except* commons-csv.  Currently, I install that manually with:
{code}
mvn install:install-file -Dfile=lib/commons-csv-0.1-SNAPSHOT.jar -DgroupId=org.apache.commons -DartifactId=commons-csv -Dversion=0.1-SNAPSHOT -Dpackaging=jar
{code}

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622211#action_12622211 ] 

Shalin Shekhar Mangar commented on SOLR-19:
-------------------------------------------

Ryan -- this should probably be resolved to "will not fix" or something similar as the purpose of this issue is quite different from SOLR-586.

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, pom.xml, pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/SOLR-19?page=comments#action_12413871 ] 

Yonik Seeley commented on SOLR-19:
----------------------------------

While I don't know maven, and don't relish the thought of keeping two build files up to date, this pom.xml looks pretty simple.

So a tentative +1 from me.

> pom.xml to support maven2
> -------------------------
>
>          Key: SOLR-19
>          URL: http://issues.apache.org/jira/browse/SOLR-19
>      Project: Solr
>         Type: New Feature

>  Environment: all
>     Reporter: Darren Erik Vengroff
>     Priority: Minor
>  Attachments: pom.xml
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622214#action_12622214 ] 

Ryan McKinley commented on SOLR-19:
-----------------------------------

either way...  the purpose is identical -- to have published maven artifacts.  feel free to change it if "duplicate" does not sit right.

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, pom.xml, pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Updated: (SOLR-19) pom.xml to support maven2

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

Ryan McKinley updated SOLR-19:
------------------------------

    Attachment: pom.xml

here is a pom that works, but is not how we should have things...

It stuffs everything (solrj+core) into one artifact

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Resolved: (SOLR-19) pom.xml to support maven2

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

Ryan McKinley resolved SOLR-19.
-------------------------------

    Resolution: Duplicate

SOLR-586 implements this via an ant task

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, pom.xml, pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Updated: (SOLR-19) pom.xml to support maven2

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

Ryan McKinley updated SOLR-19:
------------------------------

    Attachment: pom.xml

updated for lucene 2.3

(still not a real solution)

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, pom.xml, pom.xml, solr-maven2.zip, solr-test-maven.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by "Robert Clark (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533951 ] 

Robert Clark commented on SOLR-19:
----------------------------------

+1 from me, I found these poms very useful for us in helping to provide jar and war files from our development trunk.

In our local branch of solr-dev we brought everything up to date (all the jars from lib are on public maven repsitories, except for the apache-commons-csv snapshot) and we now have clean jars and wars being provided.

Specific issues encountered around Maven were:
- testing didn't work (i will continue looking at why) as configuring base directories, sys properties, doesn't appear to be "out of the box" compatible with maven/eclipse (nothing some digging around can't solve)
- some test sources had to be moved to test source folders from main
- executing "mvn release:deploy" didn't work as the modules "solr-core" and "solr-abstract-war" weren't able to check out the source they operate on into their target directories.  So we ended up with jar's and war's with nothing in them.  The solution to this is a somewhat hacky subversion External pointing "src" beneath each of these to the project "src" root.

To make things more maven compatible there would ideally be one artifact per project, so a movement towards that would be good.  To support both ant users and maven users we thought that the project structure could be refactored to align with single-artifact sub-structures, whilst keeping build.xml aware of all the new locations.

There would be several sub "projects", perhaps:
  solr-core ( solr-embedded ??)
  solr-common
  solr-solrj
  solr-war
  solr-example

A top level build.xml would preserve all current behaviour against these.

Once we're rolling with development it would be quite easy for us to provide patches to make these changes for anyone interested.



> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, solr-maven2.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Updated: (SOLR-19) pom.xml to support maven2

Posted by "Darren Erik Vengroff (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/SOLR-19?page=all ]

Darren Erik Vengroff updated SOLR-19:
-------------------------------------

    Attachment: solr-maven2.zip

For anyone interested, here is the current state of my Maven2 support.  The basic idea, as explained in the encolsed HOWTO file, is to enable the creation of custom-configured webapps quickly and easily with minimal additional work and only a very simple pom.xml.

> pom.xml to support maven2
> -------------------------
>
>          Key: SOLR-19
>          URL: http://issues.apache.org/jira/browse/SOLR-19
>      Project: Solr
>         Type: New Feature

>  Environment: all
>     Reporter: Darren Erik Vengroff
>     Priority: Minor
>  Attachments: pom.xml, solr-maven2.zip
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (SOLR-19) pom.xml to support maven2

Posted by "Paul Sundling (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517399 ] 

Paul Sundling commented on SOLR-19:
-----------------------------------

It's been over a year since the last comment and Maven 2 has improved since then.  Obviously new pom.xml files will need to be generated.  Is there interest in that?

One major question will be what groupId to use, as top level groupId like solr is discouraged.  Instead I would recommend either of 

  org.apache.lucene.solr 
      or 
  org.apache.solr

I could see Solr being a top level project at some point, even though it's directly related to Lucene.

Dependencies like Lucene are already available in the Maven repository.

> pom.xml to support maven2
> -------------------------
>
>                 Key: SOLR-19
>                 URL: https://issues.apache.org/jira/browse/SOLR-19
>             Project: Solr
>          Issue Type: New Feature
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: pom.xml, solr-maven2.zip
>
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

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


[jira] Updated: (SOLR-19) pom.xml to support maven2

Posted by "Darren Erik Vengroff (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/SOLR-19?page=all ]

Darren Erik Vengroff updated SOLR-19:
-------------------------------------

    Attachment: pom.xml

Here is the pom.xml.

> pom.xml to support maven2
> -------------------------
>
>          Key: SOLR-19
>          URL: http://issues.apache.org/jira/browse/SOLR-19
>      Project: Solr
>         Type: New Feature

>  Environment: all
>     Reporter: Darren Erik Vengroff
>     Priority: Minor
>  Attachments: pom.xml
>
> I created a preliminary pom.xml to support building solr with maven2.
> Currently it compiles all the core solr code into a jar and runs the junit tests.
> Dropping this pom.xml into the root dir, in parallel with build.xml, will let those who wish to build with maven2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira