RE: [m2] any tutorial on how to get Maven to compile and deploy in Tomcat/eclipse?

2008-05-01 Thread Allen, Daniel
I'm not sure I can completely answer your question (relatively new user
myself), but I can tell you what we did here (we also develop in Eclipse
and deploy via Tomcat).

I have this plugin [1] to launch Tomcat via Eclipse and debug the
processes that are running in it. I haven't gotten Maven to smoothly
integrate with Eclipse insofar as building, so I still just run Maven
myself when it's time to rebuild. I believe there's a Maven-Eclipse
plugin that will take care of that, and also set the Classpath and
included JARs as appropriate, but I've seen a lot of complaints about it
on the board, and frankly I don't really mind manually doing those
things. I just leave a command line open and occasionally hit up-arrow +
Enter to re-execute the build when I want to test. We also wrote a
context.xml file to point Tomcat to the default Maven output directory.
This system works fine for our work, but may be a little more
inconvenient for you, since you have a multi-level thing going on.


Things I'm not sure about: 
I would say that logically, core.jar should be a dependency *in Maven*
of the webapp. You should have your own local repository, build your
core using (I think) the install goal, and then build your webapp, and
Maven should take the core.jar it built in the previous step and put it
into the /WEB-INF/lib directory.

Perhaps you could clarify some things from your mail: what is the
command you're using to publish? When you say that the core project
(not just the jar) is a dependency of the webapp, do you mean a Maven
dependency, or an Eclipse project dependency? 

Hope there's something helpful for you in there.
~Dan Allen

[1] http://www.eclipsetotale.com/tomcatPlugin.html

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 30, 2008 6:08 PM
To: maven
Subject: Re: [m2] any tutorial on how to get Maven to compile and deploy
in Tomcat/eclipse?

I have 2 artifacts in this project. Core and Webapp.
When I have the core project (not just the jar) as a dependancy of my
webapp, I get this error when i publish:

*Error creating zip file core.jar: duplicate entry:
META-INF/persistence.xml
duplicate entry: META-INF/persistence.xml*

persistence.xml is in src/main/resources/META-INF, as well as
target/classes/META-INF.

But when I use the core-2.2.jar as the dependancy of my webapp, i can
publish fine, but then get this error:

*Apr 30, 2008 3:06:51 PM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException:
org.jboss.embedded.tomcat.EmbeddedJBossBootstrapListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.
java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358
)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen
t(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emp
tyElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canStartElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDispatcher.dispatch(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own
Source)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own
Source)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
wn
Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
at org.apache.catalina.startup.Catalina.load(Catalina.java:516)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
*




On Wed, Apr 30, 2008 at 2:52 PM, Mick Knutson [EMAIL PROTECTED]
wrote:

 I am trying to switch from IntelliJ to eclipse. I used the
eclipse:eclipse
 plugin, but then used the sonatype plugin to import an existing maven
 multi-module project I have.

 1st i guess i don't understand how or what eclipse is going to use to
 deploy to Tomcat. 

RE: keep out META-INF/context.xml

2008-04-24 Thread Allen, Daniel
I'm not 100% sure (still new at Maven myself) but I believe that copying
files to webapp/* takes place in a different phase. So what I think is
happening is that you've excluded the context.xml file from your main
resources phase, but it gets included in the WAR packaging secondary
resource phase, which is when Maven starts dealing with webapp stuff.

Try adding this to your POM: 

plugins
plugin
artifactIdmaven-war-plugin/artifactId
executions
execution
configuration
webResources
!-- These
resources need to go into WEB-INF, which only exists after the package
phase
 (the normal
resources tags are processed in compile  generate-sources), so the
WAR
 plug-in
handles them instead of the main program. --
resource

directory/src/main/webapp/META-INF/directory

targetPathWEB-INF/targetPath

excludes

exclude**/context.xml/exclude

/excludes
/resource
/webResources
/configuration
/execution
/executions
/plugin 
.
. (other plugins)
.
/plugins

You might have to change the directory, and I think you might be able
to delete the target path element, but I believe that should get the WAR
packaging phase to ignore the context file.

Hope that helps.
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Running some tests but not others according to a -D property?

2008-04-22 Thread Allen, Daniel
Does anyone know if it's possible to have Surefire run some tests but
not others, deciding based on a setting from the command line? My
situation is that some tests are working with Tibco Rendezvous, and the
daemon isn't always available. It would be nice to include
-Dskip.rv.tests=true on the command line and run all the tests except
those that would fail because RV is offline.

Thanks for any advice.
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Surefire test JUnit's TestCase.fail() method

2008-04-17 Thread Allen, Daniel
Hi, all.

I'm using Maven to automatically run my suite of unit tests, which are
made with JUnit 4.4, and I'm having some trouble with it. It runs the
tests successfully, but when one fails, it doesn't give me the message
that I used in the test case. That is, JUnit's TestCase class has the
method fail(String) so that you can add some details about what
particular way the test failed. The Surefire plugin doesn't seem to keep
that message; it only tells me that such and such a test failed.

Is ther a configuration variable I can change? I looked at the
documentation[1], but nothing mentioned the fail() messages.

Thanks,
~Dan Allen

[1]http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Maven Surefire Plugin Quick Question

2008-04-15 Thread Allen, Daniel
To my knowledge, if you run the tests and there are failures you can't build, 
although you can get something similar by including 
-Dmaven.test.skip=true
on the command line. That skips the tests entirely. 

-Original Message-
From: Tonté Pouncil [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 15, 2008 2:29 PM
To: users@maven.apache.org
Subject: Maven Surefire Plugin Quick Question


Hi,

I am using Maven 2.0.8.  How do I enable maven to build successfully even
though I have test failures?

Thansk!

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Downloading a file from the network as part of gathering resources?

2008-04-15 Thread Allen, Daniel
Hi all.

I'm builing my project with Maven 2, and am wondering if there's a
plug-in that can download a file from the web as a resource. Basically,
my project is a web front end for someone else's project, and we'll be
sharing an XSD file that describes the format of our communications.
However, for company political/historical reasons, our teams' source
control modules are different (CVS vs. Perforce), so I can't just get it
from the SCM before building. So, I was hoping that we can keep it
somewhere in source control that is visible to the web (or at least the
intranet) so that for my build process I can simply download the most
recent version that way. How can I get Maven to do this?

Thanks,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Accessing test.properties from within a test case class?

2008-04-08 Thread Allen, Daniel
Hi, all.

I feel like this must be a really obvious question, but I haven't found
an example yet. When I started my project from an archetype (struts 2,
specifically) my /test/resources folder got a file called
test.properties. It seems pretty clear that this is where properties
that my test cases will use should go, but I'm not sure how to access
them from within the test case classes.

In case specifics are needed, I want to test database-related functions,
and am looking for the correct place to put the connection string, user
name, etc, as well as the way to access them in Java code so that I can
open connections accordingly.


Thanks in advance,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Accessing test.properties from within a test case class?

2008-04-08 Thread Allen, Daniel
Ok, thanks. 

Sorry, I knew it was going to something simple that I was just missing.

~DVA 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 08, 2008 3:59 PM
To: Maven Users List
Subject: RE: Accessing test.properties from within a test case class?

It will be on the classpath, so load that property file as a resource
from the cp.

-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 08, 2008 3:45 PM
To: Maven Users List
Subject: Accessing test.properties from within a test case class?

Hi, all.

I feel like this must be a really obvious question, but I haven't found
an example yet. When I started my project from an archetype (struts 2,
specifically) my /test/resources folder got a file called
test.properties. It seems pretty clear that this is where properties
that my test cases will use should go, but I'm not sure how to access
them from within the test case classes.

In case specifics are needed, I want to test database-related functions,
and am looking for the correct place to put the connection string, user
name, etc, as well as the way to access them in Java code so that I can
open connections accordingly.


Thanks in advance,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



[m2] manually deploying?

2008-03-26 Thread Allen, Daniel
Ok, so I know it's sort of an asinine thing to do. However, currently
mvn deploy is returning an HTTP 405 error from our repository, and I
don't really have control over our company repository (new employee
doesn't get permissions for a while), so I can only do a manual copy to
the appropriate point in the remote file system.

So, does deploy do anything besides copy the files (including metadata
from the install phase) and generate a checksum? Can I create checksums
manually? What do I hash, just the JAR file itself?

Thanks for indulging my roundabout way of doing things. I promise it's
corporate circumstance, not me. :p

~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] manually deploying?

2008-03-26 Thread Allen, Daniel
Something is set up wrong with the repository so that it's basically
read-only at present, and any attempt to use deploy gives an HTTP 405
error. The people who maintain it are on a different continent, and also
pretty busy, so it can be hard to get hold of them, and when I do I'm
often told to find a workaround in the mean time. Hence my question
here.

Thanks for the info. Assuming we have hash utilities around here (and we
ought to) that should suffice.
~DVA

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 1:43 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?

Wouldn't it be easier to have someone else deploy it for you?

Every file that goes into the repository gets a sha1 and md5 hash. That
minimally means the pom and the jar.

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] manually deploying?

2008-03-26 Thread Allen, Daniel
What do you mean? Change it how?

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] manually deploying?

2008-03-26 Thread Allen, Daniel
It does upload the files now, but for some reason a checksum is only
generated for a metadata XML file, and not for the JAR or POM. 

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 4:33 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?

Change your pom to use file:/// or scp:///

-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 4:27 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?

What do you mean? Change it how?

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 26, 2008 2:49 PM
To: Maven Users List
Subject: RE: [m2] manually deploying?

If you have file or scp access to the repo, why not just change the
distMgt url in the meantime?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] Javadoc packaged with deployed JAR

2008-03-17 Thread Allen, Daniel
By the way, I found in the FAQs for the javadoc plugin the information
on how to deploy the separate Javadoc JAR file, but it turned out that
doesn't help. That's mostly Eclipse's fault (for some reason you can't
use a path variable to indicate where to find Javadocs, only source?
WTF, Eclipse team?) But anyway, I would still really like to package the
Javadoc into the same JAR as the classes, if that's possible.

~DVA


-Original Message-
From: Allen, Daniel 
Sent: Friday, March 14, 2008 4:10 PM
To: Maven Users List
Subject: [m2] Javadoc packaged with deployed JAR

Hi, all.

I've created a small package of utilities that I'm deploying to the
company's local repository for reuse. However, a problem with that reuse
is that when we do our programming in Eclipse, the mouse-over javadoc
display doesn't work, so it's hard to tell what functionality I'm
actually providing. I know that I can create the javadocs as a Maven
report with the javadoc plugin, or generate the documents on their own
with mvn javadoc:jar, but is there a way to include the javadoc
results in the same JAR file that's produced and deployed by mvn
deploy? I think that way, Eclipse would see them and helpfully display
arguments, comments, etc. one I add my package to the build path.
Failing that, how would I go about deploying the JAR that mvn
javadoc:jar creates?

