Nov11 / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Provide maven pom.xml #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In kryo-serializers I just wanted to reference the latest kryo from trunk 
without just referencing the projects 
in eclipse :-)

For this I created a very simple pom.xml (for maven2) that builds kryo, see the 
file attached.
As version I chose 1.1-SNAPSHOT as a wild guess. Stuff like scm info, license, 
mailing list etc. is left out...

When you run "$ mvn install" maven tells you that neither minlog nor reflectasm 
is available in public repos 
and that you need to install them. So just do
$ mvn install:install-file -DgroupId=com.esotericsoftware 
-DartifactId=reflectasm -Dversion=0.8 -
Dpackaging=jar -Dfile=lib/reflectasm-0.8.jar
and
$ mvn install:install-file -DgroupId=com.esotericsoftware -DartifactId=minlog 
-Dversion=1.2 -
Dpackaging=jar -Dfile=lib/minlog-1.2.jar
and afterwards again
$ mvn install

Then everything's fine.

It would be great to find this or s.th. similar in kryo. :)

Original issue reported on code.google.com by martin.grotzke on 5 Apr 2010 at 7:17

Attachments:

GoogleCodeExporter commented 8 years ago
Sorry, wanted to submit this as an enhancement not a defect...

Original comment by martin.grotzke on 5 Apr 2010 at 7:18

GoogleCodeExporter commented 8 years ago

Original comment by nathan.s...@gmail.com on 5 Apr 2010 at 7:19

GoogleCodeExporter commented 8 years ago
I've checked in the pom.xml file, r93. Thanks!

Original comment by nathan.s...@gmail.com on 5 Apr 2010 at 7:22

GoogleCodeExporter commented 8 years ago
Uuups, I just noticed that the jar did not contain any classes - I missed that 
the directory structure does not follow mvn 
conventions. Also tests were not executed. This is fixed now, the updated 
pom.xml is attached.

Original comment by martin.grotzke on 5 Apr 2010 at 7:41

Attachments:

GoogleCodeExporter commented 8 years ago
Reeeeally fast btw :-)

Original comment by martin.grotzke on 5 Apr 2010 at 7:41

GoogleCodeExporter commented 8 years ago
Updated, r94.

Original comment by nathan.s...@gmail.com on 5 Apr 2010 at 8:18

GoogleCodeExporter commented 8 years ago
Great! Btw, I just learned one can run
$ mvn install -DperformRelease=true
to get source jar and apidocs. Although I prefer buildr this is not too bad.

Original comment by martin.grotzke on 5 Apr 2010 at 8:28

GoogleCodeExporter commented 8 years ago
I looked at Maven 1 a long time ago. The "jelly" XML stuff was garbage. I 
looked at
Maven 2 when it was first released. I like some things about it. Having a POM is
great. However, overall it seems too complicated. I don't need an artifact
repository. Give me a directory full of JARs any day! I suppose Maven is better 
than
Ant (which is an absolute abomination), but I don't feel compelled to 
personally use
it for my projects. I don't mind supporting it for others though (as long as the
level of effort is reasonable).

Original comment by nathan.s...@gmail.com on 5 Apr 2010 at 8:49