Re: CVS JTS 1.10

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Martin Davis
Good idea about moving this thread to the JTS list - I'm sending it over
there with this email.

The duplicate IndexedPointInAreaLocator is a bug in the src image
extracted for JTS 1.10.  The fix is to delete the one in the algorithm
package.

Then you should be able to compile.

I agree it would be nice to have an ant script which builds the distro.  
If you make one I'd be happy to add it to CVS.  And you're able to  
commit to maintaining it, that would even better!

It's too late to tag CVS for 1.10, obviously, but I'll tag the 1.11
release when it's ready to go (hopefully very soon - there's just one
code enhancement it's waiting on).

Does this cover everything?

Martin


Alex Djioev wrote:

> Hi Martin,
>
> First quiesion: should we move this discussion to the mailing list?
>
> I tried to do what you suggested, but code is still not compilable. I
> get compile errors for example IndexedPointInAreaLocator.java is in
> jts.algorithm and jts.algorithm.locate packages, also they are
> different in sizes and jts.geomgraph.GeometryGraph class breaks as it
> doesn't know which one to pick.
> I can fix it, but I'm afraid documentation might look bad, i.e.: get
> source code package and unzip, chechout code from cvs and move ant
> file, patch ant script, clean source tree by removing some java files.
> Its too much...
>
> Another solution I can see is to make a new JTS release (version 1.13)
> *and* tag the code for this release.
>
> Alex
>
> Jody Garnett wrote:
>> I am suer we could; there is an email thread on the jts list on this
>> topic.
>> We had also thought of just build the source download; supplemented
>> with the ant file from CVS. But we thought we should at least warn
>> you that the tags are broken in CVS.
>>
>> If you did want to create a new tag (or perhaps Alex can tell me if
>> one of the other tags works?) we would be happy to give you feedback.
>>
>> Jody
>>
>> -----Original Message-----
>> From: Martin Davis [mailto:[hidden email]] Sent: Wednesday,
>> 19 August 2009 1:43 AM
>> To: Jody Garnett
>> Cc: Alexandre Djioev
>> Subject: Re: CVS JTS 1.10
>>
>> Hi, Jody.
>>
>> Today at 6 pm doesn't work for me, I"m afraid.
>> Perhaps we can try and do this by email?
>>
>> If the issue is building JTS 1.10, then the best way to do this is to
>> get the src from the distro archive, and then build it.  It's just a
>> Java compile - pretty simple, really.  Alternatively, grab the ant
>> file from CVS and use it (probably with some hacking) to get it to
>> gen the build.
>>
>> The reason the ant file is not included in the distro is that not all
>> src files are included - so it doesn't run on the src image in the
>> distro.
>>
>> HTH - Martin
>>
>> Jody Garnett wrote:
>>  
>>> Hi Martin:
>>>
>>> If we could talk briefly tomorrow -
>>> Here is a meeting planner:
>>> -
>>> http://www.timeanddate.com/worldclock/meetingtime.html?month=8&day=19&year=2009&p1=240&p2=256&p3=-1&p4=-1 
>>>
>>>
>>> It looks like 6pm PST would be perfect?
>>>
>>> Jody
>>>
>>> -----Original Message-----
>>> From: Martin Davis [mailto:[hidden email]] Sent: Tuesday,
>>> 18 August 2009 4:42 AM
>>> To: Jody Garnett
>>> Cc: Alexandre Djioev
>>> Subject: Re: CVS JTS 1.10
>>>
>>> Jody,
>>>
>>> I'm happy to skype about this, but I can't do that from Refractions,
>>> due to our antiquated infrastructure.  How about I talk from home?  
>>> That might work better for your time zone anyway.  Evenings PST are
>>> best for me.  What would work for you?
>>>
>>> M
>>>
>>> Jody Garnett wrote:
>>>      
>>>> Hi Martin:
>>>>
>>>>  
>>>>
>>>> Do you have time for a skype chat? We are trying to build (for a
>>>> customer) all the dependencies of uDig and write down the steps.
>>>> Right now we are using JTS 1.10 and the structure of CVS seems to
>>>> have lost that particular tag.
>>>>
>>>>  
>>>>
>>>> Our best workaround seems to be:
>>>>
>>>> 1.       Download jts 1.10
>>>>
>>>> 2.       Check out the ant script
>>>>
>>>> 3.       And run?
>>>>
>>>>  
>>>>
>>>> Jody Garnett
>>>>
>>>> Geospatial Systems Architect
>>>>
>>>> http://www.lisasoft.com/docroot/lisasoft/images/lisasoftlogo.jpg
>>>>
>>>> Ph: +61 2 8570 5050   Fax: +61 2 8570 5099
>>>>
>>>> Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009
>>>>
>>>>  
>>>>
>>>> LISAsoft is part of the A2end Group of Companies
>>>>
>>>> http://www.lisasoft.com/
>>>>
>>>>  
>>>>
>>>>          
>>>      
>>
>>  
>
>

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-3
Sure you don't want a maven pom.xml (I think we could produce that faster).