Thanks,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



[m2] Javadoc packaged with deployed JAR

2008-03-14 Thread Allen, Daniel
Hi, all.

I've created a small package of utilities that I'm deploying to the
company's local repository for reuse. However, a problem with that reuse
is that when we do our programming in Eclipse, the mouse-over javadoc
display doesn't work, so it's hard to tell what functionality I'm
actually providing. I know that I can create the javadocs as a Maven
report with the javadoc plugin, or generate the documents on their own
with mvn javadoc:jar, but is there a way to include the javadoc
results in the same JAR file that's produced and deployed by mvn
deploy? I think that way, Eclipse would see them and helpfully display
arguments, comments, etc. one I add my package to the build path.
Failing that, how would I go about deploying the JAR that mvn
javadoc:jar creates?

Thanks,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Knowing what artifact I need?

2008-03-07 Thread Allen, Daniel
Hi all.

I have a general sort of question about writing POMs. When figuring out
what dependencies I need, I frequently come up against the fact that the
web at large refers to package names when talking about class usage,
whereas Maven refers to the name of the jar file that it comes in. So
sometimes I have to go searching for what the proper artifactId is, even
if I know where I could go and manually download the JAR file. For
example, using Spring, I was getting ClassNotFoundExceptions for
org.springframework.scripting.[various classes].  But the artifact that
I needed was not called scripting, it was called spring-support.

This isn't a huge deal, just some extra time on Google, but it would be
convenient if there were some kind of database that mapped actual Java
packages to the names of the JAR artifacts that contain them. 

Does anything like that exist currently?
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Knowing what artifact I need?

2008-03-07 Thread Allen, Daniel
Olivier:

I'm don't think those are quite what I'm talking about: I put
org.springframework.ejb into the search fields, and didn't get any
results (what I'm hoping this would return would be spring-remote.jar,
which is where that package is). Am I using it wrong?

Brian:

Do you have any idea where the plugin gets its information from? Are
they keeping some kind of extra-fancy repository-plus?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: sharing properties between modules

2008-03-07 Thread Allen, Daniel
If you're talking about just properties and not any code or classes,
then perhaps you could just use variables and filtering in the
configuration files, and then have a profile that's used in both builds?

I would suggest perhaps a sort of token parent project whose POM doesn't
really contain anything except for a profile element that defines
these shared values, and then they will be available for resource
elements in your projects' POMs. Of course, I'm still new at this, so
I'd say get a second opinion on that.

~Dan Allen

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 5:47 PM
To: Maven Users List
Subject: RE: sharing properties between modules

So we have app1 and it has a property like, db.username.  App2 needs to
connect to the same database, but doesn't share a parent.

For example, app1 loads data into a db, app2 displays said data via a
website.  There is no common/shared code other than the data access
layer.

How would you do a grand parent type dependency?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: sharing properties between modules

2008-03-07 Thread Allen, Daniel
I don't actually know if dependency POMs look at their profiles'
activeByDefault elements or not. I guess not, from what you're
describing. Have you tried invoking the profile explicitly when you run
Maven? (e.g. mvn -P profileName deploy) The dependency POM's profiles
may still be available, even if they're not auto-activated.

Also, I think Wayne was suggesting actually writing config files with
the properties, packaging them into an archive, and then using that as a
dependency. (Sorry, Wayne, if I'm misunderstanding your advice.) Many
frameworks will allow you to do an #include-style import of settings
from other files, so perhaps you could have your bottom-level projects
depend on that archive, and point to its config files.

~DVA

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:28 PM
To: Maven Users List
Subject: RE: sharing properties between modules

So there's no way to keep the properties in various profiles (all within
a pom) and just put a dependency on that pom (I think the dependency
part works, but it doesn't seem to pick up the activated profile)? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:24 PM
To: Maven Users List
Subject: RE: sharing properties between modules

Wait, package what?  99% of our properties are stored in profiles.

When we want to generate the configuration for a particular stack, we
use the -Pcommon,stackname convention. 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2008 6:12 PM
To: Maven Users List
Subject: Re: sharing properties between modules

Sure. Just package it as a jar, and use the dependency plugin to
unpack its contents where you need them in your related projects.

Wayne

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Started getting exception when packaging war

2008-02-27 Thread Allen, Daniel
Hi, all. 

I'm using the war:exploded goal, it was working before, and then I
switched projects for a couple weeks, came back, and found that the same
POM results in this exception now. Does anyone know if there was a
non-backwards compatible update to the WAR plugin or to Maven itself
that might have gotten downloaded automatically while I wasn't looking?

Thanks,
~Dan Allen

[INFO] Processing war project
[INFO] Copy webapp
webResources[H:\workspace\insurancederiv-m2\/src/main/webapp/
WEB-INF] to[H:\workspace\insurancederiv-m2\target\insurancederiv]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO]
org.apache.maven.shared.filtering.MavenFileFilter.getDefaultFilterWrappe
r
s(Lorg/apache/maven/project/MavenProject;Ljava/util/List;Z)Ljava/util/Li
st;
[INFO]

[INFO] Trace
java.lang.NoSuchMethodError:
org.apache.maven.shared.filtering.MavenFileFilter.getDefaultFilterWrappe
rs(Lorg/apache/maven/project/MavenProject;Ljava/util/List;Z)Ljava/util/L
ist;
at
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFilte
redFile(AbstractWarPackagingTask.java:206)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.copyResour
ces(WarProjectPackagingTask.java:278)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR
esources(WarProjectPackagingTask.java:124)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac
kaging(WarProjectPackagingTask.java:84)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.
java:378)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
WarMojo.java:331)
at
org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java
:40)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Started getting exception when packaging war

2008-02-27 Thread Allen, Daniel
Still getting the same result, but adding the -U didn't update the WAR plugin 
(the only thing in the output that was listed as downloaded was a new version 
of the Surefire plugin). I know using --version gives the Maven version, but 
how can I check what version of a particular plugin I'm using?

Also, out of curiosity, do you have any idea why an old dependency would leave 
to a NoSuchMethodException? That seems peculiar.

~DVA

-Original Message-
From: Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 27, 2008 2:45 PM
To: Maven Users List
Subject: Re: Started getting exception when packaging war

Hi Daniel,

Just try to update your repository :
mvn package -U

or indicate the last version (2.1-alpha-1) of maven war plugin in you pom.

We also had this error and it seems that it comes from an old version of a
transitive dependency of the maven-war-plugin.

HTH,

Rémy

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Started getting exception when packaging war

2008-02-27 Thread Allen, Daniel
It's building again--thanks, Olivier!

I'll add a version lock to the plugin delcaration too; that's a good
idea.
~Dan Allen


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Olivier Lamy
Sent: Wednesday, February 27, 2008 3:43 PM
To: Maven Users List
Subject: Re: Started getting exception when packaging war

Hi,
A method has been changed but everything has been deployed on 25Feb.

Can you cleanup a part of your local repo :
- rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-war-plugin
- rm -rf ~/.m2/repository/org/apache/maven/shared/maven-filtering/

Then try again.

But unless you reallly need it the best is to not declare the apache
snapshot in your settings and to lock the plugin versions in your pom.

Thanks,
--
Olivier

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Why is there two configuration files for Maven, settings.xml and pom.xml

2008-02-25 Thread Allen, Daniel
The idea is that some settings are not specific to a project
(settings.xml is just a file on your computer, not part of the build).
For example, one thing I have in settings.xml is settings for my local
web proxy. That doesn't make any sense to attach to your project, since
it's probably not applicable to everyone who wants to build said
project. And conversely, I don't have to add that to every single
project I ever try to build.

There is some flexibility in putting certain things in either the POM or
settings.xml. You can create profiles in settings.xml, for example. This
is so that, again, you can deal with build aspects peculiar to your
particular machine. It's a fine line, but there's a pretty good page[1]
that details the concerns with putting profiles into settings.xml
without breaking portability. Or you can just see for yourself what can
go in the POM [2] and what can go in the settings [3]. 

~Dan Allen


[1]
http://maven.apache.org/guides/introduction/introduction-to-profiles.htm
l
[2] http://maven.apache.org/ref/2.0.8/maven-model/maven.html - pom.xml
structre
[3] http://maven.apache.org/ref/2.0.8/maven-settings/settings.html -
settings.xml structure
-Original Message-
From: youhaodeyi [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 24, 2008 2:54 AM
To: users@maven.apache.org
Subject: Why is there two configuration files for Maven, settings.xml
and pom.xml


Can I put the configurations in settings.xml to pom.xml? Why does maven
use
two configuration files?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Local Maven repository. Newbie question...

2008-02-12 Thread Allen, Daniel
I'm not sure what's going on... The first time I ran maven 2, it
autocreated both the .m2/repository directory and the .m2/settings.xml
file. Both empty, but just present is sufficient if nothing needs to be
in them yet. 

Have you tried to run Maven and found that it crashes? Or are you just
reading the documents right now? (In the latter case, yeah, I had better
luck skimming them for basic ideas and then reading newsgroup posts and
doing trial and error to figure out the details for myself.)

~DVA

-Original Message-
From: JG Flowers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 12, 2008 2:05 PM
To: users@maven.apache.org
Subject: RE: Local Maven repository. Newbie question...


Argh!!! It's a Windows Explorer thing.. :-U
Can name a directory with . prefix with md from command prompt...
Still directory has no repositoty in it. But reading on a bit further it
talks about creating a settings.xml file.
I think it's a chicken or egg thing. In writing the book they talk about
things in chapter 1 than get covered for first time in chapter 2... %-| 
Cheers for reply, Jeremy


Allen, Daniel wrote:
 
 Not saying for sure that this is what's going on, but in my experience
 it seems like XP only makes that complaint if *you* try to name a
folder
 that, while automated processes can get away with it. That is, the
check
 is only part of the UI, not an actual file system rule. I'm developing
 on XP, and my local repository cache is in C:\Docs 
 Settings\username\.m2 as usual, and in fact I have several other apps
 born on Unix that name directories with a leading dot.
 
 You mileage may vary, though; I'm on a fancy corporate network set up
to
 share drives between Unix systems and Windows desktops, so maybe IT
did
 something magical that they never told me about to make this possible.
 Try to run Maven, and see if it autocreates the directory.
 
 ~Dan Allen
 
 -Original Message-
 From: JG Flowers [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 12, 2008 1:32 PM
 To: users@maven.apache.org
 Subject: Local Maven repository. Newbie question...
 
 
 Reading Better Builds with Maven. from Devzuz
 It says on page 32 When you install and run Maven for the first time,
 it
 will create your local repository and populate it
 with artifacts as a result of dependency requests. By default, Maven
 creates
 your local repository in
 user_home/.m2/repository. You must have a local repository in order
 for
 Maven to work.
 
 Now I'm using XP and I'm assuming user_home will be substituted with
 %USERPROFILE% environment variable.
 But on XP you can't have a directory named .m2, XP groans and says
you
 must have a file name, for it thinks you are just specifying an
 extension.
 
 Have done the install. When I run mvn --version it says everything's
ok.
 So
 where is my repository?
 The last thing booksays is you must have local repository for Maven to
 work.
 Confused.. You bet :confused:
 Any
 -- 
 View this message in context:

http://www.nabble.com/Local-Maven-repository.-Newbie-question...-tp15439
 648s177p15439648.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]
 
 
 -- 
 This message may contain confidential, proprietary, or legally
privileged
 information. No confidentiality or privilege is waived by any
transmission
 to an unintended recipient. If you are not an intended recipient,
please
 notify the sender and delete this message immediately. Any views
expressed
 in this message are those of the sender, not those of any entity
within
 the KBC Financial Products group of companies (together referred to as
 KBC FP). 
 
 This message does not create any obligation, contractual or otherwise,
on
 the part of KBC FP. It is not an offer (or solicitation of an offer)
of,
 or a recommendation to buy or sell, any financial product. Any prices
or
 other values included in this message are indicative only, and do not
 necessarily represent current market prices, prices at which KBC FP
would
 enter into a transaction, or prices at which similar transactions may
be
 carried on KBC FP's own books. The information contained in this
message
 is provided as is, without representations or warranties, express or
 implied, of any kind. Past performance is not indicative of future
 returns.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context:
http://www.nabble.com/Local-Maven-repository.-Newbie-question...-tp15439
648s177p15440135.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]


