RE: Trouble downloading from local and remote repositories when running Continuum as a service

2007-04-25 Thread Williamson, James L
Thanks for asking the question Wayne - you're the man.

For the benefit of anybody with the same problem: I was running the
service using the Local System account Log On credentials.  I changed
the Log On credentials to specify my NT Login and password and now it
works fine.  Looking back at the Continuum Getting Started Guide, it
explicitly states: By default, the service logs on as the Local System
account. Be sure to change this to an account where you want the service
to start upon login.
I had supposed this meant change it if you want the service to run in
some location other than your local machine.  However, be aware that you
will need to change it if you want your service to work correctly.
These changes can be made under Computer Management.

James

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 7:29 PM
To: continuum-users@maven.apache.org
Subject: Re: Trouble downloading from local and remote repositories when
running Continuum as a service

Is the Continuum service running as the same user who is running it
from the console? Generally, services are run under the local
Administrator account, so I'd assume you've got some configuration
settings associated with your user account which are not set up
properly for the admin account.

Wayne

On 4/24/07, Williamson, James L [EMAIL PROTECTED] wrote:
 Hi All,



 I'm hosting Continuum as a service on my local machine (Windows
 machine).  When I have continuum running as a console application
along
 with the service, I am able to successfully build my project.  When I
 close the console application and leave the service running (e.g. when
I
 log off to go home at night) build errors emerge:



 Downloading:

http://people.apache.org/repo/m2-incubating-repository/org/apache/servic

emix/tooling/jbi-maven-plugin/3.1-incubating/jbi-maven-plugin-3.1-incuba
 ting.pom

 [WARNING] Unable to get resource
 'org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1-incubating'