Jody

On Thu, Aug 20, 2009 at 1:53 AM, Martin Davis<[hidden email]> wrote:

> Good idea about moving this thread to the JTS list - I'm sending it over
> there with this email.
>
> The duplicate IndexedPointInAreaLocator is a bug in the src image extracted
> for JTS 1.10.  The fix is to delete the one in the algorithm package.
>
> Then you should be able to compile.
> I agree it would be nice to have an ant script which builds the distro.  If
> you make one I'd be happy to add it to CVS.  And you're able to  commit to
> maintaining it, that would even better!
>
> It's too late to tag CVS for 1.10, obviously, but I'll tag the 1.11 release
> when it's ready to go (hopefully very soon - there's just one code
> enhancement it's waiting on).
>
> Does this cover everything?
>
> Martin
>
>
> Alex Djioev wrote:
>>
>> Hi Martin,
>>
>> First quiesion: should we move this discussion to the mailing list?
>>
>> I tried to do what you suggested, but code is still not compilable. I get
>> compile errors for example IndexedPointInAreaLocator.java is in
>> jts.algorithm and jts.algorithm.locate packages, also they are different in
>> sizes and jts.geomgraph.GeometryGraph class breaks as it doesn't know which
>> one to pick.
>> I can fix it, but I'm afraid documentation might look bad, i.e.: get
>> source code package and unzip, chechout code from cvs and move ant file,
>> patch ant script, clean source tree by removing some java files. Its too
>> much...
>>
>> Another solution I can see is to make a new JTS release (version 1.13)
>> *and* tag the code for this release.
>>
>> Alex
>>
>> Jody Garnett wrote:
>>>
>>> I am suer we could; there is an email thread on the jts list on this
>>> topic.
>>> We had also thought of just build the source download; supplemented with
>>> the ant file from CVS. But we thought we should at least warn you that the
>>> tags are broken in CVS.
>>>
>>> If you did want to create a new tag (or perhaps Alex can tell me if one
>>> of the other tags works?) we would be happy to give you feedback.
>>>
>>> Jody
>>>
>>> -----Original Message-----
>>> From: Martin Davis [mailto:[hidden email]] Sent: Wednesday, 19
>>> August 2009 1:43 AM
>>> To: Jody Garnett
>>> Cc: Alexandre Djioev
>>> Subject: Re: CVS JTS 1.10
>>>
>>> Hi, Jody.
>>>
>>> Today at 6 pm doesn't work for me, I"m afraid.
>>> Perhaps we can try and do this by email?
>>>
>>> If the issue is building JTS 1.10, then the best way to do this is to get
>>> the src from the distro archive, and then build it.  It's just a Java
>>> compile - pretty simple, really.  Alternatively, grab the ant file from CVS
>>> and use it (probably with some hacking) to get it to gen the build.
>>>
>>> The reason the ant file is not included in the distro is that not all src
>>> files are included - so it doesn't run on the src image in the distro.
>>>
>>> HTH - Martin
>>>
>>> Jody Garnett wrote:
>>>
>>>>
>>>> Hi Martin:
>>>>
>>>> If we could talk briefly tomorrow -
>>>> Here is a meeting planner:
>>>> -
>>>> http://www.timeanddate.com/worldclock/meetingtime.html?month=8&day=19&year=2009&p1=240&p2=256&p3=-1&p4=-1
>>>>
>>>> It looks like 6pm PST would be perfect?
>>>>
>>>> Jody
>>>>
>>>> -----Original Message-----
>>>> From: Martin Davis [mailto:[hidden email]] Sent: Tuesday, 18
>>>> August 2009 4:42 AM
>>>> To: Jody Garnett
>>>> Cc: Alexandre Djioev
>>>> Subject: Re: CVS JTS 1.10
>>>>
>>>> Jody,
>>>>
>>>> I'm happy to skype about this, but I can't do that from Refractions, due
>>>> to our antiquated infrastructure.  How about I talk from home?  That might
>>>> work better for your time zone anyway.  Evenings PST are best for me.  What
>>>> would work for you?
>>>>
>>>> M
>>>>
>>>> Jody Garnett wrote:
>>>>
>>>>>
>>>>> Hi Martin:
>>>>>
>>>>>
>>>>> Do you have time for a skype chat? We are trying to build (for a
>>>>> customer) all the dependencies of uDig and write down the steps. Right now
>>>>> we are using JTS 1.10 and the structure of CVS seems to have lost that
>>>>> particular tag.
>>>>>
>>>>>
>>>>> Our best workaround seems to be:
>>>>>
>>>>> 1.       Download jts 1.10
>>>>>
>>>>> 2.       Check out the ant script
>>>>>
>>>>> 3.       And run?
>>>>>
>>>>>
>>>>> Jody Garnett
>>>>>
>>>>> Geospatial Systems Architect
>>>>>
>>>>> http://www.lisasoft.com/docroot/lisasoft/images/lisasoftlogo.jpg
>>>>>
>>>>> Ph: +61 2 8570 5050   Fax: +61 2 8570 5099
>>>>>
>>>>> Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009
>>>>>
>>>>>
>>>>> LISAsoft is part of the A2end Group of Companies
>>>>>
>>>>> http://www.lisasoft.com/
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> --
> Martin Davis
> Senior Technical Architect
> Refractions Research, Inc.
> (250) 383-3022
>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Martin Davis
I'm happy using ant, but if you want to provide a maven pom and someone
else says they want it too I will stuff it into CVS.