-- 
This message may

RE: Local Maven repository. Newbie question...

2008-02-12 Thread Allen, Daniel
Not saying for sure that this is what's going on, but in my experience
it seems like XP only makes that complaint if *you* try to name a folder
that, while automated processes can get away with it. That is, the check
is only part of the UI, not an actual file system rule. I'm developing
on XP, and my local repository cache is in C:\Docs 
Settings\username\.m2 as usual, and in fact I have several other apps
born on Unix that name directories with a leading dot.

You mileage may vary, though; I'm on a fancy corporate network set up to
share drives between Unix systems and Windows desktops, so maybe IT did
something magical that they never told me about to make this possible.
Try to run Maven, and see if it autocreates the directory.

~Dan Allen

-Original Message-
From: JG Flowers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 12, 2008 1:32 PM
To: users@maven.apache.org
Subject: Local Maven repository. Newbie question...


Reading Better Builds with Maven. from Devzuz
It says on page 32 When you install and run Maven for the first time,
it
will create your local repository and populate it
with artifacts as a result of dependency requests. By default, Maven
creates
your local repository in
user_home/.m2/repository. You must have a local repository in order
for
Maven to work.

Now I'm using XP and I'm assuming user_home will be substituted with
%USERPROFILE% environment variable.
But on XP you can't have a directory named .m2, XP groans and says you
must have a file name, for it thinks you are just specifying an
extension.

Have done the install. When I run mvn --version it says everything's ok.
So
where is my repository?
The last thing booksays is you must have local repository for Maven to
work.
Confused.. You bet :confused:
Any
-- 
View this message in context:
http://www.nabble.com/Local-Maven-repository.-Newbie-question...-tp15439
648s177p15439648.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]


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Includes override excludes? [war plugin]

2008-02-12 Thread Allen, Daniel
Hi.

I've been working with Maven and Struts2 to put together a web
application, and I noticed something odd. With the POM below, I end up
with two copes of tiles-def.xml and struts.xml. One is in
WEB-INF/classes where it needs to be, but the other is at the level
above, in WEB-INF. Have I done something wrong with the POM, or do
include elements override exclude elements?

plugin
artifactIdmaven-war-plugin/artifactId
executions
execution
idWarPackaging/id
!-- Defaults to running during package phase; that's
what we want, so let it. --
goals
goal${war.goal.type}/goal
/goals
configuration
warName${project.name}/warName

webappDirectory${project.build.directory}\${project.name}/webappDirec
tory
webResources
!-- These resources need to go into
WEB-INF --
resource

directory/src/main/webapp/WEB-INF/directory
targetPathWEB-INF/targetPath
filteringtrue/filtering
includes

include*.xml/include
/includes
!-- These excludes do not seem to have any effect;
these two files still end up in WEB-INF --
excludes

excludestruts.xml/exclude

excludetiles-def.xml/exclude
/excludes
/resource
!-- The Struts 2 config files need
to be on the classpath --
resource

directory/src/main/webapp/WEB-INF/directory

targetPathWEB-INF/classes/targetPath
filteringtrue/filtering
includes

includestruts.xml/include

includetiles-def.xml/include
/includes
/resource
/webResources
/configuration
/execution
/executions
/plugin

Thanks in advance for taking a look.
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Includes override excludes? [war plugin]

