Build Errors on the 1.8 Dev branch
Submitted by Ben_Charlton on Wed, 28/05/2014 - 11:50
TimA,
I just switched over to the 1.8DEV branch, with the intention of merging the changes in, and wanted to check the base build first
however
I am running into maven build errors probably relating to the changes you made in
Refactored JDBC property definitions to better support multiple development trees. The openvpms database is no longer required to perform a release build. removed hibernate.properties for test purposes. JDBC properties are now supplied via system properties, and picked up in the spring context. defined a release profile used to specify the database when performing releases
I get the error - The parameters 'propertyfile' for goal org.openvpms:openvpms-archetype-maven-plugin:1.8-SNAPSHOT:load are missing or invalid -> [Help 1]
I assume the plugin cant find where to get the params for
<dialect>${build.hibernate.dialect}</dialect>
<driver>${build.jdbc.driverClassName}</driver>
<url>${build.jdbc.url}</url>
<username>${build.jdbc.username}</username>
<password>${build.jdbc.password}</password>
I assume that its suppose to get the from the parent pom?
Re: Build Errors on the 1.8 Dev branch
Yes - these are set in the openvpms pom in the default profile:
<profile> <id>default</id> <activation> <property> <name>!skipDefaultProfile</name> <!-- activeByDefault doesn't work if -Prelease is specified --> </property> </activation> <properties> <jdbc.groupId>mysql</jdbc.groupId> <jdbc.artifactId>mysql-connector-java</jdbc.artifactId> <jdbc.version>5.1.5</jdbc.version> <build.jdbc.driverClassName>com.mysql.jdbc.Driver</build.jdbc.driverClassName> <build.hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</build.hibernate.dialect> <build.jdbc.db>openvpms-1.8</build.jdbc.db> <build.jdbc.server>jdbc:mysql://localhost:3306/</build.jdbc.server> <build.jdbc.url>${build.jdbc.server}${build.jdbc.db}</build.jdbc.url> <build.jdbc.username>openvpms</build.jdbc.username> <build.jdbc.password>openvpms</build.jdbc.password> <release.hibernate.dialect>${build.hibernate.dialect}</release.hibernate.dialect> <release.jdbc.driverClassName>${build.jdbc.driverClassName}</release.jdbc.driverClassName> <release.jdbc.url>${build.jdbc.url}</release.jdbc.url> <release.jdbc.username>${build.jdbc.username}</release.jdbc.username> <release.jdbc.password>${build.jdbc.password}</release.jdbc.password> </properties> </profile>
You should pick this up automatically. I haven't tried with maven 3.x but it works in 2.2.1.
Re: Build Errors on the 1.8 Dev branch
I'm working with maven 3.0.5 which is bundled with Netbeans...I'll downgrade and see if it makes a difference.
Up to this change the build was fine with 3.0.5.
with 2.2.1
BUILD ERROR
------------------------------------------------------------------------
One or more required plugin parameters are invalid/missing for 'openvpms-archetype:load'
[0] Inside the definition for plugin 'openvpms-archetype-maven-plugin' specify the following:
<configuration>
...
<propertyfile>VALUE</propertyfile>
</configuration>.
Re: Build Errors on the 1.8 Dev branch
It seems that its erroring because the archetype maven plugin has no file propertyfile to drag its params from.
I couldnt see anywhere in the archetype build process that file gets created.
Re: Build Errors on the 1.8 Dev branch
You need to use the maven plugins from the 1.8-dev branch.
Re: Build Errors on the 1.8 Dev branch
That would be it...didnt merge master to to remote-1.8....