Not sure if this is the cause of these failures, but archetype's got serious issues with generating resources on Windows. It assumes '/' file separator in archetype zips, but on Windows this can also be '\'. Thus file sets don't work for me at all on Windows (not a duplicate of ARCHETYPE-146).
I started to patch but haven't got time at the moment for another side mission. Mark On 02/04/2008, Mark Hobson <[EMAIL PROTECTED]> wrote: > Yep, tests fail on Windows with: > > > ------------------------------------------------------------------------------- > Test set: org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest > > ------------------------------------------------------------------------------- > Tests run: 12, Failures: 10, Errors: 0, Skipped: 0, Time elapsed: > 4.172 sec <<< FAILURE! > > testGenerateArchetypeCompleteWithoutParent(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.468 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:basic:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypeCompleteWithoutParent(DefaultArchetypeGeneratorTest.java:146) > ... > > testGenerateArchetypeCompleteWithParent(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.438 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:basic:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypeCompleteWithParent(DefaultArchetypeGeneratorTest.java:240) > ... > > testGenerateArchetypePartialOnChild(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.422 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:partial:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypePartialOnChild(DefaultArchetypeGeneratorTest.java:310) > ... > > testGenerateArchetypePartialOnChildDontOverride(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.265 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:partial:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypePartialOnChildDontOverride(DefaultArchetypeGeneratorTest.java:379) > ... > > testGenerateArchetypePartialOnParent(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.36 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:partial:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypePartialOnParent(DefaultArchetypeGeneratorTest.java:453) > ... > > testGenerateArchetypePartialWithoutPoms(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.437 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:partial:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypePartialWithoutPoms(DefaultArchetypeGeneratorTest.java:503) > ... > > testGenerateArchetypeSite(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.563 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:site:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateArchetypeSite(DefaultArchetypeGeneratorTest.java:561) > ... > > testGenerateFileSetArchetype(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.578 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:fileset:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateFileSetArchetype(DefaultArchetypeGeneratorTest.java:626) > ... > > testGenerateOldArchetype(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.281 sec <<< FAILURE! > junit.framework.AssertionFailedError: No exception may be thrown: The > desired archetype does not exist (archetypes:old:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testGenerateOldArchetype(DefaultArchetypeGeneratorTest.java:771) > ... > > testPropertiesNotDefined(org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest) > Time elapsed: 0.156 sec <<< FAILURE! > junit.framework.ComparisonFailure: Exception not correct expected:<The > [archetype is not configured]> but was:<The [desired archetype does > not exist (archetypes:basic:1.0)]> > at junit.framework.Assert.assertEquals(Assert.java:81) > at > org.apache.maven.archetype.generator.DefaultArchetypeGeneratorTest.testPropertiesNotDefined(DefaultArchetypeGeneratorTest.java:826) > ... > > > ------------------------------------------------------------------------------- > Test set: > org.apache.maven.archetype.repositorycrawler.DefaultRepositoryCrawlerTest > > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 > sec <<< FAILURE! > > testCrawl(org.apache.maven.archetype.repositorycrawler.DefaultRepositoryCrawlerTest) > Time elapsed: 0.125 sec <<< FAILURE! > junit.framework.AssertionFailedError > at junit.framework.Assert.fail(Assert.java:47) > at junit.framework.Assert.assertTrue(Assert.java:20) > at junit.framework.Assert.assertTrue(Assert.java:27) > at > org.apache.maven.archetype.repositorycrawler.DefaultRepositoryCrawlerTest.testCrawl(DefaultRepositoryCrawlerTest.java:47) > ... > > > ------------------------------------------------------------------------------- > Test set: org.apache.maven.archetype.test.ArchetyperRoundtripTest > > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.625 > sec <<< FAILURE! > testArchetyper(org.apache.maven.archetype.test.ArchetyperRoundtripTest) > Time elapsed: 5.625 sec <<< FAILURE! > junit.framework.AssertionFailedError: The desired archetype does not > exist (org.apache.maven.test:test-project-1:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.test.ArchetyperRoundtripTest.testArchetyper(ArchetyperRoundtripTest.java:188) > ... > > > ------------------------------------------------------------------------------- > Test set: org.apache.maven.archetype.test.ArchetyperRoundtripWithProxyTest > > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.797 > sec <<< FAILURE! > > testArchetyper(org.apache.maven.archetype.test.ArchetyperRoundtripWithProxyTest) > Time elapsed: 11.797 sec <<< FAILURE! > junit.framework.AssertionFailedError: The desired archetype does not > exist (org.apache.maven.test:test-project-2:1.0) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.test.ArchetyperRoundtripWithProxyTest.testArchetyper(ArchetyperRoundtripWithProxyTest.java:191) > ... > > > ------------------------------------------------------------------------------- > Test set: org.apache.maven.archetype.test.RoundtripMultiModuleTest > > ------------------------------------------------------------------------------- > Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.922 > sec <<< FAILURE! > testArchetyper(org.apache.maven.archetype.test.RoundtripMultiModuleTest) > Time elapsed: 5.922 sec <<< FAILURE! > junit.framework.AssertionFailedError: The desired archetype does not > exist (com.company.proficio:proficio:1.0-SNAPSHOT) > at junit.framework.Assert.fail(Assert.java:47) > at > org.apache.maven.archetype.test.RoundtripMultiModuleTest.testArchetyper(RoundtripMultiModuleTest.java:194) > ... > > > Mark > > > On 28/03/2008, Raphaël Piéroni <[EMAIL PROTECTED]> wrote: > > which tests ? > > the unit tests when building on windows ? > > > > Raphaël > > > > 2008/3/28, Brian E. Fox <[EMAIL PROTECTED]>: > > > > > I'm having issues with the tests that need to be fixed first. > > > > > > > > > -----Original Message----- > > > From: Raphaël Piéroni [mailto:[EMAIL PROTECTED] > > > Sent: Friday, March 28, 2008 4:37 PM > > > To: Maven Developers List > > > Subject: releasing archetype plugin 2.0-alpha-3 > > > > > > Hi > > > > > > If no one objects, i will call > > > a vote for releasing the > > > mentioned version saturday > > > or sunday. > > > > > > Regards, > > > > > > Raphaël > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]