Author: epunzalan Date: Mon Apr 10 19:49:24 2006 New Revision: 393140 URL: http://svn.apache.org/viewcvs?rev=393140&view=rev Log: PR: MCHANGELOG-34
Added test-harness min configuration test Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/ChangeLogReportTest.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ChangeLogScmResult.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/MavenProjectStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmManagerStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderRepositoryStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmRepositoryStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/SettingsStub.java maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/ maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/min-plugin-config.xml Modified: maven/sandbox/plugins/maven-changelog-plugin/pom.xml maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java Modified: maven/sandbox/plugins/maven-changelog-plugin/pom.xml URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/pom.xml?rev=393140&r1=393139&r2=393140&view=diff ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/pom.xml (original) +++ maven/sandbox/plugins/maven-changelog-plugin/pom.xml Mon Apr 10 19:49:24 2006 @@ -157,5 +157,11 @@ <artifactId>maven-scm-provider-vss</artifactId> <version>1.0-beta-3-SNAPSHOT</version> </dependency> + <dependency> + <groupId>org.apache.maven</groupId> + <artifactId>maven-plugin-testing-harness</artifactId> + <version>1.0-SNAPSHOT</version> + <scope>test</scope> + </dependency> </dependencies> </project> Modified: maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java?rev=393140&r1=393139&r2=393140&view=diff ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java (original) +++ maven/sandbox/plugins/maven-changelog-plugin/src/main/java/org/apache/maven/changelog/ChangeLogReport.java Mon Apr 10 19:49:24 2006 @@ -279,6 +279,11 @@ { List changelogList = null; + if ( !outputXML.isAbsolute() ) + { + outputXML = new File( project.getBasedir(), outputXML.getPath() ); + } + if ( outputXML.exists() ) { if ( outputXMLExpiration * 60000 > System.currentTimeMillis() - outputXML.lastModified() ) @@ -1178,6 +1183,11 @@ */ protected String getOutputDirectory() { + if ( !outputDirectory.isAbsolute() ) + { + outputDirectory = new File( project.getBasedir(), outputDirectory.getPath() ); + } + return outputDirectory.getAbsolutePath(); } Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/ChangeLogReportTest.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/ChangeLogReportTest.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/ChangeLogReportTest.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/ChangeLogReportTest.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,82 @@ +package org.apache.maven.changelog; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.plugin.testing.AbstractMojoTestCase; +import org.apache.maven.plugin.Mojo; +import org.apache.maven.scm.manager.ScmManager; +import org.apache.maven.changelog.stubs.ScmManagerStub; +import org.codehaus.plexus.util.FileUtils; + +import java.io.File; + +/** + * @author Edwin Punzalan + */ +public class ChangeLogReportTest + extends AbstractMojoTestCase +{ + private ScmManager scmManager; + + public void testMinConfig() + throws Exception + { + executeMojo( "src/test/plugin-configs/min-plugin-config.xml" ); + } + + protected void setUp() + throws Exception + { + super.setUp(); + + scmManager = new ScmManagerStub(); + } + + private void executeMojo( String pluginXml ) + throws Exception + { + File pluginXmlFile = new File( getBasedir(), pluginXml ); + + Mojo mojo = lookupMojo( "changelog", pluginXmlFile ); + + assertNotNull( "Mojo found.", mojo ); + + this.setVariableValueToObject( mojo, "manager", scmManager ); + + mojo.execute(); + + File outputXML = (File) getVariableValueFromObject( mojo, "outputXML" ); + + String encoding = (String) getVariableValueFromObject( mojo, "outputEncoding" ); + + assertTrue( "Test if changelog.xml is created", outputXML.exists() ); + + String changelogXml = FileUtils.fileRead( outputXML ); + + assertTrue( "Test for xml header", changelogXml.startsWith( "<?xml version=\"1.0\" encoding=\"" + + encoding + "\"?>\n<changelog>" ) ); + + assertTrue( "Test for xml footer", changelogXml.endsWith( "\n</changelog>" ) ); + } + + protected void tearDown() + throws Exception + { + super.tearDown(); + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ChangeLogScmResult.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ChangeLogScmResult.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ChangeLogScmResult.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ChangeLogScmResult.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,45 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.scm.command.changelog.ChangeLogSet; + +import java.util.Collections; +import java.util.Date; + +/** + * @author Edwin Punzalan + */ +public class ChangeLogScmResult + extends org.apache.maven.scm.command.changelog.ChangeLogScmResult +{ + public ChangeLogScmResult() + { + this( "", "", "", true ); + } + + public ChangeLogScmResult( String string, String string1, String string2, boolean b ) + { + super( "", "", "", true ); + } + + public ChangeLogSet getChangeLog() + { + return new ChangeLogSet( Collections.EMPTY_LIST, new Date( 360 ), new Date( 720 ) ); + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/MavenProjectStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/MavenProjectStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/MavenProjectStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/MavenProjectStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,53 @@ +package org.apache.maven.changelog.stubs; + +import org.codehaus.plexus.PlexusTestCase; +import org.apache.maven.model.Scm; + +import java.io.File; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/** + * @author Edwin Punzalan + */ +public class MavenProjectStub + extends org.apache.maven.plugin.testing.stubs.MavenProjectStub +{ + public static int testCounter = 0; + + public MavenProjectStub() + { + super(); + + testCounter++; + } + + public Scm getScm() + { + Scm scm = new Scm(); + + scm.setConnection( "scm://" ); + + return scm; + } + + public File getBasedir() + { + return new File( PlexusTestCase.getBasedir(), "target/test-harness/" + testCounter ); + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmManagerStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmManagerStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmManagerStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmManagerStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,72 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.scm.manager.NoSuchScmProviderException; +import org.apache.maven.scm.manager.ScmManager; +import org.apache.maven.scm.provider.ScmProvider; +import org.apache.maven.scm.repository.ScmRepository; +import org.apache.maven.scm.repository.ScmRepositoryException; +import org.apache.maven.scm.repository.UnknownRepositoryStructure; + +import java.io.File; +import java.util.List; + + +/** + * + * @author Edwin Punzalan + */ +public class ScmManagerStub + implements ScmManager +{ + public ScmProvider getProviderByType( String string ) + throws NoSuchScmProviderException + { + return null; + } + + public ScmProvider getProviderByUrl( String string ) + throws ScmRepositoryException, NoSuchScmProviderException + { + return null; + } + + public ScmRepository makeProviderScmRepository( String string, File file ) + throws ScmRepositoryException, UnknownRepositoryStructure, NoSuchScmProviderException + { + return null; + } + + public ScmRepository makeScmRepository( String string ) + throws ScmRepositoryException, NoSuchScmProviderException + { + return new ScmRepositoryStub(); + } + + public List validateScmRepository( String string ) + { + return null; + } + + public ScmProvider getProviderByRepository( ScmRepository scmRepository ) + throws NoSuchScmProviderException + { + return new ScmProviderStub(); + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderRepositoryStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderRepositoryStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderRepositoryStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderRepositoryStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,28 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.scm.provider.ScmProviderRepository; + +/** + * @author Edwin Punzalan + */ +public class ScmProviderRepositoryStub + extends ScmProviderRepository +{ +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmProviderStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,192 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.scm.ScmException; +import org.apache.maven.scm.ScmFileSet; +import org.apache.maven.scm.command.add.AddScmResult; +import org.apache.maven.scm.command.changelog.ChangeLogScmResult; +import org.apache.maven.scm.command.checkin.CheckInScmResult; +import org.apache.maven.scm.command.checkout.CheckOutScmResult; +import org.apache.maven.scm.command.diff.DiffScmResult; +import org.apache.maven.scm.command.edit.EditScmResult; +import org.apache.maven.scm.command.remove.RemoveScmResult; +import org.apache.maven.scm.command.status.StatusScmResult; +import org.apache.maven.scm.command.tag.TagScmResult; +import org.apache.maven.scm.command.unedit.UnEditScmResult; +import org.apache.maven.scm.command.update.UpdateScmResult; +import org.apache.maven.scm.log.ScmLogger; +import org.apache.maven.scm.provider.ScmProvider; +import org.apache.maven.scm.provider.ScmProviderRepository; +import org.apache.maven.scm.repository.ScmRepository; +import org.apache.maven.scm.repository.ScmRepositoryException; +import org.apache.maven.scm.repository.UnknownRepositoryStructure; + +import java.io.File; +import java.util.Date; +import java.util.List; + +/** + * @author Edwin Punzalan + */ +public class ScmProviderStub + implements ScmProvider +{ + public AddScmResult add( ScmRepository scmRepository, ScmFileSet scmFileSet ) + throws ScmException + { + return null; + } + + public void addListener( ScmLogger scmLogger ) + { + } + + public ChangeLogScmResult changeLog( ScmRepository scmRepository, ScmFileSet scmFileSet, Date date, Date date1, + int i, String string ) + throws ScmException + { + return null; + } + + public ChangeLogScmResult changeLog( ScmRepository scmRepository, ScmFileSet scmFileSet, Date date, Date date1, + int i, String string, String string1 ) + throws ScmException + { + return new org.apache.maven.changelog.stubs.ChangeLogScmResult(); + } + + public ChangeLogScmResult changeLog( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, + String string1 ) + throws ScmException + { + return null; + } + + public ChangeLogScmResult changeLog( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, + String string1, String string2 ) + throws ScmException + { + return null; + } + + public CheckInScmResult checkIn( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1 ) + throws ScmException + { + return null; + } + + public CheckOutScmResult checkOut( ScmRepository scmRepository, ScmFileSet scmFileSet, String string ) + throws ScmException + { + return null; + } + + public DiffScmResult diff( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1 ) + throws ScmException + { + return null; + } + + public EditScmResult edit( ScmRepository scmRepository, ScmFileSet scmFileSet ) + throws ScmException + { + return null; + } + + public String getScmSpecificFilename() + { + return null; + } + + public String getScmType() + { + return null; + } + + public ScmProviderRepository makeProviderScmRepository( File file ) + throws ScmRepositoryException, UnknownRepositoryStructure + { + return null; + } + + public ScmProviderRepository makeProviderScmRepository( String string, char c ) + throws ScmRepositoryException + { + return null; + } + + public RemoveScmResult remove( ScmRepository scmRepository, ScmFileSet scmFileSet, String string ) + throws ScmException + { + return null; + } + + public boolean requiresEditMode() + { + return false; + } + + public StatusScmResult status( ScmRepository scmRepository, ScmFileSet scmFileSet ) + throws ScmException + { + return null; + } + + public TagScmResult tag( ScmRepository scmRepository, ScmFileSet scmFileSet, String string ) + throws ScmException + { + return null; + } + + public UnEditScmResult unedit( ScmRepository scmRepository, ScmFileSet scmFileSet ) + throws ScmException + { + return null; + } + + public UpdateScmResult update( ScmRepository scmRepository, ScmFileSet scmFileSet, String string ) + throws ScmException + { + return null; + } + + public UpdateScmResult update( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, Date date ) + throws ScmException + { + return null; + } + + public UpdateScmResult update( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, Date date, + String string1 ) + throws ScmException + { + return null; + } + + public UpdateScmResult update( ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1 ) + throws ScmException + { + return null; + } + + public List validateScmUrl( String string, char c ) + { + return null; + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmRepositoryStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmRepositoryStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmRepositoryStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/ScmRepositoryStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,32 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.scm.repository.ScmRepository; + +/** + * @author Edwin Punzalan + */ +public class ScmRepositoryStub + extends ScmRepository +{ + public ScmRepositoryStub( ) + { + super( "ScmProviderStub", new ScmProviderRepositoryStub() ); + } +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/SettingsStub.java URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/SettingsStub.java?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/SettingsStub.java (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/java/org/apache/maven/changelog/stubs/SettingsStub.java Mon Apr 10 19:49:24 2006 @@ -0,0 +1,28 @@ +package org.apache.maven.changelog.stubs; + +/* + * Copyright 2001-2006 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +import org.apache.maven.settings.Settings; + +/** + * @author Edwin Punzalan + */ +public class SettingsStub + extends Settings +{ +} Added: maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/min-plugin-config.xml URL: http://svn.apache.org/viewcvs/maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/min-plugin-config.xml?rev=393140&view=auto ============================================================================== --- maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/min-plugin-config.xml (added) +++ maven/sandbox/plugins/maven-changelog-plugin/src/test/plugin-configs/min-plugin-config.xml Mon Apr 10 19:49:24 2006 @@ -0,0 +1,40 @@ +<!-- + ~ Copyright 2001-2006 The Apache Software Foundation. + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License. + ~ + --> +<project> + <build> + <plugins> + <plugin> + <artifactId>maven-changelog-plugin</artifactId> + <configuration> + <type>range</type> + <range>-1</range> + <dateFormat>yyyy-MM-dd</dateFormat> + <basedir>${basedir}/src/main/java</basedir> + <outputXML>changelog.xml</outputXML> + <outputXMLExpiration>60</outputXMLExpiration> + <outputEncoding>ISO-8859-1</outputEncoding> + <scmUrl>scm://</scmUrl> + <outputDirectory>site</outputDirectory> + <offline>false</offline> + <connectionType>connection</connectionType> + <project implementation="org.apache.maven.changelog.stubs.MavenProjectStub"/> + <settings implementation="org.apache.maven.changelog.stubs.SettingsStub"/> + </configuration> + </plugin> + </plugins> + </build> +</project>