If you need a Alfresco Share - Maven pom with support for java code (ex.
BaseEvaluators) ... You need this workaround for Alfresco Enterprise
4.2.0 in your <dependencies>:
<dependencies>
<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-share</artifactId>
<version>${alfresco.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-web-framework-commons</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- work around for error in POM, should be fixed in 4.2.1
https://issues.alfresco.com/jira/browse/MNT-10118 -->
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-web-framework-commons</artifactId>
<version>${alfresco.version}</version>
<scope>system</scope>
<systemPath>${tomcat.home}/webapps/share/WEB-INF/lib/alfresco-web-framework-commons-${alfresco.version}.jar</systemPath>
</dependency>
...
</dependencies>
and now you can start coding!