Re: Apache's Maven repository missing commons-io, most versions
sebb wrote: > On 30 March 2017 at 16:29, Matt Sicker wrote: >> A lot of old artifacts uses the groupId == artifactId convention. I don't >> know when that changed to using org.apache.foo as the groupId, but I'm >> guessing it was sometime around the advent of Maven Central. > > Possibly. > > Commons components are gradually moving from commons-abc to > org.apache.commons.abc. > However that can only be done if the Java package name is also changed. > As that is disruptive, it's only done when an API breakage is essential. > > https://wiki.apache.org/commons/MavenAndClasspath And for commons-io we had one wrongly published version (the one you were referencing initially). After that we finalized the rule above. Cheers, Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Apache's Maven repository missing commons-io, most versions
On 30 March 2017 at 16:29, Matt Sicker wrote: > A lot of old artifacts uses the groupId == artifactId convention. I don't > know when that changed to using org.apache.foo as the groupId, but I'm > guessing it was sometime around the advent of Maven Central. Possibly. Commons components are gradually moving from commons-abc to org.apache.commons.abc. However that can only be done if the Java package name is also changed. As that is disruptive, it's only done when an API breakage is essential. https://wiki.apache.org/commons/MavenAndClasspath > On 30 March 2017 at 10:26, Russell Bateman wrote: > >> Wow. I believe the problem is that I'm a blind idiot. I had been trying to >> use: >> >> >> *org.apache.commons* >> commons-io >> 2.5 >> >> >> The groupIdwas wrong and I just wasn't seeing it. (In my defence, there >> are some Apache groupIds that include "apache" in path elements, like >> Apache /commons-csv/, I'm used to looking at.) >> >> Many thanks to sebb for his patience. >> >> >> >> On 03/30/2017 08:35 AM, Dave Newton wrote: >> >>> On Thu, Mar 30, 2017 at 10:27 AM, sebb wrote: >>> On 30 March 2017 at 15:09, Russell Bateman wrote: commons-io commons-io 2.5 Can you give me a Maven replacement for what's at: > https://mvnrepository.com/artifact/commons-io/commons-io/2.5 > > I don't understand why this page exists since it clearly doesn't lead to > fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot > and > have for a long time, but I'm completely stumped by this issue. > This worked fine for me; I guess I'm not understanding the issue. >>> >>> Dave >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org >>> For additional commands, e-mail: user-h...@commons.apache.org >>> >>> >> > > > -- > Matt Sicker - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Apache's Maven repository missing commons-io, most versions
A lot of old artifacts uses the groupId == artifactId convention. I don't know when that changed to using org.apache.foo as the groupId, but I'm guessing it was sometime around the advent of Maven Central. On 30 March 2017 at 10:26, Russell Bateman wrote: > Wow. I believe the problem is that I'm a blind idiot. I had been trying to > use: > > > *org.apache.commons* > commons-io > 2.5 > > > The groupIdwas wrong and I just wasn't seeing it. (In my defence, there > are some Apache groupIds that include "apache" in path elements, like > Apache /commons-csv/, I'm used to looking at.) > > Many thanks to sebb for his patience. > > > > On 03/30/2017 08:35 AM, Dave Newton wrote: > >> On Thu, Mar 30, 2017 at 10:27 AM, sebb wrote: >> >>> On 30 March 2017 at 15:09, Russell Bateman >>> wrote: >>> >>> commons-io >>> commons-io >>> 2.5 >>> >>> >>> Can you give me a Maven replacement for what's at: https://mvnrepository.com/artifact/commons-io/commons-io/2.5 I don't understand why this page exists since it clearly doesn't lead to fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot and have for a long time, but I'm completely stumped by this issue. >>> This worked fine for me; I guess I'm not understanding the issue. >> >> Dave >> >> - >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org >> For additional commands, e-mail: user-h...@commons.apache.org >> >> > -- Matt Sicker
Re: Apache's Maven repository missing commons-io, most versions
Wow. I believe the problem is that I'm a blind idiot. I had been trying to use: *org.apache.commons* commons-io 2.5 The groupIdwas wrong and I just wasn't seeing it. (In my defence, there are some Apache groupIds that include "apache" in path elements, like Apache /commons-csv/, I'm used to looking at.) Many thanks to sebb for his patience. On 03/30/2017 08:35 AM, Dave Newton wrote: On Thu, Mar 30, 2017 at 10:27 AM, sebb wrote: On 30 March 2017 at 15:09, Russell Bateman wrote: commons-io commons-io 2.5 Can you give me a Maven replacement for what's at: https://mvnrepository.com/artifact/commons-io/commons-io/2.5 I don't understand why this page exists since it clearly doesn't lead to fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot and have for a long time, but I'm completely stumped by this issue. This worked fine for me; I guess I'm not understanding the issue. Dave - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Apache's Maven repository missing commons-io, most versions
On Thu, Mar 30, 2017 at 10:27 AM, sebb wrote: > On 30 March 2017 at 15:09, Russell Bateman wrote: > > commons-io > commons-io > 2.5 > > > > Can you give me a Maven replacement for what's at: > > https://mvnrepository.com/artifact/commons-io/commons-io/2.5 > > > > I don't understand why this page exists since it clearly doesn't lead to > > fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot and > > have for a long time, but I'm completely stumped by this issue. This worked fine for me; I guess I'm not understanding the issue. Dave - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Apache's Maven repository missing commons-io, most versions
On 30 March 2017 at 15:09, Russell Bateman wrote: > Sebb, > > Thanks for responding, but I probably need some help here making your > suggestion(s) work. To begin with, > > http://repo.maven.org/maven2/commons-io/commons-io/ > > yields nothing in the browser or using curl: > > ~/Downloads $ curl http://repo.maven.org/maven2/commons-io/commons-io/ > curl: (6) Could not resolve host: repo.maven.org Sorry, that should be http://repo.maven.apache.org/maven2/commons-io/commons-io/ or http://repo1.maven.org/maven2/commons-io/commons-io/ seems to work But you should not need the URL if you are using Maven to build. > Do I need something special in /~/.m2/settings.xml/? (I don't have one.) or > in my /pom.xml/ file(s)? commons-io commons-io 2.5 > If it's only that the groupIdhas changed, what is > it? As above. [It's not really changed - the one you mention at the start of this thread is not currently used.] > Can you give me a Maven replacement for what's at: > https://mvnrepository.com/artifact/commons-io/commons-io/2.5 > > I don't understand why this page exists since it clearly doesn't lead to > fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot and > have for a long time, but I'm completely stumped by this issue. You just need to include the correct dependency as above. > Thanks. > > > > > > On 03/29/2017 06:24 PM, sebb wrote: >> >> On 30 March 2017 at 01:20, sebb wrote: >>> >>> Try >>> >>> http://repo.maven.org/maven2/commons-io/commons-io/ >>> >>> IO used to have a different group id. >> >> I mean, still has a different gid. >> >> The entry under >> https://repo.maven.apache.org/maven2/org/apache/commons/commons-io/1.3.2 >> >> is a relocation pom. Probably that version was accidentally released >> with the wrong gid. >> >>> On 30 March 2017 at 00:31, Russell Bateman wrote: As I attempt to build, I find https://repo.maven.apache.org/maven2/org/apache/commons/commons-io/2.5/commons-io-2.5.jar to yield a 404. When I go look there, only 1.3.2 exists and even that, though there are JARs galore, has a /pom.xml/ that basically refers Maven to Maven Central. Must I then put something into my /pom.xml/ that deters Maven from ever looking for anything in /repo.maven.apache.org/? It seems strange that Apache would offer a Maven repository that's missing an important library (for me, at least). Until now, I haven't had this experience with other Apache Commons libraries. Please advise, thank you! Russ >> >> - >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org >> For additional commands, e-mail: user-h...@commons.apache.org >> > - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: Apache's Maven repository missing commons-io, most versions
Sebb, Thanks for responding, but I probably need some help here making your suggestion(s) work. To begin with, http://repo.maven.org/maven2/commons-io/commons-io/ yields nothing in the browser or using curl: ~/Downloads $ curl http://repo.maven.org/maven2/commons-io/commons-io/ curl: (6) Could not resolve host: repo.maven.org Do I need something special in /~/.m2/settings.xml/? (I don't have one.) or in my /pom.xml/ file(s)? If it's only that the groupIdhas changed, what is it? Can you give me a Maven replacement for what's at: https://mvnrepository.com/artifact/commons-io/commons-io/2.5 I don't understand why this page exists since it clearly doesn't lead to fulfilling my build's need for /commons-io-2.5.jar/. I use Maven a lot and have for a long time, but I'm completely stumped by this issue. Thanks. On 03/29/2017 06:24 PM, sebb wrote: On 30 March 2017 at 01:20, sebb wrote: Try http://repo.maven.org/maven2/commons-io/commons-io/ IO used to have a different group id. I mean, still has a different gid. The entry under https://repo.maven.apache.org/maven2/org/apache/commons/commons-io/1.3.2 is a relocation pom. Probably that version was accidentally released with the wrong gid. On 30 March 2017 at 00:31, Russell Bateman wrote: As I attempt to build, I find https://repo.maven.apache.org/maven2/org/apache/commons/commons-io/2.5/commons-io-2.5.jar to yield a 404. When I go look there, only 1.3.2 exists and even that, though there are JARs galore, has a /pom.xml/ that basically refers Maven to Maven Central. Must I then put something into my /pom.xml/ that deters Maven from ever looking for anything in /repo.maven.apache.org/? It seems strange that Apache would offer a Maven repository that's missing an important library (for me, at least). Until now, I haven't had this experience with other Apache Commons libraries. Please advise, thank you! Russ - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Fwd: imaging
Dear sir, I am currently using the Imaging Apache Common library in order to create GeoTIFF images. I succeeded to create the image and write the metadata in it (ModelTiepointTag and ModelPixelScaleTag) but they seem not to be recognized by GDAL or any other GIS Software. As a result my output image is not georeferenced. I was not able to solve that problem so far. I attach to this mail the part of the script where I create the file. Could you please tell me where is my mistake? Here is the gdalinfo on the output image : Driver: GTiff/GeoTIFF > Files: \output.tif > Size is 2340, 1654 > Coordinate System is `' > Metadata: > TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) > TIFFTAG_XRESOLUTION=72 > TIFFTAG_YRESOLUTION=72 > Image Structure Metadata: > COMPRESSION=LZW > INTERLEAVE=PIXEL > Corner Coordinates: > Upper Left (0.0,0.0) > Lower Left (0.0, 1654.0) > Upper Right ( 2340.0,0.0) > Lower Right ( 2340.0, 1654.0) > Center ( 1170.0, 827.0) > Band 1 Block=2340x1 Type=Byte, ColorInterp=Red > Band 2 Block=2340x1 Type=Byte, ColorInterp=Green > Band 3 Block=2340x1 Type=Byte, ColorInterp=Blue Best regards -- *Eric DAVID* 06 83 22 61 96 private void writeGeoTiff(File imgFile, OutputImageFactory imageFactory) { try { // Create the geoMetadata double[] modelTiePoint = new double[6]; modelTiePoint[3] = imageFactory.getPlan().getxOri(); modelTiePoint[4] = imageFactory.getPlan().getyOri(); double[] modelPixelScale = new double[3]; modelPixelScale[0] = 1 / imageFactory.getScaleX(); modelPixelScale[1] = 1 / imageFactory.getScaleY(); byte[] imageBytes = Imaging.writeImageToBytes(imageFactory.getOutputImage(), ImageFormats.TIFF, new HashMap<>()); TiffImageMetadata metadata = (TiffImageMetadata) Imaging.getMetadata(imageBytes); TiffOutputSet outputSet = null; if (null != metadata) { outputSet = metadata.getOutputSet(); } if (null == outputSet) { outputSet = new TiffOutputSet(); } outputSet.getOrCreateExifDirectory().add(GeoTiffTagConstants.EXIF_TAG_MODEL_PIXEL_SCALE_TAG, modelPixelScale); outputSet.getOrCreateExifDirectory().add(GeoTiffTagConstants.EXIF_TAG_MODEL_TIEPOINT_TAG, modelTiePoint); Map params = new HashMap<>(); params.put(ImagingConstants.PARAM_KEY_EXIF, outputSet); Imaging.writeImage(imageFactory.getOutputImage(), imgFile, ImageFormats.TIFF, params); } catch (IOException ioe) { LoggerManager.debug(ioe); } catch (ImageWriteException iwe) { LoggerManager.debug(iwe); } catch (ImageReadException ire) { LoggerManager.debug(ire); } } - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org