2008-02-12 Thread Allen, Daniel
Apologies for the mangled XML formatting... MS Outlook = :( 

-Original Message-
From: Allen, Daniel 
Sent: Tuesday, February 12, 2008 1:31 PM
To: Maven Users List
Subject: Includes override excludes? [war plugin]

Hi.

I've been working with Maven and Struts2 to put together a web
application, and I noticed something odd. With the POM below, I end up
with two copes of tiles-def.xml and struts.xml. One is in
WEB-INF/classes where it needs to be, but the other is at the level
above, in WEB-INF. Have I done something wrong with the POM, or do
include elements override exclude elements?

plugin
artifactIdmaven-war-plugin/artifactId
executions
execution
idWarPackaging/id
!-- Defaults to running during package phase; that's
what we want, so let it. --
goals
goal${war.goal.type}/goal
/goals
configuration
warName${project.name}/warName

webappDirectory${project.build.directory}\${project.name}/webappDirec
tory
webResources
!-- These resources need to go into
WEB-INF --
resource

directory/src/main/webapp/WEB-INF/directory
targetPathWEB-INF/targetPath
filteringtrue/filtering
includes

include*.xml/include
/includes
!-- These excludes do not seem to have any effect;
these two files still end up in WEB-INF --
excludes

excludestruts.xml/exclude

excludetiles-def.xml/exclude
/excludes
/resource
!-- The Struts 2 config files need
to be on the classpath --
resource

directory/src/main/webapp/WEB-INF/directory

targetPathWEB-INF/classes/targetPath
filteringtrue/filtering
includes

includestruts.xml/include

includetiles-def.xml/include
/includes
/resource
/webResources
/configuration
/execution
/executions
/plugin

Thanks in advance for taking a look.
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind

RE: Multi-Modules and classifier dependencies

2008-02-12 Thread Allen, Daniel
No idea from just what you've provided here. Perhaps you could upload
your POMs to the web and so we could take a look? 

-Original Message-
From: Saloucious [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 12, 2008 11:02 AM
To: users@maven.apache.org
Subject: Re: Multi-Modules and classifier dependencies


Any ideas ?

Saloucious wrote:
 
 Hi, 
 Here is an multi-module example : 
 
 project-parent/
   module1/
   module2/
 
 
 The module1 generates 2 artifacts, one with classifier client.
 The module2 depends on this artifiact client.
 
 When I run : mvn install from project-parent, during compilation of
the
 module2, classes from the
 module1 client artifact are not found on the classpath.
 
 However when i run mvn install from module1 then from module2, all
works
 fine
 
 
 Any ideas ?
 

-- 
View this message in context:
http://www.nabble.com/Multi-Modules-and-classifier-dependencies-tp134855
95s177p15434511.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]


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Renaming resulting directory from war:exploded

2008-02-06 Thread Allen, Daniel
To answer my own question (for the archives and those searching them),
once I got into the source, it turned out that there were set/get
methods for a property called webappDirectory. I didn't see it in the
documentation, but all the other set/get methods corresponded to
parameters you could put in the POM's plugin config, so I tried it, and
it works!

So, adding
webappDirectory${project.build.directory}\desiredName/webappDirectory
 to the configuration will solve this problem. It will rename the
intermediary directory from which the WAR is created desiredName and
have it in the target directory with the rest of the results. (Omitting
${project\build\directory} has it default to the base directory where
your main POM is.) This applies to both war:war and war:exploded (for
the latter, the directory in question is just the final product instead
of an intermediary). It may apply to other goals in the plugin, but I
didn't try it.

~Dan Allen

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 6:05 PM
To: Maven Users List
Subject: Re: Renaming resulting directory from war:exploded

Not sure why your Ant script isn't working. Are you sure it works if
you execute it in Ant? I'm not sure when exploded is bound -- check -X
to make sure your Ant happens after exploded etc.

You could also patch the war plugin to support an additional parameter
(or just use warName) when war:exploded is executed.

Donate your patch back via JIRA and we can all benefit.

Wayne

On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 Hi all,

 I've been using the war plugin to package up a web app. However, to
save
 time, it would be great if the result had a consistent name so that we
 could copy it directly into the Tomcat/webapps directory and have it
 startup with the proper context path.

 In the call to the war plugin, I used the warName tag, and that
works
 just fine for my live build, which uses war:war. However, my dev build
 profile uses war:exploded instead, and the warName doesn't seem to
 have any effect. I tried using antrun, as below, but that doesn't seem
 to have any effect either. When I run mvn -P dev clean package, the
 output does claim to be executing this task (referred to by the ID
 element, so I know it's not another antrun I've used), but the result
is
 still just an exploded war that has the standard maven name scheme of
 artifactId-version.

   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idRenameFinalDirectory/id
   phasepackage/phase
   goals
   goalrun/goal
   /goals
   configuration
   tasks
   mkdir
 dir=${project.build.directory}\${project.name}/
   move
 todir=${project.build.directory}\${project.name}
   fileset

dir=${project.build.directory}\${project.artifactId}-${project.version}
 /
   /move
   /tasks
   /configuration
   /execution
  /executions
   /plugin

 Any suggestions on why this doesn't work, or what I might use instead?

 --
 This message may contain confidential, proprietary, or legally
privileged
 information. No confidentiality or privilege is waived by any
transmission
 to an unintended recipient. If you are not an intended recipient,
please
 notify the sender and delete this message immediately. Any views
expressed
 in this message are those of the sender, not those of any entity
within the
 KBC Financial Products group of companies (together referred to as
KBC
 FP).

 This message does not create any obligation, contractual or otherwise,
on
 the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or
 a recommendation to buy or sell, any financial product. Any prices or
other
 values included in this message are indicative only, and do not
necessarily
 represent current market prices, prices at which KBC FP would enter
into a
 transaction, or prices at which similar transactions may be carried on
KBC
 FP's own books. The information contained in this message is provided
as
 is, without representations or warranties, express or implied, of any
kind.
 Past performance is not indicative of future returns.


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



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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege

RE: Renaming resulting directory from war:exploded

2008-02-06 Thread Allen, Daniel
I think what I missed until I got into the source was that The
directory where the webapp is built, as the documentation refers to
webappDirectory, is actually the output for war:exploded, even though
it's just a working directory for war:war. So, I guess I didn't make the
connection between it and what I wanted without seeing that war:exploded
is implemented in the abstract superclass Mojo and actually called as a
precursor to the main war:war goal, using that string as an argument.

Is it a standard thing for plugins' goals to consitute their own little
mini-lifecycles this way?

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 06, 2008 12:38 PM
To: Maven Users List
Subject: Re: Renaming resulting directory from war:exploded

Good point, Daniel. I hadn't considered that parameter.

This parameter is covered in the docs, but it may be that an example
should be created for future people looking for this specific use
case, to make it more obvious:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

Wayne

On 2/6/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 To answer my own question (for the archives and those searching them),
 once I got into the source, it turned out that there were set/get
 methods for a property called webappDirectory. I didn't see it in the
 documentation, but all the other set/get methods corresponded to
 parameters you could put in the POM's plugin config, so I tried it,
and
 it works!

 So, adding

webappDirectory${project.build.directory}\desiredName/webappDirectory
  to the configuration will solve this problem. It will rename the
 intermediary directory from which the WAR is created desiredName and
 have it in the target directory with the rest of the results.
(Omitting
 ${project\build\directory} has it default to the base directory
where
 your main POM is.) This applies to both war:war and war:exploded (for
 the latter, the directory in question is just the final product
instead
 of an intermediary). It may apply to other goals in the plugin, but I
 didn't try it.

 ~Dan Allen

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 05, 2008 6:05 PM
 To: Maven Users List
 Subject: Re: Renaming resulting directory from war:exploded

 Not sure why your Ant script isn't working. Are you sure it works if
 you execute it in Ant? I'm not sure when exploded is bound -- check -X
 to make sure your Ant happens after exploded etc.

 You could also patch the war plugin to support an additional parameter
 (or just use warName) when war:exploded is executed.

 Donate your patch back via JIRA and we can all benefit.

 Wayne

 On 2/5/08, Allen, Daniel [EMAIL PROTECTED] wrote:
  Hi all,
 
  I've been using the war plugin to package up a web app. However, to
 save
  time, it would be great if the result had a consistent name so that
we
  could copy it directly into the Tomcat/webapps directory and have it
  startup with the proper context path.
 
  In the call to the war plugin, I used the warName tag, and that
 works
  just fine for my live build, which uses war:war. However, my dev
build
  profile uses war:exploded instead, and the warName doesn't seem to
  have any effect. I tried using antrun, as below, but that doesn't
seem
  to have any effect either. When I run mvn -P dev clean package, the
  output does claim to be executing this task (referred to by the ID
  element, so I know it's not another antrun I've used), but the
result
 is
  still just an exploded war that has the standard maven name scheme
of
  artifactId-version.
 
  plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
  execution
  idRenameFinalDirectory/id
  phasepackage/phase
  goals
  goalrun/goal
  /goals
  configuration
  tasks
  mkdir
  dir=${project.build.directory}\${project.name}/
  move
  todir=${project.build.directory}\${project.name}
  fileset
 

dir=${project.build.directory}\${project.artifactId}-${project.version}
  /
  /move
  /tasks
  /configuration
  /execution
 /executions
  /plugin
 
  Any suggestions on why this doesn't work, or what I might use
instead?
 
  --
  This message may contain confidential, proprietary, or legally
 privileged
  information. No confidentiality or privilege is waived by any
 transmission
  to an unintended recipient. If you are not an intended recipient,
 please
  notify the sender and delete this message immediately. Any views
 expressed
  in this message are those of the sender, not those of any entity
 within the
  KBC Financial Products group

RE: [m2] Listing of online repositories?

2008-02-05 Thread Allen, Daniel
I doubt the security people will like that answer much (they want to be able to 
prevent it from making requests to sites that aren't pre-approved), but thanks. 
And I'll look into those plugins you mentioned.

~Dan Allen

-Original Message-
From: VUB Stefan Seidel [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 05, 2008 3:12 AM
To: Maven Users List
Subject: Re: [m2] Listing of online repositories?

Hi Dan,

it is very problematic, because declared plugins can declare their own 
repositories. I don't know why, but that is just what we have, so 
actually there is no way to ever control all request that maven will 
make. For the default repos, have a look at conf/settings.xml in your 
maven install directory. These are the master settings. You do know 
about mavenproxy, archiva and the like?

Greetings,

Stefan

Allen, Daniel wrote:
 Hi, all.

 The systems security people are being a bit of a pain in the ass about
 Maven, as it calls out to the internet at large. So, I was wondering
 where in the installation I can find a full listing of the repository
 mirrors that Maven knows about and checks by default. Also, if there is
 a way to remove some of the default mirrors, to pare down the amount of
 security auditing paperwork that needs to be done, that would be
 extremely helpful. 

 By the way, we have already set up our own repository within the
 intranet. We'd just like to be able to keep one or two external ones
 available, so that we can have Maven fetch indirect dependencies we may
 not know about when we make use of a new artifact.

 Thanks,
 ~Dan Allen

   

-- 
best regards, Stefan Seidel software developer  
VUB Printmedia GmbH Chopinstraße 4 D-04103 Leipzig Germany tel. +49 
(341) 9 60 50 07 fax. +49 (341) 9 60 50 92 mail. [EMAIL PROTECTED] web. 
www.vub.de HRB Köln 24015 UStID DE 122 649 251 GF Dr. Achim Preuss 
Neudorf, Dr. Christian Preuss Neudorf

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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



Renaming resulting directory from war:exploded

2008-02-05 Thread Allen, Daniel
Hi all,

I've been using the war plugin to package up a web app. However, to save
time, it would be great if the result had a consistent name so that we
could copy it directly into the Tomcat/webapps directory and have it
startup with the proper context path. 

In the call to the war plugin, I used the warName tag, and that works
just fine for my live build, which uses war:war. However, my dev build
profile uses war:exploded instead, and the warName doesn't seem to
have any effect. I tried using antrun, as below, but that doesn't seem
to have any effect either. When I run mvn -P dev clean package, the
output does claim to be executing this task (referred to by the ID
element, so I know it's not another antrun I've used), but the result is
still just an exploded war that has the standard maven name scheme of
artifactId-version.

plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idRenameFinalDirectory/id
phasepackage/phase 
goals
goalrun/goal
/goals
configuration
tasks
mkdir
dir=${project.build.directory}\${project.name}/
move
todir=${project.build.directory}\${project.name}
fileset
dir=${project.build.directory}\${project.artifactId}-${project.version}
/
/move
/tasks
/configuration
/execution
   /executions
/plugin

Any suggestions on why this doesn't work, or what I might use instead?

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
Wayne:

I thought having packagingwar/packaging in your pom.xml was a
shortcut to calling war:war, with Maven filling in the requried
parameters. If I'm wrong about that, what's the difference? Just more
elaborate customizability with war:war?

Also, the plugin documentation is a little sparse, so I'm not sure which
of these parameters will help me. I see that you can specify the
location of webXML, and I see that there's a filters parameter, but
Maven already knows where web.xml is, and puts it in the right spot by
default; it only gets confused and misplaces the file when I try to use
filters. Also, the documentation for Fitlers only says it's used in
interpolation of the pom.xml, whereas I need to filter web.xml.

Thanks,
~Dan Allen

PS: What's an overlay? That sounds potentially useful, but the
parameter Overlays is just explained as specifies overlays.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 6:36 PM
To: Maven Users List
Subject: Re: [m2] Filtering web.xml?

The war plugin has a configuration you can use for this webXml:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

That should do it...

Wayne

On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 I'm building a web application (packaging WAR), and I need to run the
 web.xml file through a filter to set certain configutation values. I
 tried adding it to a resource tag, but that causes Maven to make a
 copy of it and put it in WEB-INF/classes subdirectory with all of the
 rest of the resources. I tried setting targetPath to WEB-INF, but
then
 Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of
the
 two. I expect that this is because the phase where the the resources
 tag is processed is before the phase where the WAR file (and thus the
 WEB-INF directory I wish to target) is created. I'm guessing the
 generate-sources and package phases, respectively?

 So, how can I get maven to filter web.xml, but still put it where it
 needs to go in the WAR structure?

 Thanks in advance,
 ~DVA

 --
 This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP).

 This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.



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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
Nevermind about the overlays; I found a docs page on that.

-Original Message-
From: Allen, Daniel 
Sent: Monday, February 04, 2008 11:08 AM
To: Maven Users List
Subject: RE: [m2] Filtering web.xml?

Wayne:

I thought having packagingwar/packaging in your pom.xml was a
shortcut to calling war:war, with Maven filling in the requried
parameters. If I'm wrong about that, what's the difference? Just more
elaborate customizability with war:war?

Also, the plugin documentation is a little sparse, so I'm not sure which
of these parameters will help me. I see that you can specify the
location of webXML, and I see that there's a filters parameter, but
Maven already knows where web.xml is, and puts it in the right spot by
default; it only gets confused and misplaces the file when I try to use
filters. Also, the documentation for Fitlers only says it's used in
interpolation of the pom.xml, whereas I need to filter web.xml.

Thanks,
~Dan Allen

PS: What's an overlay? That sounds potentially useful, but the
parameter Overlays is just explained as specifies overlays.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 6:36 PM
To: Maven Users List
Subject: Re: [m2] Filtering web.xml?

The war plugin has a configuration you can use for this webXml:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

That should do it...

Wayne

On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 I'm building a web application (packaging WAR), and I need to run the
 web.xml file through a filter to set certain configutation values. I
 tried adding it to a resource tag, but that causes Maven to make a
 copy of it and put it in WEB-INF/classes subdirectory with all of the
 rest of the resources. I tried setting targetPath to WEB-INF, but
then
 Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of
the
 two. I expect that this is because the phase where the the resources
 tag is processed is before the phase where the WAR file (and thus the
 WEB-INF directory I wish to target) is created. I'm guessing the
 generate-sources and package phases, respectively?

 So, how can I get maven to filter web.xml, but still put it where it
 needs to go in the WAR structure?

 Thanks in advance,
 ~DVA

 --
 This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP).

 This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.



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


-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission

RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
Ok, finally found the right page of the plugin docs with the info I
needed. I do stand by my comment about the documentation, within the
limited scope of the parameters page... a lot of them are documented
like they're self-explanatory, but if you're not familiar with the
workings of the plugin, they're anything but. Even little touches like
having the overlays parameter's documentation link to the overlays
explanation page would be helpful. 

I don't suppose there's a wiki or something that the documents are
generated from that I could go to and add that, is there? I may not know
enough yet to seriously contribute to the documents, but I can manage
small chores like cross-referencing. ;)


Anyway, thanks for the link, Wayne. 
~Dan Allen

-Original Message-
From: Allen, Daniel 
Sent: Monday, February 04, 2008 11:58 AM
To: Maven Users List
Subject: RE: [m2] Filtering web.xml?

Nevermind about the overlays; I found a docs page on that.

-Original Message-
From: Allen, Daniel 
Sent: Monday, February 04, 2008 11:08 AM
To: Maven Users List
Subject: RE: [m2] Filtering web.xml?

Wayne:

I thought having packagingwar/packaging in your pom.xml was a
shortcut to calling war:war, with Maven filling in the requried
parameters. If I'm wrong about that, what's the difference? Just more
elaborate customizability with war:war?

Also, the plugin documentation is a little sparse, so I'm not sure which
of these parameters will help me. I see that you can specify the
location of webXML, and I see that there's a filters parameter, but
Maven already knows where web.xml is, and puts it in the right spot by
default; it only gets confused and misplaces the file when I try to use
filters. Also, the documentation for Fitlers only says it's used in
interpolation of the pom.xml, whereas I need to filter web.xml.

Thanks,
~Dan Allen

PS: What's an overlay? That sounds potentially useful, but the
parameter Overlays is just explained as specifies overlays.

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 6:36 PM
To: Maven Users List
Subject: Re: [m2] Filtering web.xml?

The war plugin has a configuration you can use for this webXml:
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

That should do it...

Wayne

On 2/1/08, Allen, Daniel [EMAIL PROTECTED] wrote:
 I'm building a web application (packaging WAR), and I need to run the
 web.xml file through a filter to set certain configutation values. I
 tried adding it to a resource tag, but that causes Maven to make a
 copy of it and put it in WEB-INF/classes subdirectory with all of the
 rest of the resources. I tried setting targetPath to WEB-INF, but
then
 Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of
the
 two. I expect that this is because the phase where the the resources
 tag is processed is before the phase where the WAR file (and thus the
 WEB-INF directory I wish to target) is created. I'm guessing the
 generate-sources and package phases, respectively?

 So, how can I get maven to filter web.xml, but still put it where it
 needs to go in the WAR structure?

 Thanks in advance,
 ~DVA

 --
 This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP).

 This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.



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


-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP

RE: build profiles

2008-02-04 Thread Allen, Daniel
When I was doing profiles for the first time, I noticed that anything I
put in profiles.xml was active by default, and that my dev profile
overrode my live release profile. This may be your problem. Try adding:

activation
  activeByDefaultfalse/activeByDefault
/activation

to the dev profile that is currently overriding the other. In fact, this
may or may not be regarded by the community as a best practice, (I'm
new at Maven too), but for a project where only one profile should ever
be active at a time, I add those lines to all the profiles, and then
just explicitly call the one I want at the command line with '-P
profile_name'.

Hope that helps.
~Dan Allen
 

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 1:58 PM
To: Maven Users List
Subject: build profiles

Hi,
I am trying to have different build profiles for my development
environment and integration environment. All I want is to have
different destination directories. My project has sub-modules and at
the time of Integration when I run the maven build for the parent
project, the destination directory that I want at the integration
environment gets overridden by the sub module directory tag.

I have tried something like this.

ParentProject
   -pom.xmlhave a profile with destination
directory say C:\final

   -Child1destination directory in the
build tag D:\dev

   -Child2


When I run mvn install -P profile1.  The C:\final gets overridden by
D:\dev.

How shall I go about it?


regards,
Amit

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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: build profiles

2008-02-04 Thread Allen, Daniel
So... you're saying that your profile (profile1, according to your
example command-line call below) is defined in/for the parent POM?

I think I'm not 100% understanding your setup. Could you give me a more
detailed explanation of what profiles and properties you have defined,
where those are, and which ones you do and don't want active? In fact,
if you have some web space somewhere, maybe you could just upload your
POMs and link to them?

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 2:33 PM
To: Maven Users List
Subject: Re: build profiles

Currently i am not using any profile(tag) for sub modules, I am just
mentioning directory tag inside build tag. Do i need to have
separate profile to do that?

regards,
Amit

On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
 When I was doing profiles for the first time, I noticed that anything
I
 put in profiles.xml was active by default, and that my dev profile
 overrode my live release profile. This may be your problem. Try
adding:

 activation
   activeByDefaultfalse/activeByDefault
 /activation

 to the dev profile that is currently overriding the other. In fact,
this
 may or may not be regarded by the community as a best practice, (I'm
 new at Maven too), but for a project where only one profile should
ever
 be active at a time, I add those lines to all the profiles, and then
 just explicitly call the one I want at the command line with '-P
 profile_name'.

 Hope that helps.
 ~Dan Allen



 -Original Message-
 From: amit kumar [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 04, 2008 1:58 PM
 To: Maven Users List
 Subject: build profiles

 Hi,
 I am trying to have different build profiles for my development
 environment and integration environment. All I want is to have
 different destination directories. My project has sub-modules and at
 the time of Integration when I run the maven build for the parent
 project, the destination directory that I want at the integration
 environment gets overridden by the sub module directory tag.

 I have tried something like this.

 ParentProject
-pom.xmlhave a profile with destination
 directory say C:\final

-Child1destination directory in the
 build tag D:\dev

-Child2


 When I run mvn install -P profile1.  The C:\final gets overridden by
 D:\dev.

 How shall I go about it?


 regards,
 Amit

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


 --
 This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP).

 This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


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



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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may

RE: .m2/settings.xml

2008-02-04 Thread Allen, Daniel
There's also a sample settings.xml file in the directory that Maven
installs to, under the /conf subdirectory. It contains pretty much
everything you might need to put into your settings, in commented-out
generic form.

~Dan Allen

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 1:00 PM
To: Maven Users List
Subject: .m2/settings.xml

Hi,
where is .m2/settings.xml? I saw this first in the maven plugin for
eclipse. It keeps looking for %USER_HOME%/.m2/settings.xml. But I can
not find this file inside the .m2 folder. Do I have to create it
manually? Or it is supposed to be generated at the time of .m2 folder
gets created.

Amit

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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



[m2] Listing of online repositories?

2008-02-04 Thread Allen, Daniel
Hi, all.

The systems security people are being a bit of a pain in the ass about
Maven, as it calls out to the internet at large. So, I was wondering
where in the installation I can find a full listing of the repository
mirrors that Maven knows about and checks by default. Also, if there is
a way to remove some of the default mirrors, to pare down the amount of
security auditing paperwork that needs to be done, that would be
extremely helpful. 

By the way, we have already set up our own repository within the
intranet. We'd just like to be able to keep one or two external ones
available, so that we can have Maven fetch indirect dependencies we may
not know about when we make use of a new artifact.

Thanks,
~Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.



RE: build profiles

2008-02-04 Thread Allen, Daniel
Heh. I should take my own advice--when I was reviewing the profiles
intro I linked you to, it says:

Profiles in pom.xml

On the other hand, if your profiles can be reasonably specified inside
the POM, you have many more options. The trade-off, of course, is that
you can only modify that project and it's sub-modules. Since these
profiles are specified inline, and therefore have a better chance of
preserving portability, it's reasonable to say you can add more
information to them without the risk of that information being
unavailable to other users.

Profiles specified in the POM can modify the following POM elements:

* repositories
* pluginRepositories
* dependencies
* plugins
* properties (not actually available in the main POM, but used
behind the scenes)
* modules
* reporting
* dependencyManagement
* distributionManagement
---* a subset of the build element, which consists of:
  o defaultGoal
  o resources
  o testResources
  o finalName


Note that directory isn't listed among those. So, while I still think
you should have more than just the one profile to avoid confusing
defaults and precedences, one thing you'll have to do is put the
directory name into a property and then in your pom.xml files, have
build

directory${whatever.you.called.the.directory.property}/directory
.
.
. 
/build

~DVA

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 3:18 PM
To: Maven Users List
Subject: Re: build profiles

Actually the current setup is the most basic I guess. I was just
trying to separate development environment(destination directory for
the sub modules) an integration environment( the profile I want to use
to specify a location which would get inherited by every sub module so
that all of them could be at one place.)

For sub modules I am define like.

build
directoryC:\Final/directory
/build


For parent project(parent of all) I am defining a profile( i think I
would have to, to achieve this separation) which would be used when
build would be triggered at the time ot Continuous Integration. I am
not defining anything else in this profile besides the destination
directory.

profiles
profile
  idint/id
 build
directoryC:\Diff/directory
 /build
/profile
/profiles


something like mvn -P int


Amit


On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
 So... you're saying that your profile (profile1, according to your
 example command-line call below) is defined in/for the parent POM?

 I think I'm not 100% understanding your setup. Could you give me a
more
 detailed explanation of what profiles and properties you have defined,
 where those are, and which ones you do and don't want active? In fact,
 if you have some web space somewhere, maybe you could just upload your
 POMs and link to them?

 -Original Message-
 From: amit kumar [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 04, 2008 2:33 PM
 To: Maven Users List

 Subject: Re: build profiles

 Currently i am not using any profile(tag) for sub modules, I am just
 mentioning directory tag inside build tag. Do i need to have
 separate profile to do that?

 regards,
 Amit

 On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
  When I was doing profiles for the first time, I noticed that
anything
 I
  put in profiles.xml was active by default, and that my dev profile
  overrode my live release profile. This may be your problem. Try
 adding:
 
  activation
activeByDefaultfalse/activeByDefault
  /activation
 
  to the dev profile that is currently overriding the other. In fact,
 this
  may or may not be regarded by the community as a best practice,
(I'm
  new at Maven too), but for a project where only one profile should
 ever
  be active at a time, I add those lines to all the profiles, and then
  just explicitly call the one I want at the command line with '-P
  profile_name'.
 
  Hope that helps.
  ~Dan Allen
 
 
 
  -Original Message-
  From: amit kumar [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 04, 2008 1:58 PM
  To: Maven Users List
  Subject: build profiles
 
  Hi,
  I am trying to have different build profiles for my development
  environment and integration environment. All I want is to have
  different destination directories. My project has sub-modules and at
  the time of Integration when I run the maven build for the parent
  project, the destination directory that I want at the integration
  environment gets overridden by the sub module directory tag.
 
  I have tried something like this.
 
  ParentProject
 -pom.xmlhave a profile with
destination
  directory say C:\final
 
 -Child1destination directory in
the
  build tag D:\dev
 
 -Child2
 
 
  When I run mvn install -P profile1.  The C:\final gets overridden by
  D:\dev

RE: build profiles

2008-02-04 Thread Allen, Daniel
I *think* properties straight from a POM override those from a profile.
(Anyone more expert than myself, please correct me if I'm wrong)

I would recommend moving the submodules' directory settings into a
profile also, so that you can explicitly state at the command line which
you want active. If the child and parent need to go to different places
during the same build, consider having a separate profiles.xml, whose
profile elements would contain properties for each different
directory (and then you could refer to them in the pom as ${properties}:
directory${build.directory.for.this.pom}/directory). I'm not
completely sure how you should be arranging them, since I don't know the
details of your project. But I think consistency in having the
directory set by a profile in all cases would fix your issue of
unwanted precendence order. 

Anyway, check out
http://maven.apache.org/guides/introduction/introduction-to-profiles.htm
l if you haven't already. Aside from a pretty good explanation of how
profiles work, one of the most useful things in there is the command
'mvn help:active-profiles', which will list what profiles are active, so
you can see if any are being activated when they shouldn't.

Hope that helps,
~Dan Allen

-Original Message-
From: amit kumar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 04, 2008 3:18 PM
To: Maven Users List
Subject: Re: build profiles

Actually the current setup is the most basic I guess. I was just
trying to separate development environment(destination directory for
the sub modules) an integration environment( the profile I want to use
to specify a location which would get inherited by every sub module so
that all of them could be at one place.)

For sub modules I am define like.

build
directoryC:\Final/directory
/build


For parent project(parent of all) I am defining a profile( i think I
would have to, to achieve this separation) which would be used when
build would be triggered at the time ot Continuous Integration. I am
not defining anything else in this profile besides the destination
directory.

profiles
profile
  idint/id
 build
directoryC:\Diff/directory
 /build
/profile
/profiles


something like mvn -P int


Amit


On Feb 4, 2008 1:47 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
 So... you're saying that your profile (profile1, according to your
 example command-line call below) is defined in/for the parent POM?

 I think I'm not 100% understanding your setup. Could you give me a
more
 detailed explanation of what profiles and properties you have defined,
 where those are, and which ones you do and don't want active? In fact,
 if you have some web space somewhere, maybe you could just upload your
 POMs and link to them?

 -Original Message-
 From: amit kumar [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 04, 2008 2:33 PM
 To: Maven Users List

 Subject: Re: build profiles

 Currently i am not using any profile(tag) for sub modules, I am just
 mentioning directory tag inside build tag. Do i need to have
 separate profile to do that?

 regards,
 Amit

 On Feb 4, 2008 1:03 PM, Allen, Daniel [EMAIL PROTECTED] wrote:
  When I was doing profiles for the first time, I noticed that
anything
 I
  put in profiles.xml was active by default, and that my dev profile
  overrode my live release profile. This may be your problem. Try
 adding:
 
  activation
activeByDefaultfalse/activeByDefault
  /activation
 
  to the dev profile that is currently overriding the other. In fact,
 this
  may or may not be regarded by the community as a best practice,
(I'm
  new at Maven too), but for a project where only one profile should
 ever
  be active at a time, I add those lines to all the profiles, and then
  just explicitly call the one I want at the command line with '-P
  profile_name'.
 
  Hope that helps.
  ~Dan Allen
 
 
 
  -Original Message-
  From: amit kumar [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 04, 2008 1:58 PM
  To: Maven Users List
  Subject: build profiles
 
  Hi,
  I am trying to have different build profiles for my development
  environment and integration environment. All I want is to have
  different destination directories. My project has sub-modules and at
  the time of Integration when I run the maven build for the parent
  project, the destination directory that I want at the integration
  environment gets overridden by the sub module directory tag.
 
  I have tried something like this.
 
  ParentProject
 -pom.xmlhave a profile with
destination
  directory say C:\final
 
 -Child1destination directory in
the
  build tag D:\dev
 
 -Child2
 
 
  When I run mvn install -P profile1.  The C:\final gets overridden by
  D:\dev.
 
  How shall I go about it?
 
 
  regards,
  Amit
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional

RE: [m2.0.7] Null pointer exception with war:exploded

2008-02-04 Thread Allen, Daniel
Thanks, it works correctly now! I was afraid I'd found an actual
internal error or something--glad it was just something small on my
part.

~Dan Allen

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Olivier Lamy
Sent: Monday, February 04, 2008 4:00 PM
To: Maven Users List
Subject: Re: [m2.0.7] Null pointer exception with war:exploded

Hi,
Have a look at your configuration, directory element is missing :
webResources
  resource
directoryHERE PUT A DIRECTORY/directory
filteringtrue/filtering
includes
  include*.xml/include
/includes
  /resource
/webResources

--
Olivier

2008/2/4, Allen, Daniel [EMAIL PROTECTED]:
 Hi, all.

 Thanks to everyone who helped me out with finding and configuring the
 war plugin. I believe that I have the settings correct to do what I
need
 now.

 However, when I try and run mvn -P dev clean package, I get a null
 pointer exception. The War plugin source is available only by
 Subversion, which I do not have and am not allowed to install without
 prior approval (yay, bureaucracy), so I'm afraid I can't check out
 precisely what the problem is here. I don't know what would or
wouldn't
 be helpful, so I just copied my whole POM down below, along with the
 profiles.xml file that defines the dev profile referenced above.

 Any help or advice would be great--I'm pretty sure that this plugin is
 what I need to solve my previous problems with Maven.
 ~Dan Allen


 [INFO] Building jar:
 H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2.jar
 [INFO] [war:exploded {execution: WarPackaging}]
 [INFO] Exploding webapp
 [INFO] Assembling webapp[com.kbcfp.insurancederiv] in
 [H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2]
 [INFO] Processing war project
 [INFO]


 [ERROR] FATAL ERROR
 [INFO]


 [INFO] null
 [INFO]


 [INFO] Trace
 java.lang.NullPointerException
 at java.io.File.init(File.java:222)
 at

org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR
 esources(WarProjectPackagingTask.java:88)
 at

org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac
 kaging(WarProjectPackagingTask.java:64)
 at

org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.
 java:364)
 at

org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
 WarMojo.java:317)
 at

org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java
 :40)
 at

org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
 nager.java:447)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
 LifecycleExecutor.java:539)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
 ycle(DefaultLifecycleExecutor.java:480)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
 ifecycleExecutor.java:459)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
 Failures(DefaultLifecycleExecutor.java:311)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
 DefaultLifecycleExecutor.java:278)
 at

org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
 ycleExecutor.java:143)
 at
 org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
 at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
 org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)



 __
 My POM:


 __
 ?xml version=1.0 encoding=UTF-8?
 project

 modelVersion4.0.0/modelVersion

 artifactIdcom.kbcfp.insurancederiv/artifactId
 nameinsurancederiv/name
 version0.2/version

 reports
   reportjutils-lint4j-plugin/report
   reportmaven-statcvs-plugin/report
   reportmaven-changelog-plugin/report
   reportmaven-changes-plugin/report
   reportmaven-checkstyle-plugin/report
   reportmaven-developer

[m2.0.7] Null pointer exception with war:exploded

2008-02-04 Thread Allen, Daniel
Hi, all.

Thanks to everyone who helped me out with finding and configuring the
war plugin. I believe that I have the settings correct to do what I need
now.

However, when I try and run mvn -P dev clean package, I get a null
pointer exception. The War plugin source is available only by
Subversion, which I do not have and am not allowed to install without
prior approval (yay, bureaucracy), so I'm afraid I can't check out
precisely what the problem is here. I don't know what would or wouldn't
be helpful, so I just copied my whole POM down below, along with the
profiles.xml file that defines the dev profile referenced above.

Any help or advice would be great--I'm pretty sure that this plugin is
what I need to solve my previous problems with Maven.
~Dan Allen


[INFO] Building jar:
H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2.jar
[INFO] [war:exploded {execution: WarPackaging}]
[INFO] Exploding webapp
[INFO] Assembling webapp[com.kbcfp.insurancederiv] in
[H:\workspace\insurancederiv3\target\com.kbcfp.insurancederiv-0.2]
[INFO] Processing war project
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at java.io.File.init(File.java:222)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleWebR
esources(WarProjectPackagingTask.java:88)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPac
kaging(WarProjectPackagingTask.java:64)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.
java:364)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(Abstract
WarMojo.java:317)
at
org.apache.maven.plugin.war.WarExplodedMojo.execute(WarExplodedMojo.java
:40)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375) 


__
My POM:

__
?xml version=1.0 encoding=UTF-8?
project

modelVersion4.0.0/modelVersion

artifactIdcom.kbcfp.insurancederiv/artifactId
nameinsurancederiv/name
version0.2/version

reports
  reportjutils-lint4j-plugin/report
  reportmaven-statcvs-plugin/report
  reportmaven-changelog-plugin/report
  reportmaven-changes-plugin/report
  reportmaven-checkstyle-plugin/report
  reportmaven-developer-activity-plugin/report
  reportmaven-file-activity-plugin/report
  reportmaven-javadoc-plugin/report
  reportmaven-jdepend-plugin/report
  reportmaven-junit-report-plugin/report
  reportmaven-license-plugin/report
  reportmaven-pmd-plugin/report
  reportmaven-tasklist-plugin/report
  reportmaven-faq-plugin/report
  reportmaven-simian-plugin/report
/reports

!-- the version control repository and http url for online access
   the connection element has the form:
   scm:system:system specific connection string --
scm
 
connectionscm:cvs:pserver:[EMAIL PROTECTED]:/proj/webgroup/repository:i
nsurancederiv/connection
 
urlhttp://webgroup.london.kbcfp.com:8000/cgi-bin/cvsweb.cgi/insuranced
eriv//url
/scm

!-- any 

Repository Blacklist

2008-02-01 Thread Allen, Daniel
Hi.

I'm using Maven2, and without telling me, the company I'm at recently
put up a proxy between the office and the web. So, when I tried to use
Maven with a new plugin, it attempted to get that from the central
repository, failed because I hadn't set up the proxy settings, and then
blacklisted the central repository. 

Can anyone tell me where the settings for that blacklist are so that I
can remove the strike against Central?

Thanks,

Dan Allen

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.



RE: Repository Blacklist

2008-02-01 Thread Allen, Daniel
My .m2 directory is actually totally empty except for the settings.xml
file (which I just now made, and which contains nothing except the
aforementioned proxy info), so maybe the blacklist isn't kept between
runs.

Anyway, I had been trying mvn dependency:resolve, which was crashing
out. I'm uncertain from the language used in the error message (could
not find plugin 'dependency') whether it was not found to be already
installed, or not found in the repository during an installation
attempt. However, trying it with the explicit -U tag as Simon suggested
made it download and install properly.

Thanks!
~Dan Allen


