Differences between dependencies

2007-07-26 Thread Dmitry
Could you please give the main differences between the following 
depedencies:


- Release and Snapshot

thanks,

DT,

www.ejinz.com

Search Engine



Maven differentiates between two kinds of dependencies:

 a.. Release. Released dependencies are artifacts downloaded to the local 
maven repository only once - when maven detects that there is no such 
artifact in the local repo.
 b.. Snapshot. Snapshot dependencies are downloaded to your local maven 
repository every time maven detects there is a newer version in the remote 
one.
Maven treats dependencies as snapshot when the version number ends 
with -SNAPSHOT.


When you specify repositories for your project you specify if each 
repository contains snapshot versions of artifacts and how often maven has 
to check for newer version (always, daily, etc).




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



External Property files

2007-07-26 Thread cb2007

Hi!
In the Maven2 documentation (http://maven.apache.org/pom.html#Properties) I
read that properties can come from

  1. env.X: Prefixing a variable with env. will return the shell’s
 environment variable. For example, ${env.PATH} contains the $path
 environment variable (%PATH% in Windows).
  2. project.x: A dot (.) notated path in the POM will contain the
 corresponding element’s value. For example:
 projectversion1.0/version/project is accessible via
 ${project.version}.
  3. settings.x: A dot (.) notated path in the settings.xml will
 contain the corresponding element’s value. For example:
 settingsofflinefalse/offline/settings is accessible via
 ${settings.offline}.
  4. Java System Properties: All properties accessible via
 java.lang.System.getProperties() are available as POM properties,
 such as ${java.home}.
  5. x: Set within a properties / element or an external files, the
 value may be used as ${someVar}.

but I could not find any reference on how to read properties from an
external file (as it is mentioned in item 5) and avoid putting them in the
POM properties section.

Is there any way to do that like it was possible with Maven 1.x
(build.properties and project.properties files)?
Thanks for any help!
Carlo


-- 
View this message in context: 
http://www.nabble.com/External-Property-files-tf4150588s177.html#a11807493
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Looking for IZPack mater in the repo

2007-07-26 Thread Aron Sogor

The izpack poms has some issues:

  1. the dependencies
 dependency/
 /dependencies causes mvn 2.0.6 to call the pom invalid.
  2. 3.8.0 is old
  3. The biggest pain is none of the packages contains the classes from
 the izpack-events.jar so if you write plugins there is no way to
 compile them

Whoever is the boss I am happy to help!

Aron


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



Re: Maven plugin for WebSphere 6.x

2007-07-26 Thread Dion Gillard

The maven 1.x plugin wasn't developed by IBM.

Some of us on WebSphere are happily sticking with 1.1.

On 7/26/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:


I have spent the last few hours looking the Maven 2 equivalent of the
following 1.1 plugin

http://maven-plugins.sourceforge.net/maven-was5-plugin/index.html
without success.

There doesn't seem to be anything at the mojo website either. Have I
overlooked it, or has IBM decided not to participate in Open Source any
more?


Thanks
Robert Egan


This email message and any attachments may contain confidential,
proprietary or non-public information.  The information is intended solely
for the designated recipient(s).  If an addressing or transmission error
has misdirected this email, please notify the sender immediately and
destroy this email.  Any review, dissemination, use or reliance upon this
information by unintended recipients is prohibited.  Any opinions
expressed in this email are those of the author personally.





--
dIon Gillard
Rule #131 of Acquisition: Information is Profit.


External property files

2007-07-26 Thread Carlo Bonamico

Hi!
In the Maven2 documentation 
(http://maven.apache.org/pom.html#Properties) I read that properties can 
come from


  1. env.X: Prefixing a variable with env. will return the shell’s
 environment variable. For example, ${env.PATH} contains the $path
 environment variable (%PATH% in Windows).
  2. project.x: A dot (.) notated path in the POM will contain the
 corresponding element’s value. For example:
 projectversion1.0/version/project is accessible via
 ${project.version}.
  3. settings.x: A dot (.) notated path in the settings.xml will
 contain the corresponding element’s value. For example:
 settingsofflinefalse/offline/settings is accessible via
 ${settings.offline}.
  4. Java System Properties: All properties accessible via
 java.lang.System.getProperties() are available as POM properties,
 such as ${java.home}.
  5. x: Set within a properties / element or an external files, the
 value may be used as ${someVar}.

but I could not find any reference on how to read properties from an 
external file (as it is mentioned in item 5) and avoid putting them in 
the POM properties section.


Is there any way to do that like it was possible with Maven 1.x 
(build.properties and project.properties files)?

Thanks for any help!
Carlo


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



Filtering in src/main/webapp/WEB-INF with maven-war-plugin

2007-07-26 Thread Matthias Berndt
Greetings,

I'd like to filter the web.xml in src/main/webapp/WEB-INF. I tried to
follow the instructions on

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

but it doesn't work src/main/webapp/WEB-INF/web.xml. Can anyone give me
an advice or provide an sample configuration?

Thank you
Matthias Berndt


pgp2aZDbyq6Zj.pgp
Description: PGP signature


resources as dependencies

2007-07-26 Thread John Coleman
Hi,

 

We want to farm off some of our common resources (java scripts and
images) into a project that other projects can use as a dependency.

 

Does Maven2 have a way of getting such dependencies into a resources
phase?

 

Regards,

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Broken links in project-reports.html

2007-07-26 Thread erik_k

Hi,

I'm using Maven2 and the maven-site-plugin.
The generated project-reports.html contains broken links, such as
.../project-reports.html#changelog.html.
I want to delete the anchor-tags. Is there a possibility to delete the tags
in a template-file or
do you know which class(es) generate(s) the project-reports.html file?

Thanks, Erik

-- 
View this message in context: 
http://www.nabble.com/Broken-links-in-project-reports.html-tf4150777s177.html#a11807936
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Maven plugin for WebSphere 6.x

2007-07-26 Thread hermod.opstvedt
Hi

The WAS 5 plugin for Maven2 is not meant for WAS6. The WAS directory structure 
has changed between the two versions. When I wrote that plugin, I specifically 
stated that. For WAS6 take a look at the Cargo plugin. Cargo should work for 
WAS6 because WAS6 is based on JDK 1.4, whereas WAS5 is based on JDK 1.3

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 8:53 PM
To: users@maven.apache.org
Subject: Maven plugin for WebSphere 6.x


I have spent the last few hours looking the Maven 2 equivalent of the 
following 1.1 plugin

http://maven-plugins.sourceforge.net/maven-was5-plugin/index.html 
without success.

There doesn't seem to be anything at the mojo website either. Have I 
overlooked it, or has IBM decided not to participate in Open Source any 
more?


Thanks
Robert Egan


This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

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



Re: How can i build a specific version without changing the pom.xml?

2007-07-26 Thread John Patrick

Baz,

I would put this type of information into a profile within the pom. Then its
simple and repeatable. Also trackable if your project is under source
control, instead of just relying on people knowing the correct command line
arguments to use.

Personally I think building a different version from what the pom says is a
very bad idea as from my experience, definitively knowing from a file its
artifact id and version number is a huge advantage. It can give you a link
into a source control tag or label and maintenance and support effect can be
more efficiently used.

If a defect gets raised for version 0.1 how will support know its actually
1.0 with version 2.0 of xyz and not version 0.1 with what ever version of
xyz was defined at the point.

I apologise for the rant but I've been called in several times to help with
issues with supporting non maven projects and finding out versions of jars
being used and setting up a test environment took 85% of the time with the
rest doing the actual fix and proving it works. Where as with a maven
project, get the pom from the main jar and then sync to that tag/label and
your setup in minuets not hours.

John

On 26/07/07, Baz [EMAIL PROTECTED] wrote:


All,

How can i build a specific version or depend on specific version without
changing the pom.xml ?

For example, if pom.xml of product A is building version 1.0 of product A
and depending on version 5.6 of xyz.

Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install to
build version 0.1 of product A and depending on version 2.0 of xyz?

Thank you.

A.





On 26/07/07, Baz [EMAIL PROTECTED] wrote:


All,

How can i build a specific version or depend on specific version without
changing the pom.xml ?

For example, if pom.xml of product A is building version 1.0 of product A
and depending on version 5.6 of xyz.

Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install to
build version 0.1 of product A and depending on version 2.0 of xyz?

Thank you.

A.



Best Practice Repository usage

2007-07-26 Thread maarten roosendaal
Hi,

I was wondering if there is a best practice regarding the use of repositories, 
not just for handling 3rd party dependencies but also regarding SNAPSHOT 
development and Releases from the project itself. I've read some articles 
related to setting up a repo and why use one, but nothing regarding how to best 
fit the repo in the development phase of software.

For example:
* Do developers only use their own local repo or can they use a central 
internal repo (mvn install the artifact to the central repo)?
* if they use their own local repo they should deploy SNAPSHOTs on a regular 
basis, but do you use a seperate SNAPSHOT repo for this?
* Do you use a release'-repo for specific releases?
* What are the steps a configuration manager has to take before releasing a 
deliverable through Maven (i know the release plugin but i'm looking for 
procedures and best practices)

So i'm not only looking for a best practice but for a 'workflow' guideline as 
well. Any thoughts, suggestions?

Thanks,
Maarten




   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz

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



RE: runtime properties

2007-07-26 Thread John Coleman

Thanks Wayne, I had not seen this before, and it seems indeed to be some
damage in the repo. Just copying fresh over repaired it. Quiet a lot
seems to of corrupted.

Would be nice to have something to that effect in the Maven log for that
message. And what about a repository:repair kind of goal?

John

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2007 15:34
To: Maven Users List
Subject: Re: runtime properties

Try mvn -U to force an update. If it still is failing, delete the
~/.m2/ directory (if not the whole thing, delete the
org/apache/maven/plugins directory) and try again.

The plugin does not exist or no valid version could be found error
sometimes happens when you get bad artifacts in your m2 cache.
Usually, that happens when you're using a bad or incorrectly
configured mirror, or you've got a misconfigured proxy etc.

Wayne


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



Not running test on jetty:run?

2007-07-26 Thread mateamargo

I'm having problems with my webapp. But the problems were while running it
(e.g. saving an object), but yesterday I have tried running mvn clean
jetty:run-war instead of mvn clean jetty:run and hasn't compile it because a
test fail.
Running jetty:run it don't run the surefire plugin.

Is this expected?
-- 
View this message in context: 
http://www.nabble.com/Not-running-test-on-jetty%3Arun--tf4152173s177.html#a11812241
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread Wayne Fay

A work-around for this problem which I've previously mentioned is roughly:

1. Figure out which classes are the problem
2. Figure out which jars contain those classes
3. Figure out which version of those classes you want to keep
4. Extract and re-jar the others problem jars minus the offending classes
5. Distribute those updated jars to the rest of your team via
Corporate Repo or similar

This is perhaps not ideal but it does allow you to get past the problem.

If your problem jars are being supplied by a vendor, complain to them
and perhaps they will adopt a better policy regarding their Jars. If
your problem jars are being supplied by another dev team in your
organization, you should be able to get them to change the way they do
things or at least provide you with proper bundles that won't give you
problems like this.

Wayne

On 7/26/07, jaxzin [EMAIL PROTECTED] wrote:


Thanks Manos,
What I've found so far by looking at the source is that its dependent on how
the Set that MavenProject.getArtifacts() orders itself.  I still haven't
found which impl of Set is used.  That would tell us how predictable the
order is.  My guess is its a HashSet and so the order will be determined by
the hashCode of the the Artifact object.

Brian



Manos Batsis wrote:



 Come on guys let us not give too much attention to eachother :-)

 I dont think Maven's behaviour regarding the order of JARs in the
 classpath is random; that would be impossible.

 My guess is the order is predictable and based on the dependencies
 configuration and the algorithm that goes over it. Something like

 1) Scan explicit deps
 2) (Recursive?) Either
