1 /* 2 * Copyright (c) 2002-2021, City of Paris 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 9 * 1. Redistributions of source code must retain the above copyright notice 10 * and the following disclaimer. 11 * 12 * 2. Redistributions in binary form must reproduce the above copyright notice 13 * and the following disclaimer in the documentation and/or other materials 14 * provided with the distribution. 15 * 16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30 * POSSIBILITY OF SUCH DAMAGE. 31 * 32 * License 1.0 33 */ 34 package fr.paris.lutece.plugins.releaser.service; 35 36 import fr.paris.lutece.plugins.releaser.util.CommandResult; 37 import fr.paris.lutece.plugins.releaser.util.svn.SvnUser; 38 39 // TODO: Auto-generated Javadoc 40 /** 41 * The Interface IMavenService. 42 */ 43 public interface IMavenService 44 { 45 46 /** 47 * mvnReleasePrepare. 48 * 49 * @param strSiteName 50 * the str site name 51 * @param strTagName 52 * the str tag name 53 * @param strMavenProfile 54 * the str maven profile 55 * @param user 56 * the user 57 * @param commandResult 58 * the command result 59 */ 60 void mvnSiteAssembly( String strSiteName, String strTagName, String strMavenProfile, SvnUser user, CommandResult commandResult ); 61 62 /** 63 * Mvn release prepare. 64 * 65 * @param strPathPom 66 * the str path pom 67 * @param strReleaseVersion 68 * the str release version 69 * @param strTag 70 * the str tag 71 * @param strDevelopmentVersion 72 * the str development version 73 * @param strUsername 74 * the str username 75 * @param strPassword 76 * the str password 77 * @param commandResult 78 * the command result 79 * @return the string 80 */ 81 String mvnReleasePrepare( String strPathPom, String strReleaseVersion, String strTag, String strDevelopmentVersion, String strUsername, String strPassword, 82 CommandResult commandResult ); 83 84 /** 85 * Mvn release perform. 86 * 87 * @param strPathPom 88 * the str path pom 89 * @param strUsername 90 * the str username 91 * @param strPassword 92 * the str password 93 * @param commandResult 94 * the command result 95 * @param bPrivateRepository true if the perform must be push in private repository 96 * @return the string 97 */ 98 String mvnReleasePerform( String strPathPom, String strUsername, String strPassword, CommandResult commandResult,boolean bPrivateRepository ); 99 100 /** 101 * Inits the. 102 */ 103 void init( ); 104 }