Leroy J Brown

Ranch Hand
+ Follow
since Dec 02, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leroy J Brown

You're just cooler than me. What can I say?


ADHD + CSCI
14 years ago
This is definitely off topic. I'm not interested in changing or in any position to change the project development/release model that my company uses. My questions have been regarding maintaining an artifact repository and what snapshots are used for in Maven. I think they've been answered as well as they will be.

Thanks for the help with that.

On a side note, I'd appreciate it if people would not use ADHD as a pejorative term. I find it offensive as skilled professional with pronounced ADHD.
14 years ago
Our system is semi-agile in that sense. We don't really make distinctions between development builds and production builds while the build is occurring, we just build and test until it we're happy with it and then deploy the builds that have been signed off on by their respective developers/testers to production. If our module happens to currently be of version label 4.0.113 (the label is incremented by cruise control on every build) then that's the name of the one that goes into production.

Additionally, this application's modules are deployed to many different server clusters in our production environment, and most modules have other modules as dependencies. Therefor all of the build artifacts would need to be deployed to the repository so that other modules can use them as input to their own builds.

Our source code versioning system maintains revision labels that correspond to build artifacts, so we are able to recreate any (*)AR we need if it is lost. What I'm trying to get away from however is maintaining the jars of module A as dependencies of modules B, C and Z in this versioning system.

Am I missing something important in snapshots? I'm not sure how they fit into the Maven picture and if they would be appropriate to use in any new build strategy for this system.
14 years ago
I'm not suggesting that this is a defect of Maven's, just that I'm not sure what the proper way to use this tool is. As for why we include images in our WARs, they would not be deployable artifacts if we did not. I'm also not considering installing any files into the repository that are not maven build artifacts.

I'll look into Nexus.

Thanks!
14 years ago
At the moment all of our build artifacts are stored in a folder structure on the build server that cruise control runs on. Older artifacts have to be purged from time to time as drive space fills up. Some of our web app build artifacts for example can be quite large (they can include images etc), and one that I can think of off the top of my head is on its 183rd build version the beginning of this development effort. If that artifact was ~25mb then the history of that one module for this release alone would be 4.5 gigs. Our cruise control install increments the build value each time it builds and archives the new artifact before deploying it automatically to our dev environment. This situation would worsen if we turned on automated building in cruise control instead of our current set up which only builds on command by a button click. The only real difference here would be that our current folder structure is much simpler than the repository structure and is easier to clean up than I would imagine the repository would be.

Nexus may be a useful tool here from what I've seen, thank you for that suggestion.

I also haven't had the time to learn about Maven's "snapshot" functionality, and that might be relevant for this discussion.
14 years ago
I'm taking over a large enterprise java application's development architecture shortly and have been considering migrating it to maven. One concern I have been hearing from my manager is that maintaining an ever growing repository of our (rather large) build artifacts may not be easy on our drive space. Does maven (or any third party) provide some functionality for cleaning up your internal remote repository? manual deletion of older files seems like it could be a bit of a boring maintenance problem?

Thanks

-TJCR
14 years ago
I appreciate the advice. Actually dependency management is not the only issue I'm attempting to address with Maven. I also think it likely quite a bit of the existing ant tasks for very specialized behavior (including building the deployment packages) will still be used, bound to project's goals, but I'd like to use Maven for the overall framework.

Is it possible to specify a goal in a custom build life cycle outside of the standard one (which I would plan to use for #1 above), so that a project would have multiple life cycles, or is there another way to accomplish what I'm attempting to here?
14 years ago
I'm going to be taking over the development architecture of a large enterprise java application and would like to migrate this application to Maven asap as dependency management is currently very complex. This will be my first real project with Maven, though I have a little bit of experience using it to build instructional applications from books on Spring etc.

Our application currently builds using a large set of Ant scripts via CruiseControl and there are two different outputs:

1) The WARs, EARs etc which are deployed automatically on build to our development environment

2) Deployment packages (tarred deployable assets and deployment scripts) which are stored as artifacts and handed off to our middleware team for deployment to our upper environments

In this scenario it would seem reasonable to me to have one project with two outputs but I'm not sure if "one project one output" is a maven best practice or something you cannot avoid in maven. I wouldn't want to make the entire rest of the lifecycle run just to create a deployment package (especially since I would like to use a previously generated artifact in the deployment package, not a newly created one.)

Any suggestions on how to structure something like this in Maven2?

Thanks.
14 years ago
I'm currently working with Axis2, but this question is not really about web services. In order to run my web app client I currently have every jar from the axis2 installation's lib folder in my app server's domain. That's about 58 jars. I cant seem to find a distribution of Axis2 that has all the dependencies in one jar, which seems pretty absurd. Either I'm missing something or Axis just requires you to go scroll blind trying to find anything else in your /lib folder. Does anyone have any suggestions as to how to overcome this problem? Is there an easier way than grabbing every folder from every jar and jarring it manually that way?

Thanks,

Tristan.
15 years ago
Hi friends,

I just started working on a JSF project at my current job and was wondering what the most commonly used JSF plugin for eclipse is? I'm not enjoying editing my faces-config and .jsf's from notepad++.

Thanks,

Tristan
15 years ago
JSF
Is there a reason that bit-shifts and bitwise twiddling is not allowed on doubles and floats?
15 years ago
Actually Campbell I seriously doubt it. I am aware of that rule... I know your suggesting a stretch because your trying to be helpful and I appreciate it.

I think that if you're pulled that far away from the literal meaning by this statement in order to make it fit Java's actual behavior the answer is that the author really mangled his verbiage to the point where its not worth trying to reconstruct and that really helps because I was starting to think that I was either missing very important basic Java concepts or that my internal English parser was failing. Neither of which is a happy thought.

Thanks!
15 years ago
For starters the syntax for your relational operators is wrong. Try using

and


Should patch you up quick.
15 years ago
I'm currently working with a SCJP study guide and am staring at a rule that I can't seem to agree with.


In addition to the constructor (with no parameters), you can also define nondefault constructors with parameters. However, the constructor name stays the same: the class name. The constructor may be called from inside the class where it is defined or from outside the class, using the following rules:

Outside of the class in which a constructor is defined, the constructor can be called only with the new operator, that is, when you want to create an instance of the class. For example, a code expression new A() in the class B will create an instance of the class A.

Inside the class where a constructor is defined, the constructor can be called from within another constructor, and not from anywhere else.



To me rule #2 means one of two things, Either:

1) A constructor, in order for it to be called from within another constructor, must be called from within the class in which it is defined.

OR

2) If a constructor is called from within the class that defines it, it must be called from within another constructor.

I can write code that violates both interpretations of this rule and compiles fine. Does anybody know what this is supposed to be referring to?

Thanks
15 years ago