2.A) For each one add it's deps and move to the next depth level OR
2.B) Add each one, then process the next depth level of deps
 3) Remove the overridden versions

 This is pretty rough but you get the point. My bet is you will always
 get the same classpath in a project whose POM does not change.

 This of course may not provide an easy solution to the OPs prob, but the
 code is OS after all so anyone is free to modify it as needed and post
 patches in the JIRA or whatever :-)

 Cheers,

 Manos

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




--
View this message in context: 
http://www.nabble.com/Setting-jar-order-in-maven.compile.classpath-tf4111876s177.html#a11811974
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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]



Filtering issue

2007-07-26 Thread CDickson
Hi,

This is a follow up to my previous question regarding resource copying.

Below is my resources plugin configuration which will hopefully give 
people a better idea of what I am trying to achieve.

When I run my build I can see the 2 different executions of the plugin run 
and files do get copied to the correct locations in the target directory. 
The problem is that the filtering does not happen. I can see when I run 
with the -X option that the filters array is empty for both executions. 
Does anyone know how to configure a different filter file for each 
execution properly?

Thanks

plugin
groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-resources-plugin/
artifactId
version2.2/version
executions
execution
idprod/id
phasepackage/phase
goals
goalresources/
goal
/goals
configuration
outputDirectory
${project.build.directory}/prod/outputDirectory

filterPropertiesFile${basedir}/src/main/filters/prod.properties/
filterPropertiesFile
filteringtrue/
filtering
/configuration
/execution
execution
idqa/id
phasepackage/phase
goals
goalresources/
goal
/goals
configuration
outputDirectory
${project.build.directory}/qa/outputDirectory

filterPropertiesFile${basedir}/src/main/filters/qa.properties/
filterPropertiesFile
filteringtrue/
filtering
/configuration
/execution
/executions
/plugin

--
Craig Dickson
Software Engineering Manager
Behr Process Corporation
Santa Ana, California



--- 
The information contained in this e-mail message may be proprietary, 
privileged, confidential or protected from disclosure. If you are not the 
intended recipient, any dissemination, distribution or copying is strictly 
prohibited. If you think that you have received this e-mail message in 
error, please e-mail the sender. 

Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack

This turns out to be some incompatibility between the clover plugin and the
junit-report plugin.

http://jira.codehaus.org/browse/MPCLOVER-59


Jeff


Lukas Theussl-3 wrote:
 
 Can't you get that using the maven.clover.instrument.tests and/or 
 maven.clover.includes/excludes properties?
 
 -Lukas
 
 jblack wrote:
 Clover will show me source lines of code, is there a technique to get
 only
 Test source lines of code.
 
 Example like: Code LOC: 451 Test LOC: 586 Code to Test Ratio: 1:1.3
 
 Or is there an integrated maven report that will do this for me?
 
 
 Jeff
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m1--Report-showing-code-to-test-ratio--tf4142921s177.html#a11817427
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] issue with module running ant task that creates an jar

2007-07-26 Thread Mick Knutson

I have a module that is defined as a jar as this jar is a dependency within
other modules in my project.

This pom.xml: jar calls a bpel and task that creates a bpel suitcase JAR.
The bpel jar is the artifact I actually want in my repository and available
as a dependency.

So, how do I accomplish this as I end up with 2 different jars right now.

--

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Run surefire unit test with custom junit runner.

2007-07-26 Thread Gohan

I wonder if it's possible to run JUnit4 tests with a custom JUnit runner
using the surefire maven2 plugin. The test uses the @RunWith annotation to
tell which JUnit runner to use, e.g.: 

@RunWith(MyJUnitRunner.class)
public class MyClassTest {
  ..
}

The tests runs perfectly in Eclipse but not when running them from Maven. 
Any ideas?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Run-surefire-unit-test-with-custom-junit-runner.-tf4153653s177.html#a11817526
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: What is the correct way to use classifiers

2007-07-26 Thread Graham Leggett

Dennis Lundberg wrote:


To sum this up: it works, but is it the right way (TM) to use classifiers?


For what it's worth, that's how we use classifiers.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: relativePath

2007-07-26 Thread Jesse McConnell
generally you don't need to use that relativePath tag..

and your second scenario still looks a little odd.

I think maybe your not installing your superpom into the repository
before you start building your project?  Normally if your doing
something like this with a company pom, then that pom is managed
separately in its own scm setup..

in svn this would be

.../repos/company/trunk/pom.xml
.../repos/company/tags/company-1/pom.xml
.../repos/company/tags/company-2/pom.xml

etc.

Those pom.xml in the company-1 and company-2 would be released and
available in some repository as any other artifact or pom resource in
maven.  Then you project would just reference that company pom via the
groupId:artifactId:version and maven would take care of all the work.

that make more sense?

jesse


On 7/25/07, javijava [EMAIL PROTECTED] wrote:


 Someone use the tag relativePath with success?

 I try to use this tag, with ../  and ../../, but it does not work. (At
 least for me).
 Continuum ever said: URL malformed. I use first 1.0.3 and  after
 1.1-alpha-2 version with the same result.

 finally I change the struct and put a pom in each level, but i dont know if
 this is rigth


 I change :


 Repo
 |
 |ParentPom.xml ( SuperPom)
 |
 |P1
 | |
 | |--Trunk
 | | \--- Pom.xml (project)
 | \--Release
 |
 |

 to:


 Repo
 |
 |Pom.xml ( SuperPom)
 |
 |P1
 | |--Pom.xml (connector)
 | |--Trunk
 | | \--- Pom.xml (project)
 | \--Release
 |
 |

 What do you think about?

 regards


 --
 View this message in context: 
 http://www.nabble.com/relativePath-tf4140573.html#a11777693
 Sent from the Continuum - Users mailing list archive at Nabble.com.




-- 
jesse mcconnell
[EMAIL PROTECTED]


Creating a JAR to include in the lib directory

2007-07-26 Thread Vaidya, Supriya A \(US - Chicago\)
Hi:
 
I am working with multiple modules - 
 
An EJB
contained in a WAR
contained in a EAR 
 
There are some libraries that are shared between the EJB and the WAR. In
reading up on skinny WARs, I was able to find that a way to include the
lib directory in teh EAR only, so that they are shared between the EJB
and the WAR, without having to repeating the jars in each package. This
is great!
 
Now, I also have a bunch of POJO files that I have written, shared
between the EJB and the WAR. I was thinking of creating a structure:
 
A POJO
referenced by an EJB
Contained in a WAR
Contained in an EAR
 
