Although many companies have some kind of application architecture standards, they don’t usually have a mechanism to enforce those standards. As a result of this lack of architecture governance, the implementation (code) often doesn't match the requirements (reference architecture). Enforcing reference architecture guidelines promotes consistency and modularity in the system. In this presentation, I will talk about the significance of enforcing architecture rules and how to implement policy enforcement in software development projects. I will also discuss an architecture enforcement framework created to “inject” architecture rules and design policies into the continuous integration (CI) process using aspects to enforce quality of the code. The framework also uses tools like Eclipse, AJDT and Maven to integrate policy enforcement into the agile development process to detect architecture deviations early and often and validates that the design and code are in compliance with the reference architecture (RA).