Re: Some maven questions

2009-10-30 Thread Wendy Smoak
On Fri, Oct 30, 2009 at 3:29 PM, Sony Antony  wrote:
> Im fairly new to maven.
> Tried getting answers to these from books and google. Trying my luch here

You'll probably get better answers if you start a separate thread with
a descriptive subject for each of your questions.

-- 
Wendy

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



Some more maven questions

2009-10-30 Thread Sony Antony
1. Is it possible to have multiple profiles to be active at the same time ?
If true, what if two profiles - both active - define conflicting
informations ( say the same plugin is configured differently )

2. When is teh decision to activate a profiletaken . Before teh very first
phase is begun ? ( validation )
( IOW, does maven make teh decision to activate a profile, even before the
validation phase starts ? )

3. We have a module that contains a bunch of xsd schemas. We would like to
compile these only if something has changed.
I understand that I can put a  inside a profile, which is activated
only when something changes.

But I couldnt find any way to communicate to maven that the profile needs to
be activated  only had a limited things to check. ( like file
exists, OS etc. )

Can somebody suggest a solution


4. Is it possible to execute a goal more than once during teh same phase ? (
without resorting to antrun )

--sony


Some maven questions

2009-10-30 Thread Sony Antony
Im fairly new to maven.
Tried getting answers to these from books and google. Trying my luch here

1. can I add more custom phases to the 23 already defined (
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference
 )