Jody Garnett wrote:

> Sure you don't want a maven pom.xml (I think we could produce that faster).
>
> Jody
>
> On Thu, Aug 20, 2009 at 1:53 AM, Martin Davis<[hidden email]> wrote:
>  
>> Good idea about moving this thread to the JTS list - I'm sending it over
>> there with this email.
>>
>> The duplicate IndexedPointInAreaLocator is a bug in the src image extracted
>> for JTS 1.10.  The fix is to delete the one in the algorithm package.
>>
>> Then you should be able to compile.
>> I agree it would be nice to have an ant script which builds the distro.  If
>> you make one I'd be happy to add it to CVS.  And you're able to  commit to
>> maintaining it, that would even better!
>>
>> It's too late to tag CVS for 1.10, obviously, but I'll tag the 1.11 release
>> when it's ready to go (hopefully very soon - there's just one code
>> enhancement it's waiting on).
>>
>> Does this cover everything?
>>
>> Martin
>>
>>
>> Alex Djioev wrote:
>>    
>>> Hi Martin,
>>>
>>> First quiesion: should we move this discussion to the mailing list?
>>>
>>> I tried to do what you suggested, but code is still not compilable. I get
>>> compile errors for example IndexedPointInAreaLocator.java is in
>>> jts.algorithm and jts.algorithm.locate packages, also they are different in
>>> sizes and jts.geomgraph.GeometryGraph class breaks as it doesn't know which
>>> one to pick.
>>> I can fix it, but I'm afraid documentation might look bad, i.e.: get
>>> source code package and unzip, chechout code from cvs and move ant file,
>>> patch ant script, clean source tree by removing some java files. Its too
>>> much...
>>>
>>> Another solution I can see is to make a new JTS release (version 1.13)
>>> *and* tag the code for this release.
>>>
>>> Alex
>>>
>>> Jody Garnett wrote:
>>>      
>>>> I am suer we could; there is an email thread on the jts list on this
>>>> topic.
>>>> We had also thought of just build the source download; supplemented with
>>>> the ant file from CVS. But we thought we should at least warn you that the
>>>> tags are broken in CVS.
>>>>
>>>> If you did want to create a new tag (or perhaps Alex can tell me if one
>>>> of the other tags works?) we would be happy to give you feedback.
>>>>
>>>> Jody
>>>>
>>>> -----Original Message-----
>>>> From: Martin Davis [mailto:[hidden email]] Sent: Wednesday, 19
>>>> August 2009 1:43 AM
>>>> To: Jody Garnett
>>>> Cc: Alexandre Djioev
>>>> Subject: Re: CVS JTS 1.10
>>>>
>>>> Hi, Jody.
>>>>
>>>> Today at 6 pm doesn't work for me, I"m afraid.
>>>> Perhaps we can try and do this by email?
>>>>
>>>> If the issue is building JTS 1.10, then the best way to do this is to get
>>>> the src from the distro archive, and then build it.  It's just a Java
>>>> compile - pretty simple, really.  Alternatively, grab the ant file from CVS
>>>> and use it (probably with some hacking) to get it to gen the build.
>>>>
>>>> The reason the ant file is not included in the distro is that not all src
>>>> files are included - so it doesn't run on the src image in the distro.
>>>>
>>>> HTH - Martin
>>>>
>>>> Jody Garnett wrote:
>>>>
>>>>        
>>>>> Hi Martin:
>>>>>
>>>>> If we could talk briefly tomorrow -
>>>>> Here is a meeting planner:
>>>>> -
>>>>> http://www.timeanddate.com/worldclock/meetingtime.html?month=8&day=19&year=2009&p1=240&p2=256&p3=-1&p4=-1
>>>>>
>>>>> It looks like 6pm PST would be perfect?
>>>>>
>>>>> Jody
>>>>>
>>>>> -----Original Message-----
>>>>> From: Martin Davis [mailto:[hidden email]] Sent: Tuesday, 18
>>>>> August 2009 4:42 AM
>>>>> To: Jody Garnett
>>>>> Cc: Alexandre Djioev
>>>>> Subject: Re: CVS JTS 1.10
>>>>>
>>>>> Jody,
>>>>>
>>>>> I'm happy to skype about this, but I can't do that from Refractions, due
>>>>> to our antiquated infrastructure.  How about I talk from home?  That might
>>>>> work better for your time zone anyway.  Evenings PST are best for me.  What
>>>>> would work for you?
>>>>>
>>>>> M
>>>>>
>>>>> Jody Garnett wrote:
>>>>>
>>>>>          
>>>>>> Hi Martin:
>>>>>>
>>>>>>
>>>>>> Do you have time for a skype chat? We are trying to build (for a
>>>>>> customer) all the dependencies of uDig and write down the steps. Right now
>>>>>> we are using JTS 1.10 and the structure of CVS seems to have lost that
>>>>>> particular tag.
>>>>>>
>>>>>>
>>>>>> Our best workaround seems to be:
>>>>>>
>>>>>> 1.       Download jts 1.10
>>>>>>
>>>>>> 2.       Check out the ant script
>>>>>>
>>>>>> 3.       And run?
>>>>>>
>>>>>>
>>>>>> Jody Garnett
>>>>>>
>>>>>> Geospatial Systems Architect
>>>>>>
>>>>>> http://www.lisasoft.com/docroot/lisasoft/images/lisasoftlogo.jpg
>>>>>>
>>>>>> Ph: +61 2 8570 5050   Fax: +61 2 8570 5099
>>>>>>
>>>>>> Suite 112, Jones Bay Wharf 19-21 Pirrama Rd Pyrmont NSW 2009
>>>>>>
>>>>>>
>>>>>> LISAsoft is part of the A2end Group of Companies
>>>>>>
>>>>>> http://www.lisasoft.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>          
>>>>        
>>>      
>> --
>> Martin Davis
>> Senior Technical Architect
>> Refractions Research, Inc.
>> (250) 383-3022
>>
>> _______________________________________________
>> jts-devel mailing list
>> [hidden email]
>> http://lists.refractions.net/mailman/listinfo/jts-devel
>>
>>    
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>
>  

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

