Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static Plugin getPlugin(Model model, String pluginGa) {
* @param plugin can be null
* @param parameter the parameter name when configured in plugin's configuration
* @param defaultValueProperty the property name when default value is used for the plugin parameter
* @return the value, or null if not configured at all, but using internal default from plugin.
* @return the value, or null if not configured at all, but using internal default from plugin
*/
public static String getPluginParameter(Model model, Plugin plugin, String parameter, String defaultValueProperty) {
String value = getPluginParameter(plugin, parameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ManifestConfiguration {
public static final String CLASSPATH_LAYOUT_TYPE_SIMPLE = "simple";

/**
* The layout type
* The layout type.
*/
public static final String CLASSPATH_LAYOUT_TYPE_REPOSITORY = "repository";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public void setForced(boolean forced) {
/**
* Returns the location of the "pom.properties" file. May be null, in which case a default value is choosen.
*
* @return "pom.properties" location or null.
* @return "pom.properties" location or null
*/
public Path getPomPropertiesFile() {
return pomPropertiesFile;
Expand All @@ -296,7 +296,7 @@ public Path getPomPropertiesFile() {
/**
* Sets the location of the "pom.properties" file. May be null, in which case a default value is choosen.
*
* @param pomPropertiesFile "pom.properties" location or null.
* @param pomPropertiesFile "pom.properties" location or null
*/
public void setPomPropertiesFile(Path pomPropertiesFile) {
this.pomPropertiesFile = pomPropertiesFile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class MavenArchiver {
+ "${artifact.version}${dashClassifier?}.${artifact.extension}";

/**
* simple layout non unique.
* Simple layout non unique.
*/
public static final String SIMPLE_LAYOUT_NONUNIQUE =
"${artifact.artifactId}-${artifact.baseVersion}${dashClassifier?}.${artifact.extension}";
Expand Down Expand Up @@ -186,7 +186,7 @@ public Manifest getManifest(Session session, Project project, MavenArchiveConfig
* @param project {@link org.apache.maven.api.Project}
* @param config {@link ManifestConfiguration}
* @return {@link org.codehaus.plexus.archiver.jar.Manifest}
* @throws MavenArchiverException exception.
* @throws MavenArchiverException exception
*/
// TODO Add user attributes list and user groups list
public Manifest getManifest(Project project, ManifestConfiguration config) throws MavenArchiverException {
Expand Down Expand Up @@ -224,7 +224,7 @@ private void addManifestAttribute(Manifest manifest, String key, String value) t
* @param session {@link org.apache.maven.api.Session}
* @param project {@link org.apache.maven.api.Project}
* @param config {@link ManifestConfiguration}
* @param entries The entries.
* @param entries the entries
* @return {@link org.codehaus.plexus.archiver.jar.Manifest}
* @throws MavenArchiverException exception
*/
Expand Down Expand Up @@ -472,7 +472,7 @@ public void setArchiver(JarArchiver archiver) {
/**
* <p>setOutputFile.</p>
*
* @param outputFile Set output file.
* @param outputFile set output file
*/
public void setOutputFile(File outputFile) {
archiveFile = outputFile;
Expand All @@ -484,7 +484,7 @@ public void setOutputFile(File outputFile) {
* @param session {@link org.apache.maven.api.Session}
* @param project {@link org.apache.maven.api.Project}
* @param archiveConfiguration {@link MavenArchiveConfiguration}
* @throws MavenArchiverException Archiver Exception.
* @throws MavenArchiverException archiver Exception
*/
public void createArchive(Session session, Project project, MavenArchiveConfiguration archiveConfiguration)
throws MavenArchiverException {
Expand Down Expand Up @@ -676,10 +676,10 @@ public void setBuildJdkSpecDefaultEntry(boolean buildJdkSpecDefaultEntry) {
* @param outputTimestamp the value of {@code ${project.build.outputTimestamp}} (may be {@code null})
* @return the parsed timestamp as an {@code Optional<Instant>}, {@code empty} if input is {@code null} or input
* contains only 1 character (not a number)
* @since 3.6.0
* @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer.
* @throws IllegalArgumentException if the outputTimestamp is neither ISO 8601 nor an integer
* @see <a href="https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318">Maven Wiki "Reproducible/Verifiable
* Builds"</a>
* @since 3.6.0
*/
public static Optional<Instant> parseBuildOutputTimestamp(String outputTimestamp) {
// Fail fast on null and no timestamp configured (1 character configuration is useful to override
Expand Down Expand Up @@ -729,8 +729,8 @@ private static boolean isNumeric(String str) {
* Configure Reproducible Builds archive creation if a timestamp is provided.
*
* @param outputTimestamp the value of {@code project.build.outputTimestamp} (may be {@code null})
* @since 3.6.0
* @see #parseBuildOutputTimestamp(String)
* @since 3.6.0
*/
public void configureReproducibleBuild(String outputTimestamp) {
parseBuildOutputTimestamp(outputTimestamp).map(FileTime::from).ifPresent(modifiedTime -> getArchiver()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ private void createPropertiesFile(Properties properties, Path outputFile) throws
* @param project {@link org.apache.maven.api.Project}
* @param archiver {@link org.codehaus.plexus.archiver.Archiver}
* @param customPomPropertiesFile optional custom pom properties file
* @param pomPropertiesFile The pom properties file.
* @throws org.codehaus.plexus.archiver.ArchiverException archiver exception.
* @throws java.io.IOException IO exception.
* @param pomPropertiesFile the pom properties file
* @throws java.io.IOException IO exception
* @throws org.codehaus.plexus.archiver.ArchiverException archiver exception
*/
public void createPomProperties(
Project project, Archiver archiver, Path customPomPropertiesFile, Path pomPropertiesFile)
Expand Down