Overlay build process

6 messages Options
Embed this post
Permalink
Bryan Wooten

Overlay build process

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hopefully this is quick and easy question.

 

I can successfully build a cas.war using the overlay method describe on the wiki page.

 

I now need to add library jar file and a configuration file for my customizations.  I am not sure what I need to do.

 

I assuming I need to add a dependency to my pom.xml file, so this probably a more of maven question?

 

Thanks,

 

Bryan

-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
Marvin Addison

Re: Overlay build process

Reply Threaded More More options
Print post
Permalink
> I now need to add library jar file and a configuration file for my  
> customizations.  I am not sure what I need to do.

You need to package your library jar in way that you could include it  
as a Maven dependency.  Although it's easiest to have a Mavenized  
build process, you don't have to.  For any jar, you can do the  
following:

mvn install:install-file \
   -Dfile=path/to/your.jar \
   -DgroupId=your.groupId \
   -DartifactId=your-artifactId \
   -Dversion=version \
   -Dpackaging=jar \
   -DgeneratePom=true

This will install the jar into the local repository in a location for  
which you can add a dependency in your maven war overlay:

     <dependency>
       <groupId>your.groupId</groupId>
       <artifactId>your-artifactId</artifactId>
       <version>version</version>
     </dependency>

Hope that helps,
M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
Bryan Wooten

RE: Overlay build process

Reply Threaded More More options
Print post
Permalink
Thanks Marvin, I was wading through the maven docs when your email arrived.

Worked like a charm.

-----Original Message-----
From: Marvin S. Addison [mailto:[hidden email]]
Sent: Tuesday, July 07, 2009 1:23 PM
To: [hidden email]
Subject: Re: [cas-dev] Overlay build process

> I now need to add library jar file and a configuration file for my  
> customizations.  I am not sure what I need to do.

You need to package your library jar in way that you could include it  
as a Maven dependency.  Although it's easiest to have a Mavenized  
build process, you don't have to.  For any jar, you can do the  
following:

mvn install:install-file \
   -Dfile=path/to/your.jar \
   -DgroupId=your.groupId \
   -DartifactId=your-artifactId \
   -Dversion=version \
   -Dpackaging=jar \
   -DgeneratePom=true

This will install the jar into the local repository in a location for  
which you can add a dependency in your maven war overlay:

     <dependency>
       <groupId>your.groupId</groupId>
       <artifactId>your-artifactId</artifactId>
       <version>version</version>
     </dependency>

Hope that helps,
M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

Scott Battaglia-2

Re: Overlay build process