from
 repository apache.incubating
 (http://people.apache.org/repo/m2-incubating-repository)

 Downloading:

http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-pl
 ugin/3.1-incubating/jbi-maven-plugin-3.1-incubating.pom

 [WARNING] Unable to get resource
 'org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1-incubating'
from
 repository central (http://repo1.maven.org/maven2)

 Downloading:

http://people.apache.org/repo/m2-incubating-repository/org/apache/servic

emix/tooling/jbi-maven-plugin/3.1-incubating/jbi-maven-plugin-3.1-incuba
 ting.pom

 [WARNING] Unable to get resource
 'org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1-incubating'
from
 repository apache.incubating
 (http://people.apache.org/repo/m2-incubating-repository)

 Downloading:

http://repo1.maven.org/maven2/org/apache/servicemix/tooling/jbi-maven-pl
 ugin/3.1-incubating/jbi-maven-plugin-3.1-incubating.pom

 [WARNING] Unable to get resource
 'org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1-incubating'
from
 repository central (http://repo1.maven.org/maven2) [INFO]



 [ERROR] BUILD ERROR

 [INFO]



 [INFO] Error building POM (may not be this project's POM).





 Project ID: org.apache.servicemix.tooling:jbi-maven-plugin



 Reason: POM 'org.apache.servicemix.tooling:jbi-maven-plugin' not found
 in repository: Unable to download the artifact from any repository



  org.apache.servicemix.tooling:jbi-maven-plugin:pom:3.1-incubating





 Do I have to have my console application running in order for
Continuum
 to function properly?  I would have thought that I should be able to
run
 Continuum as a service (without running the console app concurrently)
 and have it do its job (i.e. continuously checking the code base
without
 human intervention).  My problem is when I log off to go home at
night,
 the console app is killed and I can't really lock my computer at night
 in order to allow the console app to keep running.  Maybe I'm missing
 something???



 Any ideas?



 James








RE: Getting index.html of site generated automatically

2007-04-25 Thread Ian Rowlands
Just wondering, did the trace show anything?

Thanks,

Ian




Ok, just did those things.  URL for output is
http://rafb.net/p/Kf10Cs17.html

There was no particular reason - I guess I got into the habit of it and
didn't go back!  This output was running mvn site -X

Regards,

Ian

- Message from Wendy Smoak [EMAIL PROTECTED] on Sun, 22 Apr 2007
18:03:52 -0700 -
 

 To: Maven Users List users@maven.apache.org

 

Subject: Re: Getting index.html of site generated automatically

 


On 4/22/07, Ian Rowlands [EMAIL PROTECTED] wrote:

 Any other suggestions?

Declare a version number for the site plugin:
   version2.0-beta-5/version

Then paste the output of 'mvn site -X'  (use http://rafb.net/paste as
it will be too long to include)  and let's see if there's anything
interesting in that.

Is there any reason you're using site:site (single goal) rather than
just 'site' (lifecycle phase)?

--
Wendy



Re: Any change in ${ reports} in site.xml recently?

2007-04-25 Thread Gregory Kick

use menu ref=reports/ instead.  i'm pretty sure that ${reports}
was deprecated anyway.

On 4/25/07, Curt Arnold [EMAIL PROTECTED] wrote:

I've been working on several log4j related projects with Maven
recently and I've started having errors during site generation start
occurring on projects that had been working.  The symptom is:

[WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport
- AbstractMethodError: canGenerateReport()
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error parsing site descriptor

Embedded error: expected START_TAG or END_TAG not TEXT (position:
TEXT seen ...g.apache.org/log4j/companions/\r/links\r{$
reports}\r  /... @1:1352)

And will disappear if the ${ reports} is removed from src/site/site.xml.

I've been experiencing the problem with Maven 2.0.6 or Maven 2.0.4 on
Mac OS/X

java version 1.5.0_07
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

and still had the problem after deleting my local repository.

To reproduce the problem, check out the following project:

svn co https://svn.apache.org/repos/asf/logging/sandbox/log4j/component

and then do mvn site


I had previously used {$reports} instead of ${ reports}, but it
seemed like both forms use to work and now neither form does.

p.s. I'm a maven newbie, so any comments on the project would be
appreciated.  Cobertura has been very finicky, saw the note on 2.1
but even using 2.0, I have to manually blow the plugin from the
repository and the surefire* files from the project to get the site
to produce correctly.

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





--
Gregory Kick
http://kickstyle.net/

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



Re: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Thorsten Heit
 The *only* problem with Artifactory is that it seems to require Java6 and
 we're not yet running that on anything.

The required JDK version was changed to Java 5 for 1.2.1rc0 IIRC.


Thorsten

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



Re: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Yoav Landman

Not anymore. Starting with 1.2.1rc0 the codebase is compiled against 1.5 and
the war can be deployed inside any java5 servlet container.
(see: https://www.jfrog.org/jira/browse/RTFACT-75)


Kathryn Huxtable wrote:
 
 The *only* problem with Artifactory is that it seems to require Java6 and
 we're not yet running that on anything.
 
 -K
 
 
 On 4/24/07 3:28 PM, Wayne Fay [EMAIL PROTECTED] wrote:
 
 The general concept behind all of these Maven Proxy tools is the same.
 If one works for you and others do not, then I would just use that
 one.
 
 Wayne
 
 On 4/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 is there an additionnal configuration that I missed, one to make Tomcat
 access the internet for central mirroring ?
 
 because
 when I installed Artifactory (and reinstalled maven 2.0.6 right now !)
 everything is looking fine (Artifactory looking up external
 repositories from the first hit !)
 
 this is the first log :
 (sorry for the first mail )
 
 (miko$oft bad commad prompt truncated my log ! grrr !)
 
 164K downloaded
 Downloading: 
 http://localhost:8081/artifactory/repo/commons-httpclient/commons-h
 ttpclient/2.0.2/commons-httpclient-2.0.2.jar
 220K downloaded
 WAGON_VERSION: 1.0-beta-2
 [INFO] 
 -
 ---
 [INFO] Building Unnamed - com:TutelecOJV-v1.3:jar:1.3
 [INFO]task-segment: [compile]
 [INFO] 
 -
 ---
 [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
 checking for
 up
 dates from central
 Downloading: 
 http://localhost:8081/artifactory/repo/org/apache/maven/plugins/mav
 en-resources-plugin/2.2/maven-resources-plugin-2.2.pom
 1K downloaded
 Downloading: 
 http://localhost:8081/artifactory/repo/org/apache/maven/plugins/mav
 en-plugins/1/maven-plugins-1.pom
 3K downloaded
 Downloading: 
 http://localhost:8081/artifactory/repo/org/apache/maven/maven-paren
 t/1/maven-parent-1.pom
 6K downloaded
 
 -
 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/Re-%3A-Re-%3A-Re-%3A-Re-%3A-Re-%3A-Re-%3A-Re-%3A-Help-setup-local-proxy-for-Maven2-%28Please%29-tf3641041s177.html#a10175631
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Releasing from multiple modules

2007-04-25 Thread James Abley

Hi,

I'm fairly new to Maven2 and haven't used it much in situations more
complex than those described in the documentation. But now I have hit
an issue that I haven't been able to find much documentation on this
subject[1], so I wanted to confirm what the suggested best practice is
in this area and get feedback on how others are managing this area.

I have multiple SVN modules. Some of these modules contain multiple
Maven2 modules.

A simple example:

* SVN module common - contains a single Maven module of common utility
Java code, produces a JAR.

* SVN module webapp-A - contains multiple Maven modules, separating
out the layers of the application. The Core depends on the
afore-mentioned common jar as well as a host of third-party stuff. The
top level POM produces are WAR.

* SVN module webappB - Similar to webappA.

Currently, we are developing in the trunk and all of the dependencies
are on a 1.0-SNAPSHOT. Now we are getting to the point of requiring a
release, which should take the form of an installer at some point, but
I'll settle for a zip file with documentation at this point.

So, the route that I think I should follow is to create a new SVN
module that will contain a single Maven module. This should use the
modules webappA and webappB to get the WAR files and package that up
appropriately into a zip file. This module can also contain
JIRA-generated release notes, etc.

Also, I would like to use the Maven release process to interact with
SVN where possible.

1. Does the described process sound like a sensible approach that
others are employing successfully?

2. Is there a tool to help me do this? It feels like I'll have to walk
the directed acyclic graph manually, releasing each one and altering
POMs to reference non-SNAPSHOT versions. Given that I might have tens
of SVN modules, that feels pretty laborious.

Cheers,

James

[1] 
http://docs.codehaus.org/display/MAVENUSER/How+to+handle+releases+with+multiple+SNAPSHOT+dependents

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



Re: Writing a portable CVS configuration using maven2

2007-04-25 Thread Emmanuel Venisse



Jerome Thibaud a écrit :

Hi All,

1.
Assuming several users connecting to a CVS server using ext method and
ssh.
As far as I understand, the pom.xml, checked out from CVS  is the same for
everyone.
Only the settings.xml and maybe cvs-settings.xml might have specific 
content

for each user, right ?


yes.



In the scm plugin documentation they expect the scm URL to be written in 
the

pom as follow:
 scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

how can I organize everything so that the user name, password or private 
key

are provided outside of the pom,
in some user specific resource?
What are the recommended practices?


you can use a scm url like that:
scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

where cvs.username property is defined on the command line or in your 
settings.xml
You can remove ${cvs.username} from your scm connection url too and specify the 
username as a parameter of the plugin you use.

What is the plugin you use?




2.
How do I control the command line options? I see by default
scm:update = cvs -z3 -f -q update -d

I don't want the -f cvs option


It's explain in http://maven.apache.org/scm/cvs.html
You can remove it by adding useCvsrctrue/useCvsrc in your cvs-settings.xml


I'd like a -P update option


You can add it in your .cvsrc file




3. Can somebody clarify the difference between connection and developper
connection? When is each one used?


connection is generally for anonymous access and developer connection for 
authenticated access

Emmanuel


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



m2.0.6 with false transitive dependencies fails on windows, works on linux

2007-04-25 Thread Geoffrey De Smet

Since 2.0.6 maven is reacting differently on windows in linux for our poms.

We have some false transitive dependencies: transitive dependencies 
that should be direct dependencies.
(We currently do this to avoid having to duplicate the version number as 
the different projects don't have a common superpom.)


On linux, our poms compile fine,
on windows, our poms sometimes don't compile as some of those false 
transitive dependencies start to go missing from our compile classpath.


The problem is that if someone commits something on linux, he's unsure 
if it will build on windows.


Is this a known issue since 2.0.6?
Has anyone else seen this problem occur?

--
With kind regards,
Geoffrey De Smet


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



Re: [m2] release Plugin: How to generate/deploy the site while releasing?

2007-04-25 Thread Antonio Parolini

This dosen't work for multiprojects release. I get a
MultipleArtifactsNotFoundException.

site:site needs to have all the dependencies version of the project compiled
and installed in the local repo to work. After release:perform, the pom are
changed to the next version, but note rebuild.

I would say the correct sequence is: release:prepare release:perform install
site:site site-deploy

Painfull.

-tony


dan tran wrote:
 
 Not possible yet!  One work around is to write a shell to call site:site
 site:deploy after release:perform using the same source tree.
 
 -D
 
 
 On 4/19/06, Fredy [EMAIL PROTECTED] wrote:

 Hey all,
 is it possible to configure the release plugin that it is calling the
 goal
 site and site:deploy with the correct pom version?

 Thanks Fredy

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


 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--release-Plugin%3A-How-to-generate-deploy-the-site-while-releasing--tf1478573s177.html#a10176379
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: m2.0.6 with false transitive dependencies fails on windows, works on linux

2007-04-25 Thread Jerome Lacoste

On 4/25/07, Geoffrey De Smet [EMAIL PROTECTED] wrote:

Since 2.0.6 maven is reacting differently on windows in linux for our poms.

We have some false transitive dependencies: transitive dependencies
that should be direct dependencies.
(We currently do this to avoid having to duplicate the version number as
the different projects don't have a common superpom.)

On linux, our poms compile fine,
on windows, our poms sometimes don't compile as some of those false
transitive dependencies start to go missing from our compile classpath.

The problem is that if someone commits something on linux, he's unsure
if it will build on windows.

Is this a known issue since 2.0.6?
Has anyone else seen this problem occur?


Are you sure something else is not creating the problem ?

Are you using the exact same build environment on both machines (e.g.
plugin versions are exactly identical, local caches contain the exact
same versions) ?

I would start by cleaning up the local repository and making sure both
machines use the exact same dependencies. One way to verify it, if you
cannot change all your poms right away, is to remove your local
repository, make a full build on both machines, compare results and
local repositories.

Cheers,

Jerome

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



Re: m2.0.6 with false transitive dependencies fails on windows, works on linux

2007-04-25 Thread Geoffrey De Smet


With kind regards,
Geoffrey De Smet

Jerome Lacoste schreef:

On 4/25/07, Geoffrey De Smet [EMAIL PROTECTED] wrote:
Since 2.0.6 maven is reacting differently on windows in linux for our 
poms.


We have some false transitive dependencies: transitive dependencies
that should be direct dependencies.
(We currently do this to avoid having to duplicate the version number as
the different projects don't have a common superpom.)

On linux, our poms compile fine,
on windows, our poms sometimes don't compile as some of those false
transitive dependencies start to go missing from our compile classpath.

The problem is that if someone commits something on linux, he's unsure
if it will build on windows.

Is this a known issue since 2.0.6?
Has anyone else seen this problem occur?


Are you sure something else is not creating the problem ?


Not as far as we know. We 're just getting it between 2 windows versions 
too. Again fixing the false transitive dependencies fixed it.


Are you using the exact same build environment on both machines (e.g.
plugin versions are exactly identical, local caches contain the exact
same versions) ?


The compiler plugin is locked down to 2.0.2, the entire local 
repositories have been cleaned during a test.


My college has a log which proves he should get a dependency on his 
classpath and doesn't get it, I 've made a JIRA with attached logs:


  http://jira.codehaus.org/browse/MNG-2962



I would start by cleaning up the local repository and making sure both
machines use the exact same dependencies. One way to verify it, if you
cannot change all your poms right away, is to remove your local
repository, make a full build on both machines, compare results and
local repositories.

Cheers,

Jerome



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



Re: maven 2.0.5, site-deploy and ssh (jsch) proxy problem?

2007-04-25 Thread Antonio Parolini

We have the same with maven 2.0.6. MAven is using the proxy setting for other
protocols than HTTP. As a workaround, we stick to 2.0.4.

-toni


Marcel May-2 wrote:
 
 Hi!
 
 While trying to update mvn from 2.0.4 to 2.0.5 I discovered that
 site-deploy fails with a proxy error message although scp is used (see
 below).
 The site-deploy stuff worked perfectly for my project with the old mvn
 2.0.4.
 
 settings.xml:
 ...
   proxy
   idmy-proxy/id
   activetrue/active
   protocolhttp/protocol
   hostproxy/host
   port8001/port
 /proxy
   ...
   servers
 server
   idmy-site/id
   usernamemm/username
   passwordXXX/password
 /server
   /servers
 
 
 pom.xml:
   distributionManagement
 site
   idmy-site/id
   urlscp://site-server/home/mm/www/htdocs//url
 /site
   /distributionManagement
 
 
 There is a proxy configured in the settings.xml, but that should be of
 no concern for scp, right?
 It seems that the Wagon provider updates in mvn 2.0.5 will automatically
 use SSH via proxy, if there is an active proxy in settings.xml.
 
 
 The output is:
 ...[
 INFO] [site:deploy]
 scp://site-server/home/mm/www/htdocs - Session: Disconnecting
 scp://site-server/home/mm/www/htdocs - Session: Disconnected
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error uploading site
 
 Embedded error: Cannot connect. Reason: ProxyHTTP: java.io.IOException:
 proxy error: Forbidden
 [INFO]
 
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading
 site
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
 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:330)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
 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:585)
 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
 uploading site
 at
 org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:184)
 at
 org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:420)
 at
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
 ... 16 more
 Caused by:
 org.apache.maven.wagon.authentication.AuthenticationException: Cannot
 connect. Reason: ProxyHTTP: java.io.IOException: proxy error: Forbidden
 at
 org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:186)
 at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
 at
 org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:149)
 ... 18 more
 Caused by: com.jcraft.jsch.JSchException: ProxyHTTP:
 java.io.IOException: proxy error: Forbidden
 at com.jcraft.jsch.ProxyHTTP.connect(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at com.jcraft.jsch.Session.connect(Unknown Source)
 at
 org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnection(AbstractJschWagon.java:158)
 ... 20 more
 [INFO]
 
 [INFO] Total time: 49 seconds
 [INFO] Finished at: Thu Feb 15 12:13:02 CET 2007
 [INFO] Final Memory: 43M/80M
 [INFO]
 

 
 Maven site plugin version is 2.0-beta-5. The proxy configured in
 settings.xml does not have any authentication configured.
 
 Is there any way to turn off the proxy usage for site-deploy if there is
 an active proxy in settings.xml?
 

jar with dependencies in a folder

2007-04-25 Thread JavierL


Hi

My application is a jar file and when I run mvn package it generates my jar
ok.

But I need to distribute my app with all the related jar dependencies so I
wonder how could I do it with maven2..

Actually, I did an ant task that at package cycle copy my project
depdenciens from mvnrepository to a lib folder inside target folder. It
works well but force me to make the list of files to be copied by hand. I
want to see maven doing this job automatically...

Is this posible ?

Thanks in advance
J



-- 
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10177639
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: jar with dependencies in a folder

2007-04-25 Thread Jo Vandermeeren

Javier,

The maven-assembly-plugin can do that for you..
http://maven.apache.org/plugins/maven-assembly-plugin/

Here's a snippet to add to your build plugins:

   plugin
   artifactIdmaven-assembly-plugin/artifactId
   configuration
   descriptorRefs
   descriptorRefjar-with-dependencies/descriptorRef

   /descriptorRefs
   /configuration
   executions
   execution
   idmake-assembly/id
   phasepackage/phase
   goals
   goalattached/goal
   /goals
   /execution
   /executions
   /plugin

Cheers.. and now I'm off to catch my flight to thailand! :)
Jo

On 4/25/07, JavierL [EMAIL PROTECTED] wrote:




Hi

My application is a jar file and when I run mvn package it generates my
jar
ok.

But I need to distribute my app with all the related jar dependencies so I
wonder how could I do it with maven2..

Actually, I did an ant task that at package cycle copy my project
depdenciens from mvnrepository to a lib folder inside target folder. It
works well but force me to make the list of files to be copied by hand. I
want to see maven doing this job automatically...

Is this posible ?

Thanks in advance
J



--
View this message in context:
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10177639
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: jar with dependencies in a folder

2007-04-25 Thread JavierL


Thanks and hope you have a good trip !!!

J


Jo Vandermeeren wrote:
 
 Javier,
 
 The maven-assembly-plugin can do that for you..
 http://maven.apache.org/plugins/maven-assembly-plugin/
 
 Here's a snippet to add to your build plugins:
 
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 configuration
 descriptorRefs

 descriptorRefjar-with-dependencies/descriptorRef
 
 /descriptorRefs
 /configuration
 executions
 execution
 idmake-assembly/id
 phasepackage/phase
 goals
 goalattached/goal
 /goals
 /execution
 /executions
 /plugin
 
 Cheers.. and now I'm off to catch my flight to thailand! :)
 Jo
 
 On 4/25/07, JavierL [EMAIL PROTECTED] wrote:



 Hi

 My application is a jar file and when I run mvn package it generates my
 jar
 ok.

 But I need to distribute my app with all the related jar dependencies so
 I
 wonder how could I do it with maven2..

 Actually, I did an ant task that at package cycle copy my project
 depdenciens from mvnrepository to a lib folder inside target folder. It
 works well but force me to make the list of files to be copied by hand. I
 want to see maven doing this job automatically...

 Is this posible ?

 Thanks in advance
 J



 --
 View this message in context:
 http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10177639
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10177928
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: Any change in ${ reports} in site.xml recently?

2007-04-25 Thread Curt Arnold


On Apr 25, 2007, at 2:11 AM, Gregory Kick wrote:


use menu ref=reports/ instead.  i'm pretty sure that ${reports}
was deprecated anyway.




Using menu ref=reports/ fixes the problem and I have updated my  
projects in rev 532304.  To get the earlier version, add a -r 532303  
to the svn co command.


Use of ${ reports} is described on page 81 of Better Builds with  
Maven with no mention of imminent  depredation or mention of menu  
ref=reports/.  Unsettling to have a working project just stop  
working without any explicit upgrade action.


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



Re: maven 1.1 site generation

2007-04-25 Thread emerson cargnin

ah, you are right, I'm sorry for this : )

On 24/04/07, Lukas Theussl [EMAIL PROTECTED] wrote:

The checkstyle plugin generates several pages, the overview page
(Checkstyle Results, index.html) and the detailed reports (all, error,
warning, info). The first only counts the number of *different* errors
(ie if you have 10 javadocs missing, this is counted as 1 error
message). The total number of individual errors is given in the detailed
reports (eg all.html). I guess the dashboard counts the total number.

HTH,
-Lukas


emerson cargnin wrote:
 Hi there

 The dash board is behaving strangely for checkstyle. It tells there
 are  30846 CS errors for a given sub project, when i go to its page it
 has only 94. All the numbers in the main dashboard page don't follow
 what each individual page has.

 Does any one have seem this?

 thanks
 emerson


-
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: jar with dependencies in a folder

2007-04-25 Thread JavierL


Hi

I'm trying with this plugin to get what I waht but without success...

I see jar-with-dependencies but I don't want this. With this assembly my 82k
application jar will weight around 6MB (because will include Spring,
Hibernate and so on). If each time I need to make a fix in my app, I'll need
to distribute 6MB...


I need to get a zip to make a initial distribution of my app. It shoud
include my app.jar file and lib folder with all my jar dependencies.

After read docs I did:

-
assembly
idmydist/id
formats
formatzip/format
/formats
includeBaseDirectoryfalse/includeBaseDirectory
dependencySets
dependencySet
outputDirectory/outputDirectory
outputFileNameMapping/outputFileNameMapping
unpackfalse/unpack
scopecompile/scope
/dependencySet
/dependencySets
files
file
sourcetarget/aplicacionb-2.0.jar/source
outputDirectory/outputDirectory 
/file
/files
/assembly
-

And it generates a zip file with my app.jar but no notices about
dependencies jar !

Could somebody please give me a clue ?

Thanks in advance

J

-- 
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10178691
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: Problems with maven-assembly-plugin from Netbeans 5.5...

2007-04-25 Thread Arne Styve
Hi Antonio 

 
  I'm trying to use the maven-assembly-plugin from within
 Netbeans 5.5
  (with Mavenide installed), but when executing the goal 
  assembly:assembly, I get the following message when using the 
  predefined descriptor
  jar-with-dependencies:
 
  Embedded error: C:\Programfiler\netbeans-5.5\target\classes isn't a 
  directory.
 
  but my project is not placed under the C:\Programfiler\netbeans-5.5 
  -folder.
 
 I think that it is a bug in assembly plugin version 2.1. We had a 
 similar problem with Tiles.
 Try using the 2.2-SNAPSHOT version of the assembly plugin.
 
 Antonio

I tried adding version2.2-SNAPSHOT/version to the module plugin, but it
didn't find it.
How should I og about getting the 2.2 version ?

Regards
Arne 
 



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



Generated site search in maven2

2007-04-25 Thread Luchesar Cekov

Hi,

I am migrating a project that uses maven1 to maven2 build infrastructure.

In maven1 site generation user can add a search mechanism by adding a

search/
element it its navifation.xml

When I tried to add the same in maven2 site.xml I got the error:
Embedded error: Unrecognised tag: 'search' during site goal execution.

How can i substitute search/ element from navigation.xml in site.xml?

Thanks,
Lucho

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



Re: Releasing from multiple modules

2007-04-25 Thread Damien Lecan

I'm fairly new to Maven2 and haven't used it much in situations more
complex than those described in the documentation. But now I have hit
an issue that I haven't been able to find much documentation on this
subject[1]
http://docs.codehaus.org/display/MAVENUSER/How+to+handle+releases+with+multiple+SNAPSHOT+dependents


Use version range ?
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution

Damien

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



Re: Problems with maven-assembly-plugin from Netbeans 5.5...

2007-04-25 Thread Milos Kleint

the possible cause of this error is probably somehow connected with
the embedding of maven in the IDE. the C:/programfiles/netbeans path
is the directory where the IDE's JVM  is started at, so any relative
paths are resolved against it (as compared to command line maven which
you basically invoke from the project directory and thus the rel paths
are correct.

put the ${basedir} variable in the place where you define the path.

Milos

On 4/25/07, Arne Styve [EMAIL PROTECTED] wrote:

Hi Antonio

 
  I'm trying to use the maven-assembly-plugin from within
 Netbeans 5.5
  (with Mavenide installed), but when executing the goal
  assembly:assembly, I get the following message when using the
  predefined descriptor
  jar-with-dependencies:
 
  Embedded error: C:\Programfiler\netbeans-5.5\target\classes isn't a
  directory.
 
  but my project is not placed under the C:\Programfiler\netbeans-5.5
  -folder.

 I think that it is a bug in assembly plugin version 2.1. We had a
 similar problem with Tiles.
 Try using the 2.2-SNAPSHOT version of the assembly plugin.

 Antonio

I tried adding version2.2-SNAPSHOT/version to the module plugin, but it
didn't find it.
How should I og about getting the 2.2 version ?

Regards
Arne




-
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: How do Archiva Proxied Repositories work?

2007-04-25 Thread M Wurm

2007/4/23, nicolas de loof [EMAIL PROTECTED]:

Archiva downloads artifacts on demand via HTTP using wagon-http. I use a
similar config with no issue, but I don't have any proxy to set to access
repo1.



Ok, I've solved the issue. The problem had nothing to do with archiva,
but with our network setup. I had specified a proxy in my maven
settings.xml (on my local machine), and access to  Archiva was
impossible in general. I had to exclude proxy usage for the Archiva
host, using nonProxyHosts in my settings.xml.

Best Regards,
Matthias


skipping surefire-report failure

2007-04-25 Thread monsterkhan

Some of my unit tests are failing wehn I run a maven builf and this results
in a failed build. Is there a way so tht the build doesnt fail and the
surefire reports gets generated even when a few tests fail?

tried a few options but nothings seems to work. 
-- 
View this message in context: 
http://www.nabble.com/skipping-surefire-report-failure-tf3645559s177.html#a10181405
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: Releasing from multiple modules

2007-04-25 Thread James Abley

Thanks for that link, that does seem very useful to know.

Any comments on my suggested approach of releasing content? I'm trying
to understand what Maven buys me by using the

mvn release:prepare

approach.

Cheers,

James

On 25/04/07, Damien Lecan [EMAIL PROTECTED] wrote:

 I'm fairly new to Maven2 and haven't used it much in situations more
 complex than those described in the documentation. But now I have hit
 an issue that I haven't been able to find much documentation on this
 subject[1]
 
http://docs.codehaus.org/display/MAVENUSER/How+to+handle+releases+with+multiple+SNAPSHOT+dependents

Use version range ?
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution

Damien

-
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: skipping surefire-report failure

2007-04-25 Thread Wendy Smoak

On 4/25/07, monsterkhan [EMAIL PROTECTED] wrote:


Some of my unit tests are failing wehn I run a maven builf and this results
in a failed build. Is there a way so tht the build doesnt fail and the
surefire reports gets generated even when a few tests fail?

tried a few options but nothings seems to work.


Configure the plugin with testFailureIgnore set to true.

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore

I think it also works on the command line with -Dtest.failure.ignore=true

--
Wendy

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



GPG plugin just for deploy?

2007-04-25 Thread Howard Lewis Ship

The direction for using the GPG plugin are:

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-gpg-plugin/artifactId
   executions
 execution
   idsign-artifacts/id
   phaseverify/phase
   goals
 goalsign/goal
   /goals
 /execution
   /executions
 /plugin


However, this is going to run the GPG plugin every time I run install (I
tested).

That's a problem for me, and a problem for my continuous integration server.

I don't want to store a public key passphrase in my settings.xml.

How can I ensure that the GPG plugin is only used when I'm using the deploy
goal?

And is there a hook for signing assemblies as well as aritfacts?

Thanks!


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Is it possible to specify a password to CVS using ext?

2007-04-25 Thread DATACOM - Diego

Hi all,

I am new to Maven and I am using version 2.0.6 on a Windows box.

I configured my POM to access a CVS server using the ext (ssh) method like this:

scm
  connectionscm:cvs:ext:[EMAIL 
PROTECTED]:/home/cvsroot/myproject:mymodule/connection
  developerConnectionscm:cvs:ext:[EMAIL 
PROTECTED]:/home/cvsroot/myproject:mymodule/developerConnection
  tagHEAD/tag
/scm

When I type:

mvn scm:update

It fails with:

java.lang.IllegalArgumentException: password argument is null
  at ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)
  at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:122)
  at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:164)
  ...

I have tried many ways of specifying the password, but all of them failed. Is 
it possible to specify a password to CVS using ext? Do I need to be logged in 
to the CVS server when I run Maven? (Using pserver or migrating to Subversion 
are not options to me right now.)

Thanks in advance,

--
DIEGO Moreira da Rosa

DATACOM
Av França, 735 - Porto Alegre, RS - 90230-220
DDR: +55 51 3358 0141
Fax: +55 51 3358 0101
site: www.datacom.ind.br
e-mail: [EMAIL PROTECTED]

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



Re: GPG plugin just for deploy?

2007-04-25 Thread Wendy Smoak

On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


However, this is going to run the GPG plugin every time I run install (I
tested).

...

How can I ensure that the GPG plugin is only used when I'm using the deploy
goal?


Put the plugin execution config in a profile, and only enable it when
you want to sign the artifacts.

Using a profile id of 'release' works well for this as it seems to get
enabled automatically by the release plugin.

--
Wendy

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



Re: skipping surefire-report failure

2007-04-25 Thread monsterkhan

Thanks Wendy,
  But seems this isnt working, I tried running mvn -N
-Dtest.failure.ignore=true and mvn -N -Dmaven.test.failure.ignore=true
but seems it doesnt work. As for the testFailureIgnore ignore I cant
configure that as I have configure tht as the I am not generating a complete
surefire-report, just running the unit tests as of now.






Wendy Smoak-3 wrote:
 
 On 4/25/07, monsterkhan [EMAIL PROTECTED] wrote:

 Some of my unit tests are failing wehn I run a maven builf and this
 results
 in a failed build. Is there a way so tht the build doesnt fail and the
 surefire reports gets generated even when a few tests fail?

 tried a few options but nothings seems to work.
 
 Configure the plugin with testFailureIgnore set to true.
 
 http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#testFailureIgnore
 
 I think it also works on the command line with -Dtest.failure.ignore=true
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/skipping-surefire-report-failure-tf3645559s177.html#a10181942
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: jar with dependencies in a folder

2007-04-25 Thread Wayne Fay

Its not clear what you want...

First you say you want your jar plus all dependencies. Jo gave that to
you and you were happy.

Now you come back and you've changed your mind.

What exactly are you looking for?

Wayne

On 4/25/07, JavierL [EMAIL PROTECTED] wrote:



Hi

I'm trying with this plugin to get what I waht but without success...

I see jar-with-dependencies but I don't want this. With this assembly my 82k
application jar will weight around 6MB (because will include Spring,
Hibernate and so on). If each time I need to make a fix in my app, I'll need
to distribute 6MB...


I need to get a zip to make a initial distribution of my app. It shoud
include my app.jar file and lib folder with all my jar dependencies.

After read docs I did:

-
assembly
   idmydist/id
   formats
   formatzip/format
   /formats
   includeBaseDirectoryfalse/includeBaseDirectory
   dependencySets
   dependencySet
   outputDirectory/outputDirectory
   outputFileNameMapping/outputFileNameMapping
   unpackfalse/unpack
   scopecompile/scope
   /dependencySet
   /dependencySets
   files
   file
   sourcetarget/aplicacionb-2.0.jar/source
   outputDirectory/outputDirectory
   /file
   /files
/assembly
-

And it generates a zip file with my app.jar but no notices about
dependencies jar !

Could somebody please give me a clue ?

Thanks in advance

J

--
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10178691
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]



Re: Generated site search in maven2

2007-04-25 Thread Wayne Fay

I'm not 100% positive, but I don't believe there is any similar
search/ capability with Maven2 site plugin. At least, I've never
seen anyone mention it previously on this list, or ask about it...
you're the first!

What does the maven-site-plugin documentation say about this issue?

Wayne

On 4/25/07, Luchesar Cekov [EMAIL PROTECTED] wrote:

Hi,

I am migrating a project that uses maven1 to maven2 build infrastructure.

In maven1 site generation user can add a search mechanism by adding a

search/
element it its navifation.xml

When I tried to add the same in maven2 site.xml I got the error:
Embedded error: Unrecognised tag: 'search' during site goal execution.

How can i substitute search/ element from navigation.xml in site.xml?

Thanks,
Lucho

-
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: GPG plugin just for deploy?

2007-04-25 Thread Howard Lewis Ship

Thanks, I'll give it a shot.  Thanks for the quick reply.

On 4/25/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

 However, this is going to run the GPG plugin every time I run install (I
 tested).
...
 How can I ensure that the GPG plugin is only used when I'm using the
deploy
 goal?

Put the plugin execution config in a profile, and only enable it when
you want to sign the artifacts.

Using a profile id of 'release' works well for this as it seems to get
enabled automatically by the release plugin.

--
Wendy

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Problems with Maven, Hibernate and Spring

2007-04-25 Thread Trevor Torrez

You should be referencing the hibernate mappings as
classpath:/path/to/**/*.hbm.xml.  Having a path is imoprtant -- do
not just dump the config files for spring or hibernate in the top
level of src/main/resources; then in the resource location specify at
least one folder in the package structure before using any
wildcards; this is to work around a known issue with the JVM and
wildcard pattern matching.  See the documentation for the pattern
matcher 
(http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/core/io/support/PathMatchingResourcePatternResolver.html).
Note in Spring 2.x you should be using classpath*:/etc/etc, not
just classpath:.

As for leaving the config outside the jar for assemblies, configure
the assembly profile as follows:

Several tricks are used to achieve the result:
* The main resources go to (effectively) target/config
* The main classes still go to target/classes
* The jar plugin is explicitly told to only include the classes
* The surefire plugin is told to skip tests
* The assembly plugin is configured as normal.

The reason that you cannot run tests is because the normal configs (if
your tests rely on them) are no longer in the classapth, and there is
no way I can figure to get maven to add an arbitrary folder to the
classpath (despite the build being told where the resources are :-/ ).
Because this is an abberation, the assembly execution cannot coincide
with the normal development execution.

Anyway, here's the pom:

   profile
 idassembly/id
 build
   resources
 resource
   directorysrc/main/resources/directory
   targetPath../config/targetPath
 /resource
   /resources
   plugins
 plugin
   artifactIdmaven-jar-plugin/artifactId
   executions
 execution
   goals
 goaljar/goal
   /goals
   configuration
 classesDirectorytarget/classes/classesDirectory
   /configuration
 /execution
   /executions
 /plugin
 plugin
   artifactIdmaven-surefire-plugin/artifactId
   configuration
 skiptrue/skip
   /configuration
 /plugin
 plugin
   artifactIdmaven-assembly-plugin/artifactId
   executions
 execution
   phasepackage/phase
   goals
 goalassembly/goal
   /goals
 /execution
   /executions
   configuration
 descriptors
   descriptorsrc/assembly/dos.xml/descriptor
 /descriptors
 outputDirectorytarget/artifacts/outputDirectory
 workDirectorytarget/assembly/work/workDirectory
   /configuration
 /plugin
   /plugins
 /build
   /profile


See the documentation on the maven assembly plugin for how to create assemblies.

-t.

On 4/14/07, Colin Young [EMAIL PROTECTED] wrote:

I'm building a project that uses Spring and Hibernate with Maven. So far
I've been able to get a jar of just my project or a jar of everything
with dependencies (using assembly:assembly). Unfortunately, when I do
the with dependencies build, I'm getting errors from Spring trying to
find the Hibernate mapping files inside the jar. They are in the same
location inside the jar as in the non-dependency jar (and the same as
the manually built jars from the pre-Maven builds). I'm using the
standard Maven directory structure for my project.

Is there something special about the with dependency jars? Is there a
special way I need to specify the classpath? Previously I was able to
just specify the jar as part of the classpath, but that doesn't seem to
be working for the Maven-built jar.

Also, the assembly:assembly build is placing my Spring xml configuration
and properties files inside the jar. I'm having a bit of trouble
figuring out how to configure my pom to achieve that, since the
documentation is a bit sparse. Does someone have an example of how to do
that?

Thanks

Colin



-
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: Creating a target/lib with all project dependencies

2007-04-25 Thread Trevor Torrez

the build-classpath seems to be broken on windows:

c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0.jar:c:\
webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-local-re

Its separating the elements with ':' not ';' -- did someone not use
File.PATH_SEPARATOR ?

On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:

Hello Craig,

You can use the maven-dependency-plugin's copy/copy-dependencies goals for
that.  But if you just need the classpath, try `mvn
dependency:build-classpath'.

Please read here http://maven.apache.org/plugins/maven-dependency-plugin

Cheers!
Nap

On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:

 I'm trying to have maven build a target/lib that contains all of the
 runtime dependencies of the project so I can use lib/*.jar as an ant
 classpath.

 Is there a plugin that I can use that packages the dependencies into
 target/lib? I know that some plugins package this as part of their
 execution model but can't exactly figure out what I need to do to
 make this happen outside the plugin.

 Thanks,

 Craig

 Craig Russell
 Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
 408 276-5638 mailto:[EMAIL PROTECTED]
 P.S. A good JDO? O, Gasp!






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



Re: Exclude some classes when package a jar.

2007-04-25 Thread Trevor Torrez

How would you post process a jar and what phase would that process
be bound to?

On 4/11/07, Jerome Lacoste [EMAIL PROTECTED] wrote:

On 4/11/07, JesseLiu [EMAIL PROTECTED] wrote:
 All,
 I have a jar project.  When packaging,  I want  some specified class excuded 
from the jar file. How should I do ?

 Thanks for any suggestions!

not sure if this is possible before the packaging. You can always
post-process your jar to remove some classes,  but I wonder why you
need that

What kind of classes do you need to remove ?

Jerome

-
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: [m2] Integration-test target runs integration tests twice...

2007-04-25 Thread Chris Richardson

Was there any decision as to whether this (ie. surefire configuration
in parent POM causing surefire plugin in child POM that's bound to the
integration-test phase to run twice) is a bug or feature?
Any maven committers out there?

Chris

--
Enterprise POJO consulting - http://www.chrisrichardson.net
Author, POJOs in Action - http://www.manning.com/crichardson
Enterprise POJOs blog - http://chris-richardson.blog-city.com



On 2/20/07, Thierry Lach [EMAIL PROTECTED] wrote:

I'm not part of the maven developers, but on the surface, if any plugin
finds two different configurations, it wouldn't surprise me if it ran once
for each of them.

On 2/19/07, EJ Ciramella [EMAIL PROTECTED] wrote:

 We did and that's how we diagnosed this, but that doesn't answer the
 question if this is a bug or not.

 Is this what it's supposed to do?  Find a surefire configuration and run
 twice with it?  The lowerlevel one is only activated when a profile is
 activated via a property setting (which works flawlessly).

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 19, 2007 12:11 PM
 To: Maven Users List
 Subject: Re: [m2] Integration-test target runs integration tests
 twice...

 FYI for the future... Next time, use mvn help:effective-pom to help
 diagnose problems like this.

 Wayne

 On 2/19/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  Ok, so I seem to have found out why this is happening.  At the top
 most
  pom, we have a minor surefire configuration (we'd like all the
 unittests
  to wind up in one central location for processing).  When maven see
 this
  AND the child pom with a different path to that main folder, maven
  decides to run the unittests twice.
 
  If I remove the surefire configuration from the parent pom, maven only
  runs the tests once.
 
  This is a bug with maven2, correct or is this how its supposed to
  operate?
 

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





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



[ANN] Maven Source Plugin 2.0.3 released

2007-04-25 Thread Stephane Nicoll

The Maven team is pleased to announce the release of the Maven Source Plugin
version 2.0.3.

http://maven.apache.org/plugins/maven-source-plugin/


Release Notes - Maven 2.x Sources Plugin - Version 2.0.3

** Bug
   * [MSOURCES-6] - Sources plugin ignores resource includes/excludes
   * [MSOURCES-12] - size of source jar grows and grows

** Improvement
   * [MSOURCES-11] - When source plugin is used, it should make sure
it is invoked during install


Enjoy!

-The Maven team

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



Source filtering

2007-04-25 Thread Steven Rowe
Hi,

I want to be able to interpolate ${pom.version} in Java source code
before compilation.  How can I do this?

I see that there is a simple way to turn on resource filtering, but that
does not appear to be applicable to source code.

I also see that the process-sources phase is where source filtering
should be done, but I can find no description of how to do this.

What am I missing?

Steve

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



commons-logging dependency

2007-04-25 Thread Trevor Torrez

I'm trying to eliminate commons-logging from being transitively passed
on to projects that depend on my library and my library uses spring.
Spring uses commons-logging but doesn't mark it as optional or
scope:provided, however when I try to exclude commons logging from a
spring dependency, I no longer get it even though it is declared in my
pom.

Here's a simple pom which exposes the problem (maven 2.0.4):

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdsome.groupid/groupId
 artifactIdblah/artifactId
 packagingjar/packaging
 version1.0-SNAPSHOT/version
 nameblah/name
 urlhttp://maven.apache.org/url

 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
   /dependency

   dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.1/version
 scopeprovided/scope
 exclusions
   exclusion
 groupIdavalon-framework/groupId
 artifactIdavalon-framework/artifactId
   /exclusion
   exclusion
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
   /exclusion
   exclusion
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
   /exclusion
   exclusion
 groupIdlogkit/groupId
 artifactIdlogkit/artifactId
   /exclusion
 /exclusions
   /dependency

   dependency
 groupIdorg.springframework/groupId
 artifactIdspring-dao/artifactId
 version2.0/version
 exclusions
   exclusion
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
   /exclusion
 /exclusions
   /dependency
 /dependencies
/project

Now if you remove the commons-logging exclusion from the spring-dao
dependency, commons-logging get correctly pulled down.  Also note that
this problem does NOT surface if I use spring-context even though the
poms appear to be practically identical.

Whats going on?

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



Re: commons-logging dependency

2007-04-25 Thread Wendy Smoak

On 4/25/07, Trevor Torrez [EMAIL PROTECTED] wrote:

I'm trying to eliminate commons-logging from being transitively passed
on to projects that depend on my library and my library uses spring.
Spring uses commons-logging but doesn't mark it as optional or
scope:provided, however when I try to exclude commons logging from a
spring dependency, I no longer get it even though it is declared in my
pom.


You don't need the exclusion.  Just declare commons-logging 1.1 and
that will override the version coming from Spring.

--
Wendy

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



Re: jar with dependencies in a folder

2007-04-25 Thread JavierL


Wayne Fay wrote:
 
 Its not clear what you want...
 
 First you say you want your jar plus all dependencies. Jo gave that to
 you and you were happy.
 
 Now you come back and you've changed your mind.
 
 What exactly are you looking for?
 

Ouch, sorry, my english is not as good as I would like.

To be clear I never said I want dependencies  _inside_ my jar. I said I want
to distribute my jar app with all dependencies inside a lib folder.

The first time I distribute my app I'll need to distribute this big zip
file. But then, if I need to distribute a change in my app I'll need to
distribute just my little jar application without the dependencies.

To be more clear, this is what I get with my ant task in target folder:

-
aplicacionb-2.0.jar
aplicacionb.properties
log4j.xml
¦
+---lib
ant-1.6.2.jar
antlr-2.7.6.jar
aopalliance-1.0.jar
asm-1.5.3.jar
asm-attrs-1.5.3.jar
avalon-framework-4.1.3.jar
backport-util-concurrent-2.0_01_pd.jar
cglib-2.1_3.jar
commons-beanutils-1.7.0.jar
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-discovery-0.4.jar
commons-lang-2.1.jar
commons-logging-1.1.jar
commons-pool-1.2.jar
dbunit-2.2.jar
dom4j-1.6.1.jar
ehcache-1.2.3.jar
hibernate-3.2.2.ga.jar
etc, etc, etc 
--

and then I compress everything by hand with winzip to get aplicacionb.zip. 

I want to get this with maven2.

Is it possible ?

Thanks in advance

J







-- 
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10185870
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: Writing a portable CVS configuration using maven2

2007-04-25 Thread Jerome Thibaud

Hi,
Thank you for these advices, I will try them out.

regards

J.T.


On 4/25/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:




Jerome Thibaud a écrit :
 Hi All,

 1.
 Assuming several users connecting to a CVS server using ext method and
 ssh.
 As far as I understand, the pom.xml, checked out from CVS  is the same
for
 everyone.
 Only the settings.xml and maybe cvs-settings.xml might have specific
 content
 for each user, right ?

yes.


 In the scm plugin documentation they expect the scm URL to be written in
 the
 pom as follow:
  scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

 how can I organize everything so that the user name, password or private
 key
 are provided outside of the pom,
 in some user specific resource?
 What are the recommended practices?

you can use a scm url like that:
scm:cvs:ext:[EMAIL PROTECTED]:/usr/local/cvs:module_name

where cvs.username property is defined on the command line or in your
settings.xml
You can remove ${cvs.username} from your scm connection url too and
specify the username as a parameter of the plugin you use.

What is the plugin you use?



 2.
 How do I control the command line options? I see by default
 scm:update = cvs -z3 -f -q update -d

 I don't want the -f cvs option

It's explain in http://maven.apache.org/scm/cvs.html
You can remove it by adding useCvsrctrue/useCvsrc in your
cvs-settings.xml

 I'd like a -P update option

You can add it in your .cvsrc file



 3. Can somebody clarify the difference between connection and developper
 connection? When is each one used?

connection is generally for anonymous access and developer connection for
authenticated access

Emmanuel


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




Re: Project with multiple Modules and 3rd party dependency

2007-04-25 Thread Tim Kettler
Hi,

see the links to the mine-guides below.

-Tim

[1] http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
[2] http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html


Am Mittwoch, den 25.04.2007, 11:12 -0700 schrieb archmarinaro:
 I have a project with multiple Modules:  A, B and Z
 Module Z has my source in it but I need a third parties (3Ps) software
 delivery of jars in the Classpath in order to mvn compile module Z.
 The 3Ps delivers to me a zip file which contains multiple directories (bin,
 data, lib, ...) lib contains the jar files I need to compile module Z with.
 How do I get these lib jar files in the Classpath in order to compile the
 Z-module?
 
 thanks
  
 
 


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



Re: jar with dependencies in a folder

2007-04-25 Thread Wayne Fay

Ah! In that case, you want to use the maven-dependency-plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/

Wayne

On 4/25/07, JavierL [EMAIL PROTECTED] wrote:



Wayne Fay wrote:

 Its not clear what you want...

 First you say you want your jar plus all dependencies. Jo gave that to
 you and you were happy.

 Now you come back and you've changed your mind.

 What exactly are you looking for?


Ouch, sorry, my english is not as good as I would like.

To be clear I never said I want dependencies  _inside_ my jar. I said I want
to distribute my jar app with all dependencies inside a lib folder.

The first time I distribute my app I'll need to distribute this big zip
file. But then, if I need to distribute a change in my app I'll need to
distribute just my little jar application without the dependencies.

To be more clear, this is what I get with my ant task in target folder:

-
aplicacionb-2.0.jar
aplicacionb.properties
log4j.xml
¦
+---lib
   ant-1.6.2.jar
   antlr-2.7.6.jar
   aopalliance-1.0.jar
   asm-1.5.3.jar
   asm-attrs-1.5.3.jar
   avalon-framework-4.1.3.jar
   backport-util-concurrent-2.0_01_pd.jar
   cglib-2.1_3.jar
   commons-beanutils-1.7.0.jar
   commons-collections-3.1.jar
   commons-dbcp-1.2.1.jar
   commons-discovery-0.4.jar
   commons-lang-2.1.jar
   commons-logging-1.1.jar
   commons-pool-1.2.jar
   dbunit-2.2.jar
   dom4j-1.6.1.jar
   ehcache-1.2.3.jar
   hibernate-3.2.2.ga.jar
   etc, etc, etc
--

and then I compress everything by hand with winzip to get aplicacionb.zip.

I want to get this with maven2.

Is it possible ?

Thanks in advance

J







--
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10185870
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]



Re: Creating a target/lib with all project dependencies

2007-04-25 Thread Dan Tran

appassembler-maven-plugin:create-repository

On 4/25/07, Brian E. Fox [EMAIL PROTECTED] wrote:


Probably. Can you file a jira?

-Original Message-
From: Trevor Torrez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 11:39 AM
To: Maven Users List
Subject: Re: Creating a target/lib with all project dependencies

the build-classpath seems to be broken on windows:

c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0
.jar:c:\
webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-
local-re

Its separating the elements with ':' not ';' -- did someone not use
File.PATH_SEPARATOR ?

On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:
 Hello Craig,

 You can use the maven-dependency-plugin's copy/copy-dependencies goals

 for that.  But if you just need the classpath, try `mvn
 dependency:build-classpath'.

 Please read here
 http://maven.apache.org/plugins/maven-dependency-plugin

 Cheers!
 Nap

 On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:
 
  I'm trying to have maven build a target/lib that contains all of the

  runtime dependencies of the project so I can use lib/*.jar as an ant

  classpath.
 
  Is there a plugin that I can use that packages the dependencies into

  target/lib? I know that some plugins package this as part of their
  execution model but can't exactly figure out what I need to do to
  make this happen outside the plugin.
 
  Thanks,
 
  Craig
 
  Craig Russell
  Architect, Sun Java Enterprise System
  http://java.sun.com/products/jdo
  408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
 
 
 


-
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: Oddness with the site plugin

2007-04-25 Thread James CE Johnson
 Not sure if it'd work, but you could try to move the contents of
 util/pom.xml into util/build/pom.xml. This would make build your  parent
 project. Then you would eliminate util/pom.xml.

Yes, that's a good idea. But I need util/pom.xml because I have another
layer above that and I want it to be able to build the whole tree. That is,
my full tree looks something like:

/myCo
/myCo/common
/myCo/common/build
/myCo/common/build/pom.xml
/myCo/common/util
/myCo/common/util/...
/myCo/common/tools
/myCo/common/tools/...

/myCo/common/build/pom.xml is, ultimately, my ancestral pom that holds all
of my common build configuration. e.g. -- configuration of common plugins,
commonly used dependencies and properties, etc... Every project extends that
either directly or indirectly.

I need to point my continuous integration to /myCo/common to build my
common world and the resulting site should, ideally, reflect all of the
subprojects.

I *think* I can rearrange the lineage such that it all works out without too
much pain. I was just a bit surprised to discover that the modules-parent
linkage is bi-directional. In fact, now that I know that, I'm a little
surprised that maven didn't throw an exception because I had, effectively,
project A with child (module) B which had parent C.

 James CE Johnson wrote:
 Apparently I have something of an odd use-case in the way I'm
 structuring my projects. I'm open to advice...

 I have the following project structure:
 .../util/pom.xml
 .../util/build/pom.xml
 .../util/lang/pom.xml
 .../util/io/pom.xml
 .../util/misc/pom.xml

 .../util/build/pom.xml defines my common dependencies, properties, etc.
 Every other pom.xml in .../util (including .../util/pom.xml) extends
 this one.

 In .../util/pom.xml I have a modules tag that defines build, lang, io
 and misc so that everything is built.

 All good so far.

 Now, when I do 'mvn site' it will happily build target/site in all of
 the modules but when I point my browser to
 .../util/target/site/index.html I have a 'Modules' heading but no links
 to modules.

 After playing around a bit I realized that the only way to get the
 modules into .../util/target/site/index.html is for each one to extend
 .../util/pom.xml instead of .../util/build/pom.xml.

 FWIW: I use .../util/build/pom.xml because Eclipse is stupid and won't
 let me setup a project at .../util as well as each of
 .../util/(lang|io|misc).

 Is there a way to leverage the goodness of inheritance without loosing
 the multi-project site functionality?

 Thanks,
 James

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

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



Re: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Kathryn Huxtable
Are you sure? I'm getting the following in my catalina.out file:

2007-04-25 12:47:19,655 [INFO ] webapp.servlet.ArtifactoryContextConfigurer
- Starting Artifactory...
2007-04-25 12:47:19,715 [INFO ]
webapp.spring.ArtifactoryWebApplicationContext  - Refreshing
[EMAIL PROTECTED]:
display name [Root WebApplicationContext]; startup date [Wed Apr 25 12:47:19
CDT 2007]; root of context hierarchy
2007-04-25 12:47:20,197 [INFO ]
webapp.spring.ArtifactoryWebApplicationContext  - Bean factory for
application context
[EMAIL PROTECTED]:
[EMAIL PROTECTED]
2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
Loading configuration (using
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml')...
2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
Trying to load configuration from url...
2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
Could not load configuration from url
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'. (no
protocol: 
/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml).
2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
Trying to load configuration from regular path file reosurce
2007-04-25 12:47:20,853 [ERROR] repo.spring.CentralConfigFactoryBean  -
Failed to load configuration from
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'.
java.lang.RuntimeException: Failed to read object from stream.
at org.artifactory.repo.jaxb.JaxbHelper.read(JaxbHelper.java:98)
...
Caused by: java.lang.ClassFormatError: Illegal class modifiers in class
org/artifactory/repo/package-info: 0x1600
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1650) 
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:856) 
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1305) 
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1187) 
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at java.lang.Package.getPackageInfo(Package.java:350)
at java.lang.Package.getAnnotation(Package.java:361)
at 
com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
eAnnotation(RuntimeInlineAnnotationReader.java:85)
at 
com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
eAnnotation(RuntimeInlineAnnotationReader.java:17)
at 
com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.ja
va:86) 
at 
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.init(ClassInfoImpl.java:127)
at 
com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.init(RuntimeClassInfoI
mpl.java:51) 
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
delBuilder.java:58)
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
delBuilder.java:40)
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:1
23) 
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
Builder.java:48) 
at 
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
Builder.java:40) 
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:18
9) 
at 
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:20
4) 
at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
ava:356) 
at 
com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:217)
at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at 
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
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:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at org.artifactory.repo.jaxb.JaxbHelper.read(JaxbHelper.java:80)
...

Any ideas?

-K


On 4/25/07 2:18 AM, Yoav  Landman [EMAIL PROTECTED] wrote:

 
 Not 

Re: Creating a target/lib with all project dependencies

2007-04-25 Thread Dan Tran

but maven-dependency-plugin:copy-dependencies is better ;-)

On 4/25/07, Dan Tran [EMAIL PROTECTED] wrote:


appassembler-maven-plugin:create-repository

On 4/25/07, Brian E. Fox [EMAIL PROTECTED] wrote:

 Probably. Can you file a jira?

 -Original Message-
 From: Trevor Torrez [mailto: [EMAIL PROTECTED]
 Sent: Wednesday, April 25, 2007 11:39 AM
 To: Maven Users List
 Subject: Re: Creating a target/lib with all project dependencies

 the build-classpath seems to be broken on windows:

 c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0
 .jar:c:\
 webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-
 local-re

 Its separating the elements with ':' not ';' -- did someone not use
 File.PATH_SEPARATOR ?

 On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:
  Hello Craig,
 
  You can use the maven-dependency-plugin's copy/copy-dependencies goals


  for that.  But if you just need the classpath, try `mvn
  dependency:build-classpath'.
 
  Please read here
  http://maven.apache.org/plugins/maven-dependency-plugin
 
  Cheers!
  Nap
 
  On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:
  
   I'm trying to have maven build a target/lib that contains all of the


   runtime dependencies of the project so I can use lib/*.jar as an ant

   classpath.
  
   Is there a plugin that I can use that packages the dependencies into

   target/lib? I know that some plugins package this as part of their
   execution model but can't exactly figure out what I need to do to
   make this happen outside the plugin.
  
   Thanks,
  
   Craig
  
   Craig Russell
   Architect, Sun Java Enterprise System
   http://java.sun.com/products/jdo
   408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
  
  
  
 

 -
 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: Trouble downloading from local and remote repositories when running Continuum as a service

2007-04-25 Thread Williamson, James L
DONE

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 11:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Trouble downloading from local and remote repositories when
running Continuum as a service

On 4/25/07, Williamson, James L [EMAIL PROTECTED] wrote:

 Thanks for asking the question Wayne - you're the man.

 For the benefit of anybody with the same problem: I was running the
 service using the Local System account Log On credentials.  I changed
 the Log On credentials to specify my NT Login and password and now it
 works fine.  Looking back at the Continuum Getting Started Guide, it
 explicitly states: By default, the service logs on as the Local
System
 account. Be sure to change this to an account where you want the
service
 to start upon login.
 I had supposed this meant change it if you want the service to run in
 some location other than your local machine.  However, be aware that
you
 will need to change it if you want your service to work correctly.
 These changes can be made under Computer Management.

Thanks for reporting back with the solution.  Could you open an issue
with a suggestion for making that part of the documentation clearer?

http://jira.codehaus.org/browse/CONTINUUM

-- 
Wendy


Re: commons-logging dependency

2007-04-25 Thread Trevor Torrez

The problem arises when blah is used as a dependency in a downstream
project that is not using commons logging at all (ie, slf4j); since
that project will not have commons logging as a dependency it gets
resolved and included in the project from the transitive dependency on
spring-dao.  Since it is not known why this is happening, is the only
solution to have every project either exclude it from just about every
framework dependency or declare it but never both?

Did global transitive dependency exclusions make it into the feature
set of maven?

On 4/25/07, Wendy Smoak [EMAIL PROTECTED] wrote:

On 4/25/07, Trevor Torrez [EMAIL PROTECTED] wrote:
 I'm trying to eliminate commons-logging from being transitively passed
 on to projects that depend on my library and my library uses spring.
 Spring uses commons-logging but doesn't mark it as optional or
 scope:provided, however when I try to exclude commons logging from a
 spring dependency, I no longer get it even though it is declared in my
 pom.

You don't need the exclusion.  Just declare commons-logging 1.1 and
that will override the version coming from Spring.

--
Wendy

-
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: Creating a target/lib with all project dependencies

2007-04-25 Thread Trevor Torrez

Whats the jira url?  I think I tried for something but I couldn't even
figure out how to register.

Thanks

On 4/25/07, Brian E. Fox [EMAIL PROTECTED] wrote:

Probably. Can you file a jira?

-Original Message-
From: Trevor Torrez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 11:39 AM
To: Maven Users List
Subject: Re: Creating a target/lib with all project dependencies

the build-classpath seems to be broken on windows:

c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0
.jar:c:\
webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-
local-re

Its separating the elements with ':' not ';' -- did someone not use
File.PATH_SEPARATOR ?

On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:
 Hello Craig,

 You can use the maven-dependency-plugin's copy/copy-dependencies goals

 for that.  But if you just need the classpath, try `mvn
 dependency:build-classpath'.

 Please read here
 http://maven.apache.org/plugins/maven-dependency-plugin

 Cheers!
 Nap

 On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:
 
  I'm trying to have maven build a target/lib that contains all of the

  runtime dependencies of the project so I can use lib/*.jar as an ant

  classpath.
 
  Is there a plugin that I can use that packages the dependencies into

  target/lib? I know that some plugins package this as part of their
  execution model but can't exactly figure out what I need to do to
  make this happen outside the plugin.
 
  Thanks,
 
  Craig
 
  Craig Russell
  Architect, Sun Java Enterprise System
  http://java.sun.com/products/jdo
  408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
 
 
 


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




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



Re: jar with dependencies in a folder

2007-04-25 Thread Tim Kettler
Hi,

The dependencies are missing because you specified a scope of 'compile',
while the default scope for dependencies is 'runtime'. Just remove the
scope restriction from the assembly descriptor and the dependencies
should be included.

-Tim

Am Mittwoch, den 25.04.2007, 04:10 -0700 schrieb JavierL:
 
 Hi
 
 I'm trying with this plugin to get what I waht but without success...
 
 I see jar-with-dependencies but I don't want this. With this assembly my 82k
 application jar will weight around 6MB (because will include Spring,
 Hibernate and so on). If each time I need to make a fix in my app, I'll need
 to distribute 6MB...
 
 
 I need to get a zip to make a initial distribution of my app. It shoud
 include my app.jar file and lib folder with all my jar dependencies.
 
 After read docs I did:
 
 -
 assembly
   idmydist/id
   formats
   formatzip/format
   /formats
   includeBaseDirectoryfalse/includeBaseDirectory
   dependencySets
   dependencySet
   outputDirectory/outputDirectory
   outputFileNameMapping/outputFileNameMapping
   unpackfalse/unpack
   scopecompile/scope
   /dependencySet
   /dependencySets
   files
   file
   sourcetarget/aplicacionb-2.0.jar/source
   outputDirectory/outputDirectory 
   /file
   /files
 /assembly
 -
 
 And it generates a zip file with my app.jar but no notices about
 dependencies jar !
 
 Could somebody please give me a clue ?
 
 Thanks in advance
 
 J
 


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



Project with multiple Modules and 3rd party dependency

2007-04-25 Thread archmarinaro

I have a project with multiple Modules:  A, B and Z
Module Z has my source in it but I need a third parties (3Ps) software
delivery of jars in the Classpath in order to mvn compile module Z.
The 3Ps delivers to me a zip file which contains multiple directories (bin,
data, lib, ...) lib contains the jar files I need to compile module Z with.
How do I get these lib jar files in the Classpath in order to compile the
Z-module?

thanks
 


-- 
View this message in context: 
http://www.nabble.com/Project-with-multiple-Modules-and-3rd-party-dependency-tf3647162s177.html#a10186463
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: Creating a target/lib with all project dependencies

2007-04-25 Thread Brian E. Fox
Probably. Can you file a jira? 

-Original Message-
From: Trevor Torrez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 11:39 AM
To: Maven Users List
Subject: Re: Creating a target/lib with all project dependencies

the build-classpath seems to be broken on windows:

c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0
.jar:c:\
webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-
local-re

Its separating the elements with ':' not ';' -- did someone not use
File.PATH_SEPARATOR ?

On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:
 Hello Craig,

 You can use the maven-dependency-plugin's copy/copy-dependencies goals

 for that.  But if you just need the classpath, try `mvn 
 dependency:build-classpath'.

 Please read here 
 http://maven.apache.org/plugins/maven-dependency-plugin

 Cheers!
 Nap

 On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:
 
  I'm trying to have maven build a target/lib that contains all of the

  runtime dependencies of the project so I can use lib/*.jar as an ant

  classpath.
 
  Is there a plugin that I can use that packages the dependencies into

  target/lib? I know that some plugins package this as part of their 
  execution model but can't exactly figure out what I need to do to 
  make this happen outside the plugin.
 
  Thanks,
 
  Craig
 
  Craig Russell
  Architect, Sun Java Enterprise System 
  http://java.sun.com/products/jdo
  408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
 
 
 


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



Where's the error ?

2007-04-25 Thread spouynt
Hi maveners,
I've added an external tool compile (the same problem with compiler:compile)

when I run it I get *ONLY* this :

WARN] While downloading xml-apis:xml-apis:2.0.2
  This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[WARN] While downloading jta:jta:1.0.1B
  This artifact has been relocated to javax.transaction:jta:1.0.1B.


[INFO] 

[INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
[INFO]task-segment: [compiler:compile]
[INFO] 

[INFO] Searching repository for plugin with prefix: 'compiler'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] compiler:compile
[INFO] Compiling 523 source files to 
C:\works\workspaceM2\TutelecOJV-v1.3\target\classes
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com:AstreeTutelec:jar:1.3 (  task-segment: 
[compiler:compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 8 more


where's the error ?

please help

Thanks
Nawfel




  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Wayne Fay

Check your JDK version. I found the following on Java.net forums which
seems to be related (??):
http://forums.java.net/jive/message.jspa?messageID=177256

Wayne

On 4/25/07, Kathryn Huxtable [EMAIL PROTECTED] wrote:

Are you sure? I'm getting the following in my catalina.out file:

2007-04-25 12:47:19,655 [INFO ] webapp.servlet.ArtifactoryContextConfigurer
- Starting Artifactory...
2007-04-25 12:47:19,715 [INFO ]
webapp.spring.ArtifactoryWebApplicationContext  - Refreshing
[EMAIL PROTECTED]:
display name [Root WebApplicationContext]; startup date [Wed Apr 25 12:47:19
CDT 2007]; root of context hierarchy
2007-04-25 12:47:20,197 [INFO ]
webapp.spring.ArtifactoryWebApplicationContext  - Bean factory for
application context
[EMAIL PROTECTED]:
[EMAIL PROTECTED]
2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
Loading configuration (using
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml')...
2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
Trying to load configuration from url...
2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
Could not load configuration from url
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'. (no
protocol:
/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml).
2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
Trying to load configuration from regular path file reosurce
2007-04-25 12:47:20,853 [ERROR] repo.spring.CentralConfigFactoryBean  -
Failed to load configuration from
'/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'.
java.lang.RuntimeException: Failed to read object from stream.
   at org.artifactory.repo.jaxb.JaxbHelper.read(JaxbHelper.java:98)
...
Caused by: java.lang.ClassFormatError: Illegal class modifiers in class
org/artifactory/repo/package-info: 0x1600
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1650)
   at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:856)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1305)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1187)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:242)
   at java.lang.Package.getPackageInfo(Package.java:350)
   at java.lang.Package.getAnnotation(Package.java:361)
   at
com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
eAnnotation(RuntimeInlineAnnotationReader.java:85)
   at
com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
eAnnotation(RuntimeInlineAnnotationReader.java:17)
   at
com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.ja
va:86)
   at
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.init(ClassInfoImpl.java:127)
   at
com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.init(RuntimeClassInfoI
mpl.java:51)
   at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
delBuilder.java:58)
   at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
delBuilder.java:40)
   at
com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:1
23)
   at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
Builder.java:48)
   at
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
Builder.java:40)
   at
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:18
9)
   at
com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:20
4)
   at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
ava:356)
   at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:217)
   at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
   at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
   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:585)
   at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
   at javax.xml.bind.ContextFinder.find(ContextFinder.java:368)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
   at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
   at 

Re: Where's the error ?

2007-04-25 Thread Wayne Fay

Please show us the relevant portions of your pom.

Wayne

On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Hi maveners,
I've added an external tool compile (the same problem with compiler:compile)

when I run it I get *ONLY* this :

WARN] While downloading xml-apis:xml-apis:2.0.2
 This artifact has been relocated to xml-apis:xml-apis:1.0.b2.


[WARN] While downloading jta:jta:1.0.1B
 This artifact has been relocated to javax.transaction:jta:1.0.1B.


[INFO] 

[INFO] Building Unnamed - com:AstreeTutelec:jar:1.3
[INFO]task-segment: [compiler:compile]
[INFO] 

[INFO] Searching repository for plugin with prefix: 'compiler'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] compiler:compile
[INFO] Compiling 523 source files to 
C:\works\workspaceM2\TutelecOJV-v1.3\target\classes
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com:AstreeTutelec:jar:1.3 (  task-segment: 
[compiler:compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
   at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
   at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
   at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation 
failure
   at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
   at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
   ... 8 more


where's the error ?

please help

Thanks
Nawfel





___
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com


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



Re : Where's the error ?

2007-04-25 Thread spouynt
here I go :

pom popom :


 my  pom.xml 
#
?xml version=1.0?project
  modelVersion4.0.0/modelVersion
  groupIdcom/groupId
  artifactIdmyApp/artifactId
  version1.3/version
  descriptionmyApp-v1.3/description
  build
extensions
  extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-webdav/artifactId
version1.0-beta-2/version
  /extension
/extensions
   
  /build
  !----
  repositories
repository
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  http://localhost:8081/artifactory/repo
/repository
repository
  releases
enabledfalse/enabled
  /releases
  idsnapshots/id
  http://localhost:8081/artifactory/repo
/repository
  /repositories
  pluginRepositories
pluginRepository
  snapshots
enabledfalse/enabled
  /snapshots
  idcentral/id
  http://localhost:8081/artifactory/plugins-releases
/pluginRepository
pluginRepository
  releases
enabledfalse/enabled
  /releases
  idsnapshots/id
  http://localhost:8081/artifactory/plugins-snapshots
/pluginRepository
  /pluginRepositories

  dependencies
dependency
  groupIdasm/groupId
  artifactIdasm/artifactId
  version1.5.3/version
/dependency
dependency
  groupIdasm/groupId
  artifactIdasm-attrs/artifactId
  version1.5.3/version
/dependency
dependency
  groupIdcommons-collections/groupId
  artifactIdcommons-collections/artifactId
  version3.1/version
/dependency
dependency
  groupIdcommons-configuration/groupId
  artifactIdcommons-configuration/artifactId
  version1.2/version
/dependency
dependency
  groupIdcommons-io/groupId
  artifactIdcommons-io/artifactId
  version1.1/version
/dependency
dependency
  groupIdcommons-lang/groupId
  artifactIdcommons-lang/artifactId
  version2.1/version
/dependency
dependency
  groupIdcommons-logging/groupId
  artifactIdcommons-logging/artifactId
  version1.0.4/version
/dependency
dependency
  groupIdcommons-transaction/groupId
  artifactIdcommons-transaction/artifactId
  version1.1/version
/dependency
dependency
  groupIdconcurrent/groupId
  artifactIdconcurrent/artifactId
  version1.3.2/version
/dependency
dependency
  groupIdehcache/groupId
  artifactIdehcache/artifactId
  version1.1/version
/dependency
dependency
  groupIditext/groupId
  artifactIditext/artifactId
  version1.3/version
/dependency
dependency
  groupIdjavax.security/groupId
  artifactIdjaas/artifactId
  version1.0.01/version
/dependency
dependency
  groupIdjavax.security/groupId
  artifactIdjacc/artifactId
  version1.0/version
  classifierfr/classifier
/dependency
dependency
  groupIdc3p0/groupId
  artifactIdc3p0/artifactId
  version0.8.5.2/version
/dependency
dependency
  groupIdjakarta-oro/groupId
  artifactIdjakarta-oro/artifactId
  version2.0.8/version
/dependency
dependency
  groupIdjakarta-slide-webdavlib/groupId
  artifactIdjakarta-slide-webdavlib/artifactId
  version2.2pre1/version
/dependency
dependency
  groupIdjavax.sql/groupId
  artifactIdjdbc-stdext/artifactId
  version2.0/version
/dependency
dependency
  groupIdjdom/groupId
  artifactIdjdom/artifactId
  version1.0/version
/dependency
dependency
  groupIdjgroups/groupId
  artifactIdjgroups/artifactId
  version2.2.7/version
/dependency
dependency
  groupIdcom.sun.jdmk/groupId
  artifactIdjmxtools/artifactId
  version1.2.1/version
/dependency
dependency
  groupIdjta/groupId
  artifactIdjta/artifactId
  version1.0.1B/version
/dependency
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
/dependency
dependency
  groupIdlog4j/groupId
  artifactIdlog4j/artifactId
  version1.2.13/version
  scopecompile/scope
/dependency
dependency
  groupIdmlibwrapper_jai/groupId
  artifactIdmlibwrapper_jai/artifactId
  version1.1.2/version
/dependency
dependency
  groupIdojdbc/groupId
  artifactIdojdbc/artifactId
  version14/version
/dependency
dependency
  groupIdopensymphony/groupId
  artifactIdoscache/artifactId
  version2.3.2/version
/dependency
dependency
  groupIdopensymphony/groupId
  artifactIdoscore/artifactId
  version2.2.4/version
/dependency
dependency
  groupIdportlet-api/groupId
  artifactIdportlet-api/artifactId
  version1.0/version
/dependency
dependency
  

Re: Creating a target/lib with all project dependencies

2007-04-25 Thread Wayne Fay

http://jira.codehaus.org

Wayne

On 4/25/07, Trevor Torrez [EMAIL PROTECTED] wrote:

Whats the jira url?  I think I tried for something but I couldn't even
figure out how to register.

Thanks

On 4/25/07, Brian E. Fox [EMAIL PROTECTED] wrote:
 Probably. Can you file a jira?

 -Original Message-
 From: Trevor Torrez [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 25, 2007 11:39 AM
 To: Maven Users List
 Subject: Re: Creating a target/lib with all project dependencies

 the build-classpath seems to be broken on windows:

 c:\webarch\.maven-local-repo\aopalliance\aopalliance\1.0\aopalliance-1.0
 .jar:c:\
 webarch\.maven-local-repo\asm\asm\1.5.3\asm-1.5.3.jar:c:\webarch\.maven-
 local-re

 Its separating the elements with ':' not ';' -- did someone not use
 File.PATH_SEPARATOR ?

 On 4/14/07, Napoleon Esmundo Ramirez [EMAIL PROTECTED] wrote:
  Hello Craig,
 
  You can use the maven-dependency-plugin's copy/copy-dependencies goals

  for that.  But if you just need the classpath, try `mvn
  dependency:build-classpath'.
 
  Please read here
  http://maven.apache.org/plugins/maven-dependency-plugin
 
  Cheers!
  Nap
 
  On 4/14/07, Craig L Russell [EMAIL PROTECTED] wrote:
  
   I'm trying to have maven build a target/lib that contains all of the

   runtime dependencies of the project so I can use lib/*.jar as an ant

   classpath.
  
   Is there a plugin that I can use that packages the dependencies into

   target/lib? I know that some plugins package this as part of their
   execution model but can't exactly figure out what I need to do to
   make this happen outside the plugin.
  
   Thanks,
  
   Craig
  
   Craig Russell
   Architect, Sun Java Enterprise System
   http://java.sun.com/products/jdo
   408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp!
  
  
  
 

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



-
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: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Kathryn Huxtable
That's kind of what I suspected. I'm running JDK1.5.0_07. JDK1.6 isn't yet
available in a stable version for Mac OS X. Also, none of my production
RedHat servers are running 1.6.

I rather suspect that a 1.6 dependency has crept into the latest
Artifactory, despite their attempts to fall back to Java5.

I'm rebuilding from source now and we'll see what happens.

-K


On 4/25/07 2:06 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 Check your JDK version. I found the following on Java.net forums which
 seems to be related (??):
 http://forums.java.net/jive/message.jspa?messageID=177256
 
 Wayne
 
 On 4/25/07, Kathryn Huxtable [EMAIL PROTECTED] wrote:
 Are you sure? I'm getting the following in my catalina.out file:
 
 2007-04-25 12:47:19,655 [INFO ] webapp.servlet.ArtifactoryContextConfigurer
 - Starting Artifactory...
 2007-04-25 12:47:19,715 [INFO ]
 webapp.spring.ArtifactoryWebApplicationContext  - Refreshing
 [EMAIL PROTECTED]:
 display name [Root WebApplicationContext]; startup date [Wed Apr 25 12:47:19
 CDT 2007]; root of context hierarchy
 2007-04-25 12:47:20,197 [INFO ]
 webapp.spring.ArtifactoryWebApplicationContext  - Bean factory for
 application context
 [EMAIL PROTECTED]:
 [EMAIL PROTECTED]
 2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Loading configuration (using
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml')...
 2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Trying to load configuration from url...
 2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Could not load configuration from url
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'. (no
 protocol:
 /Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml).
 2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Trying to load configuration from regular path file reosurce
 2007-04-25 12:47:20,853 [ERROR] repo.spring.CentralConfigFactoryBean  -
 Failed to load configuration from
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'.
 java.lang.RuntimeException: Failed to read object from stream.
at org.artifactory.repo.jaxb.JaxbHelper.read(JaxbHelper.java:98)
 ...
 Caused by: java.lang.ClassFormatError: Illegal class modifiers in class
 org/artifactory/repo/package-info: 0x1600
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
 ader.java:1650)
at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
 a:856)
at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1305)
at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1187)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at java.lang.Package.getPackageInfo(Package.java:350)
at java.lang.Package.getAnnotation(Package.java:361)
at
 com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
 eAnnotation(RuntimeInlineAnnotationReader.java:85)
at
 com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
 eAnnotation(RuntimeInlineAnnotationReader.java:17)
at
 com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.ja
 va:86)
at
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.init(ClassInfoImpl.java:127)
at
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.init(RuntimeClassInfoI
 mpl.java:51)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
 delBuilder.java:58)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
 delBuilder.java:40)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:1
 23)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
 Builder.java:48)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
 Builder.java:40)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:18
 9)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:20
 4)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
 ava:356)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:217)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 

Re: jar with dependencies in a folder

2007-04-25 Thread JavierL


Wayne Fay wrote:
 
 Ah! In that case, you want to use the maven-dependency-plugin:
 http://maven.apache.org/plugins/maven-dependency-plugin/
 


I've read docs and see this:

--
artifactItems
artifactItem
  groupId[ groupId ]/groupId
  artifactId[ artifactId ]/artifactId
  version[ version ]/version
  type[ packaging ]/type
  overWrite[ true or false ]/overWrite
  outputDirectory[ output directory ]/outputDirectory
  destFileName[ filename ]/destFileName
/artifactItem
---

I wonder if it means  every dependency to be copied should be write by hand
in such way. 

I hope to be wrong because I found this totally ilogical. I want something
to do the job automatically and not complicate the verbose maven pom
configuration.

Thanks in advance

J


J

-- 
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10188383
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: Re : Re : Re : Re : Re : Re : Re : Help setup local proxy for Maven2 (Please)

2007-04-25 Thread Kathryn Huxtable
Same error. Dang. I'll bug the Artifactory people. -K


On 4/25/07 2:13 PM, Kathryn Huxtable [EMAIL PROTECTED] wrote:

 That's kind of what I suspected. I'm running JDK1.5.0_07. JDK1.6 isn't yet
 available in a stable version for Mac OS X. Also, none of my production
 RedHat servers are running 1.6.
 
 I rather suspect that a 1.6 dependency has crept into the latest
 Artifactory, despite their attempts to fall back to Java5.
 
 I'm rebuilding from source now and we'll see what happens.
 
 -K
 
 
 On 4/25/07 2:06 PM, Wayne Fay [EMAIL PROTECTED] wrote:
 
 Check your JDK version. I found the following on Java.net forums which
 seems to be related (??):
 http://forums.java.net/jive/message.jspa?messageID=177256
 
 Wayne
 
 On 4/25/07, Kathryn Huxtable [EMAIL PROTECTED] wrote:
 Are you sure? I'm getting the following in my catalina.out file:
 
 2007-04-25 12:47:19,655 [INFO ] webapp.servlet.ArtifactoryContextConfigurer
 - Starting Artifactory...
 2007-04-25 12:47:19,715 [INFO ]
 webapp.spring.ArtifactoryWebApplicationContext  - Refreshing
 [EMAIL PROTECTED]:
 display name [Root WebApplicationContext]; startup date [Wed Apr 25 12:47:19
 CDT 2007]; root of context hierarchy
 2007-04-25 12:47:20,197 [INFO ]
 webapp.spring.ArtifactoryWebApplicationContext  - Bean factory for
 application context
 [EMAIL PROTECTED]:
 [EMAIL PROTECTED]
 2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Loading configuration (using
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml')...
 2007-04-25 12:47:20,459 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Trying to load configuration from url...
 2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Could not load configuration from url
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'. (no
 protocol:
 /Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml).
 2007-04-25 12:47:20,460 [INFO ] repo.spring.CentralConfigFactoryBean  -
 Trying to load configuration from regular path file reosurce
 2007-04-25 12:47:20,853 [ERROR] repo.spring.CentralConfigFactoryBean  -
 Failed to load configuration from
 '/Users/huxtable/dev/artifactory-1.2.1-rc0/etc/artifactory.config.xml'.
 java.lang.RuntimeException: Failed to read object from stream.
at org.artifactory.repo.jaxb.JaxbHelper.read(JaxbHelper.java:98)
 ...
 Caused by: java.lang.ClassFormatError: Illegal class modifiers in class
 org/artifactory/repo/package-info: 0x1600
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
 ader.java:1650)
at
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
 a:856)
at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1305)
at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1187)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at java.lang.Package.getPackageInfo(Package.java:350)
at java.lang.Package.getAnnotation(Package.java:361)
at
 com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
 eAnnotation(RuntimeInlineAnnotationReader.java:85)
at
 com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getPackag
 eAnnotation(RuntimeInlineAnnotationReader.java:17)
at
 com.sun.xml.bind.v2.model.impl.TypeInfoImpl.parseElementName(TypeInfoImpl.ja
 va:86)
at
 com.sun.xml.bind.v2.model.impl.ClassInfoImpl.init(ClassInfoImpl.java:127)
at
 com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.init(RuntimeClassInfoI
 mpl.java:51)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
 delBuilder.java:58)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createClassInfo(RuntimeMo
 delBuilder.java:40)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:1
 23)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
 Builder.java:48)
at
 com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModel
 Builder.java:40)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:18
 9)
at
 com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:20
 4)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.j
 ava:356)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:217)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at
 

Build number and current date

2007-04-25 Thread spouynt
hello,
how can I get the current date (formatted in english) and/or build number ??

i.e : something like a property or a filter or a $mvn.something

Thanks
Nawfel




  
___ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

Re: jar with dependencies in a folder

2007-04-25 Thread Wayne Fay

You probably want dependency:unpack-dependencies.

Wayne

On 4/25/07, JavierL [EMAIL PROTECTED] wrote:



Wayne Fay wrote:

 Ah! In that case, you want to use the maven-dependency-plugin:
 http://maven.apache.org/plugins/maven-dependency-plugin/



I've read docs and see this:

--
artifactItems
   artifactItem
 groupId[ groupId ]/groupId
 artifactId[ artifactId ]/artifactId
 version[ version ]/version
 type[ packaging ]/type
 overWrite[ true or false ]/overWrite
 outputDirectory[ output directory ]/outputDirectory
 destFileName[ filename ]/destFileName
   /artifactItem
---

I wonder if it means  every dependency to be copied should be write by hand
in such way.

I hope to be wrong because I found this totally ilogical. I want something
to do the job automatically and not complicate the verbose maven pom
configuration.

Thanks in advance

J


J

--
View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10188383
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]



Re: jar with dependencies in a folder

2007-04-25 Thread Wayne Fay

I could be wrong about that. Check the other examples. You might
actually want copy-dependencies.

Wayne

On 4/25/07, Wayne Fay [EMAIL PROTECTED] wrote:

You probably want dependency:unpack-dependencies.

Wayne

On 4/25/07, JavierL [EMAIL PROTECTED] wrote:


 Wayne Fay wrote:
 
  Ah! In that case, you want to use the maven-dependency-plugin:
  http://maven.apache.org/plugins/maven-dependency-plugin/
 


 I've read docs and see this:

 --
 artifactItems
artifactItem
  groupId[ groupId ]/groupId
  artifactId[ artifactId ]/artifactId
  version[ version ]/version
  type[ packaging ]/type
  overWrite[ true or false ]/overWrite
  outputDirectory[ output directory ]/outputDirectory
  destFileName[ filename ]/destFileName
/artifactItem
 ---

 I wonder if it means  every dependency to be copied should be write by hand
 in such way.

 I hope to be wrong because I found this totally ilogical. I want something
 to do the job automatically and not complicate the verbose maven pom
 configuration.

 Thanks in advance

 J


 J

 --
 View this message in context: 
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.html#a10188383
 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]



Problem with mvn package

2007-04-25 Thread Seth Mason

When I run mvn package the jar file being generated doesn't have the
version number in it (foo.jar instead of foo-1.0.jar).  All my
other projects generate jar files with the version so I'm at a loss.

Anyone run into this problem?

Thanks in advance,
SETH

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



DAV deployment seems to not perform as with 2.0.6

2007-04-25 Thread Mykel Alvis

Once upon a time, in the distant past (Maven 2.0.5 and before), the
instructions found on the Maven User Wiki (at
http://docs.codehaus.org/display/MAVENUSER/Deploying+3rd+Party+Jars+With+WebDAV)
had a section at the bottom that allowed us to modify our maven installation
and allow command-line deployment of arbitrary artifacts using DAV.  Since
upgrading to Maven 2.0.6, that technique doesn't seem to work any more.  The
complaint is

NoClassDefFoundError: org/codehaus/plexus/util/IOUtil

Is there some way around this difficulty without inserting the webdav
extension in a pom in the local directory?

--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, modern ways.


RE: jar with dependencies in a folder

2007-04-25 Thread Brian E. Fox
You have copy/unpack that lets you specify certain artifacts to
manipulate that may not necessarilly be part of your dependencies (think
zip files).

You also have copy-dependencies/unpack-dependencies that starts with the
list of all dependencies and provides ways to filter that list down by
transitivity/scope/group/artifactId/classifier etc.
 

-Original Message-
From: JavierL [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 25, 2007 4:00 PM
To: users@maven.apache.org
Subject: Re: jar with dependencies in a folder



Wayne Fay wrote:
 
 Ah! In that case, you want to use the maven-dependency-plugin:
 http://maven.apache.org/plugins/maven-dependency-plugin/
 


I've read docs and see this:

--
artifactItems
artifactItem
  groupId[ groupId ]/groupId
  artifactId[ artifactId ]/artifactId
  version[ version ]/version
  type[ packaging ]/type
  overWrite[ true or false ]/overWrite
  outputDirectory[ output directory ]/outputDirectory
  destFileName[ filename ]/destFileName
/artifactItem
---

I wonder if it means  every dependency to be copied should be write by
hand in such way. 

I hope to be wrong because I found this totally ilogical. I want
something to do the job automatically and not complicate the verbose
maven pom configuration.

Thanks in advance

J


J

--
View this message in context:
http://www.nabble.com/jar-with-dependencies-in-a-folder-tf3644333s177.ht
ml#a10188383
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]



Re: Problem with mvn package

2007-04-25 Thread Wayne Fay

Someone has probably set finalName/ in the pom file, or something
along those lines.

Wayne

On 4/25/07, Seth Mason [EMAIL PROTECTED] wrote:

When I run mvn package the jar file being generated doesn't have the
version number in it (foo.jar instead of foo-1.0.jar).  All my
other projects generate jar files with the version so I'm at a loss.

Anyone run into this problem?

Thanks in advance,
SETH

-
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: Problem with mvn package

2007-04-25 Thread Seth Mason

That fixed it.  I looked for finalName before sending and didn't find
it.  But it magically appeared in the time I sent the email and now.
Very strange.

Color me embarrassed.

Thanks for the prompt reply,
SETH


On 4/25/07, Wayne Fay [EMAIL PROTECTED] wrote:

Someone has probably set finalName/ in the pom file, or something
along those lines.

Wayne

On 4/25/07, Seth Mason [EMAIL PROTECTED] wrote:
 When I run mvn package the jar file being generated doesn't have the
 version number in it (foo.jar instead of foo-1.0.jar).  All my
 other projects generate jar files with the version so I'm at a loss.

 Anyone run into this problem?

 Thanks in advance,
 SETH

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





--
SETH

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



Re: Build number and current date

2007-04-25 Thread Tomasz Pik

On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

hello,
how can I get the current date (formatted in english) and/or build number ??

i.e : something like a property or a filter or a $mvn.something


check ${project.artifact.version}

Regards,
Tomek

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



Re: Build number and current date

2007-04-25 Thread Patrick Schneider

You might look into the buildnumber plugin:

http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html


Patrick

On 4/25/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


hello,
how can I get the current date (formatted in english) and/or build number
??

i.e : something like a property or a filter or a $mvn.something

Thanks
Nawfel






___
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
!
Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com


Versioning Site Documentation

2007-04-25 Thread jp4

I would like to know how to version my site documentation.  I have a nightly
build that I use for generating snapshots and promoting them to our internal
maven repo along with deploying site docs to apache.  In addition, when I
create a release of a particular artifact I generate site documentation as
well.

I was wondering if there is a way to deploy the site documentation to two
different locations so that it is versioned properly... 

For example, 
http://www.foo.com/project1/1.0-SNAPSHOT
http://www.foo.com/project1/1.1/

It's ok to overwrite the nightly site docs, but I want to make sure that the
release versions are not overwritten.  Right now, they are both writing to
the same location, which is not optimal.

Any ideas?

Thanks,

jp4
-- 
View this message in context: 
http://www.nabble.com/Versioning-Site-Documentation-tf3648383s177.html#a10190677
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: Versioning Site Documentation

2007-04-25 Thread Wendy Smoak

On 4/25/07, jp4 [EMAIL PROTECTED] wrote:


I was wondering if there is a way to deploy the site documentation to two
different locations so that it is versioned properly...

For example,
http://www.foo.com/project1/1.0-SNAPSHOT
http://www.foo.com/project1/1.1/


Try using ${version} in your distributionManagement site url.

There's an example of something similar in the maven plugins parent pom:
http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml
(look at the stagingSiteURL).

--
Wendy

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



Maven2 Clover Plugin - Recursive Aggregation

2007-04-25 Thread gredler

Hi guys,

We have a multi-module M2 project, and we're trying to aggregate our Clover
test coverage reports. We've followed the documentation [1], and it seems to
work, but only one level down (ie, children modules are aggregated into the
parent module, but grandchildren modules are not). What do we need to do in
order to aggregate these modules recursively? I believe we have 4 or 5
levels...

Thanks,

Daniel

[1]
http://maven.apache.org/plugins/maven-clover-plugin/usage.html#Aggregating%20Clover%20Reports

-- 
View this message in context: 
http://www.nabble.com/Maven2-Clover-Plugin---Recursive-Aggregation-tf3648472s177.html#a10190935
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Eclipse and Processing Filtered Resources on Clean

2007-04-25 Thread Thomas Van de Velde

I am using the Eclipse plugin for Maven to add a builder so that upon every
clean the resources:resources goal gets invoked.  This avoids the tedious
process of keep filtered resources up to date after a clean in Eclipse.  The
output for this in the .project file looks as follows:


buildCommand

nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name

triggersfull,incremental,/triggers

arguments

dictionary

keyLaunchConfigHandle/key

valuelt;projectgt;/.externalToolBuilders/Repository Resources
[Builder].launch/value

/dictionary

/arguments

/buildCommand

Whenever I regenerate the project with eclipse:eclipse, this section gets
wiped out and I need to add it again manually.  I haven't found a way to add
these more complicated buildCommand to the maven-eclipse plugin.  The
maven-plugin only seems to support simple buildcommands.

Any solutions for this?  I have trouble understanding that both the m2
eclipse plugin and the maven-eclipse plugin have not solved this issue.  I
would assume this is a common requirement for anybody using filters.


Re: Versioning Site Documentation

2007-04-25 Thread jp4

Wendy,

I tried what you suggested, but it appears as though none of the child
modules for the parent projects are linked properly.  It creates directories

/project-parent-1.1-SNAPSHOT/project-parent/
/project-moduleA-1.1-SNAPSHOT/project-parent/moduleA
/project-moduleB-1.1-SNAPSHOT/project-parent/moduleB

The problems is that links from 
/project-parent-1.1-SNAPSHOT/project-parent/index.html are referring to
modules with relative links like this
/project-parent-1.1-SNAPSHOT/project-parent/moduleA/index.html

But the modules directories are at the same level as the parent... Any
ideas?

Thanks,

jp4




Wendy Smoak-3 wrote:
 
 On 4/25/07, jp4 [EMAIL PROTECTED] wrote:
 
 I was wondering if there is a way to deploy the site documentation to two
 different locations so that it is versioned properly...

 For example,
 http://www.foo.com/project1/1.0-SNAPSHOT
 http://www.foo.com/project1/1.1/
 
 Try using ${version} in your distributionManagement site url.
 
 There's an example of something similar in the maven plugins parent pom:
 http://svn.apache.org/repos/asf/maven/plugins/trunk/pom.xml
 (look at the stagingSiteURL).
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Versioning-Site-Documentation-tf3648383s177.html#a10191124
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Jason van Zyl

Hi Users,

One the first things the charming and happy folks at Sonatype want to  
do is give you a Maven book. It's just in HTML right now, but free,  
and no registration required (we won't spam you, promise).


It's your for the taking!

http://www.sonatype.com/book

Thanks,

Jason.





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



Re: A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Jason van Zyl


On 25 Apr 07, at 7:10 PM 25 Apr 07, Mark Derricutt wrote:

Just had a quick look - looking nice!  Is there only the online  
HTML version

or a downloadable one as well?



We can make a download for you. PDF will be coming soon.

Jason.


On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:

and no registration required (we won't spam you, promise).






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



Re: A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Mark Derricutt

No rush them :)  PDF will be better anyway.

On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:



We can make a download for you. PDF will be coming soon.




Re: A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Jason van Zyl


On 25 Apr 07, at 7:10 PM 25 Apr 07, Mark Derricutt wrote:

Just had a quick look - looking nice!  Is there only the online  
HTML version

or a downloadable one as well?



Here you go:

www.sonatype.com/MavenTheDefinitiveGuide.zip

Thanks,

Jason.



On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:

and no registration required (we won't spam you, promise).






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



Re: A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Tamás Cservenák

Great work!

I like this HTML version since it is truly handy and just a click away :)

And I question i cannot resist to ask: Gatekeeper? ;)

~t~

On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:


On 25 Apr 07, at 7:10 PM 25 Apr 07, Mark Derricutt wrote:

 Just had a quick look - looking nice!  Is there only the online
 HTML version
 or a downloadable one as well?


Here you go:

www.sonatype.com/MavenTheDefinitiveGuide.zip

Thanks,

Jason.


 On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:

 and no registration required (we won't spam you, promise).




-
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: A new book for users: Maven: The Definitive Guide

2007-04-25 Thread Eric Redmond

Oops, I guess I got a little ahead of myself... forget you saw that ;)

Not to spread rumors, but there might be something cool coming down the pipe
and it might be named Gatekeeper and it might make Maven easier to manage...
of course, this might not be true, so stay tuned :-P

Eric

On 4/25/07, Tamás Cservenák [EMAIL PROTECTED] wrote:


Great work!

I like this HTML version since it is truly handy and just a click away
:)

And I question i cannot resist to ask: Gatekeeper? ;)

~t~

On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:

 On 25 Apr 07, at 7:10 PM 25 Apr 07, Mark Derricutt wrote:

  Just had a quick look - looking nice!  Is there only the online
  HTML version
  or a downloadable one as well?
 

 Here you go:

 www.sonatype.com/MavenTheDefinitiveGuide.zip

 Thanks,

 Jason.


  On 4/26/07, Jason van Zyl [EMAIL PROTECTED] wrote:
 
  and no registration required (we won't spam you, promise).
 
 


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





--
Eric Redmond
http://codehaus.org/~eredmond


Re: GPG plugin just for deploy?

2007-04-25 Thread Howard Lewis Ship

 build
   pluginManagement
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-gpg-plugin/artifactId
 executions
   execution
 idsign-artifacts/id
 phaseverify/phase
 goals
   goalsign/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins
/pluginManagement
/build

 profiles
   profile
 iddeploy/id
 build
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-gpg-plugin/artifactId
 /plugin
   /plugins
 /build
   /profile
 /profiles


This works for the parent POM (mvn install does not do PGP, mvn install
-P deploy does).  It does not seem to be inherited by child modules.  Is
there a way to do that?

On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


Thanks, I'll give it a shot.  Thanks for the quick reply.

On 4/25/07, Wendy Smoak [EMAIL PROTECTED] wrote:

 On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED]  wrote:

  However, this is going to run the GPG plugin every time I run install
 (I
  tested).
 ...
  How can I ensure that the GPG plugin is only used when I'm using the
 deploy
  goal?

 Put the plugin execution config in a profile, and only enable it when
 you want to sign the artifacts.

 Using a profile id of 'release' works well for this as it seems to get
 enabled automatically by the release plugin.

 --
 Wendy

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




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: GPG plugin just for deploy?

2007-04-25 Thread Howard Lewis Ship

My mistake; appears to be inherited!

On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


  build
pluginManagement
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-gpg-plugin/artifactId
  executions
execution
  idsign-artifacts/id
  phaseverify/phase
  goals
goalsign/goal
  /goals
/execution
  /executions
/plugin
  /plugins
/pluginManagement
/build

  profiles
profile
  iddeploy/id
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-gpg-plugin/artifactId
  /plugin
/plugins
  /build
/profile
  /profiles


This works for the parent POM (mvn install does not do PGP, mvn install
-P deploy does).  It does not seem to be inherited by child modules.  Is
there a way to do that?

On 4/25/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

 Thanks, I'll give it a shot.  Thanks for the quick reply.

 On 4/25/07, Wendy Smoak  [EMAIL PROTECTED] wrote:
 
  On 4/25/07, Howard Lewis Ship  [EMAIL PROTECTED]  wrote:
 
   However, this is going to run the GPG plugin every time I run
  install (I
   tested).
  ...
   How can I ensure that the GPG plugin is only used when I'm using the
  deploy
   goal?
 
  Put the plugin execution config in a profile, and only enable it when
  you want to sign the artifacts.
 
  Using a profile id of 'release' works well for this as it seems to get
  enabled automatically by the release plugin.
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Howard M. Lewis Ship
 TWD Consulting, Inc.
 Independent J2EE / Open-Source Java Consultant
 Creator and PMC Chair, Apache Tapestry
 Creator, Apache HiveMind

 Professional Tapestry training, mentoring, support
 and project work.   http://howardlewisship.com




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Versioning Site Documentation

2007-04-25 Thread Wendy Smoak

On 4/25/07, jp4 [EMAIL PROTECTED] wrote:


I tried what you suggested, but it appears as though none of the child
modules for the parent projects are linked properly.  It creates directories

...

But the modules directories are at the same level as the parent... Any
ideas?


Without seeing your configuration, it's hard to tell.  One thing that
comes to mind is that (I think) a trailing slash on the url makes it
act differently.  Try it with and without that and see what happens.

--
Wendy

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



release:prepare properties for batch-mode?

2007-04-25 Thread David C. Hicks
Is there a way to specify the versions and tag information for a 
batch-mode release:prepare, instead of accepting the defaults?  I'm 
hoping there's some way to specify the properties on the command like 
similar to the -DdryRun property.


Thanks,
Dave


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



Prepending a folder to a plugin's classpath

2007-04-25 Thread William Ferguson
Sorry if this is a niave question, but I haven't had much success
Googling it.
 
We have a plugin that uses Velocity to generate some of our source.
The plugin needs to look for overridden Velocity templates in a project
specific location before using those contained within the plugin.
At this point velocity has been configured to use the
ClasspathResourceLoader.
 
How can I ensure that the Plugin puts the project specific classpath
resources ahead of the resources contained in the Plugin?
Is there any Maven mechanism that can be used to prepend to the plugin
classpath?
Or do I need to set a new Classloader inside the plugin that looks for
project resources before delegating to the pre-existing Classloader? And
if so, does anyone know where to find such an inverted Classloader?
 
William


Re: Eclipse and Processing Filtered Resources on Clean

2007-04-25 Thread Gregory Kick

Thomas,

As I expected, I can't reproduce your problem.  I put the buildCommand
that you've included into the .project file for an eclipse project,
run eclipse:eclipse and it stays put.  Are you running eclipse:clean?
That would completely remove and regenerate the .project file.
Otherwise, I'm pretty sure that eclipse:eclipse only modifies the
.classpath file.

By the way, I'm using v2.3 of the eclipse plugin.  Do you have a different one?

On 4/26/07, Thomas Van de Velde [EMAIL PROTECTED] wrote:

I am using the Eclipse plugin for Maven to add a builder so that upon every
clean the resources:resources goal gets invoked.  This avoids the tedious
process of keep filtered resources up to date after a clean in Eclipse.  The
output for this in the .project file looks as follows:


buildCommand

nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name

triggersfull,incremental,/triggers

arguments

dictionary

keyLaunchConfigHandle/key

valuelt;projectgt;/.externalToolBuilders/Repository Resources
[Builder].launch/value

/dictionary

/arguments

/buildCommand

Whenever I regenerate the project with eclipse:eclipse, this section gets
wiped out and I need to add it again manually.  I haven't found a way to add
these more complicated buildCommand to the maven-eclipse plugin.  The
maven-plugin only seems to support simple buildcommands.

Any solutions for this?  I have trouble understanding that both the m2
eclipse plugin and the maven-eclipse plugin have not solved this issue.  I
would assume this is a common requirement for anybody using filters.




--
Gregory Kick
http://kickstyle.net/

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