The parent POM will therefore have 4 modules - POJO, EJB, WAR and EAR.
However, the created EAR now contains a JAR, an EJB JAR and a WAR, all
in teh root, and a lib directory containing all the other JAR files. Is
there a way that I can include this POJO jar in teh lib directory of teh
EAR instead? using the same maven install command? 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


site:site versus site:stage

2007-07-26 Thread Adam Fisk

I'm having issues using site:site with a multi-module project.  site:stage
works fine, but for some reason site:site doesn't like my modules, instead
just listing them in bold.

Shouldn't they do the same thing?  Any idea how I get site:site to just link
the darn modules?  I'm using maven 2.0.7.

Thanks!

-Adam


Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Mick Knutson

Not sure i understand what this plugin will do for the artifact.

I have a modele, that runs an ant task that creates a jar. So maven module
is not creating the jar from the target DIR, the ant task already creates
the jar I want inside the target DIR that I want to add to my repository.




On 7/26/07, Wayne Fay [EMAIL PROTECTED] wrote:


If I understand you correctly, build-helper-maven-plugin should be
what you're looking for:

http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

Wayne

On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:
 To give a little more idea of what I am looking for:

 I want to see if in my jar module, I can have something like this:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
executions
   execution
  goals
 goalpackage/goal
  /goals
   /execution
/executions
configuration
   includes/target/bpel.jar/includes
/configuration
  /plugin

 Then the bpel.jar can get renamed to moduleone-1.0.3.jar and added to my
 repository (if I use the install goal)
 But regaurdless, moduleone-1.0.3.jar is now a valid dependency for my
 moduletwo module.




 On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:
 
  I have a module that is defined as a jar as this jar is a dependency
  within other modules in my project.
 
  This pom.xml: jar calls a bpel and task that creates a bpel suitcase
JAR.
  The bpel jar is the artifact I actually want in my repository and
available
  as a dependency.
 
  So, how do I accomplish this as I end up with 2 different jars right
now.
 
  --
 
  Thanks,
  Mick Knutson
 
  http://www.baselogic.com
  http://www.blincmagazine.com
  http://www.djmick.com
  http://www.myspace.com/mickknutson
  http://www.myspace.com/djmick_dot_com
  http://www.myspace.com/sexybeotches
  http://www.thumpradio.com
  ---




 --

 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/djmick_dot_com
 http://www.myspace.com/sexybeotches
 http://www.thumpradio.com
 ---


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





--

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: can not log in after deploy the continuum

2007-07-26 Thread Jesse McConnell
sorry, not understanding your problem...

what does 'whatever I create a password remind session' mean?

did you forget your admin account password?

On 7/24/07, Rex Zhen [EMAIL PROTECTED] wrote:
 I set the admin account at the first page after I deployed the
 continuum. But I can not log in, whatever I create a password remind
 session, I can not log in.




-- 
jesse mcconnell
[EMAIL PROTECTED]


Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Wayne Fay

If I understand you correctly, build-helper-maven-plugin should be
what you're looking for:
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html

Wayne

On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:

To give a little more idea of what I am looking for:

I want to see if in my jar module, I can have something like this:

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jar-plugin/artifactId
   executions
  execution
 goals
goalpackage/goal
 /goals
  /execution
   /executions
   configuration
  includes/target/bpel.jar/includes
   /configuration
 /plugin

Then the bpel.jar can get renamed to moduleone-1.0.3.jar and added to my
repository (if I use the install goal)
But regaurdless, moduleone-1.0.3.jar is now a valid dependency for my
moduletwo module.




On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:

 I have a module that is defined as a jar as this jar is a dependency
 within other modules in my project.

 This pom.xml: jar calls a bpel and task that creates a bpel suitcase JAR.
 The bpel jar is the artifact I actually want in my repository and available
 as a dependency.

 So, how do I accomplish this as I end up with 2 different jars right now.

 --

 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/djmick_dot_com
 http://www.myspace.com/sexybeotches
 http://www.thumpradio.com
 ---




--

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---



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



Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack

Maybe nevermind, I checked out the source and tests for the clover plugin and
there is a test to instrument the tests and it verifies the plugin works as
expected (line count increases with property set to true).

I will double-check my project setup to determine what is wrong.


Jeff


jblack wrote:
 
 Lukas,
 
 Thanks for the ideas, I think this is the right track.
 
 However, setting maven.clover.instrument.tests=true did not produce and
 change to the clover report (source lines of code, or otherwise). 
 Tracking the plugin.jelly, the path to the test source is being included
 as a fileset to clover-setup, but from there I'm not sure what I might be
 doing wrong...?
 
 
 Jeff
 
 
 Lukas Theussl-3 wrote:
 
 Can't you get that using the maven.clover.instrument.tests and/or 
 maven.clover.includes/excludes properties?
 
 -Lukas
 
 jblack wrote:
 Clover will show me source lines of code, is there a technique to get
 only
 Test source lines of code.
 
 Example like: Code LOC: 451 Test LOC: 586 Code to Test Ratio: 1:1.3
 
 Or is there an integrated maven report that will do this for me?
 
 
 Jeff
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m1--Report-showing-code-to-test-ratio--tf4142921s177.html#a11816493
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m1] Report showing code to test ratio?

2007-07-26 Thread jblack

Lukas,

Thanks for the ideas, I think this is the right track.

However, setting maven.clover.instrument.tests=true did not produce and
change to the clover report (source lines of code, or otherwise).  Tracking
the plugin.jelly, the path to the test source is being included as a fileset
to clover-setup, but from there I'm not sure what I might be doing wrong...?


Jeff


Lukas Theussl-3 wrote:
 
 Can't you get that using the maven.clover.instrument.tests and/or 
 maven.clover.includes/excludes properties?
 
 -Lukas
 
 jblack wrote:
 Clover will show me source lines of code, is there a technique to get
 only
 Test source lines of code.
 
 Example like: Code LOC: 451 Test LOC: 586 Code to Test Ratio: 1:1.3
 
 Or is there an integrated maven report that will do this for me?
 
 
 Jeff
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m1--Report-showing-code-to-test-ratio--tf4142921s177.html#a11816217
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven Idea Plugin

2007-07-26 Thread Dennis Lundberg

Kannan Ekanath wrote:

Thanks !!!
That is exactly what I need. I however have a question though. I am using
2.2-SNAPSHOT version, there is a patch for this JIRA issue, (which means
that it is already added to source control).


No, it just means that someone has created a patch for the issue. It has 
not been committed to Subversion yet.



Since I am referring to the snapshot version directly, wouldnt I get this
fix this week itself? (I read that the snapshot bundles are updated every
week)


If it had been applied, you would get most likely get it. But as it 
hasn't been applied yet - you wont' get it.



Thanks,
Kannan

On 7/25/07, Ian Springer [EMAIL PROTECTED] wrote:

Hi,

Looks like there's already an issue for this.

http://jira.codehaus.org/browse/MIDEA-94

You should vote for it if you want to increase the chances of it being
added.

-Ian

Kannan Ekanath wrote:

Hi,
I have a problem with Maven Idea plugin. I have a local repository and

my

project refers to dependencies there. However if the sources.jar are
already
there in the local machine repository, I want IDEA to create iml files
with
source attachments defined(Right now, I am doing the attaching of source
jars manually).

Note this is a completely different feature from
-DdownloadSources=true, I
do not want to download the sources. But for whatever source jar files I
already have in my repository I want idea to create those entries. Can
someone let me know when this feature will be done?


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








--
Dennis Lundberg

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



Re: Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Arnaud Bailly
Wayne Fay [EMAIL PROTECTED] writes:

 1) Use mvn -X and parse the text dependency tree to find out which
 dependency is pulling in the unwanted lucene artifact version. Just
 copy and paste the mvn -X output to Notepad etc and search for
 lucene. Then add an excludes node to the offending dependency to
 exclude the bad artifact.

Just to be sure: Is it not possible to outlaw the offending dependency
throughg dependencyManagement tag ?


-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: resources as dependencies

2007-07-26 Thread Arnaud Bailly
John Coleman [EMAIL PROTECTED] writes:

 The web.xml in the dependency war does seem to be ignored so this is
 quite a neat solution. :)

 We are using this to provide a library of resources all our web
 applications can draw from.

 I still don't have a good answer on how to do what I call client
 flavours. The client may need to have tweaked js, their own images and
 properties files instead of plain-vanilla.

 I don't see this as fitting the dependency concept very well - because
 we really need a switch at build time to control which set of assets
 to incorporate. The main nasty occurs if we have tweaked scripts
 because ideally we don't want to clone large pieces of script, just
 for small client tweaks. This is particularly unpleasant in terms of
 vcs. What we really need is all the tweaks to be parameterised in some
 way so they work like components and can be snapped in.

 We may have to create our own flavour plugin. Is there a way to have
 resource directories in the Maven project that are ignored by default,
 and then switch a selected one on to merge into the target? Possibly
 we might have a properties file that tells Maven to ignore certain
 resource directories? I don't really want to config this inside the
 POM.


What I did was the following:
 - define the filter file to use as a property 
 - define profiles for the different flavo(u)rs, each setting its own
   dependencies 
 - at build time, choose profile and set the filter file(s)
   properties so that they correspond to the 'flavour' you build. 