mbedward
2009/8/20 Martin Davis wrote:
> I'm happy using ant, but if you want to provide a maven pom and someone else
> says they want it too I will stuff it into CVS.

I want it :)

Michael
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Alex Djioev
Hello,

all done, can we test it please (pom.xml file is attached)
pom.xml should be in the project root directory, to install into local
maven repository run "mvn install"
I also exclude
com.vividsolutions.jts.algorithm.IndexedPointInAreaLocator.java to avoid
compilation error.
Also I declare xerces as a dependency inside pom so I get  jar from
maven repository and ignore the one at lib dir. If this is wrong I can
always change it.

Cheers Alex


Michael Bedward wrote:

> 2009/8/20 Martin Davis wrote:
>  
>> I'm happy using ant, but if you want to provide a maven pom and someone else
>> says they want it too I will stuff it into CVS.
>>    
>
> I want it :)
>
> Michael
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>  

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.vividsolutions.jts</groupId>
  <artifactId>jts</artifactId>
  <packaging>jar</packaging>
  <version>1.10</version>
  <name>jts</name>
  <url>http://maven.apache.org</url>
  <build>
  <plugins>
    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
            <excludes>
                <exclude>com/vividsolutions/jts/algorithm/IndexedPointInAreaLocator.java</exclude>
            </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.3</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>src</source>
              </sources>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
        <dependency>
                <groupId>xerces</groupId>
                <artifactId>xerces</artifactId>
                <version>2.4.0</version>
        </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