-Original Message-
From: simon [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 4:03 PM
To: Maven Users List
Subject: Re: Repository Blacklist

It seems to me that there was a similar question very recently, and that
the answer was that maven *does* remember blacklists across runs.

Dan, you could try doing
  mvn -U install
(-U causes plugins to be updated)

Otherwise, try looking in ~/.m2, which is where maven stores a lot of
other stuff like cached passwords.

Regards, 
Simon

On Fri, 2008-02-01 at 21:52 +0100, Jeff MAURY wrote:
 A repository is blacklisted once Maven detects a connection failure.
The
 back listing rest for the current Maven run.
 In order to prevent that, you must configure your proxy settings in
your
 Maven settings file.
 
 Jeff

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



[m2] Filtering web.xml?

2008-02-01 Thread Allen, Daniel
I'm building a web application (packaging WAR), and I need to run the
web.xml file through a filter to set certain configutation values. I
tried adding it to a resource tag, but that causes Maven to make a
copy of it and put it in WEB-INF/classes subdirectory with all of the
rest of the resources. I tried setting targetPath to WEB-INF, but then
Maven creates WEB-INF/classes/WEB-INF, and puts it in the deeper of the
two. I expect that this is because the phase where the the resources
tag is processed is before the phase where the WAR file (and thus the
WEB-INF directory I wish to target) is created. I'm guessing the
generate-sources and package phases, respectively?

So, how can I get maven to filter web.xml, but still put it where it
needs to go in the WAR structure?

Thanks in advance,
~DVA

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.



RE: Maven java2wsdl...

2008-01-28 Thread Allen, Daniel
It might be because you're using Maven 1. I get the impression that most
of the people on the User List have moved on to Maven 2. There is some
documentation around on WSDL and Axis in Maven 2. I believe the example
system in Better Builds With Maven (free PDF book) uses those, so if
you wanted to migrate to the newer version, that might help. I have
little to no idea of the intricacies of Maven 1, though.

-Original Message-
From: Fernando da Motta Hildebrand [mailto:[EMAIL PROTECTED]

Sent: Monday, January 28, 2008 2:55 PM
To: users@maven.apache.org
Subject: Re: Maven  java2wsdl...

No one? Please?

2008/1/11, Fernando da Motta Hildebrand [EMAIL PROTECTED]:

 Hi,

 I'm using Maven 1.x with Axis 1, here's below my maven.xml

 ?xml version=1.0 encoding=UTF-8?


 project xmlns:j=jelly:core xmlns:maven=jelly:maven
 xmlns:ant=jelly:ant xmlns:u=jelly:util default=radar:build

   preGoal name=java:compile 
 mkdir dir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF /
   attainGoal name=xdoclet:webdoclet /
   attainGoal name=wsdl /

   ant:path id= axis.src.set
   ant:pathelement location=${maven.axis.build.dir} /
 /ant:path
 maven:addPath id=maven.compile.src.set refid=axis.src.set/
   /preGoal


   preGoal name=war:webapp
 j:set var=webapp.build.webinf value=${maven.war.webapp.dir
 }/WEB-INF/
 j:set var=webapp.build.metainf  value=${maven.war.webapp.dir
 }/META-INF/
 ant:mkdir dir=${webapp.build.webinf}/
 ant:mkdir dir=${webapp.build.metainf}/
 ant:echoCopying server-config.wsdd and context.xml.../ant:echo
 ant:copy todir=${webapp.build.webinf}
preservelastmodified=true
   ant:fileset dir=${maven.src.dir}/conf
 includes=server-config.wsdd
   /ant:fileset
 /ant:copy
 ant:copy todir=${webapp.build.metainf}
preservelastmodified=true
   ant:fileset dir=${ maven.src.dir}/conf
 includes=context.xml
   /ant:fileset
 /ant:copy
   /preGoal

 !-- Goal that generates the wsdl for the target class --
   pregoal name=wsdl
 !-- mkdir dir=${maven.build.dir}/wsdl / --
 path id=compile.classpath
   pathelement path=${ maven.build.dir}/classes /
 /path
 taskdef name=axis-jjava2wsdl classname=
 org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask
   classpath refid= compile.classpath /
   classpath refid=maven.dependency.classpath /
 /taskdef
 ant:axis-java2wsdl
  classname=
 br.com.siliconstrategy.radar.io.service.CorrelationRemoteService 
 style=rpc
 namespace=urn:${pom.artifactId}

location=http://localhost:8080/${pom.artifactId}/soap/${pom.artifactId}
http://localhost:8080/$%7Bpom.artifactId%7D/soap/$%7Bpom.artifactId%7D



output=${maven.src.dir}\webapp\${pom.artifactId}.wsdl
 /ant:axis-java2wsdl
   /pregoal

   goal name=radar:build prereqs=clean,wsdl,war:install/


goal name=radar:deploy
 prereqs=clean,tomcat:undeploy,tomcat:deploy/

 /project


 But I can't get it to work, it doesn't generate any wsdl files.

 Can anyone give a hint here?

 Thanks.

 --
 Fernando da Motta Hildebrand
 IT Consultant
 Brooks' Law : adding manpower to a late software project makes it
 later...




-- 
Fernando da Motta Hildebrand
IT Consultant
Brooks' Law : adding manpower to a late software project makes it
later...

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Maven java2wsdl...

2008-01-28 Thread Allen, Daniel
(By the way, when I say it might be because,  I mean maybe no one's
responding because, not that using Maven 1 might be your problem)

-Original Message-
From: Allen, Daniel 
Sent: Monday, January 28, 2008 4:22 PM
To: Maven Users List
Subject: RE: Maven  java2wsdl...

It might be because you're using Maven 1. I get the impression that most
of the people on the User List have moved on to Maven 2. There is some
documentation around on WSDL and Axis in Maven 2. I believe the example
system in Better Builds With Maven (free PDF book) uses those, so if
you wanted to migrate to the newer version, that might help. I have
little to no idea of the intricacies of Maven 1, though.

-Original Message-
From: Fernando da Motta Hildebrand [mailto:[EMAIL PROTECTED]

Sent: Monday, January 28, 2008 2:55 PM
To: users@maven.apache.org
Subject: Re: Maven  java2wsdl...

No one? Please?

2008/1/11, Fernando da Motta Hildebrand [EMAIL PROTECTED]:

 Hi,

 I'm using Maven 1.x with Axis 1, here's below my maven.xml

 ?xml version=1.0 encoding=UTF-8?


 project xmlns:j=jelly:core xmlns:maven=jelly:maven
 xmlns:ant=jelly:ant xmlns:u=jelly:util default=radar:build

   preGoal name=java:compile 
 mkdir dir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF /
   attainGoal name=xdoclet:webdoclet /
   attainGoal name=wsdl /

   ant:path id= axis.src.set
   ant:pathelement location=${maven.axis.build.dir} /
 /ant:path
 maven:addPath id=maven.compile.src.set refid=axis.src.set/
   /preGoal


   preGoal name=war:webapp
 j:set var=webapp.build.webinf value=${maven.war.webapp.dir
 }/WEB-INF/
 j:set var=webapp.build.metainf  value=${maven.war.webapp.dir
 }/META-INF/
 ant:mkdir dir=${webapp.build.webinf}/
 ant:mkdir dir=${webapp.build.metainf}/
 ant:echoCopying server-config.wsdd and context.xml.../ant:echo
 ant:copy todir=${webapp.build.webinf}
preservelastmodified=true
   ant:fileset dir=${maven.src.dir}/conf
 includes=server-config.wsdd
   /ant:fileset
 /ant:copy
 ant:copy todir=${webapp.build.metainf}
preservelastmodified=true
   ant:fileset dir=${ maven.src.dir}/conf
 includes=context.xml
   /ant:fileset
 /ant:copy
   /preGoal

 !-- Goal that generates the wsdl for the target class --
   pregoal name=wsdl
 !-- mkdir dir=${maven.build.dir}/wsdl / --
 path id=compile.classpath
   pathelement path=${ maven.build.dir}/classes /
 /path
 taskdef name=axis-jjava2wsdl classname=
 org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask
   classpath refid= compile.classpath /
   classpath refid=maven.dependency.classpath /
 /taskdef
 ant:axis-java2wsdl
  classname=
 br.com.siliconstrategy.radar.io.service.CorrelationRemoteService 
 style=rpc
 namespace=urn:${pom.artifactId}

location=http://localhost:8080/${pom.artifactId}/soap/${pom.artifactId}
http://localhost:8080/$%7Bpom.artifactId%7D/soap/$%7Bpom.artifactId%7D



output=${maven.src.dir}\webapp\${pom.artifactId}.wsdl
 /ant:axis-java2wsdl
   /pregoal

   goal name=radar:build prereqs=clean,wsdl,war:install/


goal name=radar:deploy
 prereqs=clean,tomcat:undeploy,tomcat:deploy/

 /project


 But I can't get it to work, it doesn't generate any wsdl files.

 Can anyone give a hint here?

 Thanks.

 --
 Fernando da Motta Hildebrand
 IT Consultant
 Brooks' Law : adding manpower to a late software project makes it
 later...




-- 
Fernando da Motta Hildebrand
IT Consultant
Brooks' Law : adding manpower to a late software project makes it
later...

-- 
This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise,
on the part of KBC FP. It is not an offer (or solicitation of an offer)
of, or a recommendation to buy or sell, any financial product. Any
prices or other values included in this message are indicative only, and
do not necessarily represent current market prices, prices at which KBC
FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided as is, without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.


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


-- 
This message may contain confidential, proprietary

Questions: Automatically-set tokens in Maven 2 loading properties from files

2008-01-24 Thread Allen, Daniel
I'm new to Maven, and have a couple questions that I've not been able to
answer from the documentation on the site so far, so I thought I'd put
them out here. 

-What I'm trying to do
Basically, I have the Maven 1 maven.xml file copied below (which, as you
can see, actually does a lot of its work via Ant call-throughs), and
have been assigned to convert the project to Maven 2. I've pasted the
contents of maven.xml below, at the bottom of the message. Basically,
the idea was to have 3 goals: live1, live2 (identical except for server
names--we run the app on a small cluster), and dev. Each has its own
property file, which is loaded into Maven's properties, and then used to
fill in various tokens in config files. It seems like goals are gone
in Maven 2, so I'm trying to replace that idea with different profiles,
but I'm encountering a couple of problems in the conversion.

-Questions
First, is there a comprehensive list of the tokens that are
automatically set in Maven 2? I'm talking about things like ${basedir},
which is the only one I've been able to uncover so far, that maven
assigns values to without needed to read them from a file somewhere. I'm
loooking especially for a Maven 2 equivalent to ${maven.war.webapp.dir},
which apparently was set in the Maven 1 war plugin, but not in the Maven
2 version. I assume it's still there, but I don't see anything to
indicate what it's called now.

Second, as I mentioned, the old goals loaded their particular properties
files into Maven. This is where things like ${email.reports} come from
in the copy/paste below. It seems to use ant:run to load the files that
way, which apparently brings the properties into Maven (not Ant)? That
seems strange and unintuitive, but that's the impression I get. The same
peculiar behavior does not appear to happen when I use Maven2's ant:run
to perform the same task. So, is there a way to get Maven to read a
standard Java properties file and make those available for ${} tokens?
Note that I cannot use filter, because I need those substitutions
available in pom.xml

Thanks,
Dan Allen




-The file I'm trying to convert
?xml version=1.0 encoding=UTF-8?
!-- Old Maven 1 maven.xml file. Works, but I'm trying to convert to
Maven 2. --
project default=dev
xmlns:j=jelly:core
xmlns:util=jelly:util
xmlns:ant=jelly:ant
  
!--
  Setup the log4j.properties by copying the correct one to
log4j.properties in target directory
  and replacing the path token
   --
preGoal name=java:jar-resources
  ant:echo message=${maven.war.webapp.dir} /
  ant:echo message=${maven.src.dir} /
  ant:filter token=tomcat.home value=${tomcat.home} /
  ant:copy file=${maven.src.dir}/conf/${log4j.properties.file} 
 
tofile=${maven.war.webapp.dir}/WEB-INF/classes/log4j.properties
overwrite=true filtering=true /
  ant:copy
file=${maven.src.dir}/conf/hibernate/${hibernate.properties.file}
 
tofile=${maven.war.webapp.dir}/WEB-INF/classes/hibernate.properties
overwrite=true filtering=true /

  ant:filter token=email.business value=${email.business} /
  ant:filter token=spreadsheet.storage
value=${spreadsheet.storage} /
  ant:filter token=email.reports value=${email.reports} /
  ant:filter token=host.url value=${host.url} /
  ant:filter token=email.alerts.system
value=${email.alerts.system} /
  ant:filter token=daemon.rv value=${daemon.rv} /

  ant:copy file=${maven.src.dir}/webapp/WEB-INF/web.xml
tofile=${maven.war.webapp.dir}/WEB-INF/web.xml
overwrite=true filtering=true /

/preGoal

!--
  Export the SQL for Hibernate tables
  --
postGoal name=war:webapp
attainGoal name=hibernate:schema-export /
/postGoal

!--
  Configures Tomcat (server.xml and Context insurancederiv.xml)
--
goal name=configureDevTomcat prereqs=war:init  !-- war:init
sets maven.war.webapp.dir --

ant:filter token=target.home value=${maven.war.webapp.dir}
/

ant:copy file=context.xml 
 
tofile=${tomcat.home}/conf/Catalina/${host}/insurancederiv.xml 
  overwrite=true filtering=true /

ant:filter token=host value=${host} /

ant:copy file=server.xml 
  tofile=${tomcat.home}/conf/server.xml 
  overwrite=true filtering=true /
  
/goal

!--
 Development target
 --
goal name=dev
j:set var=log4j.properties.file value=log4j.dev.properties
/
j:set var=hibernate.properties.file
value=hibernate.properties.dev /

ant:property file=build.dev.properties /

attainGoal name=war:webapp /
attainGoal name=configureDevTomcat /
/goal

!--
 Live server target
 --
goal name=live 

ant:fail unless=build.properties.file message=This target
should be run via live1 or live2, not directly /

ant:echo message=Now undeploy the web 

RE: Getting correct file based on a profile

2008-01-24 Thread Allen, Daniel
Is there any possibility you could rename the development version to
something like beanRefFactory-dev.xml and put it in the same place as
the production version? If so, then you could refer to one or the other
by a token, and define it in properties in the profiles. Or you could
put the path into the property, and then you might not have to move the
dev version.

 

Something like: 
(in the main pom.xml, where the profiles are defined)

profiles
profile
id dev /id
properties

unusedConfigFilebeanRefFactory.xml/unusedConfigFile
/properties
/profile

profile
id prod /id
properties

unusedConfigFilebeanRefFactory-dev.xml/unusedConfigFile
/properties
/profile
/profiles


(in the core/pom.xml file where you pull in the resource files)

resources
resource
directorytarget/src/directory
excludes
exclude**/*.java/exclude
exclude**/${unusedConfigFile}/exclude
/excludes
/resource
resources

I'm new to Maven too (and in fact I actually just today submitted a
question about doing a more elaborate version of this), so I'm not 100%
certain about the order in which things are processed, but it makes
sense that the main, top-level pom.xml would be read in first, so those
profiles' properties should be available by the time core/pom is
reached.

~DVA

-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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



RE: Questions: Automatically-set tokens in Maven 2 loading properties from files

2008-01-24 Thread Allen, Daniel
That's exactly the kind of thing I was looking for; thanks!

Now, to figure out how to set my own, from a file. 

-Original Message-
From: Matthew Tordoff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 24, 2008 12:10 PM
To: Maven Users List
Subject: RE: Questions: Automatically-set tokens in Maven 2  loading
properties from files

Hi Dan,

This is a pretty good list of the 'tokens' or properties that are
available in Maven2:

http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide 

Matt

-Original Message-
From: Allen, Daniel [mailto:[EMAIL PROTECTED] 
Sent: 24 January 2008 13:07
To: users@maven.apache.org
Subject: Questions: Automatically-set tokens in Maven 2  loading
properties from files

I'm new to Maven, and have a couple questions that I've not been able to
answer from the documentation on the site so far, so I thought I'd put
them out here. 

-What I'm trying to do
Basically, I have the Maven 1 maven.xml file copied below (which, as you
can see, actually does a lot of its work via Ant call-throughs), and
have been assigned to convert the project to Maven 2. I've pasted the
contents of maven.xml below, at the bottom of the message. Basically,
the idea was to have 3 goals: live1, live2 (identical except for server
names--we run the app on a small cluster), and dev. Each has its own
property file, which is loaded into Maven's properties, and then used to
fill in various tokens in config files. It seems like goals are gone
in Maven 2, so I'm trying to replace that idea with different profiles,
but I'm encountering a couple of problems in the conversion.

-Questions
First, is there a comprehensive list of the tokens that are
automatically set in Maven 2? I'm talking about things like ${basedir},
which is the only one I've been able to uncover so far, that maven
assigns values to without needed to read them from a file somewhere. I'm
loooking especially for a Maven 2 equivalent to ${maven.war.webapp.dir},
which apparently was set in the Maven 1 war plugin, but not in the Maven
2 version. I assume it's still there, but I don't see anything to
indicate what it's called now.

Second, as I mentioned, the old goals loaded their particular properties
files into Maven. This is where things like ${email.reports} come from
in the copy/paste below. It seems to use ant:run to load the files that
way, which apparently brings the properties into Maven (not Ant)? That
seems strange and unintuitive, but that's the impression I get. The same
peculiar behavior does not appear to happen when I use Maven2's ant:run
to perform the same task. So, is there a way to get Maven to read a
standard Java properties file and make those available for ${} tokens?
Note that I cannot use filter, because I need those substitutions
available in pom.xml

Thanks,
Dan Allen




-The file I'm trying to convert
?xml version=1.0 encoding=UTF-8?
!-- Old Maven 1 maven.xml file. Works, but I'm trying to convert to
Maven 2. -- project default=dev
xmlns:j=jelly:core
xmlns:util=jelly:util
xmlns:ant=jelly:ant
  
!--
  Setup the log4j.properties by copying the correct one to
log4j.properties in target directory
  and replacing the path token
   --
preGoal name=java:jar-resources
  ant:echo message=${maven.war.webapp.dir} /
  ant:echo message=${maven.src.dir} /
  ant:filter token=tomcat.home value=${tomcat.home} /
  ant:copy file=${maven.src.dir}/conf/${log4j.properties.file} 
 
tofile=${maven.war.webapp.dir}/WEB-INF/classes/log4j.properties
overwrite=true filtering=true /
  ant:copy
file=${maven.src.dir}/conf/hibernate/${hibernate.properties.file}
 
tofile=${maven.war.webapp.dir}/WEB-INF/classes/hibernate.properties
overwrite=true filtering=true /

  ant:filter token=email.business value=${email.business} /
  ant:filter token=spreadsheet.storage
value=${spreadsheet.storage} /
  ant:filter token=email.reports value=${email.reports} /
  ant:filter token=host.url value=${host.url} /
  ant:filter token=email.alerts.system
value=${email.alerts.system} /
  ant:filter token=daemon.rv value=${daemon.rv} /

  ant:copy file=${maven.src.dir}/webapp/WEB-INF/web.xml
tofile=${maven.war.webapp.dir}/WEB-INF/web.xml
overwrite=true filtering=true /

/preGoal

!--
  Export the SQL for Hibernate tables
  --
postGoal name=war:webapp
attainGoal name=hibernate:schema-export /
/postGoal

!--
  Configures Tomcat (server.xml and Context insurancederiv.xml)
--
goal name=configureDevTomcat prereqs=war:init  !-- war:init
sets maven.war.webapp.dir --

ant:filter token=target.home value=${maven.war.webapp.dir}
/

ant:copy file=context.xml 
 
tofile=${tomcat.home}/conf/Catalina/${host}/insurancederiv.xml 
  overwrite=true filtering=true /

ant:filter token=host value=${host} /

ant:copy file=server.xml

RE: Error ear

2008-01-24 Thread Allen, Daniel
Do you have the required files on hand? You could set up your own local
repository. 

-Original Message-
From: Arthur Rodrigues Stilben [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 24, 2008 2:00 PM
To: Maven Users List
Subject: Error ear

Hi,

I have a problem in my ear project. I made something like that:


dependency
  groupIdmath.ssj/groupId
  artifactIdcolt/artifactId
  version1.2.0/version
  typejar/type
/dependency

dependency
groupIdjfree/groupId
  artifactIdjcommon/artifactId
version1.0.12/version
typejar/type
/dependency


dependency
groupIdSaiph.SaiphST/groupId
  artifactIdSaiphST-ejb/artifactId
version1.0/version
typejar/type
/dependency


Until the Saiph dependency, it's all ok. But in that dependency, an
error is shown:

C:\SaiphMaven\SaiphST_ear\SaiphSTmvn compile
[INFO] Scanning for projects...
[INFO]

[INFO] Building SaiphST
[INFO]task-segment: [compile]
[INFO]

Downloading:
http://repo1.maven.org/maven2/math/ssj/colt/1.2.0/colt-1.2.0.pom
Downloading:
http://repo1.maven.org/maven2/Saiph/SaiphMaven/1.0/SaiphMaven-1.0.p
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: Saiph
ArtifactId: SaiphMaven
Version: 1.0

Reason: Unable to download the artifact from any repository

  Saiph:SaiphMaven:pom:1.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 12 seconds
[INFO] Finished at: Thu Jan 24 16:42:39 GMT-03:00 2008
[INFO] Final Memory: 2M/5M
[INFO]


What can I do to resolve it?

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


-- 
This message may contain confidential, proprietary, or legally privileged 
information. No confidentiality or privilege is waived by any transmission to 
an unintended recipient. If you are not an intended recipient, please notify 
the sender and delete this message immediately. Any views expressed in this 
message are those of the sender, not those of any entity within the KBC 
Financial Products group of companies (together referred to as KBC FP). 

This message does not create any obligation, contractual or otherwise, on the 
part of KBC FP. It is not an offer (or solicitation of an offer) of, or a 
recommendation to buy or sell, any financial product. Any prices or other 
values included in this message are indicative only, and do not necessarily 
represent current market prices, prices at which KBC FP would enter into a 
transaction, or prices at which similar transactions may be carried on KBC FP's 
own books. The information contained in this message is provided as is, 
without representations or warranties, express or implied, of any kind. Past 
performance is not indicative of future returns.


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