( - I read that phases are already hard coded in a file called
components.xml which is used at compile time. This seemed to imply that I
cannot ad/change to teh list of existing phases.
On teh other hand I read that phases can be added by using  (
needs a custom plugin/mojo to be written )

2. Is it possible to turn off a particular phase from being fired for an
already given packaging ( say jar : Can I turn off test phase - [ Im aware
of skip.test=true. My question was more general ] )
3. Is it possible to turn off a plugin from being fired for a particular
phase.


4. If I have an ant task that requires a , which is teh preferred
way to provide the class file that implements the task :
- As a plugin dependency ?

5. In general I noticed that antrun was slow. Was this something in our
environment. Or is it known to be slow in general

Thank you very much.

--sony


[ANN] Versions Maven Plugin 1.1 released

2009-10-30 Thread Stephen Connolly
he Mojo team is pleased to announce the release of the Versions Maven
Plugin, version 1.1.

The Versions Plugin has the following goals.

   * versions:display-dependency-updates scans a project's
dependencies and produces a report of those dependencies which have
newer versions available.
   * versions:display-plugin-updates scans a project's plugins and
produces a report of those plugins which have newer versions
available.
   * versions:display-property-updates scans a projectand produces a
report of those properties which are used to control artifact versions
and which properies have newer versions available.
   * versions:update-parent updates the parent section of a project
so that it references the newest available version. For example, if
you use a corporate root POM, this goal can be helpful if you need to
ensure you are using the latest version of the corporate root POM.
   * versions:update-properties updates properties defined in a
project so that they correspond to the latest available version of
specific dependencies. This can be useful if a suite of dependencies
must all be locked to one version.
   * versions:update-child-modules updates the parent section of the
child modules of a project so the version matches the version of the
current project. For example, if you have an aggregator pom that is
also the parent for the projects that it aggregates and the children
and parent versions get out of sync, this mojo can help fix the
versions of the child modules. (Note you may need to invoke Maven with
the -N option in order to run this goal if your project is broken so
badly that it cannot build because of the version mis-match).
   * versions:lock-snapshots searches the pom for all -SNAPSHOT
versions and replaces them with the current timestamp version of that
-SNAPSHOT, e.g. -20090327.172306-4
   * versions:unlock-snapshots searches the pom for all timestamp
locked snapshot versions and replaces them with -SNAPSHOT.
   * versions:resolve-ranges finds dependencies using version ranges
and resolves the range to the specific version being used.
   * versuibs:set can be used to set the project version from the command line.
   * versions:use-releases searches the pom for all -SNAPSHOT
versions which have been released and replaces them with the
corresponding release version.
   * versions:use-next-releases searches the pom for all non-SNAPSHOT
versions which have been a newer release and replaces them with the
next release version.
   * versions:use-latest-releases searches the pom for all
non-SNAPSHOT versions which have been a newer release and replaces
them with the latest release version.
   * versions:use-next-snapshots searches the pom for all
non-SNAPSHOT versions which have been a newer -SNAPSHOT version and
replaces them with the next -SNAPSHOT version.
   * versions:use-latest-snapshots searches the pom for all
non-SNAPSHOT versions which have been a newer -SNAPSHOT version and
replaces them with the latest -SNAPSHOT version.
   * versions:use-next-versions searches the pom for all versions
which have been a newer version and replaces them with the next
version.
   * versions:use-latest-versions searches the pom for all versions
which have been a newer version and replaces them with the latest
version.
   * versions:commit removes the pom.xml.versionsBackup files. Forms
one half of the built-in "Poor Man's SCM".
   * versions:revert restores the pom.xml files from the
pom.xml.versionsBackup files. Forms one half of the built-in "Poor
Man's SCM".

The artifacts have been deployed to the mojo repository and have been
mirrored to central.

The Mojo Team.

Release Notes - Maven 2.x Versions Plugin - Version 1.1


** Bug
* [MVERSIONS-66] - FATAL Error thrown for
versions:dependency-updates-report GOAL
* [MVERSIONS-67] - Reporting IllegalArgumentException plugin
comparator used for normal dependencies
* [MVERSIONS-71] - versions:set changes both parent and module version
* [MVERSIONS-75] - Spelling error
* [MVERSIONS-80] - update-properties doesn't work when version is
specified in plugin configuration

** Improvement
* [MVERSIONS-72] - versions-maven-plugin should determine POM
encoding from property/configuration entry
* [MVERSIONS-73] - Documentation should provide a matrix table
showing what the different goals do exactly

Note: as of 21:22 GMT 30/10/2009 the versions-maven-plugin has not
been pushed to maven central.  If you cannot wait the (at most) 24
hours for this sync, you can use the codehaus repository
(http://repository.codehaus.org/).

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



Re: artifacts associated with a WAR

2009-10-30 Thread Wayne Fay
> mvn help:effective-pom shows the outout in the project POM.xml and the source
> tree.
>
> I want to see the same information on a WAR/EAR/JAR/ZIP file.

Java simply does not support what you're asking for out of the box
(thus Maven was created).

Artifacts built with Maven include a pom.xml file inside the ear/war/jar eg:
dear-2.1.2.ear!\META-INF\maven\com.xyz\dear\pom.xml

Perhaps that will be sufficient? If not, there may be something built
into Nexus -- but you'd have to ask on their Users list.

Wayne

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



Re: artifacts associated with a WAR

2009-10-30 Thread huser

mvn help:effective-pom shows the outout in the project POM.xml and the source
tree.

I want to see the same information on a WAR/EAR/JAR/ZIP file. 

TIA,


Wayne Fay wrote:
> 
>> I know that we can see useful info using mvn help:effective-pom on the
>> source code. But how can I see the same on a WAR file ? We deploy the
>> WARS
>> to nexus.
> 
> What (specific) information about the WAR file do you want to see
> which is not already being shown via help:effective-pom?
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/artifacts-associated-with-a-WAR-tp26135064p26135738.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: artifacts associated with a WAR

2009-10-30 Thread Wayne Fay
> I know that we can see useful info using mvn help:effective-pom on the
> source code. But how can I see the same on a WAR file ? We deploy the WARS
> to nexus.

What (specific) information about the WAR file do you want to see
which is not already being shown via help:effective-pom?

Wayne

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



artifacts associated with a WAR

2009-10-30 Thread huser

Hi,

We use Maven WAR plugin for generating WAR. Is there a way to see the
artifacts associated with a WAR.

I know that we can see useful info using mvn help:effective-pom on the
source code. But how can I see the same on a WAR file ? We deploy the WARS
to nexus.

TIA,
-- 
View this message in context: 
http://old.nabble.com/artifacts-associated-with-a-WAR-tp26135064p26135064.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven xmlbeans problem

2009-10-30 Thread EDH


edh wrote:
> 
> What if I have one module that contains xsd's that are included in other
> xsd's which are part of other modules ?
> E.g.
> myapp
>  pom.xml 
>  domainx\src\main\xsd\domain.xsd
>pom.xml (type.jar) 
>  service1
>service1\src\main\xsd\service1.xsd
>pom.xml (type.jar
>  service2
>service2\src\main\xsd\service2.xsd
>pom.xml (type.jar
> 
> service1 and service2 xsd's include domain.xsd.
> 
> How can I generate source and class files for/from service1 and service2
> xsd's knowing that they include domain.xsd which is in another module ?
> 
> 
> Nicolas Duminil wrote:
>> 
>> You need to have a master pom with the packaging of type "pom". Your 
>> configure.jar would be a module of this master pom having the packaging
>> of 
>> type "jar". This way, every time you build, if something has changed in 
>> the configure.jar sources, this artefact will be rebuilt and redeployed. 
>> And yes, when the XSD changes, you have to rebuild the jar and, 
>> consequently, the associated maven artefact, doesn't it sound obvious to 
>> you ?
>> 
>> 
>> 
>> youhaodeyi  
>> 27-08-2009 02:48
>> Please respond to
>> "Maven Users List" 
>> 
>> 
>> To
>> users@maven.apache.org
>> cc
>> 
>> Subject
>> Re: maven xmlbeans problem
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> How can I create the first module? Do you mean I run the command "mvn
>> install" on the configure.jar file?
>> If so, every time the xsd file changed, I have to install the 
>> cnofigure.jar
>> file manually.
>> 
>> Nicolas Duminil wrote:
>>> 
>>> You have to have a main pom having two modules: the first one installs 
>>> your configure.jar as an artefact in your local repository. The second 
>> one 
>>> is the one you've showed, to which you add a dependency to the previous 
>>> generated artefact.
>>> 
>>> Nicolas
>>> 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/maven-xmlbeans-problem-tp25149630p25164219.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
>> 
>> 
> 

-- 
View this message in context: 
http://old.nabble.com/maven-xmlbeans-problem-tp25149630p26133539.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Jar with jar dependencies

2009-10-30 Thread DANIEL DE OLIVEIRA FERREIRA
Ok,

I solved this problem change  to false.

Daniel de Oliveira Ferreira
Programador
Farmácias Pague Menos

danielolive...@pmenos.com.br
+55 85 3255.5453
www.paguemenos.com.br


Em Sex, 2009-10-30 às 13:26 -0300, DANIEL DE OLIVEIRA FERREIRA escreveu:
> Hi,
> 
> I'm using maven-assembly-plugin with jar-with-dependencies descriptor,
> but I need create a jar with dependencies where the dependencies don't
> be uncompressed when packed. Any idea?
> 
> Daniel de Oliveira Ferreira
> Programador
> Farmácias Pague Menos
> 
> danielolive...@pmenos.com.br
> +55 85 3255.5453
> www.paguemenos.com.br
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



Jar with jar dependencies

2009-10-30 Thread DANIEL DE OLIVEIRA FERREIRA
Hi,

I'm using maven-assembly-plugin with jar-with-dependencies descriptor,
but I need create a jar with dependencies where the dependencies don't
be uncompressed when packed. Any idea?

Daniel de Oliveira Ferreira
Programador
Farmácias Pague Menos

danielolive...@pmenos.com.br
+55 85 3255.5453
www.paguemenos.com.br



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



create different package

2009-10-30 Thread jecs

I have a java project with maven and need create with the sources three
different package, these package can have different file of configuration,
I'm working with profiles but only can create one package, is possible
create other packages. for example

local   myproject-local-external.rar
 myproject-local-internal.rar
 myproject-local-other.rar


production   myproject-production-external.rar
 myproject-production-internal.rar
 myproject-production-other.rar

Thank your for your responses
-- 
View this message in context: 
http://old.nabble.com/create-different-package-tp26132477p26132477.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: snapshots resolution, metadata and classifier

2009-10-30 Thread Julien CARSIQUE
Fixed with false in 
distributionManagement tag.
I hope we won't have new issues because of this (non updated artifacts, 
...).


Thanks

Julien CARSIQUE a écrit :

Hello,

We encounter a new issue with snapshots resolution on Maven 2.0.10 
(for now, we cannot migrate to 2.1 or 2.2)


Some of our modules may generate various builds depending on the 
active profiles. We distinguish those builds with classifiers but 
those various builds are not (and cannot) be generated during the same 
maven execution.
Resolving the snapshot and looking for the wanted artifact, Maven 
looks for an artifact with the wanted artifact and classifier but with 
the snapshot keyword resolution based on the last updated metadata, 
corresponding to one classifier only.


Here is a sample case:
- we deploy 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-ep:zip 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10.pom 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10-nuxeo-ep.zip 



- then we deploy 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-dm:zip 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11.pom 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-dm.zip 



- 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/maven-metadata.xml 
contains:


org.nuxeo.ecm.distribution
nuxeo-distribution-jboss
5.3.1-SNAPSHOT

  
20091029.122446
11
  
  20091029122932



Trying to build a project depending on nuxeo-ep classifier, we get the 
following issue:
  Downloading: 
.../org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-ep.zip 


  [ERROR] BUILD ERROR
  [INFO] Failed to resolve artifact.
  Missing:
  --
  1) 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:zip:nuxeo-ep:5.3.1-SNAPSHOT 




Do you know this issue ? Is it fixed in new versions ? Do you have a 
work around ?


Best regards,
Julien



--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform



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



Re: zipping the outputDirectory using Assembly plugin

2009-10-30 Thread David Weintraub
I had a similar issue. The easiest way to do this is with the 
plugin. This will allow you to zip up these files before Maven does the
package stage.

On Mon, Oct 26, 2009 at 6:57 AM, singh_rajeev wrote:

>
> Hi
>
> I've the following lines of code in my assembly.xml
> 
> 
>false
> 
>   sql
>   config/schemas
>
>*.sql
>
> 
> 
> 
> 
>
> This creates a folder schemas in config file when I package it using mvn
> assembly plugin.
>
> Instead of a folder I want to create a zip file containing the same folder
> structure as specified in . I know how to do it in Ant but
> don't know how to do it in Maven.
> Any help will be appriciated.
>
> Thanks,
> Rajeev.
> --
> View this message in context:
> http://www.nabble.com/zipping-the-outputDirectory-using-Assembly-plugin-tp26057622p26057622.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
David Weintraub
qazw...@gmail.com


Re: Reading properties file in pom

2009-10-30 Thread Anders Hammar
You use filtering to substitute property references in (resource) files
during the build process. It's the maven resource plugin that support
filtering to do that.

Regarding reading properties from a file, the exact same question was asked
a week or two ago. If you search Nabble or similar you'll find a link to a
maven plugin I found for that.

/Anders

On Fri, Oct 30, 2009 at 11:30, Mr Debasis  wrote:

>
> Hi All,
>  I want to read property file values in pom file.like what we can read in
> ant.like below
>   
>
>
> I know this i can achieve by using maven-antrun plugin.its true.also i
> tried
> but that value should be available through out the pom file.i don't want to
> use it only inside ant-run plugin section.
>
> also i found something known as maven filtering.but how to read the
> property
> value through maven filtering i didnot get in the documentation.
>
> Can anybody please help me in this context.
>
> Thanks,
> Debasis
> --
> View this message in context:
> http://old.nabble.com/Reading-properties-file-in-pom-tp26127833p26127833.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Reading properties file in pom

2009-10-30 Thread Mr Debasis

Hi All,
 I want to read property file values in pom file.like what we can read in
ant.like below
   


I know this i can achieve by using maven-antrun plugin.its true.also i tried
but that value should be available through out the pom file.i don't want to
use it only inside ant-run plugin section.

also i found something known as maven filtering.but how to read the property
value through maven filtering i didnot get in the documentation.

Can anybody please help me in this context.

Thanks,
Debasis
-- 
View this message in context: 
http://old.nabble.com/Reading-properties-file-in-pom-tp26127833p26127833.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



snapshots resolution, metadata and classifier

2009-10-30 Thread Julien CARSIQUE

Hello,

We encounter a new issue with snapshots resolution on Maven 2.0.10 (for 
now, we cannot migrate to 2.1 or 2.2)


Some of our modules may generate various builds depending on the active 
profiles. We distinguish those builds with classifiers but those various 
builds are not (and cannot) be generated during the same maven execution.
Resolving the snapshot and looking for the wanted artifact, Maven looks 
for an artifact with the wanted artifact and classifier but with the 
snapshot keyword resolution based on the last updated metadata, 
corresponding to one classifier only.


Here is a sample case:
- we deploy 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-ep:zip 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10.pom 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.115623-10-nuxeo-ep.zip 



- then we deploy 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:5.3.1-SNAPSHOT:nuxeo-dm:zip 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11.pom 

  => 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-dm.zip 



- 
org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/maven-metadata.xml 
contains:


org.nuxeo.ecm.distribution
nuxeo-distribution-jboss
5.3.1-SNAPSHOT

  
20091029.122446
11
  
  20091029122932



Trying to build a project depending on nuxeo-ep classifier, we get the 
following issue:
  Downloading: 
.../org/nuxeo/ecm/distribution/nuxeo-distribution-jboss/5.3.1-SNAPSHOT/nuxeo-distribution-jboss-5.3.1-20091029.122446-11-nuxeo-ep.zip 


  [ERROR] BUILD ERROR
  [INFO] Failed to resolve artifact.
  Missing:
  --
  1) 
org.nuxeo.ecm.distribution:nuxeo-distribution-jboss:zip:nuxeo-ep:5.3.1-SNAPSHOT 




Do you know this issue ? Is it fixed in new versions ? Do you have a 
work around ?


Best regards,
Julien

--
Julien Carsique, Nuxeo (Paris, France)
www.nuxeo.com - The Open Source ECM Platform - www.nuxeo.org
Nuxeo ECM Stack - The Java EE, scalable, standard-based ECM Platform



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



Re: tracking down jetty/tomcat dependencies

2009-10-30 Thread Benson Margulies
I wrote it up on the mojo user list once I got a clearer picture, but here
goes again.

The code calls DocumentBuilderFactory and SchemaFactory to parse an XML file
to DOM with schema validation. Run in the plugins, it fails with an
impossible validation error (a claim that a valid attribute is invalid). The
backtrace shows a combination of xerces and JDK classes. I have xerces in
the webapp's class path.

The same code works fine, with or without xerces, run as a pojo or a junit
test.

If I try to use 100% Xerces by referring to their implementation classes
(DocumentBuilderImpl and XMLSchemaFactory) it still fails in the plugins.

The problem goes away if I use the new JAXP 1.4 APIs to force the use of
Xerces.

I reason as follows: in a live copy of tomcat or jetty, the 'system'
classpath is whatever jars are sitting in the containers system library
directory. When these plugins deploy a webapp, they don't have a system
library directory. They instead have whatever classpath maven invokes them
with, based on their declared dependencies and the transitive closure that
reaches into plexus and such. There could easily be some ancient xml-apis
jar in there, or some other source of interference, which I am not
preempting in my webapp.

If dependency:tree worked for a plugin classpath, then I might be able to
figure out the real source of the problem and fix it by tinkering with
dependencies on the plugin. But I can't figure out how to get a full tree
for maven-tomcat-plugin (e.g.).

On Thu, Oct 29, 2009 at 10:32 PM, Brett Randall  wrote:

> On Fri, Oct 30, 2009 at 6:45 AM, Benson Margulies  >wrote:
>
> > I've got code that works fine when run as a pojo and fails when run in a
> > webapp, either via tomcat:run or jetty:run. I suspect, because I can't
> > think
> > of anything else, that there is detritus in the 'system' classpaths of
> > these
> > containers. However, mvn dependency:tree does not tell me much about the
> > maven-jetty-plugin. Neither does dependency:resolve-plugins.
> >
> > Is there some way to get a clearer view of this question?
> >
>
> What is the mode of failure?
>
> Brett
>


AW: Using Ivy repository in Maven

2009-10-30 Thread Entner Harald
Hi sandarenu,

it depends. If the jars are available in a public repository, the only thing 
you have to do is to define them as dependencies in your pom. Try 
http://mvnrepository.com/ as a start. There are more repositories available 
though. .

If you want to upload your files manually you can use 

mvn deploy:deploy:file see [1]. If there are many files or you just want to 
have a quick start i would consider writing a bash/bat script that iterates 
through all your jars and calls mvn deploy:deploy-file. 

I would consider using Nexus and deploy your files there (when they are not 
available in a public repository [2]


Hope this helps, 

Harald 

[1] http://maven.apache.org/plugins/maven-deploy-plugin/usage.html
[2] http://nexus.sonatype.org/





-Ursprüngliche Nachricht-
Von: sandarenu [mailto:sandar...@gmail.com] 
Gesendet: Freitag, 30. Oktober 2009 03:51
An: users@maven.apache.org
Betreff: Using Ivy repository in Maven


Hi all,

I'm quite new to Maven. Currently I use ant to build my java applications
and use Ivy as dependency management tool. I'm keeping all by dependency
jars in svn and use ant+ivy to get them when I build my application. 

Now I'm planning to move to maven and I wanted to have a local repository
for maven. In maven is there a way which i can directly access the jars I
currently have in svn, or is there a way to import them to maven repository?
Since I've quite a lot of jars in svn (currently using with ant + ivy) it is
not easy to do that manually. 

Thanks and regards,
sandarenu.
-- 
View this message in context: 
http://old.nabble.com/Using-Ivy-repository-in-Maven-tp26124183p26124183.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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