Showing posts with label Maven. Show all posts
Showing posts with label Maven. Show all posts

Wednesday, November 10, 2010

Subject: Collect JavaDoc (Doclet?) Annotations w/ Maven - by: Freddixx

Hi,

I am working on a project assignment for my university class and I'm pretty much stuck with a problem. I'm entirely new to this so I will try to explain the problem as good as I can.

Our docent gave us a framework to handle exceptions. In short the annotation works as following:

/** The username {0} is not valid. Please choose another one */
public static class UsernameExistsException extends ExceptionFrameWork{(...)}

So what I'd basically like to do is to make Maven collect these annotations before running. I have absolutely no clue how that works.

Any suggestions? Googling didn't help me very much so far.

Thanks in advance for any help.


View the original article here

Wednesday, November 3, 2010

CC + Maven -> Interproject delivery issues - by: renam00

Hi,
We are using Clearcase and we migrate our big project to Maven. We are facing a problem when doing inter project deliveries.
We start a development CC project where most development occurs. We have pom.xml that holds versions of our dependencies to our own sub-projects (these versions are maven/pom version).
At some point, we deliver code in production. So we create another CC project. So now we have our main CC project(MAIN) and a ne wone base on it that holds production code (PROD).
The PROD CC project has a fix version (in the pom.xml). For example 1.1.0. The MAIN branch continue to evolve (version 1.2.0, 1.3.0, ...). So the "same" pom.xml in both files are different.
The problem occurs when we want to provide a patch (or a feature) in production: we modify the PROD CC project and we ship it in production (with an updated version: 1.1.1). Then we want to do an inter project delivery from PROD to MAIN, to avoid writing the code twice. When we do so, the pom.xml file from DEV got overridden with those from PROD with older version dependencies and artifact versions.
We tried to use profiles and environment variable to solve this, but with no success. If anyone when through this issues and found a clever solution ?
Thanks for your help,
-Martin
View the original article here