Reply Threaded More More options
Print post
Permalink
If you guys adopt Maven2 for more than just CAS (which I'm assuming wasn't your choice, its just the fact that CAS uses it), you should consider using a Maven2 Repository Manager such as Nexus [http://nexus.sonatype.org/] which would make these artifacts available to all the developers.

Again, if its just you building CAS, its probably not worth it.  But if you're integrating Maven2 into more of your build/development process, its something to consider.

Cheers,
Scott


On Tue, Jul 7, 2009 at 5:10 PM, Bryan Wooten <[hidden email]> wrote:
Thanks Marvin, I was wading through the maven docs when your email arrived.

Worked like a charm.

-----Original Message-----
From: Marvin S. Addison [mailto:[hidden email]]
Sent: Tuesday, July 07, 2009 1:23 PM
To: [hidden email]
Subject: Re: [cas-dev] Overlay build process

> I now need to add library jar file and a configuration file for my
> customizations.  I am not sure what I need to do.

You need to package your library jar in way that you could include it
as a Maven dependency.  Although it's easiest to have a Mavenized
build process, you don't have to.  For any jar, you can do the
following:

mvn install:install-file \
  -Dfile=path/to/your.jar \
  -DgroupId=your.groupId \
  -DartifactId=your-artifactId \
  -Dversion=version \
  -Dpackaging=jar \
  -DgeneratePom=true

This will install the jar into the local repository in a location for
which you can add a dependency in your maven war overlay:

    <dependency>
      <groupId>your.groupId</groupId>
      <artifactId>your-artifactId</artifactId>
      <version>version</version>
    </dependency>

Hope that helps,
M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev


-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
Bryan Wooten

RE: Overlay build process

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Thanks for the tip.

 

We have been using ant (default with Netbeans), but we are also deploying other open source projects and they too are using Maven and Elcipse.  So now I have official approval to install and use it. (Although I had already secretly installed eclipse, hehe).

 

Maintaining the growing list of 3rd party and open source jar files has been problematic.  So far I really like the Maven Repository and how it handles dependencies.

 

Now if I can just convince the powers that be to dump CVS…

 

From: Scott Battaglia [mailto:[hidden email]]
Sent: Tuesday, July 07, 2009 7:17 PM
To: [hidden email]
Subject: Re: [cas-dev] Overlay build process

 

If you guys adopt Maven2 for more than just CAS (which I'm assuming wasn't your choice, its just the fact that CAS uses it), you should consider using a Maven2 Repository Manager such as Nexus [http://nexus.sonatype.org/] which would make these artifacts available to all the developers.

Again, if its just you building CAS, its probably not worth it.  But if you're integrating Maven2 into more of your build/development process, its something to consider.

Cheers,
Scott

On Tue, Jul 7, 2009 at 5:10 PM, Bryan Wooten <[hidden email]> wrote:

Thanks Marvin, I was wading through the maven docs when your email arrived.

Worked like a charm.


-----Original Message-----
From: Marvin S. Addison [mailto:[hidden email]]
Sent: Tuesday, July 07, 2009 1:23 PM
To: [hidden email]
Subject: Re: [cas-dev] Overlay build process

> I now need to add library jar file and a configuration file for my
> customizations.  I am not sure what I need to do.

You need to package your library jar in way that you could include it
as a Maven dependency.  Although it's easiest to have a Mavenized
build process, you don't have to.  For any jar, you can do the
following:

mvn install:install-file \
  -Dfile=path/to/your.jar \
  -DgroupId=your.groupId \
  -DartifactId=your-artifactId \
  -Dversion=version \
  -Dpackaging=jar \
  -DgeneratePom=true

This will install the jar into the local repository in a location for
which you can add a dependency in your maven war overlay:

    <dependency>
      <groupId>your.groupId</groupId>
      <artifactId>your-artifactId</artifactId>
      <version>version</version>
    </dependency>

Hope that helps,
M

--

You are currently subscribed to [hidden email] as: [hidden email]

To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

 

-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
Jason Shao (CampusEAI Consortium)

Re: Overlay build process

Reply Threaded More More options
Print post
Permalink
In reply to this post by Scott Battaglia-2
Some javascript/style in this post has been disabled (why?)
Re: [cas-dev] Overlay build process Second the recommendation on installing a local Maven repo – we’ve also used Nexus, though haven’t looked at the others (artifactory, etc.). The repo saved us massive amounts of environment setup headaches when onboarding new devs, or refreshing envs, etc.

Jason

On 7/7/09 9:16 PM, "Scott Battaglia" <scott.battaglia@...> wrote:

If you guys adopt Maven2 for more than just CAS (which I'm assuming wasn't your choice, its just the fact that CAS uses it), you should consider using a Maven2 Repository Manager such as Nexus [http://nexus.sonatype.org/] which would make these artifacts available to all the developers.

Again, if its just you building CAS, its probably not worth it.  But if you're integrating Maven2 into more of your build/development process, its something to consider.

Cheers,
Scott


On Tue, Jul 7, 2009 at 5:10 PM, Bryan Wooten <bwooten@...> wrote:
Thanks Marvin, I was wading through the maven docs when your email arrived.

Worked like a charm.

-----Original Message-----
From: Marvin S. Addison [[hidden email]]
Sent: Tuesday, July 07, 2009 1:23 PM
To: cas-dev@...
Subject: Re: [cas-dev] Overlay build process

> I now need to add library jar file and a configuration file for my
> customizations.  I am not sure what I need to do.

You need to package your library jar in way that you could include it
as a Maven dependency.  Although it's easiest to have a Mavenized
build process, you don't have to.  For any jar, you can do the
following:

mvn install:install-file \
   -Dfile=path/to/your.jar \
   -DgroupId=your.groupId \
   -DartifactId=your-artifactId \
   -Dversion=version \
   -Dpackaging=jar \
   -DgeneratePom=true

This will install the jar into the local repository in a location for
which you can add a dependency in your maven war overlay:

     <dependency>
       <groupId>your.groupId</groupId>
       <artifactId>your-artifactId</artifactId>
       <version>version</version>
     </dependency>

Hope that helps,
M

--
You are currently subscribed to cas-dev@... as: bwooten@...
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev

--
You are currently subscribed to cas-dev@... as: scott.battaglia@...
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev


--
Jason Shao
Director of Product Development
CampusEAI Consortium
1940 East 6th Street, 11th Floor
Cleveland, OH 44114
Tel: 216.589.9626x249
Fax: 216.589.9639


Your input is important to improve upon our continuous efforts to service you better. Please e-mail my manager at [hidden email] with any feedback.

CONFIDENTIALITY NOTICE:
This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of CampusEAI Consortium or the Open Student Television Network. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. Warning: Although precautions have been taken to make sure no viruses are present in this e-mail, the companies cannot accept responsibility for any loss or damage that arise from the use of this e-mail or attachments.
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev