Re: error with doccheck still

2006-09-22 Thread Shinobu Kawai

Hi Mick,


So are you saying I do NOT need this and to remove it from my repository and
my pom.xml?


Correct.  It won't hurt to have it in your repository, but it should
be taken out of your pom.xml.


> > What is this plugin then:
> > http://www.ibiblio.org/maven2/doccheck/maven-doccheck-plugin/1.4-0.1/


Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

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



Re: error with doccheck still

2006-09-22 Thread Shinobu Kawai

Hi Mick,


I still get this error. How do I fix this error as this plugin is already in
my local repository:




[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-javadoc-plugin
Version: 2.1-SNAPSHOT

Reason: Unable to download the artifact from any repository


Hmm.  Maybe plugins can't be installed manually easily.  I guess you
need to install it from SVN.

Or maybe save the following XML as
maven-javadoc-plugin-2.1-SNAPSHOT.pom will be sufficient.  Try putting
this with the jar file:

http://people.apache.org/~shinobu/maven-javadoc-plugin-2.1-SNAPSHOT.pom

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

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



Re: error with doccheck still

2006-09-22 Thread Shinobu Kawai

Hi Mick,

On 9/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:

I removed the item you stated, but do not understand what I am suppose to do
for MJAVADOC-81 [1]...???


If you have the SNAPSHOT from the latest SVN, it is all taken care of.


Is there something else I must compile and run and/install? I just do not
understand...


You just need to update the pom.xml entry.

Best regards,
-- Shinobu

--
Shinobu Kawai <[EMAIL PROTECTED]>

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



Re: working war for testing

2006-09-22 Thread Brett Porter

Hi Daniel,

The current WAR should be a lot more stable, however you need to  
configure a data source in your application server for the user  
database. You can use the settings from the src/jetty-env.xml file if  
that is helpful - I'll look into making that an easier default.


Other than that, I'd suggest going to SVN a bit more than a week ago  
before the user management changes.


HTH,
Brett

On 22/09/2006, at 11:50 PM, Mohni, Daniel wrote:


Hello

I'am currently trying to get a working copy of archiva.war to
use for testing.
I update the sources daily and build the project using maven (of
course...),
and install the war on my local tomcat. currently archiva will not
startup as
there is to much ongoing changes with the user managment.

I'have a build form the 18. September that is coming up and everyting
can be
configured, the problem with this version is, that I can't access  
any of

the
repositories using http://www.example.com:8080/archiva/proxy/my_repo
when I access the browse window it will mention that the repository  
has

not been
indexed and that I have to try again later. If I hit the 'run_now' on
the administration
page, nothing happens...

does someone have a working archiva.war on a repository, that can be
downloaded for
testing purpose ?

maybe there is a snapshot repository somewhere...

Regards

Daniel




Problems with surefire plugin

2006-09-22 Thread Orford, Ian
I noticed in my surefire report in my site documentation that there was some
strange reports. Some of the classes were showing up as having tests that
are in other classes. I proved that the html site documentation reflected
the contents of the various target/surefire-reports/TEST_...xml files.

So I think my problem is caused by the surefire plugin, not the site or
surefire-report plugins.

In the report for a given test class, I've got  items that do not
appear in that class. They do however appear in other classes in completely
different packages.

Has anyone else experienced this? I've been experimenting with 
recently, but I've put it back to never and the problem still persists.

As usual, all help appreciated.

Ian Orford
 --



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. 




Request for Assembly plugin use cases

2006-09-22 Thread John Casey

Hi all,

I have been working on a refactored version of the assembly plugin over the
past couple months. You can access the latest snapshot of the plugin from
the snapshot repository on ASF. What I'm currently grappling with is the
need to make this new version backward compatible. I've done some work on
diff'ing the component and descriptor model files, to ensure that no XML
elements have been deleted, and that all existing XML is supported in code.
However, for behavioral things (like exclusion of **/.svn/** by default),
I'm coming up short on information.

If anyone has time, it would be very helpful to test this new assembly
plugin version against your own assemblies. If it breaks, please file a
jira, and if you can attach the failing assembly descriptor/project, that
would be most helpful as well.

Hopefully, we're nearing a release date on this plugin. Once I'm reasonably
sure about backward compatibility, update the docs to reflect new features,
and releaes the dependency components that have changes, I'll call a vote.

Thanks!

-john


profile variable questions

2006-09-22 Thread Mick Knutson

I am wondering if there are already standards for using the profile.xml to
replace names like:

   
   org.apache.maven.plugins
   maven-compiler-plugin
   
   ${compilerVersion}
   ${source}
   ${target}
   
   
   



So in my profile.xml, should I have:

   
   
   
   environment
   qa
   
   
   1.5
   1.5
   1.5
 

   




--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


Code Samples in Sites

2006-09-22 Thread Stephen Duncan

Has anyone investigated or worked on syntax highlighting of code
samples in site documentation?   Compare the code examples
http://www.stephenduncanjr.com/projects/easymock-propertyutils/index.html
vs. http://www.stephenduncanjr.com/2006/09/easymock-propertyutils-example.shtml

I used jhighlight to do the highlighting on the blog version:
https://jhighlight.dev.java.net/ I don't know if there are better
alternatives out there for the syntax highlighting library.

My point is that it would be really cool to have this highlighting for
documentation produced by the maven site plugin.  Is there something
out there already like this?  If not, what are the options for making
it happen someday?  I'm still relatively new to actually using the
site plugin, and have only used APT so far.  Which formats  would it
be possible to add this to, and which are either not modifyable, or
not feasible targets?  Should I just open a JIRA issue for this, or
what?

--
Stephen Duncan Jr
www.stephenduncanjr.com

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



[M1] Running tests with jvmargs (security policy)

2006-09-22 Thread diyfiesta

Hi Folks,

Bit stuck on trying to run my tests with a security manager enabled and a
specific policy file. I added the security manager system property and
policy setting using the following in the properties file
(project.properties) and have the policy file set as a  under for
the unit tests (it physically exists where I expect it to).

maven.junit.jvmargs=-Djava.security.manager
-Djava.security.policy=/target/test-classes/testing.policy

but I just can't get it to see the policy file (and so the tests fail with
permission problems).

It works fine if I hard code it like this;

maven.junit.jvmargs=-Djava.security.manager
-Djava.security.policy=c:\\temp\\testing.policy

but that obviously doesn't work unless I first copy the file there first
(which I don't want to do). 

I thought the VM is run from ${basedir} so my orginal setting should work?
I've tried it as just testing.policy thinking it would spot it on the
classpath, and even ${basedir}/blar/blar/testing.policy but then it just
fails with class not found (wierd!).

Any tips folks? :)

Thanks a million in advance,
Toby
-- 
View this message in context: 
http://www.nabble.com/-M1--Running-tests-with-jvmargs-%28security-policy%29-tf2319941.html#a6454630
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[ANN] Literate programming plugin

2006-09-22 Thread Arnaud Bailly
Hi to all,
I am pleased to announce release 1.0-rc3 of Muse-in-Java authoring
system, formerly known as Muse parser. Muse-in-Java allows publishing
documentation written using the emacs-muse format with maven project
build system. The goal of this project is to ease documentation writing
and maintenance leveraging emacs-muse authoring facilities and maven
automated build system.

This release is a major refactoring of this system and adds the
following features:
 - a **literate programming** cli and maven plugin that allows generation
 of source code files from documentation. An example can be found at
 http://www.oqube.com/projects/object-traversal/ 
 - support for mathematical layout using wonderful AsciiMathML
 (http://www1.chapman.edu/~jipsen/asciimath.html) script for HTML
 publishing
 - more tests, documentation and bug fixes.

It is available at http://www.oqube.com/projects/muse-java.

As usual, feedback is welcomed. There is a trac site runnig at
http://www.oqube.com/trac/muse-parser.

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


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



Re: error with doccheck still

2006-09-22 Thread Mick Knutson

I still get this error. How do I fix this error as this plugin is already in
my local repository:

[INFO] snapshot
org.apache.maven.plugins:maven-javadoc-plugin:2.1-SNAPSHOT:checking
for updates from ibiblio
Downloading:
http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/2.1-SNAPSHOT/maven-javadoc-plugin-2.1-SNAPSHOT.p
om
[WARNING] Unable to get resource from repository mojo_snapshot (
http://snapshots.maven.codehaus.org/maven2)
Downloading:
http://cvs.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-javadoc-plugin/2.1-SNAPSHOT/maven-javadoc-plugin-2.1-SNAPS
HOT.pom
[WARNING] Unable to get resource from repository apache.snapshots (
http://cvs.apache.org/maven-snapshot-repository)
Downloading:
http://myfaces.zones.apache.org/dist/maven-repository/org/apache/maven/plugins/maven-javadoc-plugin/2.1-SNAPSHOT/maven-javadoc-plugin-2.1
-SNAPSHOT.pom
[WARNING] Unable to get resource from repository myfaces.staging (
http://myfaces.zones.apache.org/dist/maven-repository)
Downloading:
http://www.ibiblio.org/maven2/org/apache/maven/plugins/maven-javadoc-plugin/2.1-SNAPSHOT/maven-javadoc-plugin-2.1-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (
http://www.ibiblio.org/maven2)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-javadoc-plugin
Version: 2.1-SNAPSHOT

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-javadoc-plugin:pom:2.1-SNAPSHOT

from the specified remote repositories:
 ibiblio (http://www.ibiblio.org/maven2),
 central (http://repo1.maven.org/maven2),
 apache.snapshots (http://cvs.apache.org/maven-snapshot-repository),
 myfaces.staging (http://myfaces.zones.apache.org/dist/maven-repository),
 mojo_snapshot (http://snapshots.maven.codehaus.org/maven2)


[INFO]

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

[INFO] Total time: 52 seconds
[INFO] Finished at: Fri Sep 22 11:09:06 PDT 2006
[INFO] Final Memory: 14M/27M
[INFO]





On 9/21/06, Mick Knutson <[EMAIL PROTECTED]> wrote:


So are you saying I do NOT need this and to remove it from my repository
and my pom.xml?

On 9/20/06, Shinobu Kawai < [EMAIL PROTECTED]> wrote:
>
> Hi Mick,
>
> > What is this plugin then:
> > http://www.ibiblio.org/maven2/doccheck/maven-doccheck-plugin/1.4-0.1/
> >
> > Is this just the plugin?
>
> It's the result of the automatic conversion of m1 ibiblio to m2
> ibiblio.  Maybe I should request it to be removed...
>
> Best regards,
> -- Shinobu
>
> --
> Shinobu Kawai <[EMAIL PROTECTED]>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson





--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


avoid recompilation of test files

2006-09-22 Thread Manlio Malaidini

Hi, we are using maven v. 1.1-beta-1

We have a goal with a dependency from test:compile, call it create-env
Then we have another goal, dealing with the execution of certain test files,
invoking test:match through attainGoal; call it custom-test-1
At last, we have another goal like custom-test1, working on different
tests; call it custom-test-2

The problem that we see is that if we execute:
   maven create-env custom-test-1 custom-test-2
the tests are recompiled 3 times, even if they are already compiled and
sources have not changed.

Is there a way to control test compilation? Is there a way to avoid test
recompilation while executing test:match?

TIA
MM


Re: [m2] Problems with surefire plugin

2006-09-22 Thread berndq

looks like http://jira.codehaus.org/browse/MSUREFIRE-114
or one of the duplicates

Bernd

I noticed in my surefire report in my site documentation that there was some
strange reports. Some of the classes were showing up as having tests that
are in other classes. I proved that the html site documentation reflected
the contents of the various target/surefire-reports/TEST_...xml files.

So I think my problem is caused by the surefire plugin, not the site or
surefire-report plugins.

In the report for a given test class, I've got  items that do not
appear in that class. They do however appear in other classes in completely
different packages.

This appears to happen when  is never or once. It works fine when
it's always.

Ian Orford
 --



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or

via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. 







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



[Offtopic] RE: How to include dependencies in an executable jar?

2006-09-22 Thread Ryan Slobojan
Hi,

If I may toss in a point of irony about this:

* Your complaint is that people don't search before they send out a
question
* Therefore, your response is to flame those that do in the hope that
the fear^H^H^H^Hencouragement will spread to others

Logical Flaw:

* The people that don't search before posting aren't going to see these
flames, and thus will not be "encouraged"

Happy Friday!

Thanks,

Ryan Slobojan

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 11:20 AM
To: Maven Users List
Subject: Re: How to include dependencies in an executable jar?

Its OK... I just have to flame every now and then for things like that
in an effort to encourage others to search before sending. Sorry you
were the target in this case. ;-)

[snip]

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



Re: How to include dependencies in an executable jar?

2006-09-22 Thread Alexander Sack

No flame away.  I make it point on all forums (work and play) to search
FIRST ask SECOND but in these case I was flying blind (still getting used to
Gmail's labeling feature).  Anyway, the assembly plugin isn't that bad
(feels like ANT).

Now I just need this name thing sorted out? (finalName should be FINAL
NAME!!!)

-aps

On 9/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


Its OK... I just have to flame every now and then for things like that
in an effort to encourage others to search before sending. Sorry you
were the target in this case. ;-)

I'm not building executable jars personally so I'm afraid I'm not much
help on this topic...

Wayne

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
> Okay found the thread (again my bad Wayne)...thanks Valerio...
>
> However, just like the last thread, this seems like a very awkward way
of
> handling it (an assembly plugin to just assemble binaries and various
> files.  I mean one of the anchor item features of maven is its
dependency
> handling.  Be nice to exploit that to just include the dependencies I
need
> like the WAR and EAR plugins via some scope parameter, no? :D
>
> The POmstrap is cool but not acceptable for production (adding an
external
> jar to run a jaruggh).
>
> -aps
>
> On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
> >
> > Hello Alexander,
> >
> > On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
> >
> > > I'm trying to build an executable jar and I want to include some of
the
> > > dependencies of my project in the jar itself for runtime.  Is there
a
> > > way to  do this?
> > >
> >
> > try to use the assembly plugin:
> > http://maven.apache.org/plugins/maven-assembly-plugin/
> >
> > --
> > http://valerioschiavoni.blogspot.com
> > http://jroller.com/page/vschiavoni
> >
> >
>
>
> --
> "What lies behind us and what lies in front of us is of little concern
to
> what lies within us." -Ralph Waldo Emerson
>
>

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





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


Re: How to include dependencies in an executable jar?

2006-09-22 Thread Valerio Schiavoni

to exclude the id you can use:
false



On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:


Alright, I have this owrking minus I can't seem to set the final name of
my
zipped assembly.

It seems that the assembly name concat's the  tage with the

tage of my assembly file.  I want to call it .zip, how do I do
this?  If I leave off final name and just use ID, that doesn't work, if I
use  but no ID, then I get name-null.zip.

Thanks!

-aps

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
>
> Okay found the thread (again my bad Wayne)...thanks Valerio...
>
> However, just like the last thread, this seems like a very awkward way
of
> handling it (an assembly plugin to just assemble binaries and various
> files.  I mean one of the anchor item features of maven is its
dependency
> handling.  Be nice to exploit that to just include the dependencies I
need
> like the WAR and EAR plugins via some scope parameter, no? :D
>
> The POmstrap is cool but not acceptable for production (adding an
external
> jar to run a jaruggh).
>
> -aps
>
> On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
> >
> > Hello Alexander,
> >
> > On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
> >
> > > I'm trying to build an executable jar and I want to include some of
> > the
> > > dependencies of my project in the jar itself for runtime.  Is there
a
> > > way to  do this?
> > >
> >
> > try to use the assembly plugin:
> > http://maven.apache.org/plugins/maven-assembly-plugin/
> >
> > --
> > http://valerioschiavoni.blogspot.com
> > http://jroller.com/page/vschiavoni
> >
> >
>
>
> --
> "What lies behind us and what lies in front of us is of little concern
to
> what lies within us." -Ralph Waldo Emerson
>



--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson





--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: How to include dependencies in an executable jar?

2006-09-22 Thread Wayne Fay

Its OK... I just have to flame every now and then for things like that
in an effort to encourage others to search before sending. Sorry you
were the target in this case. ;-)

I'm not building executable jars personally so I'm afraid I'm not much
help on this topic...

Wayne

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:

Okay found the thread (again my bad Wayne)...thanks Valerio...

However, just like the last thread, this seems like a very awkward way of
handling it (an assembly plugin to just assemble binaries and various
files.  I mean one of the anchor item features of maven is its dependency
handling.  Be nice to exploit that to just include the dependencies I need
like the WAR and EAR plugins via some scope parameter, no? :D

The POmstrap is cool but not acceptable for production (adding an external
jar to run a jaruggh).

-aps

On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
>
> Hello Alexander,
>
> On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to build an executable jar and I want to include some of the
> > dependencies of my project in the jar itself for runtime.  Is there a
> > way to  do this?
> >
>
> try to use the assembly plugin:
> http://maven.apache.org/plugins/maven-assembly-plugin/
>
> --
> http://valerioschiavoni.blogspot.com
> http://jroller.com/page/vschiavoni
>
>


--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson




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



Re: How to include dependencies in an executable jar?

2006-09-22 Thread Alexander Sack

Alright, I have this owrking minus I can't seem to set the final name of my
zipped assembly.

It seems that the assembly name concat's the  tage with the 
tage of my assembly file.  I want to call it .zip, how do I do
this?  If I leave off final name and just use ID, that doesn't work, if I
use  but no ID, then I get name-null.zip.

Thanks!

-aps

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:


Okay found the thread (again my bad Wayne)...thanks Valerio...

However, just like the last thread, this seems like a very awkward way of
handling it (an assembly plugin to just assemble binaries and various
files.  I mean one of the anchor item features of maven is its dependency
handling.  Be nice to exploit that to just include the dependencies I need
like the WAR and EAR plugins via some scope parameter, no? :D

The POmstrap is cool but not acceptable for production (adding an external
jar to run a jaruggh).

-aps

On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:
>
> Hello Alexander,
>
> On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to build an executable jar and I want to include some of
> the
> > dependencies of my project in the jar itself for runtime.  Is there a
> > way to  do this?
> >
>
> try to use the assembly plugin:
> http://maven.apache.org/plugins/maven-assembly-plugin/
>
> --
> http://valerioschiavoni.blogspot.com
> http://jroller.com/page/vschiavoni
>
>


--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


Re: [m2] Dashboard

2006-09-22 Thread Rik Bosman

Hi Laksman,

Below the answer I recieved some months ago:


*Hi Rik,

We implemented this in the dashboard for maven1. However this does not exist
for m2 yet. There are some thought on this on
**http://docs.codehaus.org/display/MAVEN/Maven+Dashboard*
* (I've put a diagram
of how I would view an architecture for this).

I don't think much work has been done on this and most of the m2 dev team
has focused on stabilizing/firming up the m2 core and core plugins.

-Vincent
*



2006/9/22, Lakshman Srilakshmanan <[EMAIL PROTECTED]

:

Hi All,

Is there a maven-dashboard-plugin as in maven 1.x for maven 2 ?

Thanks
Lakshman


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




Re: Schedules and manual build not working

2006-09-22 Thread Prashanth Krishnamurthy
Its just not my scheduler, even the manual build is
not working. It always stays in queued state and
nothing happens. The last message in the continuum
console is

jvm 1| 2006-09-21 16:39:21,994 [SocketListener0-1]
ERROR VelocityComponent
- RHS of #set statement is null. Context
will not be modified. screens/ProjectBuild.vm [line
103, column 3]

Any pointers ?

thanks
--Prashanth

--- Prashanth Krishnamurthy <[EMAIL PROTECTED]>
wrote:

> Thanks.
> 
> The see following messages in the end. Modifying the
> cron expression is not logging any messages.
> 
>
---
> 
> 1908837 [Thread-2] ERROR
> org.codehaus.plexus.velocity.VelocityComponent  -
> Left
> side of '>' operation is not a valid type.  It is a
> class java.lang.Long. Currently only integers
> (1,2,3...) and Integer type is supported.
>
/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm
> [line 25, column 27]
> 1929976 [Thread-2] ERROR
> org.codehaus.plexus.velocity.VelocityComponent  -
> Left
> side of '>' operation is not a valid type.  It is a
> class java.lang.Long. Currently only integers
> (1,2,3...) and Integer type is supported.
>
/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm
> [line 25, column 27]
> 1958741 [Thread-2] ERROR
> org.codehaus.plexus.velocity.VelocityComponent  -
> Left
> side of '>' operation is not a valid type.  It is a
> class java.lang.Long. Currently only integers
> (1,2,3...) and Integer type is supported.
>
/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm
> [line 25, column 27]
> 72952469 [SocketListener0-1] ERROR
> org.codehaus.plexus.velocity.VelocityComponent  -
> RHS
> of #set statement is null. Context will not be
> modified. screens/ProjectBuild.vm [line 103, column
> 3]
> 
> ---
> 
> 
> --- Emmanuel Venisse <[EMAIL PROTECTED]> wrote:
> 
> > Can you modify the cron expression in them and
> look
> > in logs when will be the next job?
> > 
> > Emmanuel
> > 
> > Prashanth Krishnamurthy a écrit :
> > > They are enabled and also assigned to projects.
> > > 
> > > thanks
> > > 
> > > --- Emmanuel Venisse <[EMAIL PROTECTED]>
> wrote:
> > > 
> > >> You can check if they aren't disabled and
> > projects
> > >> attached to them.
> > >>
> > >> Emmanuel
> > >>
> > >> Prashanth Krishnamurthy a écrit :
> > >>> Hi,
> > >>>
> > >>> The schedules used to work fine for 2-3 months
> > >> now.
> > >>> Since past 2-3 days, both my schedules( hourly
> > >> build
> > >>> and daily build ) are not working. I restarted
> > my
> > >>> continuum instance, but no luck.
> > >>>
> > >>> thanks
> > >>> --Prashanth
> > >>>
> > >>>
> > __
> > >>> Do You Yahoo!?
> > >>> Tired of spam?  Yahoo! Mail has the best spam
> > >> protection around 
> > >>> http://mail.yahoo.com 
> > >>>
> > >>>
> > >>>
> > >>
> > > 
> > > 
> > >
> __
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around 
> > > http://mail.yahoo.com 
> > > 
> > > 
> > > 
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: Auto incrementing a build identifier

2006-09-22 Thread maven
> A question about version numbering in Subversion.
>

Hu-hum, I worked too much today. Subversion should be Maven 2. I am using
Maven 2 on Subversion though.


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



Auto incrementing a build identifier

2006-09-22 Thread maven
A question about version numbering in Subversion.

I am aware of the way subversion handles version information while
releasing. As I have peeked overhere in the Maven repository:

https://svn.apache.org/repos/asf/maven/plugins/tags/maven-release-plugin-2.0-beta-4/src/main/java/org/apache/maven/plugins/release/versions/DefaultVersionInfo.java

Now I am wondering about something. My current contract would like a build
increment value in between two brackets. Which auto increases with each
build delivered to production. I'd say that hooking into the deploy phase
would be a good time for such actions. But then I figure that it isn't.

I'd say the initialize phase is the correct one. Since I am not processing
resources or sources but the POM.xml. The thing is this, can I modify the
POM then and there and keep the build going or do I need to modify the
POM. And let the user start another run, just like the release plugin
does?

Also, is it possible (by documented API or acceptable convention) to
detect whether or not a build is running up to or past the deploy phase?

The thing is that I don't want to generate "new" builds during
development, overwriting the current snapshot is preferred. But when
processing a project which will be "publicly" available, I want to be able
to identify it (even a snapshot) with an incremented build number, but
without having to manage the version setting by hand.

Any suggestions are greatly apreciated.

Kind regards,
Jeroen Leenarts
http://blog.leenarts.net

Download this as a file


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



Re: How to include dependencies in an executable jar?

2006-09-22 Thread Alexander Sack

Okay found the thread (again my bad Wayne)...thanks Valerio...

However, just like the last thread, this seems like a very awkward way of
handling it (an assembly plugin to just assemble binaries and various
files.  I mean one of the anchor item features of maven is its dependency
handling.  Be nice to exploit that to just include the dependencies I need
like the WAR and EAR plugins via some scope parameter, no? :D

The POmstrap is cool but not acceptable for production (adding an external
jar to run a jaruggh).

-aps

On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:


Hello Alexander,

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:

> I'm trying to build an executable jar and I want to include some of the
> dependencies of my project in the jar itself for runtime.  Is there a
> way to  do this?
>

try to use the assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/

--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


Re: surefire classloading issue: Class not found

2006-09-22 Thread Valerio Schiavoni

only to mention that i'm aware of this issue:
http://jira.codehaus.org/browse/MSUREFIRE-115

but i'm not sure that this is the problem i'm facing.

On 9/22/06, Valerio Schiavoni <[EMAIL PROTECTED]> wrote:


hello everyone,
consider the following classloader:

package org.foo;
public final class BytecodeClassLoader extends ClassLoader {
public Class loadClass( final byte[] bytecode ) {
final Class clazz = defineClass(null, bytecode, 0, bytecode.length
);
return clazz;
}
}

given that
running a test like:

package org.foo;
public class BytecodeClassLoader extends TestCase {
public void testClass1Load() throws Exception {
final BytecodeClassLoader cl = new BytecodeClassLoader();
InputStream is = cl.getResourceAsStream("org/foo/Foo.class");
assertNotNull(is);
}
}

i get a java.io.IOException: Class not found

the class BytecodeClassLoader is in the src/test directory, and so it is
the LoadingClassTestCase. The same holds for the org/foo/Foo.java class.

Everything works fine within Eclipse.

I tried different combinations of forkMode/childDelegation, without
success.

Any idea ?

thanks,
valerio
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni





--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: How to include dependencies in an executable jar?

2006-09-22 Thread Valerio Schiavoni

Hello Alexander,

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:


I'm trying to build an executable jar and I want to include some of the
dependencies of my project in the jar itself for runtime.  Is there a
way to  do this?



try to use the assembly plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/

--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


How can I set the logger for mojos?

2006-09-22 Thread Michael Schlotfeldt

I see the following interface exists:
  org.apache.maven.plugin.logging.Log
... and that an implementation is injected into mojos (no idea how that 
happens though).


My question is how does somebody go about getting maven to use a 
different implementation of the interface? I want to replace it with a 
log4j implementation. Does anybody already have a log4j implementation?


Thanks in advanced for all your help!
-Michael

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

surefire classloading issue: Class not found

2006-09-22 Thread Valerio Schiavoni

hello everyone,
consider the following classloader:

package org.foo;
public final class BytecodeClassLoader extends ClassLoader {
   public Class loadClass( final byte[] bytecode ) {
   final Class clazz = defineClass(null, bytecode, 0, bytecode.length);
   return clazz;
   }
}

given that
running a test like:

package org.foo;
public class BytecodeClassLoader extends TestCase {
public void testClass1Load() throws Exception {
   final BytecodeClassLoader cl = new BytecodeClassLoader();
   InputStream is = cl.getResourceAsStream("org/foo/Foo.class");
   assertNotNull(is);
   }
}

i get a java.io.IOException: Class not found

the class BytecodeClassLoader is in the src/test directory, and so it is the
LoadingClassTestCase. The same holds for the org/foo/Foo.java class.

Everything works fine within Eclipse.

I tried different combinations of forkMode/childDelegation, without success.


Any idea ?

thanks,
valerio
--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: How to include dependencies in an executable jar?

2006-09-22 Thread Alexander Sack

Ahh you know what...my email for this list got deleted yesterday (I was
doing some cleaning and I screwed up)!!!  My bad...I will try to search the
archives on the website...

-aps

On 9/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


Looking through my archive, this topic comes up nearly every week... I
guess you didn't search for the answer prior to sending this question?

It was even discussed just yesterday! Look at the thread titled
"Creating a Java application" for some options...

Wayne

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:
> I'm trying to build an executable jar and I want to include some of the
> dependencies of my project in the jar itself for runtime.  Is there a
way to
> do this?  The following page was somewhat helpful:
>
>
http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html
>
> But it doesn't discuss including the JARs.  I mean I could add a
resources
> directory and include the JARs there I believe but I was hopeing for
> something more automatic.
>
> Thanks!
>
> -aps
>
> --
> "What lies behind us and what lies in front of us is of little concern
to
> what lies within us." -Ralph Waldo Emerson
>
>

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





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


Re: How to include dependencies in an executable jar?

2006-09-22 Thread Wayne Fay

Looking through my archive, this topic comes up nearly every week... I
guess you didn't search for the answer prior to sending this question?

It was even discussed just yesterday! Look at the thread titled
"Creating a Java application" for some options...

Wayne

On 9/22/06, Alexander Sack <[EMAIL PROTECTED]> wrote:

I'm trying to build an executable jar and I want to include some of the
dependencies of my project in the jar itself for runtime.  Is there a way to
do this?  The following page was somewhat helpful:

http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html

But it doesn't discuss including the JARs.  I mean I could add a resources
directory and include the JARs there I believe but I was hopeing for
something more automatic.

Thanks!

-aps

--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson




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



How to include dependencies in an executable jar?

2006-09-22 Thread Alexander Sack

I'm trying to build an executable jar and I want to include some of the
dependencies of my project in the jar itself for runtime.  Is there a way to
do this?  The following page was somewhat helpful:

http://maven.apache.org/plugins/maven-jar-plugin/examples/executable-jar.html

But it doesn't discuss including the JARs.  I mean I could add a resources
directory and include the JARs there I believe but I was hopeing for
something more automatic.

Thanks!

-aps

--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


RE: Compiler Plugin

2006-09-22 Thread Douglas Ferguson
PS: That how-to is really good, it would have helped me, I say post it ASAP!
And maybe include some more explanation as to what would make my previous 
configuration work, because that isn't clear to me.

-Original Message-
From: Douglas Ferguson 
Sent: Friday, September 22, 2006 9:28 AM
To: users
Subject: RE: Compiler Plugin

Thanks,

I think this is what I need, but I am missing something..

I added this:

   
-classpath 
src/main/webapp/WEB-INF/classes
  

But get this:


javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 8:20 PM
To: users@maven.apache.org
Subject: RE: Compiler Plugin




Douglas Ferguson wrote:
> 
> Anybody?
> 
> -Original Message-
> From: Douglas Ferguson 
> Sent: Thursday, September 21, 2006 3:05 PM
> To: users
> Subject: Compiler Plugin
> 
> I tried to configure the compiler plugin to do the following:
> 
>  
> 
>   
> 
>   
> 
>   
> 
>maven-compiler-plugin 
> 
> 
> 
>  
> 
>  
> src/main/webapp/WEB-INF/classes 
> 
>   
> 
> 
> 
>
> 
>   
> 
>   
> 
>  
> 
>  
> 
> But I get this error: 
> 
>  
> 
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot
> override read-only parameter: classpathElements in goal:
> compiler:compile
> 
>  
> 
> I am placing .class files in WEB-INF/classes & .jar files in
> WEB-INF/lib.
> 
> I know this bypasses the maven dependency scheme, however this is for
> some legacy stuff that was never versioned and it is a stop gap until
> older clients get upgraded. 
> 
>  
> 
> Is there anyway to add stuff to the compiler_s classpath?
> 
>  
> 
> D-
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Good day to you, Douglas,

Inside your plugin's configuration, you can place inside the arguements to
your compiler. Assuming your using javac, you can set your -classpath under
the compilerArguement or compilerArguements tag (see [1] for windows javac,
and [2] for maven-compiler-plugin documentation). [2] however is still being
reviewed. If you have any comments about it, kindly notify us about it so
that we can improve it.

Thanks,
Franz

[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
[2]
http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html
-- 
View this message in context: 
http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546
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]



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



RE: Compiler Plugin

2006-09-22 Thread Douglas Ferguson
I changed it to this




src/main/webapp/WEB-INF/classes



And it works..

D-

-Original Message-
From: Douglas Ferguson 
Sent: Friday, September 22, 2006 9:28 AM
To: users
Subject: RE: Compiler Plugin

Thanks,

I think this is what I need, but I am missing something..

I added this:

   
-classpath 
src/main/webapp/WEB-INF/classes
  

But get this:


javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 8:20 PM
To: users@maven.apache.org
Subject: RE: Compiler Plugin




Douglas Ferguson wrote:
> 
> Anybody?
> 
> -Original Message-
> From: Douglas Ferguson 
> Sent: Thursday, September 21, 2006 3:05 PM
> To: users
> Subject: Compiler Plugin
> 
> I tried to configure the compiler plugin to do the following:
> 
>  
> 
>   
> 
>   
> 
>   
> 
>maven-compiler-plugin 
> 
> 
> 
>  
> 
>  
> src/main/webapp/WEB-INF/classes 
> 
>   
> 
> 
> 
>
> 
>   
> 
>   
> 
>  
> 
>  
> 
> But I get this error: 
> 
>  
> 
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot
> override read-only parameter: classpathElements in goal:
> compiler:compile
> 
>  
> 
> I am placing .class files in WEB-INF/classes & .jar files in
> WEB-INF/lib.
> 
> I know this bypasses the maven dependency scheme, however this is for
> some legacy stuff that was never versioned and it is a stop gap until
> older clients get upgraded. 
> 
>  
> 
> Is there anyway to add stuff to the compiler_s classpath?
> 
>  
> 
> D-
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Good day to you, Douglas,

Inside your plugin's configuration, you can place inside the arguements to
your compiler. Assuming your using javac, you can set your -classpath under
the compilerArguement or compilerArguements tag (see [1] for windows javac,
and [2] for maven-compiler-plugin documentation). [2] however is still being
reviewed. If you have any comments about it, kindly notify us about it so
that we can improve it.

Thanks,
Franz

[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
[2]
http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html
-- 
View this message in context: 
http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546
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]



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



RE: Deploy:deploy-file with sources

2006-09-22 Thread Martin Gilday
Thanks


- Original message -
From: "Jörg Schaible" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Date: Fri, 22 Sep 2006 16:02:13 +0200
Subject: RE: Deploy:deploy-file with sources

Martin Gilday wrote on Friday, September 22, 2006 11:43 AM:

> I am trying to deploy spring rc4 to our organisation repo.
> Using deploy:deploy-file is fine, but how do also deploy the
> api and source? I have them jarred up but there does not seem
> to be any properties listed in the docs to specify these
> along with the artifact. Is this possible? Thanks, Martin.

add -Dclassifier=sources and set -DgeneratePom=false

- Jörg

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



[m2] Problems with surefire plugin

2006-09-22 Thread Orford, Ian
I noticed in my surefire report in my site documentation that there was some
strange reports. Some of the classes were showing up as having tests that
are in other classes. I proved that the html site documentation reflected
the contents of the various target/surefire-reports/TEST_...xml files.

So I think my problem is caused by the surefire plugin, not the site or
surefire-report plugins.

In the report for a given test class, I've got  items that do not
appear in that class. They do however appear in other classes in completely
different packages.

This appears to happen when  is never or once. It works fine when
it's always.

Ian Orford
 --



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.dresdnerkleinwort.com/disc/email/ or contact the sender. 




RE: Surefires test order

2006-09-22 Thread christophe blin

Hi,

searching into the nabble archives, I found a thread which talks about my
problem. I quote the relevant part at the end of my message.

First, I'd like to know if there is finally a possibility to run the JUnit
tests in a specific order when they are executed with surefire ?

Second, I perfectly agree with David : surefire should run the tests in the
order they are written in the file.
While this is not important for unit tests, this is really important for
integration tests.
The reality is that you do not want to write a integration test that is 200
lines so you split up the test in various functions.
Then, you'd like that each function is a separate test case to have a report
that indicates precisely at which moment the test fail (it is easier to know
that the 3rd test case failed whereas to read the stacktrace of the testcase
to find where it crashes).

So my question is : who do not care about the order of integration tests
(i.e how do you do integration testing with surefire not executing the test
cases in the 'right' order) ?

Best regards,
chris


David Jackman wrote:
> 
> Actually, JUnit tests do run in a simple and predictable order
> (especially when a test class provides its own suite).  I agree that
> it's a bad idea to write tests that depend on their ordering, but it
> should not be the build system that enforces this (especially when the
> XML report is the only way to determine what order surefire used) unless
> it's through a property that explicitly tells it to do so.
>  
> ..David..
> 

-- 
View this message in context: 
http://www.nabble.com/Surefires-test-order-tf734875.html#a6449117
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: externalized assembly descriptors and relative paths

2006-09-22 Thread phlow



franz see wrote:
> 
> 
> First, I suggest you try to rethink whether they should be modules of a
> parent project or not. If they are, restructure them. 
> 
> But if they're really not related to each other and it just so happens
> that they have a common descriptor, on top of my head, I'd say try using
> ${user.dir}/../common. AFAIK, ${user.dir} returns the path of the top most
> user-defined parent maven project. Thus, even if your submodules use it,
> you would still start from the parent project.
> 
> Goodluck,
> Franz
> 

Unfortunately, ${user.dir} inside the module's pom.xml seems to hold the
location of the module, not the project containing the module - so that
didn't work...

greets
Flo






-- 
View this message in context: 
http://www.nabble.com/externalized-assembly-descriptors-and-relative-paths-tf2317329.html#a6449085
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: Compiler Plugin

2006-09-22 Thread Douglas Ferguson
Thanks,

I think this is what I need, but I am missing something..

I added this:

   
-classpath 
src/main/webapp/WEB-INF/classes
  

But get this:


javac: invalid flag: -classpath src/main/webapp/WEB-INF/classes

-Original Message-
From: franz see [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 8:20 PM
To: users@maven.apache.org
Subject: RE: Compiler Plugin




Douglas Ferguson wrote:
> 
> Anybody?
> 
> -Original Message-
> From: Douglas Ferguson 
> Sent: Thursday, September 21, 2006 3:05 PM
> To: users
> Subject: Compiler Plugin
> 
> I tried to configure the compiler plugin to do the following:
> 
>  
> 
>   
> 
>   
> 
>   
> 
>maven-compiler-plugin 
> 
> 
> 
>  
> 
>  
> src/main/webapp/WEB-INF/classes 
> 
>   
> 
> 
> 
>
> 
>   
> 
>   
> 
>  
> 
>  
> 
> But I get this error: 
> 
>  
> 
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-compiler-plugin. Reason: ERROR: Cannot
> override read-only parameter: classpathElements in goal:
> compiler:compile
> 
>  
> 
> I am placing .class files in WEB-INF/classes & .jar files in
> WEB-INF/lib.
> 
> I know this bypasses the maven dependency scheme, however this is for
> some legacy stuff that was never versioned and it is a stop gap until
> older clients get upgraded. 
> 
>  
> 
> Is there anyway to add stuff to the compiler_s classpath?
> 
>  
> 
> D-
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Good day to you, Douglas,

Inside your plugin's configuration, you can place inside the arguements to
your compiler. Assuming your using javac, you can set your -classpath under
the compilerArguement or compilerArguements tag (see [1] for windows javac,
and [2] for maven-compiler-plugin documentation). [2] however is still being
reviewed. If you have any comments about it, kindly notify us about it so
that we can improve it.

Thanks,
Franz

[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html
[2]
http://people.apache.org/~epunzalan/maven-compiler-plugin/examples/pass-compiler-arguments.html
-- 
View this message in context: 
http://www.nabble.com/Compiler-Plugin-tf2314129.html#a6439546
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: Occassional NPEs while checking out through scm-local in scheduled b

2006-09-22 Thread ArneD

Hello Emmanuel,

I've found another NPE bug in DefaultContinuumScm which is easy to fix:

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

Regards,
Arne


Emmanuel Venisse wrote:
> 
> 
>> I've seen that you closed issue CONTINUUM-780 in the meanwhile. Are there
>> chances to replace just one module in my Continuum 1.0.3 installation by
>> a
>> snapshot version to get the fix? Thanks for a short hint in which module
>> you
>> fixed it.
> 
> I don't think you can change the jar in 1.0.3 with a 1.1-SNAPSHOT.
> 
> You can checkout the 1.0.3 tag, apply my patch on continuum-core and build
> it.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Occassional-NPEs-while-checking-out-through-scm-local-in-scheduled-build-tf2289437.html#a6447722
Sent from the Continuum - Users mailing list archive at Nabble.com.



RE: Deploy:deploy-file with sources

2006-09-22 Thread Jörg Schaible
Martin Gilday wrote on Friday, September 22, 2006 11:43 AM:

> I am trying to deploy spring rc4 to our organisation repo.
> Using deploy:deploy-file is fine, but how do also deploy the
> api and source? I have them jarred up but there does not seem
> to be any properties listed in the docs to specify these
> along with the artifact. Is this possible? Thanks, Martin.

add -Dclassifier=sources and set -DgeneratePom=false

- Jörg

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



working war for testing

2006-09-22 Thread Mohni, Daniel
Hello

I'am currently trying to get a working copy of archiva.war to 
use for testing.
I update the sources daily and build the project using maven (of
course...),
and install the war on my local tomcat. currently archiva will not
startup as
there is to much ongoing changes with the user managment.

I'have a build form the 18. September that is coming up and everyting
can be
configured, the problem with this version is, that I can't access any of
the
repositories using http://www.example.com:8080/archiva/proxy/my_repo
when I access the browse window it will mention that the repository has
not been
indexed and that I have to try again later. If I hit the 'run_now' on
the administration
page, nothing happens...

does someone have a working archiva.war on a repository, that can be
downloaded for
testing purpose ?

maybe there is a snapshot repository somewhere...

Regards

Daniel





Re: Progress indicators for project management

2006-09-22 Thread Benoit Xhenseval
Hi Donnchadh,

First of all, thanks for trying the QALab plugin, he hope you'll find it useful.

The Maven2 plugin is really more of a beta and I am pleased that we are 
resuming development on it shortly, your comments will be taken into account.  
I have launched QALab but was not involved in the Maven2 plugin.  I have found 
Maven2 more complicated than expected when I looked at the way it does 
reports... i.e. no XML/XSL and using java to write some reports...

You are right in saying that you question about "inherting" a pom setting is 
more of a Maven2 question and I shall let the specialists answer you.

The idea of qalab storing the data in an xml  was to reduce the dependencies, 
this XML can be put in different place; this is something that maven1 and ant 
users can do easily, we will ensure that it is the case for m2.
One should note that it is possible to define your own "exporter" and therefore 
could decide to store the data in say a database for instance. If there is a 
demand, we may even provide a reference implementation for that?

So, in summary: hang in there, give us a few weeks or so to sort it out and we 
will release QALab v1.0 with a fully defined maven2 plugin.

Best regards

Benoit
- Original Message 
From: Donnchadh Ó Donnabháin <[EMAIL PROTECTED]>
To: Maven Users List 
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 6:12:05 PM
Subject: Re: Progress indicators for project management

I tried it quicly and came across a few issues (most of which are
easily dealt with).

I took the example configuration on the maven2 QALab plugin page
( http://qalab.sourceforge.net/maven2/faq.html )
 and simplified it to just working with PMD. I came across the following issues:
 * By default PMD doesn't seem to produce an XML report
 * When the PMD plugin is instructed to produce an XML report it puts
it in target and the QALab example QALab expects it to be in
target/pmd.
 * By Default, the PMD plugin seems to run in the report phase and the
example runs  in the verify phase

I got it working in the end with the following configuration

  

  
org.apache.maven.plugins
maven-pmd-plugin

  
pmd
verify

  pmd

  


  true
  1.5
  xml

  
  
net.objectlab
maven-qalab-plugin
2.1

  
pmd-merge
verify

  merge


  net.objectlab.qalab.parser.PMDStatMerge
  
${project.build.directory}/pmd.xml
  

  
  
qalab-movers
verify

  movers


  480

  

qalab-chart
verify

chart


false




  pmd

  

  
  

  
net.objectlab
maven-qalab-plugin
2.1

  

  report
  movers-report

  

  
  
org.apache.maven.plugins
maven-pmd-plugin

  true
  1.5
  xml

  

  


It seems a little verbose. I wonder if a more concise configuration is possible?
Also, I would like to set it up in my root pom and inherit the
confiuration in the modules, but that doesn't seem very
straightforward.

Is it possible to configure it in the root pom and bind it to a
lifecycle phase in the child pom (this is a general maven 2 question)?

A bigger issue is that the history is stored within an xml file in the
project. I imagine that qalab would be run within a continuous
integration context in general and the history would be lost.
Is it possible to override the location of this and store it somewhere
outside the project so that when the continuous integration system
(luntbuild in our case) does a clean build, this history is not lost?

  Donnchadh


On 9/21/06, Christophe Deneux <[EMAIL PROTECTED]> wrote:
>
> Thanks Doug,
>
> I will try QALab. It seems that no Maven2 plugin exists for XRadar.
>
> Christophe
>
> -- Initial Header ---
>
> From  : "Doug Douglass" [EMAIL PROTECTED]
> To  : "Maven Users List" users@maven.apache.org
> Cc  :
> Date  : Thu, 21 Sep 2006 08:00:37 -0600
> Subject : Re: Progress indicators for project management
>
> > Checkout qalab[1], there's a maven plugin around for it, though I haven't
> > used it. Perhaps search the [EMAIL PROTECTED] list archives, I think there 
> > was a
> > thread over there in the last few weeks regarding the maven reporting API.
> > Many people are very, very interested in this type of capability.
> >
> > XRadar[2] was another tool name that come to min

Re: Second source directory for generated code

2006-09-22 Thread Nick Stolwijk
You are almost right with your suggestion. You can put your generated 
files in /target/generates/sub-dir


Hth,

Nick S.

Olaf Kossak wrote:

Hi there,

after googeling for an hour without result I need some help: How can I
separate my handwritten source code under version control from my generated
code (not under version control) Some manually and generated classes are
interdependent and need to be placed in same packages. The perfect solution
in Eclipse are two source directories, src/main/java which one is under
version control and target/src-gen/main/java which is not versioned.

But how can I tell about this to Maven2?

Olaf Kossak


-
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: Second source directory for generated code

2006-09-22 Thread Tomislav Stojcevich

Use the build helper plugin to add additional source paths

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

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



Re : Problem with conflicting classes in classpath

2006-09-22 Thread Julien HENRY
The problem is a bit more complexe as Selenium RC Server uses Jetty 5.x

In fact I only need to automatically run Selenium Server when my application, 
and I need to run Jetty 6 server before my test cases. I'm using a JUnit 
TestSetup to run Jetty 6 only one time, and it works fine. If I run manually 
Selenium Server in another JVN, it works fine.

But as soon as I try to put Selenium Server in my pom as a dependency, I get 
errors at runtime.

In fact, I would like Maven download selenium server in order to always have 
correct version, but I don't really need it in the classpath, as I can run 
something like execute("java -jar 
$M2_HOME/repository/org/openqa/selenium/server/selenium-server-XX.jar");

Do you know if it's possible ?

- Message d'origine 
De : Lee Meador <[EMAIL PROTECTED]>
À : Maven Users List ; Julien HENRY <[EMAIL PROTECTED]>
Envoyé le : Jeudi, 21 Septembre 2006, 7h17mn 30s
Objet : Re: Problem with conflicting classes in classpath

If Selenium RC Server will run with Jetty 6 you may be able to add an
exclusion to your dependency on Selenium. Here is an example from a pom of
mine:


jmock
jmock-cglib
1.0.1
test


cglib
cglib-full




Now, this is "test" but the principle is the same. I need JMock (cglib) in
my application but I don't want cglib-full so I exclude it. What I want is
cglib-nodep BTW so I have to add that dependency in myself.

Some other messages recently have noted that there are sometimes issues
related to exclusions in Maven 2.0.4 for which fixes exist but are not
released.

-- Lee


On 9/21/06, Julien HENRY <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a conflict with 2 versions of Jetty. The first one is a dependency
> of Selenium RC Server (Jetty 5x), and I'm using Jetty 6 for my tests. As
> soon as I add the Selenium Server dependency in my pom, I get strange error.
>
> How can I solve this issue ?
>
> Thanks
>
> Julien
>
>
>


-- 
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com






Second source directory for generated code

2006-09-22 Thread Olaf Kossak
Hi there,

after googeling for an hour without result I need some help: How can I
separate my handwritten source code under version control from my generated
code (not under version control) Some manually and generated classes are
interdependent and need to be placed in same packages. The perfect solution
in Eclipse are two source directories, src/main/java which one is under
version control and target/src-gen/main/java which is not versioned.

But how can I tell about this to Maven2?

Olaf Kossak


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



Re: From jelly in maven.xml to pom.xml

2006-09-22 Thread franz see



Thomas Lindback wrote:
> 
> 
> 
> --- franz see <[EMAIL PROTECTED]> wrote:
> 
>> 
>> 
>> 
>> Thomas Lindback wrote:
>> > 
>> > I am sure this has been discussed earlier but I
>> have
>> > not found any info at all. I have searched alot.
>> > 
>> > I am trying to convert a piece from Maven 1 to
>> Maven 2
>> > but have no idea how to do it. 
>> > 
>> > In maven.xml I have something like this.
>> > 
>> > 
>> >   
>> > > > todir="${maven.build.dir}/zip"/>
>> > 
>> > 
>> > Basically I want to copy the jar files I have in
>> the
>> > dependencies to a folder. How do I do it in Maven
>> 2?
>> > 
>> > If I use antrun-plugin in Maven 2 I get from
>> > ${dependencies} a list of dependencies but how to
>> use
>> > that in ant? 
>> > 
>> > Same thing if I write a plugin I get a list of
>> > Dependencies but how to get the jar file location
>> from
>> > a Dependency. A Dependency contains only groupId,
>> > artifactId, version and so on. Anyone has an
>> idea?? 
>> > 
>> > /Tom
>> > 
>> > __
>> > Do You Yahoo!?
>> > Tired of spam?  Yahoo! Mail has the best spam
>> protection around 
>> > http://mail.yahoo.com 
>> > 
>> >
>>
> -
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> > 
>> > 
>> > 
>> 
>> Good day to you, Thomas,
>> 
>> To copy the dependencies to a specifc location, you
>> can use the
>> maven-dependency-plugin. You may want to take a look
>> at [1] for more info
>> about it. 
>> 
>> However, [1] is an unfinished revision of the
>> maven-dependency-plugin
>> documentation, and it's still being reviewed. Please
>> feel free to give us
>> your comments so that we can improve the
>> documentation. 
>> 
>> Thanks,
>> Franz
>> 
>> [1]
>>
> http://people.apache.org/~aramirez/maven-dependency-plugin/examples/copy-direct-dependencies.html
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/From-jelly-in-maven.xml-to-pom.xml-tf2317291.html#a6445677
>> Sent from the Maven - Users mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> Excellent! Thanks alot for the fast reply. Just what I
> was looking for. 
> 
> But. there is always a but right?
>
> org.apache.maven.plugins
> maven-dependency-plugin
> Gives me:
> [INFO] The plugin
> 'org.apache.maven.plugins:maven-dependency-plugin'
> does not exist or no valid version could be found
> and a BUILD ERROR
> 
> Google gave me:
> org.codehaus.mojo
> dependency-maven-plugin
> and that works. 
> 
> /Tom
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Good day to you, Thomas,

Ah, yes. Thank you for pointing that out :) maven-dependency-plugin has not
yet been release under apache. But basically, it's the same as
dependency-maven-plugin (see [1]). The latter being able in codeahus, while
the former as a snapshot only (either you check it out and build it, or you
get it from [2]).

Hopefully, maven-dependency-plugin would be released by the time its docu is
released as well :) 

Thanks,
Franz

[1] http://people.apache.org/~aramirez/maven-dependency-plugin/faq.html
[2] http://people.apache.org/maven-snapshot-repository/
-- 
View this message in context: 
http://www.nabble.com/From-jelly-in-maven.xml-to-pom.xml-tf2317291.html#a6446431
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Deploy as WAR

2006-09-22 Thread ben short

Hi,

Is it possible to get continuum as a WAr rather than a standalone application?

Ben


Re: externalized assembly descriptors and relative paths

2006-09-22 Thread franz see



phlow wrote:
> 
> Hi all!
> 
> We have the habit of putting some stuff common to all our maven projects
> into a folder that we place at the same level as our maven projects,  i.e.
> 
> [WORKSPACE]/project1
> [WORKSPACE]/project2
> [WORKSPACE]/common
> 
> The 'common' folder is actually not a maven project.
> 
> For generating special assemblies there are assembly descriptors which we
> put in 'common/config/assembly/assemblyXYZ.xml'
> Projects that build these assemblies reference these assemblies in their
> poms like so:
> 
>   
>  ../common/config/assembly/assemblyXYZ.xml
>   
> 
> The assembly descriptors themselves reference content in the
> '[WORKSPACE]/common/' directory (shell scripts etc.): 
> 
>
>   ../common/scripts/unix/
>   /scripts/
>   unix
>   0755
> 
> 
> This works fine for simple projects. The problem is that with projects
> that have modules in subfolders, this does not work, obviously. We can
> reference the assembly descriptors with '../../common/' from there, but
> inside the assembly descriptor, the '../common' is hardcoded, and
> therefore, the resources are not found by the assembly plugin.
> 
> Is there a simple way to circumvent this problem? I tried defining a
> property for  '..' or '../..' respectively, but I had to find out that
> properties don't work in assemblies yet. 
> 
> Any ideas? Has anyone had a similar setup but a better solution?  
> 
> greets, 
> 
> Flo
> 

Good day to you, phlow,

First, I suggest you try to rethink whether they should be modules of a
parent project or not. If they are, restructure them. 

But if they're really not related to each other and it just so happens that
they have a common descriptor, on top of my head, I'd say try using
${user.dir}/../common. AFAIK, ${user.dir} returns the path of the top most
user-defined parent maven project. Thus, even if your submodules use it, you
would still start from the parent project.

Goodluck,
Franz
-- 
View this message in context: 
http://www.nabble.com/externalized-assembly-descriptors-and-relative-paths-tf2317329.html#a6446069
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: From jelly in maven.xml to pom.xml

2006-09-22 Thread Thomas Lindback


--- franz see <[EMAIL PROTECTED]> wrote:

> 
> 
> 
> Thomas Lindback wrote:
> > 
> > I am sure this has been discussed earlier but I
> have
> > not found any info at all. I have searched alot.
> > 
> > I am trying to convert a piece from Maven 1 to
> Maven 2
> > but have no idea how to do it. 
> > 
> > In maven.xml I have something like this.
> > 
> > 
> >   
> >  > todir="${maven.build.dir}/zip"/>
> > 
> > 
> > Basically I want to copy the jar files I have in
> the
> > dependencies to a folder. How do I do it in Maven
> 2?
> > 
> > If I use antrun-plugin in Maven 2 I get from
> > ${dependencies} a list of dependencies but how to
> use
> > that in ant? 
> > 
> > Same thing if I write a plugin I get a list of
> > Dependencies but how to get the jar file location
> from
> > a Dependency. A Dependency contains only groupId,
> > artifactId, version and so on. Anyone has an
> idea?? 
> > 
> > /Tom
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> Good day to you, Thomas,
> 
> To copy the dependencies to a specifc location, you
> can use the
> maven-dependency-plugin. You may want to take a look
> at [1] for more info
> about it. 
> 
> However, [1] is an unfinished revision of the
> maven-dependency-plugin
> documentation, and it's still being reviewed. Please
> feel free to give us
> your comments so that we can improve the
> documentation. 
> 
> Thanks,
> Franz
> 
> [1]
>
http://people.apache.org/~aramirez/maven-dependency-plugin/examples/copy-direct-dependencies.html
> -- 
> View this message in context:
>
http://www.nabble.com/From-jelly-in-maven.xml-to-pom.xml-tf2317291.html#a6445677
> Sent from the Maven - Users mailing list archive at
> Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

Excellent! Thanks alot for the fast reply. Just what I
was looking for. 

But. there is always a but right?
   
org.apache.maven.plugins
maven-dependency-plugin
Gives me:
[INFO] The plugin
'org.apache.maven.plugins:maven-dependency-plugin'
does not exist or no valid version could be found
and a BUILD ERROR

Google gave me:
org.codehaus.mojo
dependency-maven-plugin
and that works. 

/Tom


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Deploy:deploy-file with sources

2006-09-22 Thread Martin Gilday

I am trying to deploy spring rc4 to our organisation repo. Using 
deploy:deploy-file is fine, but how do also deploy the api and source? I have 
them jarred up but there does not seem to be any properties listed in the docs 
to specify these along with the artifact. Is this possible? Thanks, Martin.



Re: From jelly in maven.xml to pom.xml

2006-09-22 Thread franz see



Thomas Lindback wrote:
> 
> I am sure this has been discussed earlier but I have
> not found any info at all. I have searched alot.
> 
> I am trying to convert a piece from Maven 1 to Maven 2
> but have no idea how to do it. 
> 
> In maven.xml I have something like this.
> 
> 
>   
>  todir="${maven.build.dir}/zip"/>
> 
> 
> Basically I want to copy the jar files I have in the
> dependencies to a folder. How do I do it in Maven 2?
> 
> If I use antrun-plugin in Maven 2 I get from
> ${dependencies} a list of dependencies but how to use
> that in ant? 
> 
> Same thing if I write a plugin I get a list of
> Dependencies but how to get the jar file location from
> a Dependency. A Dependency contains only groupId,
> artifactId, version and so on. Anyone has an idea?? 
> 
> /Tom
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Good day to you, Thomas,

To copy the dependencies to a specifc location, you can use the
maven-dependency-plugin. You may want to take a look at [1] for more info
about it. 

However, [1] is an unfinished revision of the maven-dependency-plugin
documentation, and it's still being reviewed. Please feel free to give us
your comments so that we can improve the documentation. 

Thanks,
Franz

[1]
http://people.apache.org/~aramirez/maven-dependency-plugin/examples/copy-direct-dependencies.html
-- 
View this message in context: 
http://www.nabble.com/From-jelly-in-maven.xml-to-pom.xml-tf2317291.html#a6445677
Sent from the Maven - Users mailing list archive at Nabble.com.


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



externalized assembly descriptors and relative paths

2006-09-22 Thread phlow

Hi all!

We have the habit of putting some stuff common to all our maven projects
into a folder that we place at the same level as our maven projects,  i.e.

[WORKSPACE]/project1
[WORKSPACE]/project2
[WORKSPACE]/common

The 'common' folder is actually not a maven project.

For generating special assemblies there are assembly descriptors which we
put in 'common/config/assembly/assemblyXYZ.xml'
Projects that build these assemblies reference these assemblies in their
poms like so:

  
 ../common/config/assembly/assemblyXYZ.xml
  

The assembly descriptors themselves reference content in the
'[WORKSPACE]/common/' directory (shell scripts etc.): 

   
  ../common/scripts/unix/
  /scripts/
  unix
  0755


This works fine for simple projects. The problem is that with projects that
have modules in subfolders, this does not work, obviously. We can reference
the assembly descriptors with '../../common/' from there, but inside the
assembly descriptor, the '../common' is hardcoded, and therefore, the
resources are not found by the assembly plugin.

Is there a simple way to circumvent this problem? I tried defining a
property for  '..' or '../..' respectively, but I had to find out that
properties don't work in assemblies yet. 

Any ideas? Has anyone had a similar setup but a better solution?  

greets, 

Flo
-- 
View this message in context: 
http://www.nabble.com/externalized-assembly-descriptors-and-relative-paths-tf2317329.html#a6445575
Sent from the Maven - Users mailing list archive at Nabble.com.


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



From jelly in maven.xml to pom.xml

2006-09-22 Thread Thomas Lindback
I am sure this has been discussed earlier but I have
not found any info at all. I have searched alot.

I am trying to convert a piece from Maven 1 to Maven 2
but have no idea how to do it. 

In maven.xml I have something like this.


  



Basically I want to copy the jar files I have in the
dependencies to a folder. How do I do it in Maven 2?

If I use antrun-plugin in Maven 2 I get from
${dependencies} a list of dependencies but how to use
that in ant? 

Same thing if I write a plugin I get a list of
Dependencies but how to get the jar file location from
a Dependency. A Dependency contains only groupId,
artifactId, version and so on. Anyone has an idea?? 

/Tom

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: war plugin 2.0.1 webResources pom.* filtering

2006-09-22 Thread franz see



SkipWalker wrote:
> 
> So my basic question is, how do I get some of my webapp files in my war
> project to be filtered with my pom.version value?  I've done what I think
> I need to do, but the build appears to be executing the plugin twice or
> something, creating errors.  There some configuration tweak that I can't
> figure out to get this to work.  
> 
> So here's what I have.
> 
> I have a war project in my maven 2.0.4 multi-project build.
> 
> I have a few files in src/main/webapp that I need to filter in the
> ${pom.version} value.  
> 
> This apparently was a bug with version 2.0 of the plugin ( see bug 
> http://jira.codehaus.org/browse/MWAR-41
> http://jira.codehaus.org/browse/MWAR-41 ).
> Hemce, I changed my version to the recently released 2.0.1.
> 
> Also, see this 
> http://www.nabble.com/War-plugin-and-filtering-webapp-files-t1617964.html
> thread .
> 
> So, I modified my pom.xml to use to use the 2.0.1 plugin via the following
> configuration.
>  
> org.apache.maven.plugins
> maven-war-plugin
> 2.0.1
>  
>
> 
> 
> 
>
> ${basedir}/src/main/webapp
> true
> 
> **/web.xml
> **/context.xml
> **/*.jsp
> 
> 
> 
> 
> 
> ${pom.version}
> (r${buildNumber})
> 
> 
> 
>
> 
> 
> 
> This appears to work sort of.  In the build it appears to be doing the
> webResource filtering twice.  This wouldn't be so bad, but it causes in
> error when the thing tries to set the Implementation-Build the second time
> it does the copy.
> 
> Here's a snippet of the build output.  It says the webResources are being
> copied, and then the next line it says the webResources are being copied
> again.  This appears to be the reason why it fails.  Something is causing
> the build to try and produce the manifest twice.
> 
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-war-plugin:2.0.1:war' -->
> [DEBUG]   (f) manifestEntries = {Implementation-Build=1.0-BETA (r1956)}
> [DEBUG]   (f) archive =
> [EMAIL PROTECTED]
> [DEBUG]   (f) archiveClasses = false
> [DEBUG]   (s) classesDirectory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\classes
> [DEBUG]   (f) filters = []
> [DEBUG]   (f) outputDirectory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target
> [DEBUG]   (f) primaryArtifact = true
> [DEBUG]   (s) project = [EMAIL PROTECTED]
> [DEBUG]   (f) warName = mywebapp-1.0-BETA
> [DEBUG]   (s) warSourceDirectory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\src\main\webapp
> [DEBUG]   (s) directory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www/src/main/webapp
> [DEBUG]   (s) filtering = true
> [DEBUG]   (s) includes = [**/web.xml, **/context.xml, **/*.jsp]
> [DEBUG]   (f) webResources = [Lorg.apache.maven.model.Resource;@1dfd868
> [DEBUG]   (s) webappDirectory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
> [DEBUG]   (f) workDirectory =
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\war\work
> [DEBUG] -- end configuration --
> [INFO] [war:war]
> [INFO] Exploding webapp...
> [INFO] Copy webapp webResources to
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
> [INFO] Copy webapp webResources to
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
> [INFO] Assembling webapp www in
> C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
> 
> ...
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error assembling WAR
> 
> Embedded error: The attribute "Implementation-Build" may not occur more
> than once in the same section
> [INFO]
> 
> 
> 
> 
> 

Good day to you, SkipWalker,

Regarding the filtering:
Try adding a filter property fiile to your configuration. Even if that file
is empty. If you're filtering suddenly works, then it's the bug addressed by
[1]. If so, you may want to download the patch and apply it to your
maven-war-plugin, and install it again (the patch has not yet been applied

Re: war plugin 2.0.1 webResources pom.* filtering

2006-09-22 Thread Pete

Did anyone get a resolution to this ?

I'm getting exactly the same error.  Only solution I could find was
going back to version 2.0 of war plugin

On 03/07/06, SkipWalker <[EMAIL PROTECTED]> wrote:


So my basic question is, how do I get some of my webapp files in my war
project to be filtered with my pom.version value?  I've done what I think I
need to do, but the build appears to be executing the plugin twice or
something, creating errors.  There some configuration tweak that I can't
figure out to get this to work.

So here's what I have.

I have a war project in my maven 2.0.4 multi-project build.

I have a few files in src/main/webapp that I need to filter in the
${pom.version} value.

This apparently was a bug with version 2.0 of the plugin ( see bug
http://jira.codehaus.org/browse/MWAR-41 ).
Hemce, I changed my version to the recently released 2.0.1.

Also, see this  thread .

So, I modified my pom.xml to use to use the 2.0.1 plugin via the following
configuration.
 
org.apache.maven.plugins
maven-war-plugin
2.0.1






${basedir}/src/main/webapp
true

**/web.xml
**/context.xml
**/*.jsp





${pom.version}
(r${buildNumber})







This appears to work sort of.  In the build it appears to be doing the
webResource filtering twice.  This wouldn't be so bad, but it causes in
error when the thing tries to set the Implementation-Build the second time
it does the copy.

Here's a snippet of the build output.  It says the webResources are being
copied, and then the next line it says the webResources are being copied
again.  This appears to be the reason why it fails.  Something is causing
the build to try and produce the manifest twice.

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-war-plugin:2.0.1:war' -->
[DEBUG]   (f) manifestEntries = {Implementation-Build=1.0-BETA (r1956)}
[DEBUG]   (f) archive =
[EMAIL PROTECTED]
[DEBUG]   (f) archiveClasses = false
[DEBUG]   (s) classesDirectory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\classes
[DEBUG]   (f) filters = []
[DEBUG]   (f) outputDirectory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target
[DEBUG]   (f) primaryArtifact = true
[DEBUG]   (s) project = [EMAIL PROTECTED]
[DEBUG]   (f) warName = mywebapp-1.0-BETA
[DEBUG]   (s) warSourceDirectory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\src\main\webapp
[DEBUG]   (s) directory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www/src/main/webapp
[DEBUG]   (s) filtering = true
[DEBUG]   (s) includes = [**/web.xml, **/context.xml, **/*.jsp]
[DEBUG]   (f) webResources = [Lorg.apache.maven.model.Resource;@1dfd868
[DEBUG]   (s) webappDirectory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
[DEBUG]   (f) workDirectory =
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\war\work
[DEBUG] -- end configuration --
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp webResources to
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
[INFO] Copy webapp webResources to
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA
[INFO] Assembling webapp www in
C:\Builds\mywebapp\manual\work\branches\checkout\30Jun06-1.0beta\www\target\mywebapp-1.0-BETA

...
[ERROR] BUILD ERROR
[INFO]

[INFO] Error assembling WAR

Embedded error: The attribute "Implementation-Build" may not occur more than
once in the same section
[INFO]




--
View this message in context: 
http://www.nabble.com/war-plugin-2.0.1-webResources-pom.*-filtering-tf1886910.html#a5158779
Sent from the Maven - Users forum 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: Missing checkstyle documentation ?

2006-09-22 Thread LAMY Olivier
Thanks for confirmation ;-)

Can a friendly maven dev redeploy the documentation ?
Or I need to load an issue in jira ? (like in the french administration : take 
a ticket and wait your time ;-)).

I can certainly do it in local :
svn co 
http://svn.apache.org/repos/asf/maven/plugins/tags/maven-checkstyle-plugin-2.1/ 
maven-checkstyle-plugin && cd maven-checkstyle-plugin && mvn site

But a friendly maven dev could do this :
svn co 
http://svn.apache.org/repos/asf/maven/plugins/tags/maven-checkstyle-plugin-2.1/ 
maven-checkstyle-plugin && cd maven-checkstyle-plugin && mvn site-deploy

I'm sure all people using the plugin will appreciate this (because some people 
due to some firewall policies doesn't have acces to the svn apache repo and 
can't rebuild the documentation)

--
Olivier
 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 22 septembre 2006 10:38
À : users@maven.apache.org
Objet : RE: Missing checkstyle documentation ?

Hi

It's not missing (would have given a 404) - It's just empty

-Original Message-
From: LAMY Olivier [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 9:13 AM
To: users@maven.apache.org
Subject: Missing checkstyle documentation ?


Hi,
Do I have a problem with my internet connection or my proxy or I need to drink 
more coffee ;-) But the page [1] seems to missing.
 
Can someone comfirms this ?

Thanks, 
 
--
Olivier
[1]
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.
html


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
**
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres "le message" ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 


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


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

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

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

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


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


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



Re: Assemblies created from a pom project

2006-09-22 Thread Barrie Treloar

On 9/22/06, Ståle Undheim <[EMAIL PROTECTED]> wrote:

Is there any way I can make the parent project inherit all the child
projects dependencies and use dependencySet to group together dependencies?


Search the archives for my posts.
I go into detail about setting up assemblies.
Those posts should help.

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



Re: Clearing out builds in Continuum

2006-09-22 Thread Emmanuel Venisse

oops, sorry, I missed a step.

-restart continuum
-Click on "Show projects" link, then click on "Build all" button.

If it doesn't work, you'll need to modify the database.

Emmanuel


Johan Lindquist a écrit :

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aha, then I apologies - scanned through the list earlier, but couldn't
find anything.

In any case, this doesn't seem to help.  As it stands, I only have one
project and one of its build has been building now for a couple of days.

Any ideas?

Johan

Emmanuel Venisse wrote:

Already answered on this list ;)

Click on "Show projects" link, then click on "Build all" button.

Emmanuel

Johan Lindquist a écrit :
Hi all,

For some reason I am getting builds that are stuck in the "building"
mode even though the build process has long gone away.  is there a quick
way of clearing these out of the status screens?

Thanks,

Johan






- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFE5P91Tv8wj7aQ34RAm+jAJ9rmuT9d8I/ejzWloqqoZvy8y7N0ACeIGKC
ln4eGlICG91eBvO6n84I5ug=
=pqFl
-END PGP SIGNATURE-







RE: Missing checkstyle documentation ?

2006-09-22 Thread hermod.opstvedt
Hi

It's not missing (would have given a 404) - It's just empty

-Original Message-
From: LAMY Olivier [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 9:13 AM
To: users@maven.apache.org
Subject: Missing checkstyle documentation ?


Hi,
Do I have a problem with my internet connection or my proxy or I need to
drink more coffee ;-)
But the page [1] seems to missing.
 
Can someone comfirms this ?

Thanks, 
 
--
Olivier
[1]
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.
html


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres "le message" ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 


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


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

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

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

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


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



Re: Missing checkstyle documentation ?

2006-09-22 Thread franz see



Olivier Lamy wrote:
> 
> Hi,
> Do I have a problem with my internet connection or my proxy or I need to
> drink more coffee ;-)
> But the page [1] seems to missing.
>  
> Can someone comfirms this ?
> 
> Thanks, 
>  
> --
> Olivier
> [1]
> http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.
> html
> 
> 
> This e-mail, any attachments and the information contained therein ("this
> message") are confidential and intended solely for the use of the
> addressee(s). If you have received this message in error please send it
> back to the sender and delete it. Unauthorized publication, use,
> dissemination or disclosure of this message, either in whole or in part is
> strictly prohibited.
> ** 
> Ce message electronique et tous les fichiers joints ainsi que  les
> informations contenues dans ce message ( ci apres "le message" ), sont
> confidentiels et destines exclusivement a l'usage de la  personne a
> laquelle ils sont adresses. Si vous avez recu ce message par erreur, merci 
> de le renvoyer a son emetteur et de le detruire. Toutes diffusion,
> publication, totale ou partielle ou divulgation sous quelque forme que se
> soit non expressement autorisees de ce message, sont interdites.
> ** 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Good day to you, Olivier,

Must be a bug or something :-) you can file a jira-issue ([1]) on that if
you want to :-) in the meantime, you can use [2] as your reference to
maven-checkstyle-plugin. However, it is still being reviewed. So if you have
any reviews for it, we would like to hear it.

Thanks,
Franz

[1] http://jira.codehaus.org/browse/MCHECKSTYLE
[2] http://people.apache.org/~oching/maven-checkstyle-plugin/index.html
-- 
View this message in context: 
http://www.nabble.com/Missing-checkstyle-documentation---tf2316302.html#a6443093
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: Clearing out builds in Continuum

2006-09-22 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aha, then I apologies - scanned through the list earlier, but couldn't
find anything.

In any case, this doesn't seem to help.  As it stands, I only have one
project and one of its build has been building now for a couple of days.

Any ideas?

Johan

Emmanuel Venisse wrote:
> Already answered on this list ;)
> 
> Click on "Show projects" link, then click on "Build all" button.
> 
> Emmanuel
> 
> Johan Lindquist a écrit :
> Hi all,
> 
> For some reason I am getting builds that are stuck in the "building"
> mode even though the build process has long gone away.  is there a quick
> way of clearing these out of the status screens?
> 
> Thanks,
> 
> Johan
> 
>>
>>
>>

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFE5P91Tv8wj7aQ34RAm+jAJ9rmuT9d8I/ejzWloqqoZvy8y7N0ACeIGKC
ln4eGlICG91eBvO6n84I5ug=
=pqFl
-END PGP SIGNATURE-


Re:Missing checkstyle documentation ?

2006-09-22 Thread Christophe Deneux

Yes, I confirm.

Christophe DENEUX

-- Initial Header ---

>From  : "LAMY Olivier" [EMAIL PROTECTED]
To  : users@maven.apache.org
Cc  : 
Date  : Fri, 22 Sep 2006 09:13:14 +0200
Subject : Missing checkstyle documentation ?

> Hi,
> Do I have a problem with my internet connection or my proxy or I need to
> drink more coffee ;-)
> But the page [1] seems to missing.
>  
> Can someone comfirms this ?
> 
> Thanks, 
>  
> --
> Olivier
> [1]
> http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.
> html
> 
> 
> This e-mail, any attachments and the information contained therein ("this 
> message") are confidential and
intended solely for the use of the addressee(s). If you have received this 
message in error please send it
back to the sender and delete it. Unauthorized publication, use, dissemination 
or disclosure of this message,
either in whole or in part is strictly prohibited.
> ** 
> Ce message electronique et tous les fichiers joints ainsi que  les 
> informations contenues dans ce message (
ci apres "le message" ), sont confidentiels et destines exclusivement a l'usage 
de la  personne a laquelle ils
sont adresses. Si vous avez recu ce message par erreur, merci  de le renvoyer a 
son emetteur et de le
detruire. Toutes diffusion, publication, totale ou partielle ou divulgation 
sous quelque forme que se soit non
expressement autorisees de ce message, sont interdites.
> ** 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Missing checkstyle documentation ?

2006-09-22 Thread LAMY Olivier
Hi,
Do I have a problem with my internet connection or my proxy or I need to
drink more coffee ;-)
But the page [1] seems to missing.
 
Can someone comfirms this ?

Thanks, 
 
--
Olivier
[1]
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.
html


This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
** 
Ce message electronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci apres "le message" ), sont confidentiels et 
destines exclusivement a l'usage de la  personne a laquelle ils sont adresses. 
Si vous avez recu ce message par erreur, merci  de le renvoyer a son emetteur 
et de le detruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressement autorisees de ce 
message, sont interdites.
** 


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



Re: Assemblies created from a pom project

2006-09-22 Thread Ståle Undheim
Busch, Hendrik (LNG-MUE) wrote:
> Hi!
> 
>> I get the following when I run mvn assembly:assembly (shortened to 2
>> important lines):
>> [INFO] Building jar: /server/ccsapi/target/ccsapi-1.0-SNAPSHOT.jar
>> [INFO] Included module: com.corelets:ccsapi:jar:1.0-SNAPSHOT does not
>> have an artifact with a file. Please ensure the package phase is run
>> before the assembly is generated.
> 
> I remember that there is a bug in maven preventing the reactor project
> list from being filled when using the assembly plugin. It might be
> scheduled for the next release but up until then you can work around
> this problem by calling
> 
> mvn package assembly:assembly
> 
> This should work.

Thanks, it did. Now I have a new problem.

I have 4 submodules in my project, and I want the resulting tar.gz file
to be:

lib/all-dependencies
module1-4.jar

But there doesnt seem to be any seperation off dependencies and
artifacts from sub-projects. If I use:


  
false
  


Only the artifacts are included. If I set includeDependencies to true,
all the artifacts and dependencies are included. Is it possible to
seperate child artifacts from child dependencies? I tried using exclude
with both groupId:artifactId, filename matching, and exact filenames so
I could seperate out the files, but none of them worked.

Is there any way I can make the parent project inherit all the child
projects dependencies and use dependencySet to group together dependencies?

-- 
Ståle Undheim
Systemutvikler

CoreTrek
Tlf.:   +47 51 97 85 97
E-post: [EMAIL PROTECTED]
WEB:www.coretrek.no

"Simple is beautiful"



signature.asc
Description: OpenPGP digital signature