Author: lcorneliussen Date: Fri Apr 1 17:17:43 2011 New Revision: 1087818 URL: http://svn.apache.org/viewvc?rev=1087818&view=rev Log: [NPANDAY-386] batch files helping with bootstrapping maven
Added: incubator/npanday/trunk/mvn2_bootstrap_new_version.bat incubator/npanday/trunk/mvn3_bootstrap_new_version_interactive.bat Added: incubator/npanday/trunk/mvn2_bootstrap_new_version.bat URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/mvn2_bootstrap_new_version.bat?rev=1087818&view=auto ============================================================================== --- incubator/npanday/trunk/mvn2_bootstrap_new_version.bat (added) +++ incubator/npanday/trunk/mvn2_bootstrap_new_version.bat Fri Apr 1 17:17:43 2011 @@ -0,0 +1,31 @@ +REM Workaround for http://jira.codehaus.org/browse/MNG-1911 +REM The first time you build a new NPanday version, the compile-plugin has +REM to be installed into the repository already. + +@echo off +echo ################################################################### +echo Bootstrapping the NPanday Compile Plugin +echo ################################################################### +@echo on + +call mvn install --projects npanday.plugin:maven-compile-plugin --also-make +IF %ERRORLEVEL% NEQ 0 GOTO Error + +@echo off +echo ################################################################### +echo SUCCESS! Now you should be able to build using 'mvn install' +echo ################################################################### +@echo on + +GOTO End + +:Error + +@echo off +echo ################################################################### +echo FAILED. Something went wrong. Consult the mailing list... +echo ################################################################### +pause +@echo on + +:End \ No newline at end of file Added: incubator/npanday/trunk/mvn3_bootstrap_new_version_interactive.bat URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/mvn3_bootstrap_new_version_interactive.bat?rev=1087818&view=auto ============================================================================== --- incubator/npanday/trunk/mvn3_bootstrap_new_version_interactive.bat (added) +++ incubator/npanday/trunk/mvn3_bootstrap_new_version_interactive.bat Fri Apr 1 17:17:43 2011 @@ -0,0 +1,39 @@ +REM Workaround for http://jira.codehaus.org/browse/MNG-1911 +REM The first time you build a new NPanday version, the compile-plugin has +REM to be installed into the repository already. + +@echo off +echo ###################################### +echo Installing the NPanday Compile Plugin +echo ###################################### +echo. +echo Open pom.xml, and remove 'dotnet' in the modules-section. Save the file. +pause +@echo on + +call mvn install --projects npanday.plugin:maven-compile-plugin --also-make +IF %ERRORLEVEL% NEQ 0 GOTO Error + +@echo off +echo Now, put the 'dotnet'-module back in again and save. +pause +@echo on + +@echo off +echo ################################################################### +echo SUCCESS! Now you should be able to build using 'mvn install' +echo ################################################################### +@echo on + +GOTO End + +:Error + +@echo off +echo ################################################################### +echo FAILED. Something went wrong. Consult the mailing list... +echo ################################################################### +pause +@echo on + +:End \ No newline at end of file