Hi There
Does anyone have any detailed instructions on how to setup a custom overlay project using maven for KC 3.1.1?
We’ve tried getting it set up, but have run into issues where the base project (kc_project) isn’t building a war and jar and/or putting them into the local maven repo.
We’re not experts with maven so any help/pom files/documentation would be greatly appreciated.
TIA
Will Warren
Sr. Application Developer
Brock University | Information Technology Services
500 Glenridge Ave. | St. Catharines, ON L2S 3A1
brocku.ca | 905 688 5550 x5105
Confidentiality Notice: This e-mail, including any attachments, may contain confidential or privileged information. If you are not the intended recipient, please notify
the sender by e-mail and immediately delete this message and its contents. Thank you.
Damien
We not only build Solutions, We build Relationships. | Damien Eversmann Senior Software Architect
2275 Rio Bonito Way Suite 210 San Diego, CA 92108
t. 916.469-5282 f. 619.298.4842 |
KC dev team: A lot of people are using the wars this way. Please start
publishing release wars to the Kuali Maven repository. I just dug up an
email that I sent in November 2008 asking for this, and I was told you
would look into it.
Ken
On 02/28/2012 07:53 AM, Will Warren wrote:
> Hi There
>
> Does anyone have any detailed instructions on how to setup a custom
> overlay project using maven for KC 3.1.1?
>
> We�ve tried getting it set up, but have run into issues where the base
> project (kc_project) isn�t building a war and jar and/or putting them
> into the local maven repo.
>
> We�re not experts with maven so any help/pom files/documentation would
> be greatly appreciated.
>
> TIA
>
> ------------------------------------------------------------------------
>
> *Will Warren*
Will,
We’ve done that here at Cornell. I don’t necessarily have detailed instructions on how we did it, but I’ll try to provide some details that may be helpful. I’ve attached our pom file for reference. We’ve installed the kc-ptd.war into our local maven repository, thus this dependency:
<dependency>
<groupId>org.kuali.kra</groupId>
<artifactId>kc_project</artifactId>
<version>3.1.1</version>
<type>war</type>
</dependency>
You can ignore the cynergy dependency (artifactId: cynergy-customizations) in the pom, this is for our own local Rice customizations.
We haven’t done any local customizations in our project yet, but I did include the kc-config-build.xml in our local overlay project (in \src\main\resources\META-INF), so we can pass our own build.environment (as opposed to ptd in the kc-ptd.war) and build.version parameters when starting the app.
While they are not specific to setting up the war overlay per se, I have written up instructions on setting up a local Cornell development environment, which have some related information that might also be useful:
https://cornell.jira.com/wiki/x/UABS
Hope this helps,
Bryan
--
Bryan G. Hutchinson
CIT Community Applications
Cornell University
395 Pine Tree Road, Suite #102
Ithaca, NY 14850
Work: 607-254-8959
Cell: 607-227-7271
bryan.hu...@cornell.edu
From: Will Warren
[mailto:wwa...@brocku.ca]
Sent: Tuesday, February 28, 2012 10:54 AM
To: kc.techni...@kuali.org
Subject: [kuali] Maven Overlay Docs
Hi There
Hi Will,
Here at BU, we have completed ‘almost’. I have promised to put the instructions but was really busy with the upgrade. I will do that soon.
What errors are you getting?
Here is the basics:
1- Download kc_project-3.1.1 from the foundation’s SVN and build the war and jar
> mvn -Dmaven.test.skip=true install
> mvn jar:jar
> mvn install:install-file -Dpackaging=jar -DgroupId=org.kuali.kra -DartifactId=kc_project -Dversion=3.1.1 -DgeneratePom=true -Dfile=target/kc_project-3.1.1.jar
2- Create new maven project and add the following in the pom
<dependency>
<groupId>org.kuali.kra</groupId>
<artifactId>kc_project</artifactId>
<version>3.1.1</version>
<type>war</type>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.kuali.kra</groupId>
<artifactId>kc_project</artifactId>
<version>3.1.1</version>
<scope>provided</scope>
<type>jar</type>
</dependency>
Thanks,
Mohammed