jbossas / jboss-as-maven-plugin

Maven plugin to deploy applications to JBoss AS 7 (moved to https://github.com/wildfly/wildfly-maven-plugin)
74 stars 69 forks source link

deploy-artifact throws NullPointer #22

Closed shupakabras closed 12 years ago

shupakabras commented 12 years ago
  1. Create a simple pom.xml for deployment
``` 4.0.0 test deploy-jboss 0.1 pom localhost 9999 admin admin org.jboss.as.plugins jboss-as-maven-plugin 7.3.Final ${jboss.hostname} ${jboss.port} ${jboss.username} ${jboss.password} testApp com.test testApp.war com.test testApp 0.1 war runtime

1. call for mvn jboss-as:deploy-artifact
2. You will get  NullPointerException  at org.jboss.as.plugin.deployment.PackageType.resolve(PackageType.java:48)

For some reasons, DeployArtifact class contains 
    @Parameter(defaultValue = "${project}", readonly = true, required = true)
    private MavenProject project;
which is already declated in parent class AbstractDeployment. 

removing private MavenProject project; from DeployArtifact  fixing this issue
jamezp commented 12 years ago

Moving to https://issues.jboss.org/browse/JBASMP-28