If there is one in the libs directory we should probably include it;  
note you can set the scope to "compile" in order not to pass on the  
dependency to others ...

Jody

On 20/08/2009, at 3:15 PM, Alex Djioev wrote:

> Hello,
>
> all done, can we test it please (pom.xml file is attached)
> pom.xml should be in the project root directory, to install into  
> local maven repository run "mvn install"
> I also exclude  
> com.vividsolutions.jts.algorithm.IndexedPointInAreaLocator.java to  
> avoid compilation error.
> Also I declare xerces as a dependency inside pom so I get  jar from  
> maven repository and ignore the one at lib dir. If this is wrong I  
> can always change it.
>
> Cheers Alex
>
>
> Michael Bedward wrote:
>> 2009/8/20 Martin Davis wrote:
>>
>>> I'm happy using ant, but if you want to provide a maven pom and  
>>> someone else
>>> says they want it too I will stuff it into CVS.
>>>
>>
>> I want it :)
>>
>> Michael
>> _______________________________________________
>> jts-devel mailing list
>> [hidden email]
>> http://lists.refractions.net/mailman/listinfo/jts-devel
>>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 
> "
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd 
> ">
>  <modelVersion>4.0.0</modelVersion>
>  <groupId>com.vividsolutions.jts</groupId>
>  <artifactId>jts</artifactId>
>  <packaging>jar</packaging>
>  <version>1.10</version>
>  <name>jts</name>
>  <url>http://maven.apache.org</url>
>  <build>
>  <plugins>
>    <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-compiler-plugin</artifactId>
>        <configuration>
>            <excludes>
>                <exclude>com/vividsolutions/jts/algorithm/
> IndexedPointInAreaLocator.java</exclude>
>            </excludes>
>        </configuration>
>      </plugin>
>      <plugin>
>        <groupId>org.codehaus.mojo</groupId>
>        <artifactId>build-helper-maven-plugin</artifactId>
>        <version>1.3</version>
>        <executions>
>          <execution>
>            <id>add-source</id>
>            <phase>generate-sources</phase>
>            <goals>
>              <goal>add-source</goal>
>            </goals>
>            <configuration>
>              <sources>
>                <source>src</source>
>              </sources>
>            </configuration>
>          </execution>
>        </executions>
>      </plugin>
>    </plugins>
>  </build>
>  <dependencies>
> <dependency>
> <groupId>xerces</groupId>
> <artifactId>xerces</artifactId>
> <version>2.4.0</version>
> </dependency>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>3.8.1</version>
>      <scope>test</scope>
>    </dependency>
>  </dependencies>
> </project>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Alex Djioev
In reply to this post by mbedward
Hi Michael,

have you tried pom file that I send last week? Hope it was useful :)

Cheers Alex

Michael Bedward wrote:

> 2009/8/20 Martin Davis wrote:
>
>> I'm happy using ant, but if you want to provide a maven pom and someone else
>> says they want it too I will stuff it into CVS.
>>
>
> I want it :)
>
> Michael
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>


The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

mbedward
Hi Alex,

I hadn't used the maven build helper plugin before so I'm not sure if
I'm doing the right thing.

I put the pom in a new empty dir and edited the source parameter of
the build helper to point to the location of the jts 1.10 src dir on
my system. Then I did mvn install and got a jar :-)

Is that how the pom is meant to be used ?

Regardless, it worked first time !

cheers
Michael
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
I have not tried it yet; I was going to just drop it in the root  
directory of a JTS download and say: mvn install

You should find that that other things work as well such as mvn  
javadoc:javadoc etc...

Jody

On 25/08/2009, at 6:50 PM, Michael Bedward wrote:

> Hi Alex,
>
> I hadn't used the maven build helper plugin before so I'm not sure if
> I'm doing the right thing.
>
> I put the pom in a new empty dir and edited the source parameter of
> the build helper to point to the location of the jts 1.10 src dir on
> my system. Then I did mvn install and got a jar :-)
>
> Is that how the pom is meant to be used ?
>
> Regardless, it worked first time !
>
> cheers
> Michael
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

mbedward
Sigh... my talent for finding the long way of doing things again...

Just tried the simple method with the unedited pom and it worked fine
for jar and javadocs. Nice.

Many thanks Alex !

Michael

2009/8/26 Jody Garnett <[hidden email]>:
> I have not tried it yet; I was going to just drop it in the root directory
> of a JTS download and say: mvn install
>
> You should find that that other things work as well such as mvn
> javadoc:javadoc etc...
>
> Jody
>
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
Cool - so we have a report from the field that it works :-)

Martin can we kindly ask you to add this to CVS? It will allow us to  
write out build instructions for JTS in a much more clean fashion. If  
you like I can write a small readme.html on how to use it for the JTS  
documentation.

Jody

On 26/08/2009, at 9:43 AM, Michael Bedward wrote:

> Sigh... my talent for finding the long way of doing things again...
>
> Just tried the simple method with the unedited pom and it worked fine
> for jar and javadocs. Nice.
>
> Many thanks Alex !
>
> Michael
>
> 2009/8/26 Jody Garnett <[hidden email]>:
>> I have not tried it yet; I was going to just drop it in the root  
>> directory
>> of a JTS download and say: mvn install
>>
>> You should find that that other things work as well such as mvn
>> javadoc:javadoc etc...
>>
>> Jody
>>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Tuure Laurinolli
Jody Garnett wrote:
> Cool - so we have a report from the field that it works :-)

'mvn install' in JTS CVS checkout doesn't work for me. The immediate
problem is that it attempts to compile things under src/test without
junit in classpath.

The underlying problem seems to be that the source layout of JTS is not
like the standard Maven layout, and I don't know how Maven can be made
to cope with compiling eveything under src except whatever is under
src/test.


_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
The pom.xml file that Alex provided should of accounted for this. You  
can ask it to cope using exclusions and so on when describing the the  
source and test definitions.

Jody

On 27/08/2009, at 12:12 AM, Tuure Laurinolli wrote:

> Jody Garnett wrote:
>> Cool - so we have a report from the field that it works :-)
>
> 'mvn install' in JTS CVS checkout doesn't work for me. The immediate  
> problem is that it attempts to compile things under src/test without  
> junit in classpath.
>
> The underlying problem seems to be that the source layout of JTS is  
> not like the standard Maven layout, and I don't know how Maven can  
> be made to cope with compiling eveything under src except whatever  
> is under src/test.
>
>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Tuure Laurinolli
Jody Garnett wrote:
> The pom.xml file that Alex provided should of accounted for this. You  
> can ask it to cope using exclusions and so on when describing the the  
> source and test definitions.

My point is that I don't see any point in including the current pom.xml
in CVS, since it seems to be broken.

Regarding exclusions: I see a "sources" element with "source" elements
inside it. The documentation says "source" elements are "source
directories" and that "sources" translates into File[] on Java side of
the POM.

Specifically, no mention of how things could be excluded, or what
exactly it means for a directory to be "source directory" - whether for
example "src/com" could be used instead of "src", or whether that would
mess up the paths where the class files end up in target directories.

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Tuure Laurinolli
Tuure Laurinolli wrote:
> Jody Garnett wrote:
>> The pom.xml file that Alex provided should of accounted for this. You  
>> can ask it to cope using exclusions and so on when describing the the  
>> source and test definitions.
>
> My point is that I don't see any point in including the current pom.xml
> in CVS, since it seems to be broken.

The POM files that this patch produces should produce jts and jtsio JARs
  like those produced by the Ant build. Simply running 'mvn package'
produces jts/target/jts-<version>.jar and
jtsio/target/jtsio-<version>.jar. 'mvn install' installs these with
groupId 'com.vividsolutions.jts' and artifactIds 'jts' and 'jtsio'

The drawback is that there are three POM files, and the values in
build.properties cannot be used - each file must have verison
information in it. The jtsio POM must also contain ora.version. There
doesn't seem to be any way to use the values in build.properties.
Codehaus.org has properties-maven-plugin, but it seems that it cannot be
invoked early enough to be of any use in processing of dependencies or
project version.

