You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2013/01/02 14:37:23 UTC

[JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/

No tests ran.

Build Log:
[...truncated 11216 lines...]



Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
I'm working on it - I'll commit a fix in a couple minutes. - Steve

On Jan 2, 2013, at 10:54 AM, Uwe Schindler <uw...@thetaphi.de> wrote:

> Since the commit oft he carrotsearch updates, the maven build downloads additional JAR files without a license/sha1 sum.
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
>> -----Original Message-----
>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>> Sent: Wednesday, January 02, 2013 2:37 PM
>> To: dev@lucene.apache.org
>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>> 
>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>> 
>> No tests ran.
>> 
>> Build Log:
>> [...truncated 11216 lines...]
>> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
A transitional dependency. I'll take a look.
D.

On Wed, Jan 2, 2013 at 4:54 PM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Since the commit oft he carrotsearch updates, the maven build downloads additional JAR files without a license/sha1 sum.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>> Sent: Wednesday, January 02, 2013 2:37 PM
>> To: dev@lucene.apache.org
>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>
>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>
>> No tests ran.
>>
>> Build Log:
>> [...truncated 11216 lines...]
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
Cool!  We should use this.

On Jan 2, 2013, at 11:33 AM, Robert Muir <rc...@gmail.com> wrote:

> http://ant.apache.org/ivy/history/trunk/use/makepom.html
> 
> On Wed, Jan 2, 2013 at 11:30 AM, Dawid Weiss
> <da...@cs.put.poznan.pl> wrote:
>> By the way - has anybody mastered the art of publishing maven bundles
>> via ivy? Is think this is possible and I'd like to have a single
>> configuration to avoid such conflicts but I don't want to go it
>> myself...
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
http://ant.apache.org/ivy/history/trunk/use/makepom.html

On Wed, Jan 2, 2013 at 11:30 AM, Dawid Weiss
<da...@cs.put.poznan.pl> wrote:
> By the way - has anybody mastered the art of publishing maven bundles
> via ivy? Is think this is possible and I'd like to have a single
> configuration to avoid such conflicts but I don't want to go it
> myself...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
By the way - has anybody mastered the art of publishing maven bundles
via ivy? Is think this is possible and I'd like to have a single
configuration to avoid such conflicts but I don't want to go it
myself...

Dawid

On Wed, Jan 2, 2013 at 5:24 PM, Dawid Weiss
<da...@cs.put.poznan.pl> wrote:
> Yeah, these are transitive dependencies from mahout-math and
> simple-xml. I don't think they're required at runtime (read: they're
> not because we don't have them in distributions).
>
> Sorry for the noise, we'll fix the POM. Thanks Steve for updating the
> exclusions.
>
> Dawid
>
> On Wed, Jan 2, 2013 at 5:12 PM, Robert Muir <rc...@gmail.com> wrote:
>> It doesnt? Is it only downloading the .pom?
>>
>> [artifact:dependencies] Downloading:
>> org/apache/lucene/lucene-memory/3.6.0/lucene-memory-3.6.0.pom from
>> repository central at http://repo1.maven.org/maven2
>> [artifact:dependencies] Transferring 3K from central
>>
>> On Wed, Jan 2, 2013 at 11:10 AM, Steve Rowe <sa...@gmail.com> wrote:
>>>
>>> The Maven build does not download Lucene 3.6.0.  There are already transitive dependency exclusions for this in the clustering POM.
>>>
>>> +1 to fix the checker though.
>>>
>>> Steve
>>>
>>> On Jan 2, 2013, at 11:02 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
>>>
>>>> Hi,
>>>>
>>>> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
>>>>
>>>>  <target name="-validate-maven-dependencies">
>>>>    <property name="top.level.dir" location="${common.dir}/.."/>
>>>>    <pathconvert property="pom.xml">
>>>>      <mapper>
>>>>        <chainedmapper>
>>>>          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
>>>>          <globmapper from="*build.xml" to="*pom.xml"/>
>>>>        </chainedmapper>
>>>>      </mapper>
>>>>      <path location="${ant.file}"/>
>>>>    </pathconvert>
>>>>    <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
>>>>      <excludes>
>>>>        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>>>>      </excludes>
>>>>    </m2-validate-dependencies>
>>>>  </target>
>>>>
>>>> We should fix this pattern in rsel:name to add the lucene version.
>>>>
>>>> Uwe
>>>>
>>>> -----
>>>> Uwe Schindler
>>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>>> http://www.thetaphi.de
>>>> eMail: uwe@thetaphi.de
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>>>>> Sent: Wednesday, January 02, 2013 4:54 PM
>>>>> To: dev@lucene.apache.org
>>>>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>>>>> sync
>>>>>
>>>>> Since the commit oft he carrotsearch updates, the maven build downloads
>>>>> additional JAR files without a license/sha1 sum.
>>>>>
>>>>> Uwe
>>>>>
>>>>> -----
>>>>> Uwe Schindler
>>>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>>>> http://www.thetaphi.de
>>>>> eMail: uwe@thetaphi.de
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>>>>>> Sent: Wednesday, January 02, 2013 2:37 PM
>>>>>> To: dev@lucene.apache.org
>>>>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>>>>>
>>>>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>>>>>
>>>>>> No tests ran.
>>>>>>
>>>>>> Build Log:
>>>>>> [...truncated 11216 lines...]
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>>>>> commands, e-mail: dev-help@lucene.apache.org
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Dawid Weiss <da...@cs.put.poznan.pl>.
Yeah, these are transitive dependencies from mahout-math and
simple-xml. I don't think they're required at runtime (read: they're
not because we don't have them in distributions).

Sorry for the noise, we'll fix the POM. Thanks Steve for updating the
exclusions.

Dawid

On Wed, Jan 2, 2013 at 5:12 PM, Robert Muir <rc...@gmail.com> wrote:
> It doesnt? Is it only downloading the .pom?
>
> [artifact:dependencies] Downloading:
> org/apache/lucene/lucene-memory/3.6.0/lucene-memory-3.6.0.pom from
> repository central at http://repo1.maven.org/maven2
> [artifact:dependencies] Transferring 3K from central
>
> On Wed, Jan 2, 2013 at 11:10 AM, Steve Rowe <sa...@gmail.com> wrote:
>>
>> The Maven build does not download Lucene 3.6.0.  There are already transitive dependency exclusions for this in the clustering POM.
>>
>> +1 to fix the checker though.
>>
>> Steve
>>
>> On Jan 2, 2013, at 11:02 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
>>
>>> Hi,
>>>
>>> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
>>>
>>>  <target name="-validate-maven-dependencies">
>>>    <property name="top.level.dir" location="${common.dir}/.."/>
>>>    <pathconvert property="pom.xml">
>>>      <mapper>
>>>        <chainedmapper>
>>>          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
>>>          <globmapper from="*build.xml" to="*pom.xml"/>
>>>        </chainedmapper>
>>>      </mapper>
>>>      <path location="${ant.file}"/>
>>>    </pathconvert>
>>>    <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
>>>      <excludes>
>>>        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>>>      </excludes>
>>>    </m2-validate-dependencies>
>>>  </target>
>>>
>>> We should fix this pattern in rsel:name to add the lucene version.
>>>
>>> Uwe
>>>
>>> -----
>>> Uwe Schindler
>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>> http://www.thetaphi.de
>>> eMail: uwe@thetaphi.de
>>>
>>>
>>>> -----Original Message-----
>>>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>>>> Sent: Wednesday, January 02, 2013 4:54 PM
>>>> To: dev@lucene.apache.org
>>>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>>>> sync
>>>>
>>>> Since the commit oft he carrotsearch updates, the maven build downloads
>>>> additional JAR files without a license/sha1 sum.
>>>>
>>>> Uwe
>>>>
>>>> -----
>>>> Uwe Schindler
>>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>>> http://www.thetaphi.de
>>>> eMail: uwe@thetaphi.de
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>>>>> Sent: Wednesday, January 02, 2013 2:37 PM
>>>>> To: dev@lucene.apache.org
>>>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>>>>
>>>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>>>>
>>>>> No tests ran.
>>>>>
>>>>> Build Log:
>>>>> [...truncated 11216 lines...]
>>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>>>> commands, e-mail: dev-help@lucene.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
That's not the Maven build.

Here's the leading context from the Jenkins build log:

-----
-validate-maven-dependencies:
[artifact:dependencies] Downloading: org/carrot2/carrot2-core/3.6.2/carrot2-core-3.6.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 7K from central
[artifact:dependencies] Downloading: org/carrot2/carrot2/3.6.2/carrot2-3.6.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 7K from central
[artifact:dependencies] Downloading: org/apache/lucene/lucene-memory/3.6.0/lucene-memory-3.6.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
-----

If you look further down, you can see that only POMs are downloaded - presumably these are consulted in order to first build the full dependency graph, from which the Lucene 3.6.0 dependencies are then pruned.

Steve
 

On Jan 2, 2013, at 11:12 AM, Robert Muir <rc...@gmail.com> wrote:

> It doesnt? Is it only downloading the .pom?
> 
> [artifact:dependencies] Downloading:
> org/apache/lucene/lucene-memory/3.6.0/lucene-memory-3.6.0.pom from
> repository central at http://repo1.maven.org/maven2
> [artifact:dependencies] Transferring 3K from central
> 
> On Wed, Jan 2, 2013 at 11:10 AM, Steve Rowe <sa...@gmail.com> wrote:
>> 
>> The Maven build does not download Lucene 3.6.0.  There are already transitive dependency exclusions for this in the clustering POM.
>> 
>> +1 to fix the checker though.
>> 
>> Steve
>> 
>> On Jan 2, 2013, at 11:02 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
>> 
>>> Hi,
>>> 
>>> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
>>> 
>>> <target name="-validate-maven-dependencies">
>>>   <property name="top.level.dir" location="${common.dir}/.."/>
>>>   <pathconvert property="pom.xml">
>>>     <mapper>
>>>       <chainedmapper>
>>>         <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
>>>         <globmapper from="*build.xml" to="*pom.xml"/>
>>>       </chainedmapper>
>>>     </mapper>
>>>     <path location="${ant.file}"/>
>>>   </pathconvert>
>>>   <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
>>>     <excludes>
>>>       <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>>>     </excludes>
>>>   </m2-validate-dependencies>
>>> </target>
>>> 
>>> We should fix this pattern in rsel:name to add the lucene version.
>>> 
>>> Uwe
>>> 
>>> -----
>>> Uwe Schindler
>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>> http://www.thetaphi.de
>>> eMail: uwe@thetaphi.de
>>> 
>>> 
>>>> -----Original Message-----
>>>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>>>> Sent: Wednesday, January 02, 2013 4:54 PM
>>>> To: dev@lucene.apache.org
>>>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>>>> sync
>>>> 
>>>> Since the commit oft he carrotsearch updates, the maven build downloads
>>>> additional JAR files without a license/sha1 sum.
>>>> 
>>>> Uwe
>>>> 
>>>> -----
>>>> Uwe Schindler
>>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>>> http://www.thetaphi.de
>>>> eMail: uwe@thetaphi.de
>>>> 
>>>> 
>>>>> -----Original Message-----
>>>>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>>>>> Sent: Wednesday, January 02, 2013 2:37 PM
>>>>> To: dev@lucene.apache.org
>>>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>>>> 
>>>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>>>> 
>>>>> No tests ran.
>>>>> 
>>>>> Build Log:
>>>>> [...truncated 11216 lines...]
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>>>> commands, e-mail: dev-help@lucene.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
It doesnt? Is it only downloading the .pom?

[artifact:dependencies] Downloading:
org/apache/lucene/lucene-memory/3.6.0/lucene-memory-3.6.0.pom from
repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Transferring 3K from central

On Wed, Jan 2, 2013 at 11:10 AM, Steve Rowe <sa...@gmail.com> wrote:
>
> The Maven build does not download Lucene 3.6.0.  There are already transitive dependency exclusions for this in the clustering POM.
>
> +1 to fix the checker though.
>
> Steve
>
> On Jan 2, 2013, at 11:02 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
>
>> Hi,
>>
>> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
>>
>>  <target name="-validate-maven-dependencies">
>>    <property name="top.level.dir" location="${common.dir}/.."/>
>>    <pathconvert property="pom.xml">
>>      <mapper>
>>        <chainedmapper>
>>          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
>>          <globmapper from="*build.xml" to="*pom.xml"/>
>>        </chainedmapper>
>>      </mapper>
>>      <path location="${ant.file}"/>
>>    </pathconvert>
>>    <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
>>      <excludes>
>>        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>>      </excludes>
>>    </m2-validate-dependencies>
>>  </target>
>>
>> We should fix this pattern in rsel:name to add the lucene version.
>>
>> Uwe
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>>
>>
>>> -----Original Message-----
>>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>>> Sent: Wednesday, January 02, 2013 4:54 PM
>>> To: dev@lucene.apache.org
>>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>>> sync
>>>
>>> Since the commit oft he carrotsearch updates, the maven build downloads
>>> additional JAR files without a license/sha1 sum.
>>>
>>> Uwe
>>>
>>> -----
>>> Uwe Schindler
>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>> http://www.thetaphi.de
>>> eMail: uwe@thetaphi.de
>>>
>>>
>>>> -----Original Message-----
>>>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>>>> Sent: Wednesday, January 02, 2013 2:37 PM
>>>> To: dev@lucene.apache.org
>>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>>>
>>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>>>
>>>> No tests ran.
>>>>
>>>> Build Log:
>>>> [...truncated 11216 lines...]
>>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>>> commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
The Maven build does not download Lucene 3.6.0.  There are already transitive dependency exclusions for this in the clustering POM. 

+1 to fix the checker though.

Steve

On Jan 2, 2013, at 11:02 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:

> Hi,
> 
> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
> 
>  <target name="-validate-maven-dependencies">
>    <property name="top.level.dir" location="${common.dir}/.."/>
>    <pathconvert property="pom.xml">
>      <mapper>
>        <chainedmapper>
>          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
>          <globmapper from="*build.xml" to="*pom.xml"/>
>        </chainedmapper>
>      </mapper>
>      <path location="${ant.file}"/>
>    </pathconvert>
>    <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
>      <excludes>
>        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>      </excludes>
>    </m2-validate-dependencies>
>  </target>
> 
> We should fix this pattern in rsel:name to add the lucene version.
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
>> -----Original Message-----
>> From: Uwe Schindler [mailto:uwe@thetaphi.de]
>> Sent: Wednesday, January 02, 2013 4:54 PM
>> To: dev@lucene.apache.org
>> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>> sync
>> 
>> Since the commit oft he carrotsearch updates, the maven build downloads
>> additional JAR files without a license/sha1 sum.
>> 
>> Uwe
>> 
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>> 
>> 
>>> -----Original Message-----
>>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>>> Sent: Wednesday, January 02, 2013 2:37 PM
>>> To: dev@lucene.apache.org
>>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>> 
>>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>> 
>>> No tests ran.
>>> 
>>> Build Log:
>>> [...truncated 11216 lines...]
>>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
I committed an improved version (after some suggestions by Robert) to trunk and 4.x.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Wednesday, January 02, 2013 11:18 PM
> To: dev@lucene.apache.org
> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> sync
> 
> Here is my groovy way, like the lucene.javadoc.url. Unfortunately there is no
> way to apply a regex to a property value and assign it to a new one (see e.g.,
> http://stackoverflow.com/questions/1176071/replacing-characters-in-ant-
> property)
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
> > -----Original Message-----
> > From: Robert Muir [mailto:rcmuir@gmail.com]
> > Sent: Wednesday, January 02, 2013 6:36 PM
> > To: dev@lucene.apache.org
> > Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> > sync
> >
> > I only know how to do it in a hacky way:
> >
> > Index: common-build.xml
> >
> ==========================================================
> > =========
> > --- common-build.xml	(revision 1427796)
> > +++ common-build.xml	(working copy)
> > @@ -1350,6 +1350,13 @@
> >      </sequential>
> >    </target>
> >
> > +  <!-- nocommit: this is wrong to do! -->  <condition
> > + property="lucene.maven.jar.pattern"
> > +             value="lucene-*-${tests.luceneMatchVersion}-*.jar"
> > +             else="lucene-*-${version}.jar">
> > +    <matches pattern="SNAPSHOT" string="${version}"/>  </condition>
> > +
> >    <target name="-validate-maven-dependencies">
> >      <property name="top.level.dir" location="${common.dir}/.."/>
> >      <pathconvert property="pom.xml">
> > @@ -1363,7 +1370,7 @@
> >      </pathconvert>
> >      <m2-validate-dependencies pom.xml="${pom.xml}"
> > licenseDirectory="${license.dir}">
> >        <excludes>
> > -        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
> > +        <rsel:name name="**/${lucene.maven.jar.pattern}"
> > + handledirsep="true"/>
> >        </excludes>
> >      </m2-validate-dependencies>
> >    </target>
> >
> >
> > On Wed, Jan 2, 2013 at 12:10 PM, Uwe Schindler <uw...@thetaphi.de>
> wrote:
> > > Hi,
> > >
> > > My idea with: <rsel:name name="**/lucene-*-${version}.jar"
> > > handledirsep="true"/> Does not work for standard builds, as the
> > ${version}=="5.0-SNAPSHOT" produces another filename (not ending in
> > SNAPSHOT, instead a random date-like number). This is caused by some
> > magic in the internet downloader:
> > >
> > > -validate-maven-dependencies:
> > >  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe
> > > Schindler\.m2\repository\org\apache\lucene\lucene-codecs\5.0-
> > SNAPSHOT\
> > > lucene-codecs-5.0-20130102.164639-2.jar
> > >  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe
> > > Schindler\.m2\repository\org\apache\lucene\lucene-core\5.0-
> > SNAPSHOT\lu
> > > cene-core-5.0-20130102.164408-2.jar
> > >  [licenses] Scanned 4 JAR file(s) for licenses (in 0.02s.), 2 error(s).
> > >
> > > That is the problem I have here. So maybe we need a regex as Robert
> > suggests. One for snapshot releases and one for builds with real
> > version numbers where the filenames can be guessed easily.
> > >
> > > Uwe
> > >
> > > -----
> > > Uwe Schindler
> > > H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de
> > > eMail: uwe@thetaphi.de
> > >
> > >
> > >> -----Original Message-----
> > >> From: Robert Muir [mailto:rcmuir@gmail.com]
> > >> Sent: Wednesday, January 02, 2013 5:08 PM
> > >> To: dev@lucene.apache.org
> > >> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out
> > of
> > >> sync
> > >>
> > >> On Wed, Jan 2, 2013 at 11:05 AM, Robert Muir <rc...@gmail.com>
> > wrote:
> > >> > On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de>
> > >> wrote:
> > >> >> Hi,
> > >> >>
> > >> >> It is worse: The Maven build also download Lucene 3.6.0 (because
> > >> >> carrot
> > >> clustering depends on this). Our maven dependency checker does not
> > >> fail on this because we have an exclusion:
> > >> > ...
> > >> >>       <excludes>
> > >> >>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
> > >> >>       </excludes>
> > >> > ...
> > >> >>
> > >> >> We should fix this pattern in rsel:name to add the lucene version.
> > >>
> > >> In case it helps: we dont have to use the ant-style patterns.
> > >> rsel:name can take a regexp instead
> > >>
> > >> http://ant.apache.org/manual/Types/resources.html#rsel.name
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> > >> additional commands, e-mail: dev-help@lucene.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> > > additional commands, e-mail: dev-help@lucene.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> > commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
Cool, I didn't know about <load resource>.
On Jan 3, 2013 3:51 AM, "Uwe Schindler" <uw...@thetaphi.de> wrote:

> Hi thanks!
>
> I had a similar idea yesterday but I was missing one part, my new solution
> (after sleeping a night about it):
>
>     <loadresource property="maven.version.glob">
>       <propertyresource name="version"/>
>       <filterchain>
>         <tokenfilter>
>           <filetokenizer/>
>           <replacestring from="-SNAPSHOT" to="-*"/>
>         </tokenfilter>
>       </filterchain>
>     </loadresource>
>
> I was missing <loadresource>, I only found <loadfile>, but this one does
> not allow resources. Your solution is very similar, but still more
> complicated and error prone (e.g., if the version is special and needs
> Unicode-escaping to be loaded as part of property file...).
>
> I am testing and commiting this one, as it does not need to boot a groovy
> instance and starts up faster. I can also remove the property-pass-through
> to subants, as this one evaluates very fast and can be done in the
> validation task.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
> > -----Original Message-----
> > From: Steve Rowe [mailto:sarowe@gmail.com]
> > Sent: Thursday, January 03, 2013 1:39 AM
> > To: dev@lucene.apache.org
> > Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> > sync
> >
> > On Jan 2, 2013, at 5:18 PM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
> > > Unfortunately there is no way to apply a regex to a property value and
> > > assign it to a new one (see e.g.,
> > > http://stackoverflow.com/questions/1176071/replacing-characters-in-ant
> > > -property)
> >
> > I disagree.
> >
> > The "get-svn-info" macro in lucene/common-build.xml converts a multi-line
> > property value into a set of two other properties, by building
> "key=value"
> > lines and interpreting them as properties file lines:
> >
> > -----
> > <loadproperties>
> >   <propertyresource name="svn.info"/>
> >   <filterchain>
> >     <linecontainsregexp>
> >       <regexp pattern="(URL|Revision):"/>
> >     </linecontainsregexp>
> >     <replacestring from=": " to="="/>
> >     <prefixlines prefix="svn."/>
> >   </filterchain>
> > </loadproperties>
> > -----
> >
> > Similarly, to do regex replacement on a property value and assign the
> result
> > to another property (untested):
> >
> > -----
> > <loadproperties>
> >   <propertyresource name="version"/>
> >   <filterchain>
> >     <tokenfilter>
> >       <replaceregex pattern="-SNAPSHOT" replace="-*"/>
> >     </tokenfilter>
> >     <prefixlines prefix="maven-version-glob="/>
> >   </filterchain>
> > </loadproperties>
> > -----
> >
> > Kinda verbose, but should do the trick.
> >
> > Steve
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> > commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi thanks!

I had a similar idea yesterday but I was missing one part, my new solution (after sleeping a night about it):

    <loadresource property="maven.version.glob">
      <propertyresource name="version"/>
      <filterchain>
        <tokenfilter>
          <filetokenizer/>
          <replacestring from="-SNAPSHOT" to="-*"/>
        </tokenfilter>
      </filterchain>
    </loadresource>

I was missing <loadresource>, I only found <loadfile>, but this one does not allow resources. Your solution is very similar, but still more complicated and error prone (e.g., if the version is special and needs Unicode-escaping to be loaded as part of property file...).

I am testing and commiting this one, as it does not need to boot a groovy instance and starts up faster. I can also remove the property-pass-through to subants, as this one evaluates very fast and can be done in the validation task.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Steve Rowe [mailto:sarowe@gmail.com]
> Sent: Thursday, January 03, 2013 1:39 AM
> To: dev@lucene.apache.org
> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> sync
> 
> On Jan 2, 2013, at 5:18 PM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
> > Unfortunately there is no way to apply a regex to a property value and
> > assign it to a new one (see e.g.,
> > http://stackoverflow.com/questions/1176071/replacing-characters-in-ant
> > -property)
> 
> I disagree.
> 
> The "get-svn-info" macro in lucene/common-build.xml converts a multi-line
> property value into a set of two other properties, by building "key=value"
> lines and interpreting them as properties file lines:
> 
> -----
> <loadproperties>
>   <propertyresource name="svn.info"/>
>   <filterchain>
>     <linecontainsregexp>
>       <regexp pattern="(URL|Revision):"/>
>     </linecontainsregexp>
>     <replacestring from=": " to="="/>
>     <prefixlines prefix="svn."/>
>   </filterchain>
> </loadproperties>
> -----
> 
> Similarly, to do regex replacement on a property value and assign the result
> to another property (untested):
> 
> -----
> <loadproperties>
>   <propertyresource name="version"/>
>   <filterchain>
>     <tokenfilter>
>       <replaceregex pattern="-SNAPSHOT" replace="-*"/>
>     </tokenfilter>
>     <prefixlines prefix="maven-version-glob="/>
>   </filterchain>
> </loadproperties>
> -----
> 
> Kinda verbose, but should do the trick.
> 
> Steve
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Steve Rowe <sa...@gmail.com>.
On Jan 2, 2013, at 5:18 PM, "Uwe Schindler" <uw...@thetaphi.de> wrote:
> Unfortunately there is no way to apply a regex to a property value and assign it to a new one (see e.g., http://stackoverflow.com/questions/1176071/replacing-characters-in-ant-property)

I disagree.

The "get-svn-info" macro in lucene/common-build.xml converts a multi-line property value into a set of two other properties, by building "key=value" lines and interpreting them as properties file lines:

-----
<loadproperties>
  <propertyresource name="svn.info"/>
  <filterchain>
    <linecontainsregexp>
      <regexp pattern="(URL|Revision):"/>
    </linecontainsregexp>
    <replacestring from=": " to="="/>
    <prefixlines prefix="svn."/>
  </filterchain>
</loadproperties>
-----

Similarly, to do regex replacement on a property value and assign the result to another property (untested):

-----
<loadproperties>
  <propertyresource name="version"/>
  <filterchain>
    <tokenfilter>
      <replaceregex pattern="-SNAPSHOT" replace="-*"/>
    </tokenfilter>
    <prefixlines prefix="maven-version-glob="/>
  </filterchain>
</loadproperties>
-----

Kinda verbose, but should do the trick.

Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
Here is my groovy way, like the lucene.javadoc.url. Unfortunately there is no way to apply a regex to a property value and assign it to a new one (see e.g., http://stackoverflow.com/questions/1176071/replacing-characters-in-ant-property)

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Robert Muir [mailto:rcmuir@gmail.com]
> Sent: Wednesday, January 02, 2013 6:36 PM
> To: dev@lucene.apache.org
> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> sync
> 
> I only know how to do it in a hacky way:
> 
> Index: common-build.xml
> ==========================================================
> =========
> --- common-build.xml	(revision 1427796)
> +++ common-build.xml	(working copy)
> @@ -1350,6 +1350,13 @@
>      </sequential>
>    </target>
> 
> +  <!-- nocommit: this is wrong to do! -->  <condition
> + property="lucene.maven.jar.pattern"
> +             value="lucene-*-${tests.luceneMatchVersion}-*.jar"
> +             else="lucene-*-${version}.jar">
> +    <matches pattern="SNAPSHOT" string="${version}"/>  </condition>
> +
>    <target name="-validate-maven-dependencies">
>      <property name="top.level.dir" location="${common.dir}/.."/>
>      <pathconvert property="pom.xml">
> @@ -1363,7 +1370,7 @@
>      </pathconvert>
>      <m2-validate-dependencies pom.xml="${pom.xml}"
> licenseDirectory="${license.dir}">
>        <excludes>
> -        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
> +        <rsel:name name="**/${lucene.maven.jar.pattern}"
> + handledirsep="true"/>
>        </excludes>
>      </m2-validate-dependencies>
>    </target>
> 
> 
> On Wed, Jan 2, 2013 at 12:10 PM, Uwe Schindler <uw...@thetaphi.de> wrote:
> > Hi,
> >
> > My idea with: <rsel:name name="**/lucene-*-${version}.jar"
> > handledirsep="true"/> Does not work for standard builds, as the
> ${version}=="5.0-SNAPSHOT" produces another filename (not ending in
> SNAPSHOT, instead a random date-like number). This is caused by some
> magic in the internet downloader:
> >
> > -validate-maven-dependencies:
> >  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe
> > Schindler\.m2\repository\org\apache\lucene\lucene-codecs\5.0-
> SNAPSHOT\
> > lucene-codecs-5.0-20130102.164639-2.jar
> >  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe
> > Schindler\.m2\repository\org\apache\lucene\lucene-core\5.0-
> SNAPSHOT\lu
> > cene-core-5.0-20130102.164408-2.jar
> >  [licenses] Scanned 4 JAR file(s) for licenses (in 0.02s.), 2 error(s).
> >
> > That is the problem I have here. So maybe we need a regex as Robert
> suggests. One for snapshot releases and one for builds with real version
> numbers where the filenames can be guessed easily.
> >
> > Uwe
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: uwe@thetaphi.de
> >
> >
> >> -----Original Message-----
> >> From: Robert Muir [mailto:rcmuir@gmail.com]
> >> Sent: Wednesday, January 02, 2013 5:08 PM
> >> To: dev@lucene.apache.org
> >> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out
> of
> >> sync
> >>
> >> On Wed, Jan 2, 2013 at 11:05 AM, Robert Muir <rc...@gmail.com>
> wrote:
> >> > On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de>
> >> wrote:
> >> >> Hi,
> >> >>
> >> >> It is worse: The Maven build also download Lucene 3.6.0 (because
> >> >> carrot
> >> clustering depends on this). Our maven dependency checker does not
> >> fail on this because we have an exclusion:
> >> > ...
> >> >>       <excludes>
> >> >>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
> >> >>       </excludes>
> >> > ...
> >> >>
> >> >> We should fix this pattern in rsel:name to add the lucene version.
> >>
> >> In case it helps: we dont have to use the ant-style patterns.
> >> rsel:name can take a regexp instead
> >>
> >> http://ant.apache.org/manual/Types/resources.html#rsel.name
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> >> additional commands, e-mail: dev-help@lucene.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For
> > additional commands, e-mail: dev-help@lucene.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org

Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
I only know how to do it in a hacky way:

Index: common-build.xml
===================================================================
--- common-build.xml	(revision 1427796)
+++ common-build.xml	(working copy)
@@ -1350,6 +1350,13 @@
     </sequential>
   </target>

+  <!-- nocommit: this is wrong to do! -->
+  <condition property="lucene.maven.jar.pattern"
+             value="lucene-*-${tests.luceneMatchVersion}-*.jar"
+             else="lucene-*-${version}.jar">
+    <matches pattern="SNAPSHOT" string="${version}"/>
+  </condition>
+
   <target name="-validate-maven-dependencies">
     <property name="top.level.dir" location="${common.dir}/.."/>
     <pathconvert property="pom.xml">
@@ -1363,7 +1370,7 @@
     </pathconvert>
     <m2-validate-dependencies pom.xml="${pom.xml}"
licenseDirectory="${license.dir}">
       <excludes>
-        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
+        <rsel:name name="**/${lucene.maven.jar.pattern}" handledirsep="true"/>
       </excludes>
     </m2-validate-dependencies>
   </target>


On Wed, Jan 2, 2013 at 12:10 PM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Hi,
>
> My idea with: <rsel:name name="**/lucene-*-${version}.jar" handledirsep="true"/>
> Does not work for standard builds, as the ${version}=="5.0-SNAPSHOT" produces another filename (not ending in SNAPSHOT, instead a random date-like number). This is caused by some magic in the internet downloader:
>
> -validate-maven-dependencies:
>  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe Schindler\.m2\repository\org\apache\lucene\lucene-codecs\5.0-SNAPSHOT\lucene-codecs-5.0-20130102.164639-2.jar
>  [licenses] MISSING sha1 checksum file for: C:\Users\Uwe Schindler\.m2\repository\org\apache\lucene\lucene-core\5.0-SNAPSHOT\lucene-core-5.0-20130102.164408-2.jar
>  [licenses] Scanned 4 JAR file(s) for licenses (in 0.02s.), 2 error(s).
>
> That is the problem I have here. So maybe we need a regex as Robert suggests. One for snapshot releases and one for builds with real version numbers where the filenames can be guessed easily.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Robert Muir [mailto:rcmuir@gmail.com]
>> Sent: Wednesday, January 02, 2013 5:08 PM
>> To: dev@lucene.apache.org
>> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
>> sync
>>
>> On Wed, Jan 2, 2013 at 11:05 AM, Robert Muir <rc...@gmail.com> wrote:
>> > On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de>
>> wrote:
>> >> Hi,
>> >>
>> >> It is worse: The Maven build also download Lucene 3.6.0 (because carrot
>> clustering depends on this). Our maven dependency checker does not fail on
>> this because we have an exclusion:
>> > ...
>> >>       <excludes>
>> >>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>> >>       </excludes>
>> > ...
>> >>
>> >> We should fix this pattern in rsel:name to add the lucene version.
>>
>> In case it helps: we dont have to use the ant-style patterns.
>> rsel:name can take a regexp instead
>>
>> http://ant.apache.org/manual/Types/resources.html#rsel.name
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
>> commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,

My idea with: <rsel:name name="**/lucene-*-${version}.jar" handledirsep="true"/>
Does not work for standard builds, as the ${version}=="5.0-SNAPSHOT" produces another filename (not ending in SNAPSHOT, instead a random date-like number). This is caused by some magic in the internet downloader:

-validate-maven-dependencies:
 [licenses] MISSING sha1 checksum file for: C:\Users\Uwe Schindler\.m2\repository\org\apache\lucene\lucene-codecs\5.0-SNAPSHOT\lucene-codecs-5.0-20130102.164639-2.jar
 [licenses] MISSING sha1 checksum file for: C:\Users\Uwe Schindler\.m2\repository\org\apache\lucene\lucene-core\5.0-SNAPSHOT\lucene-core-5.0-20130102.164408-2.jar
 [licenses] Scanned 4 JAR file(s) for licenses (in 0.02s.), 2 error(s).

That is the problem I have here. So maybe we need a regex as Robert suggests. One for snapshot releases and one for builds with real version numbers where the filenames can be guessed easily.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Robert Muir [mailto:rcmuir@gmail.com]
> Sent: Wednesday, January 02, 2013 5:08 PM
> To: dev@lucene.apache.org
> Subject: Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> sync
> 
> On Wed, Jan 2, 2013 at 11:05 AM, Robert Muir <rc...@gmail.com> wrote:
> > On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de>
> wrote:
> >> Hi,
> >>
> >> It is worse: The Maven build also download Lucene 3.6.0 (because carrot
> clustering depends on this). Our maven dependency checker does not fail on
> this because we have an exclusion:
> > ...
> >>       <excludes>
> >>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
> >>       </excludes>
> > ...
> >>
> >> We should fix this pattern in rsel:name to add the lucene version.
> 
> In case it helps: we dont have to use the ant-style patterns.
> rsel:name can take a regexp instead
> 
> http://ant.apache.org/manual/Types/resources.html#rsel.name
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
On Wed, Jan 2, 2013 at 11:05 AM, Robert Muir <rc...@gmail.com> wrote:
> On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
>> Hi,
>>
>> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
> ...
>>       <excludes>
>>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>>       </excludes>
> ...
>>
>> We should fix this pattern in rsel:name to add the lucene version.

In case it helps: we dont have to use the ant-style patterns.
rsel:name can take a regexp instead

http://ant.apache.org/manual/Types/resources.html#rsel.name

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
On Wed, Jan 2, 2013 at 11:02 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Hi,
>
> It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:
...
>       <excludes>
>         <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
>       </excludes>
...
>
> We should fix this pattern in rsel:name to add the lucene version.
>

+1, lets fix the checker and ensure it detects this situation!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
Hi,

It is worse: The Maven build also download Lucene 3.6.0 (because carrot clustering depends on this). Our maven dependency checker does not fail on this because we have an exclusion:

  <target name="-validate-maven-dependencies">
    <property name="top.level.dir" location="${common.dir}/.."/>
    <pathconvert property="pom.xml">
      <mapper>
        <chainedmapper>
          <globmapper from="${top.level.dir}*" to="${filtered.pom.templates.dir}*"/>
          <globmapper from="*build.xml" to="*pom.xml"/>
        </chainedmapper>
      </mapper>
      <path location="${ant.file}"/>
    </pathconvert>
    <m2-validate-dependencies pom.xml="${pom.xml}" licenseDirectory="${license.dir}">
      <excludes>
        <rsel:name name="**/lucene-*.jar" handledirsep="true"/>
      </excludes>
    </m2-validate-dependencies>
  </target>

We should fix this pattern in rsel:name to add the lucene version.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Uwe Schindler [mailto:uwe@thetaphi.de]
> Sent: Wednesday, January 02, 2013 4:54 PM
> To: dev@lucene.apache.org
> Subject: RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of
> sync
> 
> Since the commit oft he carrotsearch updates, the maven build downloads
> additional JAR files without a license/sha1 sum.
> 
> Uwe
> 
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
> 
> 
> > -----Original Message-----
> > From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
> > Sent: Wednesday, January 02, 2013 2:37 PM
> > To: dev@lucene.apache.org
> > Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
> >
> > Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
> >
> > No tests ran.
> >
> > Build Log:
> > [...truncated 11216 lines...]
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Robert Muir <rc...@gmail.com>.
I think maven needs some exclusions. Its trying to download some
unnecessary dependencies.

But i cannot tell which maven jar is "dragging" in all this stuff to
add the exclusions.

On Wed, Jan 2, 2013 at 10:54 AM, Uwe Schindler <uw...@thetaphi.de> wrote:
> Since the commit oft he carrotsearch updates, the maven build downloads additional JAR files without a license/sha1 sum.
>
> Uwe
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>
>> -----Original Message-----
>> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
>> Sent: Wednesday, January 02, 2013 2:37 PM
>> To: dev@lucene.apache.org
>> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
>>
>> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
>>
>> No tests ran.
>>
>> Build Log:
>> [...truncated 11216 lines...]
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


RE: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync

Posted by Uwe Schindler <uw...@thetaphi.de>.
Since the commit oft he carrotsearch updates, the maven build downloads additional JAR files without a license/sha1 sum.

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
> Sent: Wednesday, January 02, 2013 2:37 PM
> To: dev@lucene.apache.org
> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-4.x #198: POMs out of sync
> 
> Build: https://builds.apache.org/job/Lucene-Solr-Maven-4.x/198/
> 
> No tests ran.
> 
> Build Log:
> [...truncated 11216 lines...]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org