You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "David Jackman (JIRA)" <ji...@codehaus.org> on 2005/10/27 20:43:11 UTC
[jira] Created: (MNG-1347) Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
--------------------------------------------------------------------------------
Key: MNG-1347
URL: http://jira.codehaus.org/browse/MNG-1347
Project: Maven 2
Type: Improvement
Versions: 2.0
Reporter: David Jackman
Priority: Minor
Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
public class Base extends AbstractMojo
{
/**
* @parameter property="parameter"
*/
private String m_parameter;
public void setParameter(String parameter)
{
m_parameter = parameter;
}
...
}
/**
* @goal mygoal
*/
public class MyMojo extends Base
{
...
}
Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1347) Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1347?page=all ]
Brett Porter updated MNG-1347:
------------------------------
Description:
Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
public class Base extends AbstractMojo
{
/**
* @parameter property="parameter"
*/
private String m_parameter;
public void setParameter(String parameter)
{
m_parameter = parameter;
}
...
}
/**
* @goal mygoal
*/
public class MyMojo extends Base
{
...
}
Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
was:
Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
public class Base extends AbstractMojo
{
/**
* @parameter property="parameter"
*/
private String m_parameter;
public void setParameter(String parameter)
{
m_parameter = parameter;
}
...
}
/**
* @goal mygoal
*/
public class MyMojo extends Base
{
...
}
Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
Fix Version: 2.0.1
Environment:
> Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
> --------------------------------------------------------------------------------
>
> Key: MNG-1347
> URL: http://jira.codehaus.org/browse/MNG-1347
> Project: Maven 2
> Type: Improvement
> Versions: 2.0
> Reporter: David Jackman
> Priority: Minor
> Fix For: 2.0.1
>
>
> Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
> public class Base extends AbstractMojo
> {
> /**
> * @parameter property="parameter"
> */
> private String m_parameter;
> public void setParameter(String parameter)
> {
> m_parameter = parameter;
> }
> ...
> }
> /**
> * @goal mygoal
> */
> public class MyMojo extends Base
> {
> ...
> }
> Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
> If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1347) Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1347?page=all ]
John Casey updated MNG-1347:
----------------------------
Fix Version: (was: 2.0.1)
2.0.2
> Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
> --------------------------------------------------------------------------------
>
> Key: MNG-1347
> URL: http://jira.codehaus.org/browse/MNG-1347
> Project: Maven 2
> Type: Improvement
> Versions: 2.0
> Reporter: David Jackman
> Priority: Minor
> Fix For: 2.0.2
>
>
> Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
> public class Base extends AbstractMojo
> {
> /**
> * @parameter property="parameter"
> */
> private String m_parameter;
> public void setParameter(String parameter)
> {
> m_parameter = parameter;
> }
> ...
> }
> /**
> * @goal mygoal
> */
> public class MyMojo extends Base
> {
> ...
> }
> Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
> If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Updated: (MNG-1347) Maven (plexus?) doesn't recognize Mojo
parameter setters defined in a base class
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1347?page=all ]
John Casey updated MNG-1347:
----------------------------
Fix Version: (was: 2.0.3)
2.0.4
> Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
> --------------------------------------------------------------------------------
>
> Key: MNG-1347
> URL: http://jira.codehaus.org/browse/MNG-1347
> Project: Maven 2
> Type: Improvement
> Versions: 2.0
> Reporter: David Jackman
> Priority: Minor
> Fix For: 2.0.4
>
>
> Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
> public class Base extends AbstractMojo
> {
> /**
> * @parameter property="parameter"
> */
> private String m_parameter;
> public void setParameter(String parameter)
> {
> m_parameter = parameter;
> }
> ...
> }
> /**
> * @goal mygoal
> */
> public class MyMojo extends Base
> {
> ...
> }
> Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
> If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MNG-1347) Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1347?page=comments#action_49719 ]
Brett Porter commented on MNG-1347:
-----------------------------------
the problem seems to be looking for Class instead of String
> Maven (plexus?) doesn't recognize Mojo parameter setters defined in a base class
> --------------------------------------------------------------------------------
>
> Key: MNG-1347
> URL: http://jira.codehaus.org/browse/MNG-1347
> Project: Maven 2
> Type: Improvement
> Versions: 2.0
> Reporter: David Jackman
> Priority: Minor
>
>
> Create a Mojo class that extends some base class that itself defines a parameter that uses a setter. Here's an example:
> public class Base extends AbstractMojo
> {
> /**
> * @parameter property="parameter"
> */
> private String m_parameter;
> public void setParameter(String parameter)
> {
> m_parameter = parameter;
> }
> ...
> }
> /**
> * @goal mygoal
> */
> public class MyMojo extends Base
> {
> ...
> }
> Maven can build the plugin just fine, but when I attempt to execute the goal, I get an error: org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot access method: com.example.MyMojo.setParameter( java.lang.Class ).
> If I move the setter to the goal class, it works just fine. Maven (plexus?) should be able to access the method from the base class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org