I'm not convinved that *these* POM files should be added to CVS, though.
The valuable thing to have would be a POM that can be used to install
JTS JAR under a well-known groupId and artifactId *after* it has been
produced by the Ant build. Considering the limitations of POMs, the POM
file should probably be automatically generated by the Ant build :)

It would also be nice if releases of JTS would be uploaded to the Maven
repository. Currently it is one of the few libraries I need in my builds
that isn't available through the standard repository.

diff -x CVS -Nur jts-clean/jts/pom.xml jts/jts/pom.xml
--- jts-clean/jts/pom.xml 1970-01-01 02:00:00.000000000 +0200
+++ jts/jts/pom.xml 2009-08-27 02:53:12.000000000 +0300
@@ -0,0 +1,50 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>com.vividsolutions.jts</groupId>
+    <artifactId>jts-all</artifactId>
+    <version>1.11</version>
+  </parent>
+
+  <groupId>com.vividsolutions.jts</groupId>
+  <artifactId>jts</artifactId>
+  <packaging>jar</packaging>
+  <version>${project.parent.version}</version>
+
+  <build>
+    <sourceDirectory>../src</sourceDirectory>
+
+    <plugins>
+      <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+  <excludes>
+    <exclude>**/test/**</exclude>
+    <exclude>**/jtstest/**</exclude>
+    <exclude>**/jtsexample/**</exclude>
+    <exclude>**/jtsplugin/**</exclude>
+  </excludes>
+ </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>xerces</groupId>
+      <artifactId>xerces</artifactId>
+      <systemPath>${project.build.sourceDirectory}/../lib/jdom.jar</systemPath>
+      <version>1</version>
+      <scope>system</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>jdom</groupId>
+      <artifactId>jdom</artifactId>
+      <systemPath>${project.build.sourceDirectory}/../lib/jdom.jar</systemPath>
+      <version>1</version>
+      <scope>system</scope>
+    </dependency>
+  </dependencies>
+</project>
diff -x CVS -Nur jts-clean/jtsio/pom.xml jts/jtsio/pom.xml
--- jts-clean/jtsio/pom.xml 1970-01-01 02:00:00.000000000 +0200
+++ jts/jtsio/pom.xml 2009-08-27 03:21:31.000000000 +0300
@@ -0,0 +1,40 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>com.vividsolutions.jts</groupId>
+    <artifactId>jts-all</artifactId>
+    <version>1.11</version>
+  </parent>
+
+  <groupId>com.vividsolutions.jts</groupId>
+  <artifactId>jtsio</artifactId>
+  <packaging>jar</packaging>
+  <version>${project.parent.version}</version>
+
+  <build>
+    <sourceDirectory>src</sourceDirectory>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>com.vividsolutions.jts</groupId>
+      <artifactId>jts</artifactId>
+      <version>${project.parent.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>ora</groupId>
+      <artifactId>ora</artifactId>
+      <systemPath>${project.build.sourceDirectory}/../lib/classes12-09_02_00_04.jar</systemPath>
+      <version>1</version>
+      <scope>system</scope>
+    </dependency>
+    <dependency>
+      <groupId>jsde</groupId>
+      <artifactId>jsde</artifactId>
+      <systemPath>${project.build.sourceDirectory}/../lib/jsde91_sdk.jar</systemPath>
+      <version>1</version>
+      <scope>system</scope>
+    </dependency>
+  </dependencies>
+</project>
diff -x CVS -Nur jts-clean/pom.xml jts/pom.xml
--- jts-clean/pom.xml 1970-01-01 02:00:00.000000000 +0200
+++ jts/pom.xml 2009-08-27 03:21:12.000000000 +0300
@@ -0,0 +1,16 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>com.vividsolutions.jts</groupId>
+  <artifactId>jts-all</artifactId>
+  <packaging>pom</packaging>
+  <version>1.11</version>
+  <name>jts-all</name>
+  <url>http://maven.apache.org</url>
+
+  <modules>
+    <module>jts</module>
+    <module>jtsio</module>
+  </modules>
+</project>

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
In reply to this post by Tuure Laurinolli
Hi Tuure:

We seem to have a misunderstanding; the pom.xml is not intended to  
build trunk - it is intended to build the source download that trunk  
produces.

Jody

On 27/08/2009, at 8:28 AM, Tuure Laurinolli wrote:

> Jody Garnett wrote:
>> The pom.xml file that Alex provided should of accounted for this.  
>> You  can ask it to cope using exclusions and so on when describing  
>> the the  source and test definitions.
>
> My point is that I don't see any point in including the current  
> pom.xml in CVS, since it seems to be broken.
>
> Regarding exclusions: I see a "sources" element with "source"  
> elements inside it. The documentation says "source" elements are  
> "source directories" and that "sources" translates into File[] on  
> Java side of the POM.
>
> Specifically, no mention of how things could be excluded, or what  
> exactly it means for a directory to be "source directory" - whether  
> for example "src/com" could be used instead of "src", or whether  
> that would mess up the paths where the class files end up in target  
> directories.
>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Alex Djioev
Hi Jody and Tuure,

yes, I was aiming this pom.xml for package releases, not for trunk.
I modified build.xml and pom.xml so that when you run "ant makezip"
command it will do the following:

    * ant script will copy pom.xml from /src directory into ${pre-zip}
    * Update @jts.version@ tag in pom.xml file with a value from
      build.properties
    * Include pom.xml into zip file.

Cheers Alex

Jody Garnett wrote:

> Hi Tuure:
>
> We seem to have a misunderstanding; the pom.xml is not intended to  
> build trunk - it is intended to build the source download that trunk  
> produces.
>
> Jody
>
> On 27/08/2009, at 8:28 AM, Tuure Laurinolli wrote:
>
>  
>> Jody Garnett wrote:
>>    
>>> The pom.xml file that Alex provided should of accounted for this.  
>>> You  can ask it to cope using exclusions and so on when describing  
>>> the the  source and test definitions.
>>>      
>> My point is that I don't see any point in including the current  
>> pom.xml in CVS, since it seems to be broken.
>>
>> Regarding exclusions: I see a "sources" element with "source"  
>> elements inside it. The documentation says "source" elements are  
>> "source directories" and that "sources" translates into File[] on  
>> Java side of the POM.
>>
>> Specifically, no mention of how things could be excluded, or what  
>> exactly it means for a directory to be "source directory" - whether  
>> for example "src/com" could be used instead of "src", or whether  
>> that would mess up the paths where the class files end up in target  
>> directories.
>>
>> _______________________________________________
>> jts-devel mailing list
>> [hidden email]
>> http://lists.refractions.net/mailman/listinfo/jts-devel
>>    
>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>  

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel

jts-builds.zip (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

mbedward
Sorry to be vague but I don't understand the purpose of this one...

Michael


2009/8/27 Alex Djioev <[hidden email]>:

> Hi Jody and Tuure,
>
> yes, I was aiming this pom.xml for package releases, not for trunk.
> I modified build.xml and pom.xml so that when you run "ant makezip" command
> it will do the following:
>
>   * ant script will copy pom.xml from /src directory into ${pre-zip}
>   * Update @jts.version@ tag in pom.xml file with a value from
>     build.properties
>   * Include pom.xml into zip file.
>
> Cheers Alex
>
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

Jody Garnett-2
Let me try and explain ... the pom.xml file that Alex asked you to
test works fine (for JTS 1.10). You download JTS 1.10, unzip, and
place the pom.xml file in the directory and you can build.

This last patch that Alex produced is to be committed into CVS; it
will allow martin to include the pom.xml file in future downloads of
JTS.

Martin likes using ant; and has no interesting in replacing the ant
script in his CVS repository. He does not have a ant or maven script
to include in the source download; and Alex has now provided him with
one.

Jody

On Thu, Aug 27, 2009 at 2:45 PM, Michael
Bedward<[hidden email]> wrote:

> Sorry to be vague but I don't understand the purpose of this one...
>
> Michael
>
>
> 2009/8/27 Alex Djioev <[hidden email]>:
>> Hi Jody and Tuure,
>>
>> yes, I was aiming this pom.xml for package releases, not for trunk.
>> I modified build.xml and pom.xml so that when you run "ant makezip" command
>> it will do the following:
>>
>>   * ant script will copy pom.xml from /src directory into ${pre-zip}
>>   * Update @jts.version@ tag in pom.xml file with a value from
>>     build.properties
>>   * Include pom.xml into zip file.
>>
>> Cheers Alex
>>
> _______________________________________________
> jts-devel mailing list
> [hidden email]
> http://lists.refractions.net/mailman/listinfo/jts-devel
>
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CVS JTS 1.10

mbedward
Got it. Thanks Jody !

Michael
_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
12
Loading...