I did this to build three different web apps:
 1. one with the real business layer and addresses
 2. one with the test dao layer 
 3. one with a mock business layer

out of the same presentation layer.

Regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Wayne Fay

1) Use mvn -X and parse the text dependency tree to find out which
dependency is pulling in the unwanted lucene artifact version. Just
copy and paste the mvn -X output to Notepad etc and search for
lucene. Then add an excludes node to the offending dependency to
exclude the bad artifact.

2) The dependency:tree mojo is not yet available in any released
version. So you will need to add the Maven Snapshot repo to your pom
to be able to use it.

Wayne

On 7/26/07, Marcelo de Barros Alcantara [EMAIL PROTECTED] wrote:

Hi All,

I am having a problem with two dependencies (lucene 1.4.3 and lucene
2.0).

They are both dependencies at some level from my root dependencies but
the wrong classes are being called making the application unable to run.

1) Someone know how can I isolate the dependencies so that right
correspondent dependencies are called?

2) I tried to use mvn dependency:tree to check the problem further but
it does not work. This goal is still there?

Thanks in advance for any help.

Best regards,

Marcelo Alcantara
www.uol.com.br




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



RE: resources as dependencies

2007-07-26 Thread John Coleman
The web.xml in the dependency war does seem to be ignored so this is quite a 
neat solution. :)

We are using this to provide a library of resources all our web applications 
can draw from.

I still don't have a good answer on how to do what I call client flavours. The 
client may need to have tweaked js, their own images and properties files 
instead of plain-vanilla.

I don't see this as fitting the dependency concept very well - because we 
really need a switch at build time to control which set of assets to 
incorporate. The main nasty occurs if we have tweaked scripts because ideally 
we don't want to clone large pieces of script, just for small client tweaks. 
This is particularly unpleasant in terms of vcs. What we really need is all the 
tweaks to be parameterised in some way so they work like components and can be 
snapped in.

We may have to create our own flavour plugin. Is there a way to have resource 
directories in the Maven project that are ignored by default, and then switch a 
selected one on to merge into the target? Possibly we might have a properties 
file that tells Maven to ignore certain resource directories? I don't really 
want to config this inside the POM.

John


-Original Message-
From: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2007 17:11
To: Maven Users List
Subject: Re: resources as dependencies

John Coleman [EMAIL PROTECTED] writes:

 Hi,

 The Maven war packaging forces me to have a web.xml which is not
 required in the dependency project. Perhaps I can switch that off? I

Hi John, 
Yes, It seems so. But it is not used in overlays and you can control 
it so this is not big deal. 
(see
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html) 


 just want to pack generic script and images up for web projects. Or
 will my project web.xml simply overrule the dependency web.xml?


BTW, I used this in a real world project together with profiles to
generate different flavors of the same application.

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



Re: runtime properties

2007-07-26 Thread Wayne Fay

The process for downloading and installing jars into the local repo
cache is rather flawed. At least one bug has been filed and this is
certainly in the mind of the Maven developers. I'm just not sure when
it will be addressed -- probably not until M2.1.

I like the idea of the repo:repair mojo. In fact, I might even have to
think about implementing something like that.

Wayne

On 7/26/07, John Coleman [EMAIL PROTECTED] wrote:


Thanks Wayne, I had not seen this before, and it seems indeed to be some
damage in the repo. Just copying fresh over repaired it. Quiet a lot
seems to of corrupted.

Would be nice to have something to that effect in the Maven log for that
message. And what about a repository:repair kind of goal?

John

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: 26 July 2007 15:34
To: Maven Users List
Subject: Re: runtime properties

Try mvn -U to force an update. If it still is failing, delete the
~/.m2/ directory (if not the whole thing, delete the
org/apache/maven/plugins directory) and try again.

The plugin does not exist or no valid version could be found error
sometimes happens when you get bad artifacts in your m2 cache.
Usually, that happens when you're using a bad or incorrectly
configured mirror, or you've got a misconfigured proxy etc.

Wayne


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail.

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail.

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


-
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]



Re: Maven creating a WAR: strange error about file access

2007-07-26 Thread Wayne Fay

A Maven bug would imply that its a problem of Maven, and therefore
repeatable etc, so we would expect to see a lot of people encoutering
the problem.

Given that a lot of us are very successfully creating our own WARs,
and you're the only one who has reported this trouble, I would tend to
assume that the problem is in fact a problem on your local system.

Given that you're running Windows, I'm going to assume you have an
antivirus software installed. Please try disabling your antivirus and
try again. It might be nice if you could perhaps boot into Safe Mode
and try Maven -- if it is successful, you know that some other process
on your box (antivirus etc) is the cause of your troubles.

Wayne

On 7/26/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote:

Tried that - still getting the same error... And this with the only
window open is the command prompt, after a restart of my system. Is this
a Maven bug? Nobody else seems to encounter it...


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 25, 2007 9:55 AM
To: Maven Users List
Subject: Re: Maven creating a WAR: strange error about file access

I would move all your stuff to a folder that has no spaces anywhere in
the name and see if the error happens again.

Wayne

On 7/25/07, Vaidya, Supriya A (US - Chicago)
[EMAIL PROTECTED] wrote:

 [INFO] Error copying EAR modules
 Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From
 Mark\19Jun200
 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war
(The
 process
  cannot access the file because it is being used by another process)

 Now - I have checked the processes through my task manager - and don't
 see any java processes. I have restarted my comp, opened the cmd
window
 immediately, did not open ANY other application, simply run the mvn
 clean install, and STILL get this error... what in the world is using
 the war?? Is this a Maven problem, or am I missing something? Does the
 space in 'From Mark' matter?


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


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message.


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

-
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]



Problem with dependencies - Conflict - Lucene

2007-07-26 Thread Marcelo de Barros Alcantara
Hi All,
 
I am having a problem with two dependencies (lucene 1.4.3 and lucene
2.0).
 
They are both dependencies at some level from my root dependencies but
the wrong classes are being called making the application unable to run.
 
1) Someone know how can I isolate the dependencies so that right
correspondent dependencies are called?
 
2) I tried to use mvn dependency:tree to check the problem further but
it does not work. This goal is still there?
 
Thanks in advance for any help.
 
Best regards,
 
Marcelo Alcantara
www.uol.com.br


AVISO: A informacao contida neste e-mail, bem como em qualquer de seus anexos, 
e CONFIDENCIAL e destinada ao uso exclusivo do(s) destinatario(s) acima 
referido(s), podendo conter informacoes sigilosas e/ou legalmente protegidas. 
Caso voce nao seja o destinatario desta mensagem, informamos que qualquer 
divulgacao, distribuicao ou copia deste e-mail e/ou de qualquer de seus anexos 
e absolutamente proibida. Solicitamos que o remetente seja comunicado 
imediatamente, respondendo esta mensagem, e que o original desta mensagem e de 
seus anexos, bem como toda e qualquer copia e/ou impressao realizada a partir 
destes, sejam permanentemente apagados e/ou destruidos. Informacoes adicionais 
sobre nossa empresa podem ser obtidas no site http://sobre.uol.com.br/.

NOTICE: The information contained in this e-mail and any attachments thereto is 
CONFIDENTIAL and is intended only for use by the recipient named herein and may 
contain legally privileged and/or secret information. If you are not the 
e-mail?s intended recipient, you are hereby notified that any dissemination, 
distribution or copy of this e-mail, and/or any attachments thereto, is 
strictly prohibited. Please immediately notify the sender replying to the above 
mentioned e-mail address, and permanently delete and/or destroy the original 
and any copy of this e-mail and/or its attachments, as well as any printout 
thereof. Additional information about our company may be obtained through the 
site http://www.uol.com.br/ir/.


RE: Maven creating a WAR: strange error about file access

2007-07-26 Thread Vaidya, Supriya A \(US - Chicago\)
Tried that - still getting the same error... And this with the only
window open is the command prompt, after a restart of my system. Is this
a Maven bug? Nobody else seems to encounter it... 


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 9:55 AM
To: Maven Users List
Subject: Re: Maven creating a WAR: strange error about file access

I would move all your stuff to a folder that has no spaces anywhere in
the name and see if the error happens again.

Wayne

On 7/25/07, Vaidya, Supriya A (US - Chicago)
[EMAIL PROTECTED] wrote:

 [INFO] Error copying EAR modules
 Embedded error: C:\Supriya\Projects\XXX\Documents\Code\From
 Mark\19Jun200
 7\creditDecision\creditDecisionWAR\target\creditDecisionWAR-2.0.war
(The
 process
  cannot access the file because it is being used by another process)

 Now - I have checked the processes through my task manager - and don't
 see any java processes. I have restarted my comp, opened the cmd
window
 immediately, did not open ANY other application, simply run the mvn
 clean install, and STILL get this error... what in the world is using
 the war?? Is this a Maven problem, or am I missing something? Does the
 space in 'From Mark' matter?


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


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

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



RE: resources as dependencies

2007-07-26 Thread John Coleman
Hi,

The Maven war packaging forces me to have a web.xml which is not required in 
the dependency project. Perhaps I can switch that off? I just want to pack 
generic script and images up for web projects. Or will my project web.xml 
simply overrule the dependency web.xml?

John

