On Sat, Mar 23, 2019 at 4:12 PM Artificial Life <[email protected]> wrote:

>
> On Saturday, March 23, 2019 at 6:41:50 PM UTC-4, Tatu Saloranta wrote:
>>
>> On Fri, Mar 22, 2019 at 9:47 AM Artificial Life <[email protected]> wrote:
>> >
>> > Ok, I'm apparently hopeless in this regard.  I came from the ancient days 
>> > of sccs/rcs/pvcs and then later cvs, and ignored this git business until 
>> > now and it has me completely mystified.
>> >
>> > I'm trying to download a copy of 2.9.8 (Jackson-JSON) but the closest I 
>> > got was a download that included a src directory that had this weird .in 
>> > file extension:
>> >
>> > ./src/com/fasterxml/jackson/core/json/PackageVersion.java.in
>> >
>> > PackageVersion obviously wasn't found by the rest of the sources.
>> >
>> > Is  2.9.8 in some kind of git "patch only" format?  Easiest way to extract 
>> > 2.9.8 (or do I have to extract 2.9 first?)
>>
>> No, it is the full source but `PackageVersion.java` is actually
>> generated by Maven replacer plugin, to include version information
>> from `pom.xml` during build.
>>
>> So you do need to do `mvn compile` locally after cloning to get that
>> source file to be available.
>>
>> I hope this helps,
>>
>> -+ Tatu +-
>>
>> ps. I am open to improvement ideas on how this could be handled
>> differently -- particular challenge is to ensure it gets properly
>> included during release process (which uses Maven release plug-in and
>> steps from `x.y.z-SNAPSHOT` to `x.y.z` to release, then
>> `x.y.z+1-SNAPSHOT`, so manual invocation of generation won't work)
>
>
> I would suspect that if you keep it conceptually tied to Mavin you might 
> accidentally encourage others to supply just the class files.  I did download 
> just the class files for your core, but haven't used them yet because I have 
> no clear way of verifying their integrity.

As README indicates, the proper way is to get jars from Maven Central,
and you can have a look at file structure here:

https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/

although commonly build tools -- need not be Maven, as Gradle, Ant
(via Ivy) and so on all use Maven artifact repositories as deo fact
standard. In these cases you only need to indicate 3 pieces of
information for things you depend on:

* group id (`com.fasterxml.jackson.core`)
* artifact (jar) id (`jackson-core`)
* version (`2.9.8`)

and build tools and IDEs (Idea / Eclipse / NetBeans) will find what is needed.

There are other interfaces; Maven Repository is quite nice in finding
versions of public packages, so `jackson-core` would be found here:

https://mvnrepository.com/artifact/com.fasterxml.jackson.

> Being new to mavin (and git), I'll just follow your advice (cone + mvn 
> compile) and see what happens.  Thanks for your help.
>

That'll work. But to get jars there is no need to clone the repository or build.

-+ Tatu +-

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to