Re: Can we write a custom webapp plugin that uses the war plugin and its configruation?

2009-08-25 Thread Anil-C

Thanks for the quick reply. I have tried this plugin earlier thats not what i
wanted. This plugin reads the metadata information of the plugin at compile
time. I need something that can read the configuration of from the pom for
maven-war-plugin (if no configuration specified, take defaults), and provide
them to my custom plugin. To give an example, below is the current
configuration we have in our web application.


... 
...
  

  org.apache.maven.plugins
  maven-war-plugin
  
  src/webapp
  ${jboss.expldoed}
  
src/main/filters/${filter}.properties
  
  

  src/webapp/WEB-INF
  true
  
tabconfig.xml
  

  

  
...
...


When i use my custom goal webapp:refresh - i would like to refresh the
webapp directory alone using the above configuration. I would really not
like to redefined this configuration again for my custom plugin of the pom.




Sven Preßler wrote:
> 
> You might want to take a look at the maven-inherit-plugin:
> http://www.ops4j.org/projects/pax/construct/maven-inherit-plugin/
> 
> -Sven
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Can-we-write-a-custom-webapp-plugin-that-uses-the-war-plugin-and-its-configruation--tp25140948p25142714.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Can we write a custom webapp plugin that uses the war plugin and its configruation?

2009-08-25 Thread Anil-C

I am trying to create a new plugin webapp with two goals clean and refresh to
extend the functionality of the maven-war-plugin. webapp:clean would clean
the webappDirectory and webapp:refresh would refresh the warSourceDirectory
and apply modifications to the webappDirectory (similar to war:exploded but
doesn't proces the source directory) skipping the web.xml (guessed it right,
hotdeploy for jsp's, tags, images alone) and ofcourse use the configuration
defined in maven-war-plugin as it is like any filtering, blah blah, without
. 

The way i am hoping to achieve this is,get hold of the maven-war-plugin
instance based on the project pom somehow and invoke custom methods with in
that Mojo. I don't know if there is a way to do the first part?

I have digged through the users forum and the tutorials/blogs available on
maven plugin development. However, i couldn't find a good example that i can
refer to in my situation. I am not experience plugin writer (infact this is
the first onmy own, apart from the standard hello world examples). Any
suggesstions that can help me getting through my first plugin is greatly
appreciated.

Thank you
Anil
-- 
View this message in context: 
http://www.nabble.com/Can-we-write-a-custom-webapp-plugin-that-uses-the-war-plugin-and-its-configruation--tp25140948p25140948.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Final Memory

2008-12-16 Thread Anil-C

Hi Paul,

I was looking exactly for the same question. Did you get an answer to this?

Thanks
Anil


Paul Benedict-2 wrote:
> 
> What does the "Final Memory" detail represent when Maven finishes? I can't
> find any documentation on what the two numbers mean.
> 
> [INFO] Final Memory: 1M/4M
> 
> Paul
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Final-Memory-tp15091792p21039789.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org