-Original Message-
From: Arnaud Bailly [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2007 14:02
To: Maven Users List
Subject: Re: resources as dependencies

John Coleman [EMAIL PROTECTED] writes:

 Hi,

  

 We want to farm off some of our common resources (java scripts and
 images) into a project that other projects can use as a dependency.

  

Hello,
If you are using wars, then you could you use the war overlay
capability of maven: Just add a war dependency to another war and the
first one will 'overlaid' over the second. 

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread jaxzin

Thanks Manos,
What I've found so far by looking at the source is that its dependent on how
the Set that MavenProject.getArtifacts() orders itself.  I still haven't
found which impl of Set is used.  That would tell us how predictable the
order is.  My guess is its a HashSet and so the order will be determined by
the hashCode of the the Artifact object.

Brian



Manos Batsis wrote:
 
 
 
 Come on guys let us not give too much attention to eachother :-)
 
 I dont think Maven's behaviour regarding the order of JARs in the 
 classpath is random; that would be impossible.
 
 My guess is the order is predictable and based on the dependencies 
 configuration and the algorithm that goes over it. Something like
 
 1) Scan explicit deps
 2) (Recursive?) Either
2.A) For each one add it's deps and move to the next depth level OR
2.B) Add each one, then process the next depth level of deps
 3) Remove the overridden versions
 
 This is pretty rough but you get the point. My bet is you will always 
 get the same classpath in a project whose POM does not change.
 
 This of course may not provide an easy solution to the OPs prob, but the 
 code is OS after all so anyone is free to modify it as needed and post 
 patches in the JIRA or whatever :-)
 
 Cheers,
 
 Manos
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Setting-jar-order-in-maven.compile.classpath-tf4111876s177.html#a11811974
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Emmanuel Venisse

To know what's happen, I'd need logs of maven-scm classes in debug level.

Emmanuel

Dan Tran a écrit :

it intermittenly happens on 1.1-beta-1 as well

-D


On 7/26/07, Martin Alejandro Villalobos [EMAIL PROTECTED]
wrote:


Emmanuel, thanks for your answer.
I'm using Continuum 1.0.3 and SVN, but this behaviour is only with some
projects, not with all.
Can be related with the way in that the svn plugin of Eclipse do the
commits?

Thanks.

Martin.

Emmanuel Venisse wrote:
 div class=moz-text-flowed style=font-family: -moz-fixedContinuum
 version? SCM?

 Generally it's a problem due to the locale used on the server, it must
 be an english locale.

 Emmanuel

 Martin Alejandro Villalobos a écrit :
 Hello, I have a trouble.
 In a mysterious way, Continuum don't show the author and messages
 commit in the changes section.
 Somebody knows what could be a problem???

 Thanks.

 Martin.





 /div


--
Martin A. Villalobos
Software Development and SCM
Globant
Arg Office: +54 (11) 4109 1700 int 8473
[EMAIL PROTECTED]








Re: runtime properties

2007-07-26 Thread Wayne Fay

Try mvn -U to force an update. If it still is failing, delete the
~/.m2/ directory (if not the whole thing, delete the
org/apache/maven/plugins directory) and try again.

The plugin does not exist or no valid version could be found error
sometimes happens when you get bad artifacts in your m2 cache.
Usually, that happens when you're using a bad or incorrectly
configured mirror, or you've got a misconfigured proxy etc.

Wayne

On 7/24/07, John Coleman [EMAIL PROTECTED] wrote:

Thanks Wayne, even this is falling over now - I have checked the local
repo and the dep is in there!?

Regards,
John

[DEBUG]Profile with id: 'netbeans-public' has been explicitly activated.
[DEBUG]Profile with id: 'netbeans-private' has been explicitly
activated.
[INFO]Scanning for projects...
[DEBUG]Profile with id: 'netbeans-public' has been explicitly activated.
[DEBUG]Profile with id: 'netbeans-private' has been explicitly
activated.
[DEBUG]Profile with id: 'profile1' has been explicitly activated.
[INFO]Searching repository for plugin with prefix: 'help'.
[INFO]artifact org.apache.maven.plugins:maven-help-plugin: checking for
updates from netbeansIDE-repo-internal
[DEBUG]repository metadata for: 'artifact
org.apache.maven.plugins:maven-help-plugin' could not be found on
repository: netbeansIDE-repo-internal
[DEBUG]maven-help-plugin: using locally installed snapshot
[DEBUG]Artifact not found - using stub model: Unable to determine the
latest version
[DEBUG]
[DEBUG]  org.apache.maven.plugins:maven-help-plugin:pom:LATEST
[DEBUG]Using defaults for missing POM
org.apache.maven.plugins:maven-help-plugin:pom:LATEST
[DEBUG]maven-help-plugin: using locally installed snapshot
[DEBUG]Artifact not found - using stub model: Unable to determine the
release version
[DEBUG]
[DEBUG]  org.apache.maven.plugins:maven-help-plugin:pom:RELEASE
[DEBUG]Using defaults for missing POM
org.apache.maven.plugins:maven-help-plugin:pom:RELEASE
[INFO]--
--
[ERROR]BUILD ERROR
[INFO]--
--
[INFO]The plugin 'org.apache.maven.plugins:maven-help-plugin' does not
exist or no valid version could be found
[INFO]--
--
[DEBUG]Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-help-plugin' does not exist or no valid
version could be found

   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1357)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:1593)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg
regationNeeds(DefaultLifecycleExecutor.java:384)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:138)
   at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
   at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
   at
org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaEx
ecutor.java:257)
   at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
Caused by:
org.apache.maven.plugin.version.PluginVersionNotFoundException: The
plugin 'org.apache.maven.plugins:maven-help-plugin' does not exist or no
valid version could be found
   at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:225)
   at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:87)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:158)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1328)
   ... 8 more
[INFO]--
--
[INFO]Total time:  1 second
[INFO]Finished at: Tue Jul 24 16:27:53 BST 2007
[INFO]Final Memory: 45M/89M
[INFO]--
--

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: 24 July 2007 16:10
To: Maven Users List
Subject: Re: runtime properties

maven-help-plugin has some of that:
http://maven.apache.org/plugins/maven-help-plugin/

In particular, check out the effective-pom mojo in help, and
effective-settings.

Wayne

On 7/24/07, John Coleman [EMAIL PROTECTED]
wrote:
 Hi,



 Is there a way to get Maven to dump its runtime settings so that you
can
 see what setting file it is using and where it gets any other runtime
 configurations from?



 John




 Eurobase International Limited and its subsidiaries (Eurobase) are
unable to
 exercise control over the content of information in E-Mails. Any views
and
 

Re: Broken links in project-reports.html

2007-07-26 Thread erik_k

Sorry,

but it still doesn't work. I got your version (1.0-alpha-9), but
the anchor-tags are still in the generated html-files.
Perhaps you have another solution?!

--erik


