Looks like a bug in the development version.

- Brett

On 3/28/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> Brett,
>
> If it is unrelated, should I be able to use the latest archtype snapshot
> if I add the following to my pom.xml?
>
> I downloaded the latest source of the archtype plugin.
> mvn compile
> mvn install
>
> added the following to my pom.xml:
>
> <plugin>
>   <artifactId>maven-archetype-plugin</artifactId>
>   <version>0.7-SNAPSHOT</version>
> </plugin>
>
> Tried to create a new archtype (parent pom.xml in the execution directory):
> C:\dev\trunk\sonic\src\esb\services>mvn -e archetype:create
> -DarchetypeGroupId=other.maven.archetype
> s -DarchetypeArtifactId=sonicbasic -DarchetypeVersion=1.0-SNAPSHOT
> -DgroupId=sonic.esb.services -Dar
> tifactId=MyESBService
>
>
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: unknown
>
> Reason: Could not find the model file
> 'C:\dev\trunk\sonic\src\esb\services\MyESBService\pom.xml'.
>
>
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Could not find the
> model file 'C:\dev\trunk\sonic\
> src\esb\services\MyESBService\pom.xml'.
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.project.ProjectBuildingException: Could not
> find the model file 'C:\dev\
> trunk\sonic\src\esb\services\MyESBService\pom.xml'.
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.
> java:1098)
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProje
> ctBuilder.java:289)
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java
> :274)
>         at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
>         at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
>         at
> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:491)
>         at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
>         ... 11 more
> Caused by: java.io.FileNotFoundException:
> C:\dev\trunk\sonic\src\esb\services\MyESBService\pom.xml (
> The system cannot find the path specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at java.io.FileReader.<init>(FileReader.java:55)
>         at
> org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.
> java:1093)
>         ... 17 more
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Mar 27 16:31:15 CEST 2006
> [INFO] Final Memory: 1M/2M
> [INFO]
> ----------------------------------------------------------------------------
>
>
> Did I forget anything?
>
> Regards
> Stefan
>
>
> Brett Porter wrote:
>
> >JUnit 4 support may be in surefire plugin 2.2, which is also separate.
> >It's not yet determined if it will be included - there is a patch
> >there to be tested. POJO, Junit3 and TestNG are correctly supported.
> >
> >- Brett
> >
> >On 3/27/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Thanks.
> >> Another question: will junit4 be supported in 2.0.3?
> >>
> >>
> >> Greetings
> >>
> >> Franz
> >>
> >> Brett Porter schrieb:
> >> Development on 2.1 has not begun in earnest yet. Our focus has been on
> >>a stable 2.0.3 and set of plugins.
> >>
> >>- Brett
> >>
> >>On 3/27/06, Franz Fehringer <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Is there already a release plan/date for 2.1?
> >> I consider the use of 2.0.3 but would wait for 2.1 if it arrived in the
> >>next two/three weeks or so.
> >>
> >> Greetings
> >>
> >> Franz
> >>
> >> Brett Porter schrieb:
> >> 2.0.3 is due tomorrow.
> >>
> >>This fix is unrelated, and will be a part of an upcoming archetype
> >>plugin release.
> >>
> >>- Brett
> >>
> >>On 3/27/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Brett,
> >>
> >>will the fixes be in m2 2.0.3?
> >>Does anybody know when 2.0.3 will be released?
> >>
> >>Cheers
> >>Stefan
> >>
> >>Brett Porter wrote:
> >>
> >>
> >>
> >> No, it has to be a snapshot.
> >>
> >>Sorry, I don't have any other suggestions for you at the moment. The
> >>code will receive some more testing and polish this week before the
> >>next release.
> >>
> >>- Brett
> >>
> >>On 3/21/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >>
> >> I did what you suggested but I still get the error.
> >>In the pom of the archetypes I saw the version is a snapshot version.
> >>
> >>Might that be the problem?
> >>
> >>Regards
> >>Stefan
> >>
> >>
> >>Brett Porter wrote:
> >>
> >>
> >>
> >>
> >>
> >> svn co
> >>http://svn.apache.org/repos/asf/maven/archetype/trunk
> >>
> >>"mvn install"
> >>
> >>Cheers,
> >>Brett
> >>
> >>On 3/21/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >> What do I have to get from SVN to get this fix?
> >>The Maven 2.1-SNAPSHOT or just a few plugins?
> >>
> >>Regards
> >>Stefan
> >>
> >>
> >>Brett Porter wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Fixed in SVN just today.
> >>
> >>- Brett
> >>
> >>On 3/21/06, Stefan Fritz <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> Hi,
> >>
> >>I created a custom archetype.
> >>I have a hierarchical project structure:
> >>
> >>pom.xml
> >>|
> >>`-- services
> >>
> >> `-- pom.xml
> >> `-- service1
> >> `-- pom.xml
> >> `-- service2
> >> `-- pom.xml
> >> `-- service3
> >> `-- pom.xml
> >>
> >>What I want to do is to create a new "service" under the services folder.
> >>
> >>I opened a command prompt in the services directory to create service4
> >>structure:
> >>mvn archetype:create -DarchetypeGroupId=other.maven.archetypes
> >>-DarchetypeArtifactId=mybasicservice
> >>-DarchetypeVersion=1.0-SNAPSHOT -DgroupId=services -DartifactId=service4
> >>
> >>Then I get the following problem:
> >>
> >>[INFO] Scanning for projects...
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[ERROR] FATAL ERROR
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[INFO] Error building POM (may not be this project's POM).
> >>
> >>
> >>Project ID: unknown
> >>
> >>Reason: Could not find the model file
> >>'C:\dev\services\service4\pom.xml'.
> >>
> >>
> >>So it seems the archtype looks for the pom.xml which it should create.
> >>Any tips what I can do to be able to create new projects wiht my archtype
> >>even if there is a parent pom available?
> >>
> >>regards
> >>Stefan
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to