You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by sp...@yahoo.fr on 2007/04/27 18:35:38 UTC

Re : Cannot create the build number ?! (solved)

Oh ! thanks ! 

I've missed the line "You can suppress this behaviour with -Dmaven.buildNumber.doCheck=false (or remove the configuration info)." in my first reading ! 

Thanks

----- Message d'origine ----
De : ben short <be...@benshort.co.uk>
À : Maven Users List <us...@maven.apache.org>
Envoyé le : Vendredi, 27 Avril 2007, 15h47mn 09s
Objet : Re: Cannot create the build number ?!

The plugins home page [1] explains all of this and how you can stop it
from checking for modified files.

[1] http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html

On 4/27/07, Wayne Fay <wa...@gmail.com> wrote:
> Not only that, it tells you which files you need to do something with:
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
>
> You need to add or ignore the unknowns, and commit the modifieds.
>
> Wayne
>
> On 4/27/07, Tim Kettler <ti...@udo.edu> wrote:
> > I agree that maven error messages are not always as self explaining as
> > they should but in this case it's quite obvious what's wrong:
> >
> >  > [INFO]
> > ------------------------------------------------------------------------
> >  > [ERROR] BUILD ERROR
> >  > [INFO]
> > ------------------------------------------------------------------------
> >  > [INFO] Cannot create the build number because you have local
> > modifications :
> >
> > Your Working copy contains localy modified files and the build-number
> > plugin doesn't lke that.
> >
> > -Tim
> >
> > spouynt@yahoo.fr schrieb:
> > > Hi Mavenizers,
> > >
> > > After installing the subversion binaries, and retrying to compile I had this :
> > >
> > > [DEBUG] Configuring mojo 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> > > [DEBUG]   (s) basedir = C:\works\workspaceM2\myAppName-v1.3
> > > [DEBUG]   (s) doCheck = true
> > > [DEBUG]   (s) doUpdate = true
> > > [DEBUG]   (f) project = org.apache.maven.project.MavenProject@b808882c
> > > [DEBUG]   (s) urlScm = scm:svn:https://www.mycompany.ma/svnrepos/myAppName/v1.3
> > > [DEBUG] -- end configuration --
> > > [INFO] [buildnumber:create {execution: default}]
> > > [INFO] Verifying there are no local modifications ...
> > > [INFO] Executing: svn --non-interactive status
> > > [INFO] Working directory: C:\works\workspaceM2\myAppName-v1.3
> > > [INFO] Unknown file status: '!'.
> > > [INFO] Unknown file status: '!'.
> > > [INFO] Unknown file status: '!'.
> > > [INFO] ------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Cannot create the build number because you have local modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
> > >
> > > [INFO] ------------------------------------------------------------------------
> > > [DEBUG] Trace
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Cannot create the build number because you have local modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
> > >
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
> > >     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> > >     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> > >     at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> > >     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:597)
> > >     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.plugin.MojoExecutionException: Cannot create the build number because you have local modifications :
> > > [pom.xml:unknown]
> > > [mvn:unknown]
> > > [.project:modified]
> > > [.classpath:modified]
> > >
> > >     at org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:347)
> > >     at org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288)
> > >     at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
> > >     at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> > >     ... 16 more
> > > [INFO] ------------------------------------------------------------------------
> > > [INFO] Total time: 33 seconds
> > > [INFO] Finished at: Fri Apr 27 14:44:39 GMT 2007
> > > [INFO] Final Memory: 4M/9M
> > > [INFO] ------------------------------------------------------------------------
> > >
> > >
> > >
> > > I just want a SIMPLE Build Number ! why is it so complicated ??
> > >
> > > (sorry)
> > >
> > > Thanks for helping
> > > Nawfel BERAICH
> > >
> > >
> > >
> > >
> > >
> > > ___________________________________________________________________________
> > > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
> > > Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
> > > http://fr.answers.yahoo.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org








      
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com