You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/09/10 07:27:10 UTC

[jira] Created: (MAVEN-801) AspectJ iajc 1.1 task fails under JDK 1.4 (works fine under Ant)

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-801


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-801
    Summary: AspectJ iajc 1.1 task fails under JDK 1.4 (works fine under Ant)
       Type: Bug

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: 12 weeks

    Project: maven
   Versions:
             1.0-beta-10

   Assignee: 
   Reporter: Chad Woolley

    Created: Wed, 10 Sep 2003 12:25 AM
    Updated: Wed, 10 Sep 2003 12:25 AM
Environment: JDK 1.4, AspectJ 1.1

Description:
Here is the post I made on the mailing list regarding this bug:


Subject:
Re: [aspectj-users] Problem with iajc and jdk 1.4.1 - RESOLVED
From:
Chad Woolley <li...@thewoolleyweb.com>
Date:
Thu, 28 Aug 2003 23:18:26 -0700
To:
aspectj-users@eclipse.org, users@maven.apache.org

Hi,

This is apparently a maven bug.  I converted my maven.xml to an ant build.xml, and now it works fine.  I'm crossposting this to the maven group, I'll open a bug if I get time.

Thanks for the help,
Chad

------------------------------

Wes Isberg wrote:

Try specifying the forkclasspath option.  But even if that fixes it, it's worth submitting
a bug along with enough info to identify the class conflict.

Please include a verbose trace (by Ant and the compiler) and the Ant
classpath (typically from removing "@echo off" from ant.bat or adding "set -vx" to
the ant shell script).

Wes

Chad Woolley wrote:


>> Hello,
>>
>> I am trying to use iajc in a maven build script.  I keep getting the
>> following error:
>>
>> [ERROR] java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
>>
>> This looks very similar to the problem described in this thread:
>> http://www.mail-archive.com/ant-user@jakarta.apache.org/msg21990.html
>>
>> Here is my maven task:
>>
>>       <!-- =================================================== -->
>>       <!--  performs aspectj compilation of compiled code -->
>>       <!-- =================================================== -->
>>       <goal name="virtualmock:compile:aspectj">
>>                 <taskdef
>> resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
>>                 <classpath>
>>                         <pathelement location="${lib.dir}/aspectjtools.jar"/>
>>                     </classpath>
>>                 </taskdef>
>>
>>             <iajc outjar="${aspectj.output.jarfile}"
>>                     fork="true"
>>                     copyInjars="true"
>>                     sourceRootCopyFilter="**/CVS/*,**/*.java" >
>>                     <injars>
>>                         <pathelement location="${jarfile}"/>
>>                         <pathelement location="${test.jarfile}"/>
>>                     </injars>
>>                     <classpath>
>>                         <pathelement location="${lib.dir}/aspectjrt.jar"/>
>>                     </classpath>
>>             </iajc>
>>       </goal>
>>
>> Thanks in advance,
>> Chad Woolley 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org