Architecture Rules 3.0 Roadmap
UPDATE Aug-30-2008
- added API package
- added Listeners
- added Configuration Properties
- added default-architecture-rules.xml
OK, lets lay out a road map for 3.0. I sent this message to the architecture-rules-user mailing list and the architecture-rules-dev mailing list tonight. I have a few things that I want to see put into it, and I’d also like to hear what you want in it.
org.architecturerules
First. The big change is the groupId which is finally going to be moved to org.architecturerules for the core project and the maven plugin. I don’t have the domain yet. I have a fund raiser page where I was hoping to get about $30 to secure the domain for 3 years. So far no contributions : \ Maybe if any of your work for a company that uses the project, and the company has donated money in the past, you could ask your boss for a small $30 contribution to this project. Regardless, we’ll get it eventually and the project needs to get off of com.* and the maven plugin needs to be the same groupId.
architecture-rules-ant
I want to refactor the ..architecturerules.ant package to its own jar so that:
- User’s who want to use the ant interface and include this jar.
- By including the jar, you get the Ant jars and dependencies. If you don’t use Ant, you don’t need the jar or the ant libraries.
- As we add new functionality to architecture rules someone else could take on the task of keeping the ant task up to date on their own schedule.
- This module also acts as an example of how to extend the core project.
- Allows us to develop new ant features and fix ant issues without doing a major release of the core. There are a couple of open ant-related issues in the issue list.
The downsides is that the API is broken, but I think that is OK given in the release the packages are all changing to org.architecturerules so the API will be broken anyway.
Issue 59: DependencyConstraintException should report the violating class
This is sort of a tough issue. We utilize jDepend which only looks at packages. However, Mykola brought Classycle to my attention (which I included on the alternatives page) which looks at class dependencies rather than package dependencies. We could move off of jDepend and switch over to using Classclye to find dependencies, or we could continue to use jDpend, and when a rule is broken, we can jump over to Classycle to figure out which class is breaking the rule. Another benefit to Classclye is that it is able to detect static dependencies which jDpend is not. I actually got an email from SonarJ, a commercial competitor listed on the alternatives page who congratulated us on developing a good open source architecture risk mitigating project but pointed out that jDepend could not detect static dependencies. I think in the long term we need to support detecting static dependencies so this Classycle might have been an important find.
Looking to get involved? We’re looking for contributors for this task.
Issue 60: XML reports
The only other current issue that I would like to tackle somehow is the output of the XML reports. I sent out a pretty detailed email on this to the user and dev mailing list. I got little response. I put a copy of the email in the issue which includes a prototype for the XML output. The premise would be that the execution of architecture rules results in the output of an XML file that describes all of the rules, the packages that were investigated because of that rule, the dependencies of each package that match that rule, and a list of each violation. One major change would be that instead of throwing an exception when a rule is broken, the rest of the packages would be investigated first and then the XML output is written, and then an exception could be thrown describing all of the rules that were broken – not just the first rule.
The reason for this XML output is two-fold: first, it provides output for other developers to start processing and developing new tools for which could be good for this project. second: it provides a data source for our maven 2 plugin to use to generate a site report for. Or this could be a new project: maven-architecture-rules-report-plugin. Either way, this is a good stepping stone to new functionality and growth for this project.
Looking to get involved? We’re looking for contributors for this task.
FindBugs
We added the FindBugs report recently to the maven-generated site. We should be able to clear this list for all of our code.
Remove 3rd party org packages
I had created an Issue to remove unneccessary dependencies to cut down on the number of libraries that we depended on. But I think this was implemented poorly to the point where it caused a reported bug. Also, we have a pseudo maven repository so that makes this issue almost moot.
This list encompasses most of the open issues in the issue tracker that I want to see implemented. There are a couple of issues that I am going to leave on hold (such as inverting the project to expect the user to define the accepted packages rather than the exceptional packages) and some that I can not fix with out money (continuous integration server).
All of these tasks are up for discussion. And most any of them are open to user contributions. If you are interested in taking on one of these tasks, just reply to this email, tell us what you want to work on, what questions you have, and maybe describe how you plan on implementing it. If its a small task, you can submit a patch, if its bigger, we can make you a contributor (for a short term or longer term depending on circumstances)
UPDATE: Issue 68: Listener Support
Adding support for event listeners gives us a few different things that we either need or that would benefit us in the future. This will hopefully invite other developers to begin extending the project. For example someone someday might make a GUI tool or an IDE plugin and want to provide real-time feedback to the GUI as packages are investigated. This also enables us to develop the XML report in a very modular fashion, without littering the services with code that is not related to performing the service that the class is named for. Listeners provide a great point for adding new functionality from too.
UPDATE: Introduce API Package
Interfaces will be moved to a new org.architecturerules.api package so that developers who wish to extend the project have someplace to start from. This will break backwards compatibility. But so will migrating to org.architecturerules, so if this is going to be done, it should be done now. Sorry everyone.
UPDATE: Issue 64: default-architecture-rules.xml
The initial state of the Configuration entity will be created by reading default-architecture-rules.xml. This essentially just allows us to define the default values via XML rather than defining them with java constants which is what we are doing now. This XML file is easier for the user to read to figure out the default values, is easy to add new default values to as we develop new features, and may be used to demonstrate a sample XML configuration or how features are configured.
UPDATE: Issue 67: Configuration Properties
The listeners require some configuration. Some other tools that have yet to be written may also require configuration. We’ll be adding support for arbitrary properties. These allow you to define a set of keys and a values that can be handed off to the Listeners and to other features that may be created in the future. This provides a pretty robust mechanism for providing configuration values for classes that extend the project.
Maven 2 Plugin SNAPSHOT
And while I have your attention, Mykola has released a 0.0-SNAPSHOT of the maven 2 plugin. Has anyone tried it yet? Anyone want to try it out?
Thanks everyone.
http://72miles.com/architecturerules (and someday architecturerules.org)

Eric 11:51 am on July 29, 2008 Permalink
would you have the same revenue benefits if you did not use a viral oss license (e.g. lgpl or apache)?
Mike 12:17 pm on July 29, 2008 Permalink
@Eric – No. Duel licensing will not effectively make you any money if you do not use a license that requires the users to contribute their derivative of your project back to the open source community. The only reason that a business would pay for your license is to prevent themselves from having to share their proprietary secrets.
So with this type of duel license, other open source projects can use your product without purchasing a license, while businesses that are likely to generate their own revenue with your product will likely purchase the license and generate revenue for you.
Tom 6:54 am on July 30, 2008 Permalink
“So, in order to use the free half of this duel license, the using organization would have to contribute back anything they develop using your product. This means their proprietary trade secrets are potentially being made available to the public. Many organizations would rather pay a small fee to protect their competitive advantage.”
Hmmm… sounds a bit misleading!! Taking LGPL as an example… organisations using software distributed under this license would only have to contribute back changes/enhancements they make to that LGPL software. They don’t have to LGPL their own proprietary software that has a dependency on the LGPL software. So, your statement that “… their proprietary trade secrets are potentially being made available to the public” is not at all accurate!!
Mike 8:58 am on July 30, 2008 Permalink
@Tom – The more restrictive the license that you use, the more effective the duel licensing will work. I’d recommend the most copyleft you can get: GNU General Public License.
In fact, I found a specific example. GlassFish is duel licensed. From wikipepdia:
Nick 11:03 am on July 30, 2008 Permalink
So does this concept of duel licensing involve 50 paces with vintage revolvers as sidearms? I much prefer discussions about dual licensing personally….
(I’m sorry, I just couldn’t help myself!
)