[
https://issues.apache.org/jira/browse/NPANDAY-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915578#comment-13915578
]
David Akehurst commented on NPANDAY-610:
----------------------------------------
===================================================================
---
plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/AbstractCompilerMojo.java
(revision 1572877)
+++
plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/AbstractCompilerMojo.java
(working copy)
@@ -798,6 +798,14 @@
*/
+ /**
+ * artifactType
+ *
+ * @parameter expression = "${artifactType}"
+ */
+ protected String artifactType;
+
+
public void execute() throws MojoExecutionException
{
SettingsUtil.applyCustomSettings( getLog(), repositoryRegistry,
settingsPath );
Index:
plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/CompilerMojo.java
===================================================================
---
plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/CompilerMojo.java
(revision 1572877)
+++
plugins/maven-compile-plugin/src/main/java/npanday/plugin/compile/CompilerMojo.java
(working copy)
@@ -104,7 +104,8 @@
compilerConfig.setCommands( getParameters() );
- String artifactTypeName = project.getArtifact().getType();
+
+ String artifactTypeName =
(null!=artifactType)?artifactType:project.getArtifact().getType();
ArtifactType artifactType =
ArtifactType.getArtifactTypeForPackagingName( artifactTypeName );
if ( artifactType.equals( ArtifactType.NULL ) )
{
> ArtifactType as an optional configuration argument
> --------------------------------------------------
>
> Key: NPANDAY-610
> URL: https://issues.apache.org/jira/browse/NPANDAY-610
> Project: NPanday
> Issue Type: Improvement
> Components: Maven Plugins
> Affects Versions: 1.5.0-incubating
> Reporter: David Akehurst
>
> For one of my uses of npanday I need to be able to define the artifactType
> using a configuration argument. (I.e. it is not defined by the package type
> of the pom).
> I have implemented this, and attached an svn diff of the trunk to this ticket.
> Could we get it into the 1.5.0 release please.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)