On Tue, Dec 29, 2009 at 4:15 PM, Karl Heinz Marbaise <[email protected]>wrote:
> Hi,
>
>
> actually i've already setup a few things:
>>
>> - artifactory
>> - hudson
>> - scm (tesing accurev)
>> - maven2
>> - issue tracking is currently bugzilla, but might be jira
>>
>> i'm looking at the default test classes maven creates, are they obsolete?
>>
> Maven does not create Test Classes...
> It does if you choose 'quickstart' project ...
>
> i saw that maven added junit 3.8.1 instead of 4.x as a dependency and
>> auto generated this code:
>>
>> should i change the junit in the pom to 4.7?
>>
> Yes you should, cause if you use JUnit 4.X instead of 3.8 ?
>
>
>
> in some junit examples they use annotations (@Test), which doesn't work
>> with
>> that code..
>>
> You have to use JUnit 4.X instead and configure to use Java 1.5 at least to
> be able to use Annotations...
> i did that, i assume i need to delete the code maven crated and write a new
> one.
>
i had to use the mvn cli to update the junit from 3.8.1 to 4.7 and run
mvn eclipse:eclipse.
only then i was able to use the code from the example.
thanks.
> Add a part
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> <debug>true</debug>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> in your pom to compile with 1.5 or as in this example with 1.6...
>
>
>
> Kind regards
> Karl Heinz Marbaise
> --
> SoftwareEntwicklung Beratung Schulung Tel.: +49 (0) 2405 / 415 893
> Dipl.Ing.(FH) Karl Heinz Marbaise ICQ#: 135949029
> Hauptstrasse 177 USt.IdNr: DE191347579
> 52146 Würselen http://www.soebes.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Eyal Edri