Re: Maven2 - Where to put script files?

2008-12-24 Thread AsafM

I'm contemplating this my self.
Anyone has a solution?


CodingPlayer wrote:
 
 thx for your reply, but i'm not sure what exactly you mean:
 
 project_name/scripts  or (since the scripts belong to the whole
 project)
 
 project_name/src/scripts or (since scripts are part of the source)
 
 project_name/src/main/scripts and
 project_name/src/test/scripts (since scripts for runtime and tests
 should be divided apart)
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven2---Where-to-put-script-files--tp5594755p21156894.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: resource plugin and empty directories

2008-08-07 Thread AsafM

I couldn't find any option to make this plugin copy empty directories.
Any chance the developers solved that?


Wayne Fay wrote:
 
 Not sure if this is currently possible. Check the source code to see
 what configuration options are available and perhaps you'll find
 something.
 
 If its not already implemented in the resource plugin, I have to
 imagine it would be a pretty simple modification (with an added
 variable copyEmptyDirectories, default to false) to add this
 functionality and provide a patch back to the project.
 
 Wayne
 
 
 On 3/27/06, Kevin Galligan [EMAIL PROTECTED] wrote:
 Is there any way to get the resource plugin to copy empty directories (I
 assume its the resource plugin when doing a jar packaged build).  Long
 story
 as to why I'd need this.

 Thanks,
 -Kevin


 
 

-- 
View this message in context: 
http://www.nabble.com/resource-plugin-and-empty-directories-tp3619573p18868167.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

But you are required to specify their .TLD file location, in web.xml:
taglib
taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
taglib-locationWEB-INF/x.tld/taglib-location
/taglib

The problem here is that it requires you to copy the x.tld file manually
into WEB-INF directory. It you specify a JAR file, it searches for a
specific filename (I think its library.tld).


nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14797058.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

I found the solution, for using Jakarta Taglibs in JBoss/Tomcat with Maven:

1. Place the following dependencies in the pom.xml of your Web Application
project:
dependency
groupIdtaglibs/groupId
artifactIdstandard/artifactId
version1.1.2/version
/dependency

dependency
groupIdtaglibs/groupId
artifactIdx/artifactId
version1.1.2/version
typetld/type
/dependency

  Notice that the 2nd dependency saves you the trouble of extracting the TLD
from the jar file.

2. Maven-War-Plugin, copies the JAR file into WEB-INF/lib and the TLD file
into WEB-INF/tld:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.2-SNAPSHOT/version
/plugin
/plugins
/build

3. In the web.xml of your web application, place the following lines:
taglib
taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
taglib-locationtld/x-1.1.2.tld/taglib-location
/taglib

The taglib URI was taken from the uri element in the x-1.1.2.tld file.
the location is relative to WEB-INF directory.

4. Place the following line in the JSP file:
[EMAIL PROTECTED] uri=http://java.sun.com/jsp/jstl/xml; prefix=x %

5. Use the tags defines in the tld with x:tag-name/x:tag-name





AsafM wrote:
 
 But you are required to specify their .TLD file location, in web.xml:
   taglib
   taglib-urihttp://java.sun.com/jsp/jstl/xml/taglib-uri
   taglib-locationWEB-INF/x.tld/taglib-location
   /taglib
 
 The problem here is that it requires you to copy the x.tld file manually
 into WEB-INF directory. It you specify a JAR file, it searches for a
 specific filename (I think its library.tld).
 
 
 nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as
 you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14797283.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-14 Thread AsafM

You are correct. I removed the reference from the web.xml and it worked.

To summarize what you said:
1. Place the taglibs jar file in your classpath
2. Use the [EMAIL PROTECTED] uri=...% with the string located in the uri 
element
in the .TLD file of the taglib you wish to use.

Just to verify:
The URI is no really referring to a real resource on the web, it's just
a unique name for the taglib, right?

Thank alot for your help! Saved me a few hours of research!

Asaf

nicolas de loof-3 wrote:
 
 The URI is defined by the taglib developers
 
 for example, Struts1 taglibs use :
 %@ taglib  uri=http://struts.apache.org/tags-html;  prefix=html %
 (@see http://struts.apache.org/1.x/userGuide/configuration.html)
 
 You then don't have to specify anything in your web.xml
 
 The web.xml taglib element is for your application tags, not for tags
 imported from packaged libraries.
 
 Nico.
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 So basically, the URI is chosen arbitrary, as long as it's the same value
 in
 the web.xml and in the %@ taglib% directive?


 nicolas de loof-3 wrote:
 
  taglibs don't require to have TLD files extracted from jars as long as
 you
  use the taglib URI in your JSP %@ taglib % directives. Use maven to
 get
  jars in your web-inf/lib and all taglibs will be detected at server
  startup.
 
  Nico.
 
 
  2008/1/13, AsafM [EMAIL PROTECTED]:
 
 
  Hi All,
 
  I have a web application we're developing,  using servlets and JSP's
 on
  JBoss with embedded Tomcat.
 
  We want to use Jakarta taglib, which comes as a JAR file from maven
  repository (the global one).
 
  The problem is that using it requires a manual-copy step of the .TLD
  files
  from the META-INF directory in the JAR file to our
  src/main/webapp/WEB-INF
  directory.
 
  (See instructions in 
 http://jakarta.apache.org/taglibs/binarydist.html
  instructions for installing Jakara Taglibs )
 
  Has anyone used Jakarta Taglibs together with maven  and solved this?
  --
  View this message in context:
 
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14799205.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Working with Jakarta taglibs - question

2008-01-13 Thread AsafM

Hi All,

I have a web application we're developing,  using servlets and JSP's on
JBoss with embedded Tomcat.

We want to use Jakarta taglib, which comes as a JAR file from maven
repository (the global one).

The problem is that using it requires a manual-copy step of the .TLD files
from the META-INF directory in the JAR file to our src/main/webapp/WEB-INF
directory.

(See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
instructions for installing Jakara Taglibs )

Has anyone used Jakarta Taglibs together with maven  and solved this?
-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Working with Jakarta taglibs - question

2008-01-13 Thread AsafM

So basically, the URI is chosen arbitrary, as long as it's the same value in
the web.xml and in the %@ taglib% directive?
 

nicolas de loof-3 wrote:
 
 taglibs don't require to have TLD files extracted from jars as long as you
 use the taglib URI in your JSP %@ taglib % directives. Use maven to get
 jars in your web-inf/lib and all taglibs will be detected at server
 startup.
 
 Nico.
 
 
 2008/1/13, AsafM [EMAIL PROTECTED]:


 Hi All,

 I have a web application we're developing,  using servlets and JSP's on
 JBoss with embedded Tomcat.

 We want to use Jakarta taglib, which comes as a JAR file from maven
 repository (the global one).

 The problem is that using it requires a manual-copy step of the .TLD
 files
 from the META-INF directory in the JAR file to our
 src/main/webapp/WEB-INF
 directory.

 (See instructions in  http://jakarta.apache.org/taglibs/binarydist.html
 instructions for installing Jakara Taglibs )

 Has anyone used Jakarta Taglibs together with maven  and solved this?
 --
 View this message in context:
 http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14787960.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Working-with-Jakarta-taglibs---question-tp14787960s177p14789639.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]