Hi, I guess I am missing something important...
C:\Program Files\Apache Software Foundation\tuscany-sca-1.3.1-src\modules\tracing-aspectj>mvn install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: null:tuscany-tracing-aspectj:jar:null Reason: Cannot find parent: org.apache.tuscany.sca:tuscany-modules for project: null:tuscany-tracing-aspectj:jar:null for project null:tuscany-tracing-aspectj:jar:null etc. Best Regards, Apostolos -----Ursprüngliche Nachricht----- Von: Dan Becker [mailto:[email protected]] Gesendet: Donnerstag, 12. März 2009 19:09 An: [email protected] Betreff: Re: AW: Tuscany AOP Logging, Tracking, Timing example Apostolos Papageorgiou wrote: > So, I have to add tracing-aspectj under "modules" in the source distribution > and re-build, right? Or can I build the module (or simply test) independently? > Will it be OK with the 1.3.1 source? > Then I need to download aspectjweaver.jar separately, right? Hello Apostolos, You do not have to add any code to run the simple test case. If you run "mvn install" on the source directory, tracing-aspectj, it should download all dependencies, build the code, and run the simple test case. This simple test will use the aspect in aop.xml to time a logging statement. Once this is running, you should be able to log and time your own code by editing the pointcut and the aspect in aop.xml. You can also add new aspects, or edit the existing ones if the aspect in aop.xml does not meet your needs. Additional aspects may be added in /tracing-aspectj/src/main/java/org/apache/tuscany/sca/aspectj. These statements hold for 1.3.1 and later releases. > > I hope to find the time to dig into it and come back with "better" questions > and further discussion about my logging/timing needs... > Your questions are just fine! Continue to ask as many as you like. -- Thanks, Dan Becker
