When I looked in to the source for the release plugin it actually executed
maven from there, so I guess that's where the strange output is coming

On 3/31/06, Julian Wood <[EMAIL PROTECTED]> wrote:
>
> The questions I would ask myself if I saw this output are:
>
> 1. It looks like you issued an mvn command - why does maven think you
> issued an m2 command? You should maybe resolve that and make sure mvn
> -version is 2.0.3
> 2. Did you really have a BUILD ERROR and a BUILD SUCCESSFUL in the
> same output? I have never seen that before (doesn't mean it can't
> happen).
> 3. It tells you to check your dist management section. Maybe you
> should post that to the list (or even the pom in it's entirety). I
> know you say it works for deployment, but still...
>
> You might want to take a gander at this page, which walks you through
> the release process:
>
> http://wiki.ucalgary.ca/page/LearningCommons/Documentation/
> Project_Versioning_-_Best_Practices
>
> J
>
>
> On 30-Mar-06, at 8:32 PM, Craig McDaniel wrote:
>
> > I don't mean to pester, but the release plugin is my primary reason
> > for upgrading to maven 2 (and will solve my biggest headaches right
> > now). I've spent several hours browsing docs and googling to no avail.
> > I will be happy to provide any additional info that may be necessary.
> >
> > On 3/30/06, Craig McDaniel <[EMAIL PROTECTED]> wrote:
> >> I can run 'mvn deploy' and it works just fine. I ran release:prepare
> >> and it also worked fine. When I run release:perform, I get the
> >> following error:
> >>
> >> $ mvn -e release:perform
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO] Searching repository for plugin with prefix: 'release'.
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -------
> >> [INFO] Building Unnamed - com.shps.da:sandbox:pom:1.1-SNAPSHOT
> >> [INFO]    task-segment: [release:perform] (aggregator-style)
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -------
> >> [INFO] [release:perform]
> >> [INFO] Checking out the project to perform the release ...
> >>
> >> THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
> >>
> >> [INFO] Scanning for projects...
> >> [INFO] Reactor build order:
> >> [INFO]   Unnamed - com.shps.da:sandbox:pom:1.0
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]   Maven Quick Start Archetype
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -------
> >> [INFO] Building Unnamed - com.shps.da:sandbox:pom:1.0
> >> [INFO]    task-segment: [deploy]
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> -------
> >> [INFO] Skipping missing optional mojo:
> >> org.apache.maven.plugins:maven-site-plugin:attach-d
> >> escriptor
> >> [INFO] Preparing javadoc:jar
> >> [INFO] [javadoc:javadoc]
> >> [INFO] Not executing Javadoc as the project is not a Java
> >> classpath-capable package
> >> [INFO] [javadoc:jar {execution: attach-javadocs}]
> >> [INFO] Not executing Javadoc as the project is not a Java
> >> classpath-capable package
> >> [INFO] [source:jar {execution: attach-sources}]
> >> [INFO] NOT adding java-sources to attached artifacts for
> >> packaging: 'pom'.
> >> [INFO] [install:install]
> >> [INFO] Installing d:\cwn\sandbox\target\checkout\pom.xml to
> >> C:\Documents and Settings\s008
> >> 254\.m2\repository\com\shps\da\sandbox\1.0\sandbox-1.0.pom
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] Failed to configure plugin parameters for:
> >> org.apache.maven.plugins:maven-deploy-pl
> >> ugin:2.2
> >>
> >> check that the following section of the pom.xml is present and
> >> correct:
> >>
> >> <distributionManagement>
> >>   <!-- use the following if you're not using a snapshot version. -->
> >>   <repository>
> >>     <id>repo</id>
> >>     <name>Repository Name</name>
> >>     <url>scp://host/path/to/repo</url>
> >>   </repository>
> >>   <!-- use the following if you ARE using a snapshot version. -->
> >>   <snapshotRepository>
> >>     <id>repo</id>
> >>     <name>Repository Name</name>
> >>     <url>scp://host/path/to/repo</url>
> >>   </snapshotRepository>
> >> </distributionManagement>
> >>
> >> Cause: Class
> >> 'org.apache.maven.artifact.repository.ArtifactRepository '
> >> cannot be instantia
> >> ted
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] For more information, run Maven with the -e switch
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] Total time: 2 seconds
> >> [INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
> >> [INFO] Final Memory: 4M/9M
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] BUILD SUCCESSFUL
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >> [INFO] Total time: 13 seconds
> >> [INFO] Finished at: Thu Mar 30 13:32:23 EST 2006
> >> [INFO] Final Memory: 3M/6M
> >> [INFO]
> >> ---------------------------------------------------------------------
> >> ---
> >>
> >> Now, I have <distributionManagement> defined in my top-level pom.xml.
> >> So why is deploy working and not release:perform?
> >>
> >> Thanks.
> >> --
> >> Craig McDaniel
> >>
> >
> >
> > --
> > Craig McDaniel
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> --
> Julian Wood <[EMAIL PROTECTED]>
>
> Software Engineer
> Teaching & Learning Centre
> University of Calgary
>
> http://tlc.ucalgary.ca
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to