Lukas Theussl-3 wrote:
 
 I suppose you are using a SNAPSHOT of the site plugin? I committed a fix 
 this morning and deployed a new snapshot of doxia-module-xhtml, try 
 upgrading with -U (and report if there's still a problem).
 
 HTH,
 -Lukas
 
 
 erik_k wrote:
 Hi,
 
 I'm using Maven2 and the maven-site-plugin.
 The generated project-reports.html contains broken links, such as
 .../project-reports.html#changelog.html.
 I want to delete the anchor-tags. Is there a possibility to delete the
 tags
 in a template-file or
 do you know which class(es) generate(s) the project-reports.html file?
 
 Thanks, Erik
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Broken-links-in-project-reports.html-tf4150777s177.html#a11809166
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: resources as dependencies

2007-07-26 Thread John Coleman
Hi,

Yes that does the right kind of thing, was thinking of using
dependency:unpack. However, I'd like to use a zip file instead of JAR.
But nevermind. It looks like it can deal with Java source. Not quiet
what I want, but maybe it can be used anyway.

Thanks,
John

-Original Message-
From: John Patrick [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2007 12:30
To: Maven Users List
Subject: Re: resources as dependencies

Initial thoughts are you could have it as a seperate project and get the
dependency plugin to unpack it.
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html

On 26/07/07, John Coleman [EMAIL PROTECTED]
wrote:

 Hi,



 We want to farm off some of our common resources (java scripts and
 images) into a project that other projects can use as a dependency.



 Does Maven2 have a way of getting such dependencies into a resources
 phase?



 Regards,

 John


 Eurobase International Limited and its subsidiaries (Eurobase) are
unable
 to exercise control over the content of information in E-Mails. Any
views
 and opinions expressed may be personal to the sender and are not
necessarily
 those of Eurobase. Eurobase will not enter into any contractual
obligations
 in respect of any part of its business in any E-mail.

 Privileged / confidential information may be contained in this message
and
 /or any attachments. This E-mail is intended for the use of the
addressee(s)
 only and may contain confidential information. If you are not the / an
 intended recipient, you are hereby notified that any use or
dissemination of
 this communication is strictly prohibited.  If you receive this
transmission
 in error, please notify us immediately, and then delete this E-mail.

 Neither the sender nor Eurobase accepts any liability whatsoever for
any
 defects of any kind either in or arising from this E-mail
transmission.
 E-Mail transmission cannot be guaranteed to be secure or error-free,
as
 messages can be intercepted, lost, corrupted, destroyed, contain
viruses, or
 arrive late or incomplete. Eurobase does not accept any responsibility
for
 viruses and it is your responsibility to scan any attachments.

 Eurobase Systems Limited is the main trading company in the Eurobase
 International Group; registered in England and Wales as company number
 02251162; registered address: Essex House, 2 County Place, Chelmsford,
Essex
 CM2 0RE, UK.



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



Re: External property files

2007-07-26 Thread Maria Odea Ching

Hi Carlo,

You may want to take a look at Maven 2's filters :-)
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?

HTH,
Deng

Carlo Bonamico wrote:

Hi!
In the Maven2 documentation 
(http://maven.apache.org/pom.html#Properties) I read that properties 
can come from


  1. env.X: Prefixing a variable with env. will return the shell’s
 environment variable. For example, ${env.PATH} contains the $path
 environment variable (%PATH% in Windows).
  2. project.x: A dot (.) notated path in the POM will contain the
 corresponding element’s value. For example:
 projectversion1.0/version/project is accessible via
 ${project.version}.
  3. settings.x: A dot (.) notated path in the settings.xml will
 contain the corresponding element’s value. For example:
 settingsofflinefalse/offline/settings is accessible via
 ${settings.offline}.
  4. Java System Properties: All properties accessible via
 java.lang.System.getProperties() are available as POM properties,
 such as ${java.home}.
  5. x: Set within a properties / element or an external files, the
 value may be used as ${someVar}.

but I could not find any reference on how to read properties from an 
external file (as it is mentioned in item 5) and avoid putting them in 
the POM properties section.


Is there any way to do that like it was possible with Maven 1.x 
(build.properties and project.properties files)?

Thanks for any help!
Carlo


-
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]



Re: Broken links in project-reports.html

2007-07-26 Thread Lukas Theussl
I suppose you are using a SNAPSHOT of the site plugin? I committed a fix 
this morning and deployed a new snapshot of doxia-module-xhtml, try 
upgrading with -U (and report if there's still a problem).


HTH,
-Lukas


erik_k wrote:

Hi,

I'm using Maven2 and the maven-site-plugin.
The generated project-reports.html contains broken links, such as
.../project-reports.html#changelog.html.
I want to delete the anchor-tags. Is there a possibility to delete the tags
in a template-file or
do you know which class(es) generate(s) the project-reports.html file?

Thanks, Erik



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



Re: Maven Idea Plugin

2007-07-26 Thread Kannan Ekanath
Thanks !!!
That is exactly what I need. I however have a question though. I am using
2.2-SNAPSHOT version, there is a patch for this JIRA issue, (which means
that it is already added to source control).

Since I am referring to the snapshot version directly, wouldnt I get this
fix this week itself? (I read that the snapshot bundles are updated every
week)

Thanks,
Kannan

On 7/25/07, Ian Springer [EMAIL PROTECTED] wrote:

 Hi,

 Looks like there's already an issue for this.

 http://jira.codehaus.org/browse/MIDEA-94

 You should vote for it if you want to increase the chances of it being
 added.

 -Ian

 Kannan Ekanath wrote:
  Hi,
  I have a problem with Maven Idea plugin. I have a local repository and
 my
  project refers to dependencies there. However if the sources.jar are
  already
  there in the local machine repository, I want IDEA to create iml files
  with
  source attachments defined(Right now, I am doing the attaching of source
  jars manually).
 
  Note this is a completely different feature from
  -DdownloadSources=true, I
  do not want to download the sources. But for whatever source jar files I
  already have in my repository I want idea to create those entries. Can
  someone let me know when this feature will be done?


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




-- 
Regards,
Kannan Ekanath


Exception thrown during cvs update

2007-07-26 Thread Luke Matthews

Hi,

I added a project to our Continuum instance the other day and everything
appeared normal. The first time a build ran I got the following output:

Provider message: The cvs command failed.
Command output:
---

---

Checking the log file I noticed that an exception was thrown during the
cvs update. Running the same cvs command on the command line in that
directory runs fine (however it does take about 5 minutes as the
repository is about 2 gigs).

I'm happy to investigate this, but I'll need someone to give me a quick
overview of how scm hangs together. If anyone has seen this before and
has a work around, I would be very grateful.

This is the last module of our project that I'm adding to Continuum and
if I can't get it to work, I'll have to give Continuum a miss and find
another CI system. (which I don't want to do!)

INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,061
[SocketListener0-2] INFO  Continuum:default  - Enqueuing
'NBV' (Build definition id=6).
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,068
[pool-1-thread-1] INFO  BuildController:default- Initializing build
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,105
[pool-1-thread-1] INFO  BuildController:default- Starting build
of NBV
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,183
[pool-1-thread-1] INFO  BuildController:default- Updating
working dir
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,183
[pool-1-thread-1] INFO  BuildController:default- Performing
action check-working-directory
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,188
[pool-1-thread-1] INFO  BuildController:default- Performing
action update-working-directory-from-scm
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,276
[pool-1-thread-1] INFO  ContinuumScm:default   - Updating
project: id: '11', name 'NBV'.
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,286
[pool-1-thread-1] INFO  ScmManager:default - Executing: cvs
-z3 -f -q update -d
INFO   | jvm 1| 2007/07/26 11:03:50 | 2007-07-26 11:03:50,286
[pool-1-thread-1] INFO  ScmManager:default - Working
directory:
/usr/local/continuum-1.1-alpha-2/apps/continuum/webapp/WEB-INF/working-directory/11
INFO   | jvm 1| 2007/07/26 11:04:08 | java.io.IOException: Illegal seek
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
java.io.FileInputStream.skip(Native Method)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
java.io.BufferedInputStream.skip(BufferedInputStream.java:344)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
java.io.BufferedInputStream.skip(BufferedInputStream.java:344)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
java.io.FilterInputStream.skip(FilterInputStream.java:129)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.util.LoggedDataInputStream.skip(LoggedDataInputStream.java:163)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.response.UpdatedResponse.skip(UpdatedResponse.java:183)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.response.UpdatedResponse.process(UpdatedResponse.java:112)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.Client.handleResponse(Client.java:570)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.Client.processRequests(Client.java:520)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute(UpdateCommand.java:286)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:629)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.executeCommand(CvsConnection.java:94)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:478)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:52)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsUpdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:60)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:62)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58)
INFO   | jvm 1| 2007/07/26 11:04:08 |   at
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:521)

Julia Vilke/Moscow/Canon/FI is out of the office.

2007-07-26 Thread Julia . Vilke

I will be out of the office starting  16.05.2007 and will not return until
08.01.2008.

I'm on maternity leave till January 2008.
In case of Canon Consumable business, please contact Mikhail Popov, in case
of Paper business - Maria Bondarenko.


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



What is Use SCM Credentials Cache, if available?

2007-07-26 Thread Dan Tran

Could not figure out what it means  in continuum 1.1? any hint? :-)

Thanks

-D


Re: Differences between dependencies

2007-07-26 Thread Wayne Fay

Release is a specific version ie Apache log4j, latest release is
1.2.14, no matter how many times you download it, the source code and
binary jar for this release will be the same.

Snapshot is used for development ie Apache log4j, say their current
working version is 1.2.15-SNAPSHOT. So every day they are adding new
code and pushing out updates etc. Until 1.2.15 becomes final
(released), they will continue pushing out nightly builds which will
all be named 1.2.15-SNAPSHOT, and Maven will automatically download
the new SNAPSHOT every day (or when forced with -U).

So when you're working on code and not ready to release it as a
specific version, you must use x.y.z-SNAPSHOT versions. Then when
you're happy and want to release it, you change the version to x.y.z
and do a formal release. But once you've done a release, you CAN'T
change it -- any changes have to be released in another, later
version.

Wayne

On 7/26/07, Dmitry [EMAIL PROTECTED] wrote:

Could you please give the main differences between the following
depedencies:

 - Release and Snapshot

thanks,

DT,

www.ejinz.com

Search Engine



Maven differentiates between two kinds of dependencies:

 a.. Release. Released dependencies are artifacts downloaded to the local
maven repository only once - when maven detects that there is no such
artifact in the local repo.
 b.. Snapshot. Snapshot dependencies are downloaded to your local maven
repository every time maven detects there is a newer version in the remote
one.
Maven treats dependencies as snapshot when the version number ends
with -SNAPSHOT.

When you specify repositories for your project you specify if each
repository contains snapshot versions of artifacts and how often maven has
to check for newer version (always, daily, etc).



-
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]



Re: resources as dependencies

2007-07-26 Thread Arnaud Bailly
John Coleman [EMAIL PROTECTED] writes:

 Hi,

 The Maven war packaging forces me to have a web.xml which is not
 required in the dependency project. Perhaps I can switch that off? I

Hi John, 
Yes, It seems so. But it is not used in overlays and you can control 
it so this is not big deal. 
(see
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html) 


 just want to pack generic script and images up for web projects. Or
 will my project web.xml simply overrule the dependency web.xml?


BTW, I used this in a real world project together with profiles to
generate different flavors of the same application.

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Wendy Smoak

On 7/26/07, Dan Tran [EMAIL PROTECTED] wrote:


it intermittenly happens on 1.1-beta-1 as well


