i’m sure a lot of this kind of question has already been asked but it just that i’m a novice and wanted to know how to go about basic things
without problems.
I’m using windows 7 with springsource 2.3.2.RELEASE (based on eclipse 3.5 i think) with an external maven 2.2.1 and using eclipse ant both added to environment variable
I’ve checked out liquibase-core 1.9.5 because i’m using it and was interested in overall use.
building with mvn clean install gives me an empty jar in my repository. so i had the look at the pom and realise there are 2 poms pom.xml and pom.base.xml.I don’t really know
which is necessary so i ended up copy the base one to the normal pom. but still that didn’t got me further.with the mvn package command too i had no luck.
so if finally liquibase is built using ant.and for some reason the command line wasn’t working how do you produce a working jar from eclipse build?
If somebody can give a simple step by step process i’ld be very grateful.thanks for reading and keep up the good work. ;D
Building 1.9.5 liquibase maven artifact from the sources is tricky. You should go the $LB_19_HOME/core/src folder and subsequently calls
ant all
ant maven-snapshot
Instead I'd suggest you use current trunk snapshot 2.0-RC6-SNAPSHOT, see a short instruction to build from maven command line http://liquibase.org/forum/index.php?topic=672.0
In Eclipse I’m building liquibase artifacts having M2Eclipse plugin installed. I’m running JUnits test in the Eclipse pretty fine as well.
Thanks for the quick reply.i dit ant all and i have this
D:\WORK\eclipseworkspace\liquibase-migrator\src>ant all
Buildfile: build.xml
prepare:
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-test-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-dbtest-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\package\liquibase-1.9.5
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\package\liquibase-1.9.5-src
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\release
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\release\site
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\lib-deps
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports\api
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports\doxygen
prepare:
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-test
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-dbtest
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-test-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-dbtest-14
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\package\liquibase-1.9.5
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\package\liquibase-1.9.5-src
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\release
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\release\site
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\lib-deps
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports\api
[mkdir] Created dir: D:\WORK\eclipseworkspace\liquibase-migrator\build-reports\doxygen
prepare:
check-jvm:
BUILD FAILED
D:\WORK\eclipseworkspace\liquibase-migrator\src\build.xml:645: The following error occurred while executing this line:
D:\WORK\eclipseworkspace\liquibase-migrator\src\build.xml:103: Wrong JVM - 1.6
Total time: 1 second
i’m using java 1.6.0_21 is it ok to change the version number in the build properties?