[
http://jira.jboss.com/jira/browse/JBAOP-449?page=comments#action_12372120 ]
Anders Andersen commented on JBAOP-449:
---------------------------------------
1) I have testet the multiple aoppaths by
<aoppaths>
<aoppath>
${basedir}/../jboss-portal-sar/src/main/resources/portal-aop.xml
</aoppath>
<aoppath>
${basedir}/src/main/resources/base-aop.xml
</aoppath>
</aoppaths>
AND IT WORKS !!!!
2) At the same time I have testet the default...
else
return "src/main/resources/jboss-aop.xml";
IT DOES NOT WORK
The problem is process current directory. If it is inside the maven module it works if it
is outside it does not work
And for any larger build it will be outside !!!!
There has to be put ${basedir} in front of it.
Code like
else
return new
File(project.getBasedir(),"src/main/resources/jboss-aop.xml").getName();
maven-jbossaop-plugin cannot manage multiple aoppath
----------------------------------------------------
Key: JBAOP-449
URL:
http://jira.jboss.com/jira/browse/JBAOP-449
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: maven2
Reporter: Anders Andersen
Assigned To: Stale Pedersen
I am trying to convert jboss portal to maven2
Using the plugin maven-jbossaop-plugin seems to lack functionality
In the ant script it is called
<aopc compilerclasspathref="aop.classpath"
verbose="true">
<classpath refid="bilto"/>
<src path="${build.classes}"/>
<aoppath
path="${build.resources}/portal-core-sar/portal-aop.xml"/>
<aoppath path="${source.etc}/jboss-aop/base-aop.xml"/>
<include
name="org/jboss/portal/core/aspects/server/TransactionInterceptor.class"/>
<include
name="org/jboss/portal/core/aspects/server/UserInterceptor$UserFinalizer.class"/>
<include
name="org/jboss/portal/core/aspects/portlet/TransactionInterceptor.class"/>
<include
name="org/jboss/portal/core/deployment/jboss/ObjectDeployment.class"/>
<include
name="org/jboss/portal/core/deployment/jboss/PortletAppDeployment.class"/>
<include
name="org/jboss/portal/core/impl/model/instance/InstanceContainerImpl.class"/>
<include
name="org/jboss/portal/core/impl/model/portal/PersistentPortalObjectContainer.class"/>
<include
name="org/jboss/portal/core/impl/portlet/state/ProducerPortletInvoker.class"/>
<include
name="org/jboss/portal/core/hibernate/SessionFactoryBinder.class"/>
</aopc>
in the plugin multiple aoppath will not be accepted.
I have tried to give two xml files with "" ; , or : as seperator --> without
result
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira