Hi M2 people,

I am evaluating maven 2 and test-porting some small projects over to m2 from ant and m1.

I am finding it mostly straightforward but i can't work out how to tell maven2 that i want to enable asserts.  whenever i compile i just get the error

cannot resolve symbol
symbol  : method assert (boolean)

I have tried forcing java1.4 in the pom.xml with the following :

<plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
        </configuration>
    </plugin>
</plugins>

but it made no difference.

i looked through the issues in jira and found nothing to indicate that this is a known bug.

has anyone else hit this and if so how do i work-around it?

Kind regards,


Dave Sag




 

Reply via email to