What does scmconnection look like?

I've found that if the connection url has a trailing slash, the author
info does not show up.

--
Wendy


Error during Maven site stage

2007-07-26 Thread Rodolphe Beck
Hello,

I have a build error during my site:stage generation.

My maven workspace is constituted in many projects, and when I want to stage
the site on a linux machine I get the following error :

[ERROR] BUILD ERROR
[INFO] 
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Exit code: 1 -
/bin/bash: line 1: cd:
/var/www/html/papi-resources/M2reports/papi/PAPI: No such file or
directory

Command line was:cd /var/www/html/resources/M2reports/project/My
Project/Project Common components/apidocs 
/opt/j2sdk1.4.2_03/jre/../bin/javadoc @options @packages
[INFO] 
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error during
page generation
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
during page generation
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
at 
org.apache.maven.plugins.site.SiteStageMojo.execute(SiteStageMojo.java:102)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
... 16 more
Caused by: org.apache.maven.doxia.siterenderer.RendererException:
Error rendering Maven report: Exit code: 1 - /bin/bash: line 1: cd:
/var/www/html/papi-resources/M2reports/papi/PAPI: No such file or
directory

Command line was:cd /var/www/html/papi-resources/M2reports/papi/PAPI
Project/PAPI Common components/apidocs 
/opt/j2sdk1.4.2_03/jre/../bin/javadoc @options @packages
at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:71)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
at 
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
... 19 more
Caused by: org.apache.maven.reporting.MavenReportException: Exit code:
1 - /bin/bash: line 1: cd:
/var/www/html/papi-resources/M2reports/papi/PAPI: No such file or
directory

Command line was:cd /var/www/html/papi-resources/M2reports/project/My
Project/Project Common components/apidocs 
/opt/j2sdk1.4.2_03/jre/../bin/javadoc @options @packages
at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:1407)
at 
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:131)
at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67)
... 23 more


There is no problem on a windows platform...

Is it linked with the name/name containing spaces ?

Thx.

-- 
Cordialement,
Rodolphe Beck
[EMAIL PROTECTED]


Re: Projects dependencies and mail notifiers

2007-07-26 Thread Christophe Lechenne

Thxs for your reply, but when I said that :


 Pb 1 : No info is given to user1 to tell him that PA was built because
 of change on B.



What I mean is :  although user1 received a mail, that mail contains
no info about the real reason of that build : is-it because of a code
modification on PA or a build on PB ?

As I'm writing this mail, I read again the email that user1 received
during my tests and I found that :

Dependencies Changes:

com.cl.test:CONTINUUM_B:1.0.0-SNAPSHOT

So All sound good :-)

For Pb2, ok for your comment.


Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread Manos Batsis



Come on guys let us not give too much attention to eachother :-)

I dont think Maven's behaviour regarding the order of JARs in the 
classpath is random; that would be impossible.


My guess is the order is predictable and based on the dependencies 
configuration and the algorithm that goes over it. Something like


1) Scan explicit deps
2) (Recursive?) Either
  2.A) For each one add it's deps and move to the next depth level OR
  2.B) Add each one, then process the next depth level of deps
3) Remove the overridden versions

This is pretty rough but you get the point. My bet is you will always 
get the same classpath in a project whose POM does not change.


This of course may not provide an easy solution to the OPs prob, but the 
code is OS after all so anyone is free to modify it as needed and post 
patches in the JIRA or whatever :-)


Cheers,

Manos

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



Re: Setting jar order in maven.compile.classpath

2007-07-26 Thread jaxzin

My bad.  I didn't realize that a predictable classpath order vs. random
classpath order would shake the Maven project to the core of its very being
and betray the very objectives it has set out to achieve.

But on a more serious note, I've been using Maven for years and don't plan
to stop anytime soon.  I'm in the process of moving ESPN to using Maven and
I'm encountering issues like these which I'll need to work through.  Answers
like yours are condescending and unhelpful for people looking for help
instead of ridicule.  Wayne, ya gotta lighten up a little, please?  



Wayne Fay wrote:
 
 I can only refer you to the What Is Maven page [1]:
 Maven does encourage best practices, but we realise that some projects
 may not fit with these ideals for historical reasons. While Maven is
 designed to be flexible, to an extent, in these situations and to the
 needs of different projects, it can not cater to every situation
 without making compromises to the integrity of its objectives.
 
 If you decide to use Maven, and have an unusual build structure that
 you cannot reorganise, you may have to forgo some features or the use
 of Maven altogether.
 
 
 Good news -- no one (on this list, at least) is forcing you to use
 Maven! And its open source, so if you need this feature, you can go in
 and add it yourself.
 
 [1] http://maven.apache.org/what-is-maven.html
 
 Wayne
 
 On 7/25/07, jaxzin [EMAIL PROTECTED] wrote:

 That's such a cop-out.  I've got legacy jars that my project depends on
 that
 happen to have some overlap in the classes.  What's so wrong with AT
 LEAST
 obeying the declared order of the dependencies in the POM instead of the
 random order that currently exists?


 Wayne Fay wrote:
 
  You can't. Set the order of jars means you're duplicating code,
  which is generally a bad idea. Eliminate the duplication (make one
  depend on the other).
 
  Wayne
 
  On 7/19/07, Roger Huang (rchuang) [EMAIL PROTECTED] wrote:
  How can I specify the order of jars in maven.compile.classpath?  I
  have two jars generated as part of my build that I need to explicitly
  set the order of in maven.compile.classpath.
  thanks,
  Roger
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Setting-jar-order-in-maven.compile.classpath-tf4111876s177.html#a11800428
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Setting-jar-order-in-maven.compile.classpath-tf4111876s177.html#a11811553
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Projects dependencies and mail notifiers

2007-07-26 Thread Emmanuel Venisse



Christophe Lechenne a écrit :

Hi all,

I'm testing this feature on 1.1 version.

Here's my conf:

I've got 2 maven 2 projects :

PA and PB
PA depends on PB.

PA pom file has a mail notifier for user1
PA pom file has a mail notifier for user2

PA has 2 api, one using PB api
PA has 2 junit tests, one for each api.

PB has 1 api and one junit test.

All of them are on continuum control.

Now I make an evolution on PB that breaks PA junit test based on PB
api, but doesn't break the PB junit test.

After I commit PB in SCM.

Continuum build B, and A.

build B is^ok
build A is ko, and a mail is sent to user1.

That's fine.

I've got there 2 pbs:
Pb 1 : No info is given to user1 to tell him that PA was built because
of change on B.
Pb 2 : user2 isn't notify that PA build is ko

For Pb1 : is-there a configuration for that ?


if user1 isn't in the notifier addresses of PA, he can't receive mails for PA 
failures


For Pb2 : I can add user2 in continuum console for PA or in PA pom
file, is there another solution ?


How do you add him? he's already in notifier's addresses list, right? It must 
receive notification, look at your logs if you haven't an error on the sent.

Emmanuel




Filtering in src/main/webapp/WEB-INF with maven-war-plugin

2007-07-26 Thread Matthias Berndt
Greetings,

I'd like to filter the web.xml in src/main/webapp/WEB-INF. I tried to
follow the instructions on

http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webre
sources.html

but it doesn't work src/main/webapp/WEB-INF/web.xml. Can anyone give me
an advice or provide an sample configuration?

Thank you
Matthias Berndt


pgpkFnM51aM96.pgp
Description: PGP signature


Re: resources as dependencies

2007-07-26 Thread John Patrick

Initial thoughts are you could have it as a seperate project and get the
dependency plugin to unpack it.
http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html

On 26/07/07, John Coleman [EMAIL PROTECTED] wrote:


Hi,



We want to farm off some of our common resources (java scripts and
images) into a project that other projects can use as a dependency.



Does Maven2 have a way of getting such dependencies into a resources
phase?



Regards,

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable
to exercise control over the content of information in E-Mails. Any views
and opinions expressed may be personal to the sender and are not necessarily
those of Eurobase. Eurobase will not enter into any contractual obligations
in respect of any part of its business in any E-mail.

Privileged / confidential information may be contained in this message and
/or any attachments. This E-mail is intended for the use of the addressee(s)
only and may contain confidential information. If you are not the / an
intended recipient, you are hereby notified that any use or dissemination of
this communication is strictly prohibited.  If you receive this transmission
in error, please notify us immediately, and then delete this E-mail.

Neither the sender nor Eurobase accepts any liability whatsoever for any
defects of any kind either in or arising from this E-mail transmission.
E-Mail transmission cannot be guaranteed to be secure or error-free, as
messages can be intercepted, lost, corrupted, destroyed, contain viruses, or
arrive late or incomplete. Eurobase does not accept any responsibility for
viruses and it is your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase
International Group; registered in England and Wales as company number
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex
CM2 0RE, UK.




Re: Writing portable CVS configuration using Maven 2

2007-07-26 Thread Martin Hoeller
Hi!

First, please stop hijacking somebody else's thread by replying to a mail 
and changing the subject! If you want to start a new topic, write a new 
email and DO NOT reply to another thread. Thanks!

Second, why do you repost somebody's questions answered months ago?  
Jerome Thibaud posted exactly the same question on 2007-04-25 with almost 
the same subject: Writing a portable CVS configuration using maven2. This 
question was perfectly answered by Emmanuel Venisse. (see 
http://mail-archives.apache.org/mod_mbox/maven-users/200704.mbox/[EMAIL 
PROTECTED])

regards,
- martin
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71


pgpageHqKt4go.pgp
Description: PGP signature


Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Dan Tran

it intermittenly happens on 1.1-beta-1 as well

-D


On 7/26/07, Martin Alejandro Villalobos [EMAIL PROTECTED]
wrote:


Emmanuel, thanks for your answer.
I'm using Continuum 1.0.3 and SVN, but this behaviour is only with some
projects, not with all.
Can be related with the way in that the svn plugin of Eclipse do the
commits?

Thanks.

Martin.

Emmanuel Venisse wrote:
 div class=moz-text-flowed style=font-family: -moz-fixedContinuum
 version? SCM?

 Generally it's a problem due to the locale used on the server, it must
 be an english locale.

 Emmanuel

 Martin Alejandro Villalobos a écrit :
 Hello, I have a trouble.
 In a mysterious way, Continuum don't show the author and messages
 commit in the changes section.
 Somebody knows what could be a problem???

 Thanks.

 Martin.





 /div


--
Martin A. Villalobos
Software Development and SCM
Globant
Arg Office: +54 (11) 4109 1700 int 8473
[EMAIL PROTECTED]




Re: How can i build a specific version without changing the pom.xml?

2007-07-26 Thread Baz
John,

I agreed with your comments. Here is the practical usage:

The version under source code is building against xyz version 5.6.1.0.
However, we need the capability to build against the non-release quality of
version xyz that comes out every day or week, say 5.6.1.1, then 5.6.1.2,
then 5.6.1.3, ...etc.

I should alter the dependency information in my pom.xml for product A since
I really do not know which version of xyz will pass QA. Does it make sense?

Baz


On 7/26/07, John Patrick [EMAIL PROTECTED] wrote:

 Baz,

 I would put this type of information into a profile within the pom. Then
 its
 simple and repeatable. Also trackable if your project is under source
 control, instead of just relying on people knowing the correct command
 line
 arguments to use.

 Personally I think building a different version from what the pom says is
 a
 very bad idea as from my experience, definitively knowing from a file its
 artifact id and version number is a huge advantage. It can give you a link
 into a source control tag or label and maintenance and support effect can
 be
 more efficiently used.

 If a defect gets raised for version 0.1 how will support know its actually
 1.0 with version 2.0 of xyz and not version 0.1 with what ever version of
 xyz was defined at the point.

 I apologise for the rant but I've been called in several times to help
 with
 issues with supporting non maven projects and finding out versions of jars
 being used and setting up a test environment took 85% of the time with the
 rest doing the actual fix and proving it works. Where as with a maven
 project, get the pom from the main jar and then sync to that tag/label and
 your setup in minuets not hours.

 John

 On 26/07/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  How can i build a specific version or depend on specific version without
  changing the pom.xml ?
 
  For example, if pom.xml of product A is building version 1.0 of product
 A
  and depending on version 5.6 of xyz.
 
  Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install
 to
  build version 0.1 of product A and depending on version 2.0 of xyz?
 
  Thank you.
 
  A.
 



 On 26/07/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  How can i build a specific version or depend on specific version without
  changing the pom.xml ?
 
  For example, if pom.xml of product A is building version 1.0 of product
 A
  and depending on version 5.6 of xyz.
 
  Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install
 to
  build version 0.1 of product A and depending on version 2.0 of xyz?
 
  Thank you.
 
  A.
 



Projects dependencies and mail notifiers

2007-07-26 Thread Christophe Lechenne

Hi all,

I'm testing this feature on 1.1 version.

Here's my conf:

I've got 2 maven 2 projects :

PA and PB
PA depends on PB.

PA pom file has a mail notifier for user1
PA pom file has a mail notifier for user2

PA has 2 api, one using PB api
PA has 2 junit tests, one for each api.

PB has 1 api and one junit test.

All of them are on continuum control.

Now I make an evolution on PB that breaks PA junit test based on PB
api, but doesn't break the PB junit test.

After I commit PB in SCM.

Continuum build B, and A.

build B is^ok
build A is ko, and a mail is sent to user1.

That's fine.

I've got there 2 pbs:
Pb 1 : No info is given to user1 to tell him that PA was built because
of change on B.
Pb 2 : user2 isn't notify that PA build is ko

For Pb1 : is-there a configuration for that ?
For Pb2 : I can add user2 in continuum console for PA or in PA pom
file, is there another solution ?

regards,
Christophe


Re: Re: Continuum don't show the author and messages commit in the changes section

2007-07-26 Thread Martin Alejandro Villalobos

Emmanuel, thanks for your answer.
I'm using Continuum 1.0.3 and SVN, but this behaviour is only with some 
projects, not with all.
Can be related with the way in that the svn plugin of Eclipse do the 
commits?


Thanks.

Martin.

Emmanuel Venisse wrote:
div class=moz-text-flowed style=font-family: -moz-fixedContinuum 
version? SCM?


Generally it's a problem due to the locale used on the server, it must 
be an english locale.


Emmanuel

Martin Alejandro Villalobos a écrit :

Hello, I have a trouble.
In a mysterious way, Continuum don't show the author and messages 
commit in the changes section.

Somebody knows what could be a problem???

Thanks.

Martin.






/div



--
Martin A. Villalobos
Software Development and SCM
Globant
Arg Office: +54 (11) 4109 1700 int 8473
[EMAIL PROTECTED]



Re: Creating a JAR to include in the lib directory

2007-07-26 Thread Wayne Fay
The assembly plugin can be used to put some of the jars in lib and
others in the root directory of your ear.

Wayne

On 7/26/07, Vaidya, Supriya A (US - Chicago) [EMAIL PROTECTED] wrote:
 Hi:

 I am working with multiple modules -

 An EJB
contained in a WAR
contained in a EAR

 There are some libraries that are shared between the EJB and the WAR. In
 reading up on skinny WARs, I was able to find that a way to include the
 lib directory in teh EAR only, so that they are shared between the EJB
 and the WAR, without having to repeating the jars in each package. This
 is great!

 Now, I also have a bunch of POJO files that I have written, shared
 between the EJB and the WAR. I was thinking of creating a structure:

 A POJO
 referenced by an EJB
Contained in a WAR
Contained in an EAR

 The parent POM will therefore have 4 modules - POJO, EJB, WAR and EAR.
 However, the created EAR now contains a JAR, an EJB JAR and a WAR, all
 in teh root, and a lib directory containing all the other JAR files. Is
 there a way that I can include this POJO jar in teh lib directory of teh
 EAR instead? using the same maven install command?


 This message (including any attachments) contains confidential information 
 intended for a specific individual and purpose, and is protected by law.  If 
 you are not the intended recipient, you should delete this message.


 Any disclosure, copying, or distribution of this message, or the taking of 
 any action based on it, is strictly prohibited. [v.E.1]


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



Re: [m2] issue with module running ant task that creates an jar

2007-07-26 Thread Wayne Fay
Yes, I think I understand, and I still think the
build-helper-maven-plugin can help you. Take a look at goal
attach-artifact in the usage page:
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html

Wayne

On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:
 Not sure i understand what this plugin will do for the artifact.

 I have a modele, that runs an ant task that creates a jar. So maven module
 is not creating the jar from the target DIR, the ant task already creates
 the jar I want inside the target DIR that I want to add to my repository.




 On 7/26/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  If I understand you correctly, build-helper-maven-plugin should be
  what you're looking for:
 
  http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html
 
  Wayne
 
  On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:
   To give a little more idea of what I am looking for:
  
   I want to see if in my jar module, I can have something like this:
  
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  executions
 execution
goals
   goalpackage/goal
/goals
 /execution
  /executions
  configuration
 includes/target/bpel.jar/includes
  /configuration
/plugin
  
   Then the bpel.jar can get renamed to moduleone-1.0.3.jar and added to my
   repository (if I use the install goal)
   But regaurdless, moduleone-1.0.3.jar is now a valid dependency for my
   moduletwo module.
  
  
  
  
   On 7/26/07, Mick Knutson [EMAIL PROTECTED] wrote:
   
I have a module that is defined as a jar as this jar is a dependency
within other modules in my project.
   
This pom.xml: jar calls a bpel and task that creates a bpel suitcase
  JAR.
The bpel jar is the artifact I actually want in my repository and
  available
as a dependency.
   
So, how do I accomplish this as I end up with 2 different jars right
  now.
   
--
   
Thanks,
Mick Knutson
   
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---
  
  
  
  
   --
  
   Thanks,
   Mick Knutson
  
   http://www.baselogic.com
   http://www.blincmagazine.com
   http://www.djmick.com
   http://www.myspace.com/mickknutson
   http://www.myspace.com/djmick_dot_com
   http://www.myspace.com/sexybeotches
   http://www.thumpradio.com
   ---
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Thanks,
 Mick Knutson

 http://www.baselogic.com
 http://www.blincmagazine.com
 http://www.djmick.com
 http://www.myspace.com/mickknutson
 http://www.myspace.com/djmick_dot_com
 http://www.myspace.com/sexybeotches
 http://www.thumpradio.com
 ---


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