Plugin Development Issue

2006-08-25 Thread Marc L. Veary
Hi,

I have developed a very simple plugin that does nothing. (code included
below).

The problem is that I cannot seem to pass in a parameter either on the
command line or via a POM (in another project that defines this plugin in
the build section):

mvn cleartrust:extract -Dverbose=Testing

or

configuration
verbosetesting/verbose
/configuration

Could someone point me in the right direction here?

package uk.co.nwlcoc.aa.maven.plugins;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * @goal extract
 * @phase package
 * @author Marc
 * @version $LastChangedRevision$
 */
public class ClearTrustMojo extends AbstractMojo
{
/**
 * @parameter
 */
private String verbose;

public void execute() throws MojoExecutionException, 
MojoFailureException
{
getLog().info(   + verbose );
}

}

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIduk.co.nwlcoc.aa.maven.plugins/groupId
  artifactIdmaven-cleartrust-plugin/artifactId
  packagingmaven-plugin/packaging
  version1.0-SNAPSHOT/version
  nameClearTrust Mojo/name
  dependencies
dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-plugin-api/artifactId
  version2.0/version
/dependency
  /dependencies
/project

Kind regards,
--
Marc



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



Re: Using Java System Properties in pom.xml

2006-08-25 Thread Jimisola Laursen

Hi!

Are we taking about the same thing? I am taking about Java System Properties
and not System Properties. It was not replaced when I first tried (perhaps I
was doing something wrong). the documentation only mentions Java System
Properties with filtering.

Does the Java System Properties have a prefix or can I just use
${file.separator} in the configuration section? 

I thought I could use forward slashes for paths too, but the problem is
caused with a home-made plugin. The plugin takes the output file as a
parameter in the configuration section and I don't believe that slashes (/)
are replaced with backslashes (\) on the fly. Should I handle this in my
plugin perhaps?

Sorry if I am missing out on something trivial here. I don't even run
Windows myself, so I haven't tested - all I got was a bug report from a team
member:

Example:
${project.build.directory}/generated-resources/buildinfo-maven-${project.build.finalName}.xml

This results in:
C:\myrepository\.../generated-resources/buildinfo-maven-

Regards,
Jimisola


Eric Redmond wrote:
 
 You can use System properties. However, you don't need to use
 file.seperator... you can just use forward slash for paths.
 
 Eric
 
 On 8/24/06, Jimisola Laursen [EMAIL PROTECTED] wrote:


 Hi!

 Been reading through the documentation on maven.apache.org and the book,
 but
 I can't find any information on if it is possible to use Java System
 Properties such as file.separator, user.name and more
 (
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
 )
 in pom.xml?

 I have a problem with file separators because we use both Linux and
 Windows
 when developing and it therefore looks as I if I need to use
 ${file.separator} in our common POM.

 Regards,
 Jimisola
 --
 View this message in context:
 http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5973537
 Sent from the Maven - Users forum at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5978571
Sent from the Maven - Users forum at Nabble.com.


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



RE: Plugin Development Issue

2006-08-25 Thread Marc L. Veary
Ha!

Yet again.  Everytime I email this list for some help, I then solve the
problem... sorry all.

The answer to the problem seems to be that one must provide the 'expression'
to the annotation:

/**
 * @parameter expression=${verbose}
 */
private String verbose;

This now works from both POM and command line.

Many apologies for any time wasted.

Kind regards,
--
Marc

-Original Message-
From: Marc L. Veary [mailto:[EMAIL PROTECTED]
Sent: 25 August 2006 07:57
To: 'Maven Users'
Subject: Plugin Development Issue


Hi,

I have developed a very simple plugin that does nothing. (code included
below).

The problem is that I cannot seem to pass in a parameter either on the
command line or via a POM (in another project that defines this plugin in
the build section):

mvn cleartrust:extract -Dverbose=Testing

or

configuration
verbosetesting/verbose
/configuration

Could someone point me in the right direction here?

package uk.co.nwlcoc.aa.maven.plugins;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;

/**
 * @goal extract
 * @phase package
 * @author Marc
 * @version $LastChangedRevision$
 */
public class ClearTrustMojo extends AbstractMojo
{
/**
 * @parameter
 */
private String verbose;

public void execute() throws MojoExecutionException, 
MojoFailureException
{
getLog().info(   + verbose );
}

}

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIduk.co.nwlcoc.aa.maven.plugins/groupId
  artifactIdmaven-cleartrust-plugin/artifactId
  packagingmaven-plugin/packaging
  version1.0-SNAPSHOT/version
  nameClearTrust Mojo/name
  dependencies
dependency
  groupIdorg.apache.maven/groupId
  artifactIdmaven-plugin-api/artifactId
  version2.0/version
/dependency
  /dependencies
/project

Kind regards,
--
Marc



-
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] copy of Central Repository

2006-08-25 Thread Lakshman Srilakshmanan
Hi All,

In maven 1.x I could execute maven once on a project and build my local
repository. I could then copy it on to my company's central server and
get all the developers to refer to this for updates.

When I needed a new plugin or dependency, I could run maven 1.x against
ibiblio and follow the above process.

The above strategy ensured that we had only the plugins  dependencies
we needed and not the whole central repository of 5G. I am not going
into the details of how I kept this up-to-date as it would side track
the main issue that I wish to discuss.


Now, in maven 2 I did the same process as described above. The build
started breaking, with errors such as -- plugin 'xxx' does not exist or
no valid version could be found --. 

Further investigation revealed this problem was due to two missing files
in my repository.
   a) maven-metadata.xml
   b) maven-metadata.xml.sha1

In my local repository these files are named as 
   a) maven-metadata-central.xml 
   b) maven-metadata-central.xml.sha1

so when I copied my local repository to my company's central repository
the above files caused the problem.

When I renamed the files as required, maven 2 was happy and everything
started to work again.


So my question is, is there a easier way of getting the required
components from maven central repository copied to my company's central
server without having to take a full copy ?

Well, an alternative is to create a script to traverse the repository
and rename the files as required.

I would much appreciate to hear from anyone who has solved this problem
or is there a tool/process that I have overlooked.

Thanks in advance 

Lakshman


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



RE: RE : Web site generation for multiple projects

2006-08-25 Thread SlinnHawkins, Jon (ELS)
Thanks, but I still can't get this feature working

I have a organisation pom and site.xml from which I would like to inherit 
one of the menus.

I have specified the menu in the parent site.xml as

menu name=Applications inherit=top or menu name=Applications
item name=Phoenix
href=http://localhost/sites/Phoenix-Parent/index.html/
http://localhost/sites/Phoenix-Parent/index.html 
item name=LWR href=http://localhost/sites/LWR-Parent/index.html/
http://localhost/sites/LWR-Parent/index.html 
/menu

and have deployed the snapshot to our inhouse repo.

in the child site.xml I have

menu name=Applications inherit=top or  menu name=Applications
/menu

What am I missing, I have tried putting the inherit=top in either and both

of the site.xml menu nodes.
- All I get is an empty menu named Applications

I have also tried without the menu node in the child site.xml
- Then I get no Applications menu at all.

NB: I am using a flat structure so we can use eclipse - I hope it is not 
this causing the problems.

a warning I get from the debug of site:site : however it then seems to get 
the eDev (organisation) pom / site.xml from the repo.

[INFO] [site:site]
[WARNING] Unable to load parent project from repository: Could not find the 
model file 
'C:\Dev_Workspaces\Eclipse_3.1.1\PhoenixJ2EE\Phoenix-Parent\..\pom.xml'.
[DEBUG] eDev: resolved to version 1.0-20060824.094554-81 from repository 
central

Has anyone got this working ???

Many Thanks

Jon

  _  

From: Valerio Schiavoni [mailto:[EMAIL PROTECTED] 
Sent: 23 August 2006 13:48
To: Maven Users List; Jon SlinnHawkins
Subject: Re: RE : Web site generation for multiple projects


hello Jon,


On 8/23/06, Jon SlinnHawkins [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

What does : menu name=Common Links inherit=top / achieve ?



as it is explained in the how-to:
http://maven.apache.org/plugins/maven-site-plugin/howto.html
http://maven.apache.org/plugins/maven-site-plugin/howto.html :



Site descriptors are inherited along the same lines as project descriptors
are. When you deploy a project, it's site descriptor is also deployed so
that it can be inherited.

By default, only the basic settings are inherited. From the body, only the
links are inherited, and these accumulate to contain all of the descriptor's
links.

However, it is possible to inherit menus as well. To do so, use the inherit
flag of the site descriptor. This can be either top or bottom, indicating
where in the menu it will be placed after inheritance. 

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


RE: Plugin Development Issue

2006-08-25 Thread William Ferguson
To allow your parameter to be specified from the command line yoour
parameter specification  needs to define the name of the commandline
parameter that it will accept. Eg

/**
 * @parameter expression=${foo.bar}
 */
private String verbose;

Should work with a commandline of 
  mvn cleartrust:extract -Dfoo.bar=Testing

The POM configuration should work.
Are you sure you've defined the verbose element within your plugin
definition's configuration block?

William


 -Original Message-
 From: Marc L. Veary [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 25 August 2006 4:57 PM
 To: 'Maven Users'
 Subject: Plugin Development Issue
 
 Hi,
 
 I have developed a very simple plugin that does nothing. 
 (code included below).
 
 The problem is that I cannot seem to pass in a parameter 
 either on the command line or via a POM (in another project 
 that defines this plugin in the build section):
 
   mvn cleartrust:extract -Dverbose=Testing
 
 or
 
   configuration
   verbosetesting/verbose
   /configuration
 
 Could someone point me in the right direction here?
 
 package uk.co.nwlcoc.aa.maven.plugins;
 
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 
 /**
  * @goal extract
  * @phase package
  * @author Marc
  * @version $LastChangedRevision$
  */
 public class ClearTrustMojo extends AbstractMojo {
   /**
* @parameter
*/
   private String verbose;
 
   public void execute() throws MojoExecutionException, 
 MojoFailureException
   {
   getLog().info(   + verbose );
   }
 
 }
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIduk.co.nwlcoc.aa.maven.plugins/groupId
   artifactIdmaven-cleartrust-plugin/artifactId
   packagingmaven-plugin/packaging
   version1.0-SNAPSHOT/version
   nameClearTrust Mojo/name
   dependencies
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-plugin-api/artifactId
   version2.0/version
 /dependency
   /dependencies
 /project
 
 Kind regards,
 --
 Marc
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: [m2] copy of Central Repository

2006-08-25 Thread Marc L. Veary
Hi.

We started using mvn deploy:deploy-file, but then realised that if we did a
full build on the box that hosts our internal repo - this would do the job -
and it does.

However, I would like to know if there is a better or 'proper' solution to
this.

Kind regards,
--
Marc

-Original Message-
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED]
Sent: 25 August 2006 07:54
To: Maven Users List
Subject: [m2] copy of Central Repository


Hi All,

In maven 1.x I could execute maven once on a project and build my local
repository. I could then copy it on to my company's central server and
get all the developers to refer to this for updates.

When I needed a new plugin or dependency, I could run maven 1.x against
ibiblio and follow the above process.

The above strategy ensured that we had only the plugins  dependencies
we needed and not the whole central repository of 5G. I am not going
into the details of how I kept this up-to-date as it would side track
the main issue that I wish to discuss.


Now, in maven 2 I did the same process as described above. The build
started breaking, with errors such as -- plugin 'xxx' does not exist or
no valid version could be found --. 

Further investigation revealed this problem was due to two missing files
in my repository.
   a) maven-metadata.xml
   b) maven-metadata.xml.sha1

In my local repository these files are named as 
   a) maven-metadata-central.xml 
   b) maven-metadata-central.xml.sha1

so when I copied my local repository to my company's central repository
the above files caused the problem.

When I renamed the files as required, maven 2 was happy and everything
started to work again.


So my question is, is there a easier way of getting the required
components from maven central repository copied to my company's central
server without having to take a full copy ?

Well, an alternative is to create a script to traverse the repository
and rename the files as required.

I would much appreciate to hear from anyone who has solved this problem
or is there a tool/process that I have overlooked.

Thanks in advance 

Lakshman


-
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: Plugin Development Issue

2006-08-25 Thread Marc L. Veary
Many thanks.

This is the answer just worked it out - appreciate your time and willingness
to help.

Kind regards,
--
Marc


-Original Message-
From: William Ferguson
[mailto:[EMAIL PROTECTED]
Sent: 25 August 2006 08:32
To: Maven Users List
Subject: RE: Plugin Development Issue


To allow your parameter to be specified from the command line yoour
parameter specification  needs to define the name of the commandline
parameter that it will accept. Eg

/**
 * @parameter expression=${foo.bar}
 */
private String verbose;

Should work with a commandline of 
  mvn cleartrust:extract -Dfoo.bar=Testing

The POM configuration should work.
Are you sure you've defined the verbose element within your plugin
definition's configuration block?

William


 -Original Message-
 From: Marc L. Veary [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 25 August 2006 4:57 PM
 To: 'Maven Users'
 Subject: Plugin Development Issue
 
 Hi,
 
 I have developed a very simple plugin that does nothing. 
 (code included below).
 
 The problem is that I cannot seem to pass in a parameter 
 either on the command line or via a POM (in another project 
 that defines this plugin in the build section):
 
   mvn cleartrust:extract -Dverbose=Testing
 
 or
 
   configuration
   verbosetesting/verbose
   /configuration
 
 Could someone point me in the right direction here?
 
 package uk.co.nwlcoc.aa.maven.plugins;
 
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 
 /**
  * @goal extract
  * @phase package
  * @author Marc
  * @version $LastChangedRevision$
  */
 public class ClearTrustMojo extends AbstractMojo {
   /**
* @parameter
*/
   private String verbose;
 
   public void execute() throws MojoExecutionException, 
 MojoFailureException
   {
   getLog().info(   + verbose );
   }
 
 }
 
 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIduk.co.nwlcoc.aa.maven.plugins/groupId
   artifactIdmaven-cleartrust-plugin/artifactId
   packagingmaven-plugin/packaging
   version1.0-SNAPSHOT/version
   nameClearTrust Mojo/name
   dependencies
 dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-plugin-api/artifactId
   version2.0/version
 /dependency
   /dependencies
 /project
 
 Kind regards,
 --
 Marc
 
 
 
 -
 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: How to write groovy plugins/mojos?

2006-08-25 Thread bdoumas
Yes, but i've encountered some issues on compiling the whole, it using some old
groovy distribution.

So i'm trying to contact the plugin author, and can anyone told me if the
codehaus mojo mailing list is working cause' i've send several emails for
registering, ain't got no answers...

Ben

***
Benoit doumas
J2EE consultant
www.octo.com
www.doumas.com
***

Selon Lakshman Srilakshmanan [EMAIL PROTECTED]:

 Hi

 Did you try
 http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/groovy-maven-tools/


 Thanks
 Lakshman


  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Friday, 25 August 2006 12:04 AM
  To: Maven Users List; Tomasz Pik
  Cc: Maven Users List
  Subject: Re: How to write groovy plugins/mojos?
 
  Thanks,
 
  I've tried to compile all the sources but it seems quite old and
 doesn't work
  well.
 
  I 've contacted the plugin developper but no answer (maybe holidays:),
 does
  anyone know if he still working on it ?? Maybe i can help ...
 
  Ben
 
  ***
  Benoit doumas
  J2EE consultant
  www.octo.com
  www.doumas.com
  ***
 
 
  Selon Tomasz Pik [EMAIL PROTECTED]:
 
   On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi all,
   
I've seeing on the mailing list that it should be possible to
 write groovy
mojos, like to write Ant mojos.
   
But the project : groovy-maven-tools doesn't seem to work ...
(http://mojo.codehaus.org/groovy-maven-tools = not found)
  
   you may find it here:
  
 
 http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/mojo-sandbox/groovy-
 maven-tools
   but I'm worry that's all I can help.
  
   regards,
   Tomek
  
  
 -
   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: [m2] copy of Central Repository

2006-08-25 Thread Geoffrey De Smet

Putting up a maven proxy might solve your problem:
the first time a jar is needed it downloads it from the central repo and 
caches it.


There are 3 free implementations I know of:
maven-proxy (from the maven guys): beta?, abandoned in favor of Archiva
Archiva (from the maven guys): beta, needs to be build from source, but 
has some positive remarks on this list
Proximity (from 3th party): sounds more stable, has had a bunch of 
releases and some positive remarks on this list


Check this list for Archiva and proximity.

Lakshman Srilakshmanan wrote, On 2006-08-25 8:53 AM:

Hi All,

In maven 1.x I could execute maven once on a project and build my local
repository. I could then copy it on to my company's central server and
get all the developers to refer to this for updates.

When I needed a new plugin or dependency, I could run maven 1.x against
ibiblio and follow the above process.

The above strategy ensured that we had only the plugins  dependencies
we needed and not the whole central repository of 5G. I am not going
into the details of how I kept this up-to-date as it would side track
the main issue that I wish to discuss.


Now, in maven 2 I did the same process as described above. The build
started breaking, with errors such as -- plugin 'xxx' does not exist or
no valid version could be found --. 


Further investigation revealed this problem was due to two missing files
in my repository.
   a) maven-metadata.xml
   b) maven-metadata.xml.sha1

In my local repository these files are named as 
   a) maven-metadata-central.xml 
   b) maven-metadata-central.xml.sha1


so when I copied my local repository to my company's central repository
the above files caused the problem.

When I renamed the files as required, maven 2 was happy and everything
started to work again.


So my question is, is there a easier way of getting the required
components from maven central repository copied to my company's central
server without having to take a full copy ?

Well, an alternative is to create a script to traverse the repository
and rename the files as required.

I would much appreciate to hear from anyone who has solved this problem
or is there a tool/process that I have overlooked.

Thanks in advance 


Lakshman


--
With kind regards,
Geoffrey De Smet


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



Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Valerio Schiavoni

Hello Max,


Max Cooper wrote:
 
 If you have a structure like this:
 
 root
 |--module1
 |--module2
 |--submodule2-1
 

my structure is a bit simpler, without nested submodules.


Max Cooper wrote:
 
 ... you would have to make sure that you hide/delete/rename the .project 
 file in both the root and module2 directories for the submodule2-1 
 project to show up on the import.
 

so fortunately this is not my case.


Max Cooper wrote:
 
 Eclipse does not support hierarchical project  structures.
 
i thought eclipse 3.2 just introduced this new feature ...


Max Cooper wrote:
 
 IMO, moving your parent pom to a subdir is a better compromise than 
 having all of your files show up two or more times in Eclipse. 
 
of course, but this would break a well established maven convention, which
i'd like to avoid..



-Max

Valerio Schiavoni wrote:
 
 baerrach wrote:
 Because there is no .project file eclipse will show all the
 subprojects as being available.

 
 i don't get this step working...it doesn't show submodule projects as
 being
 availble, even if each of them have their respective .project and
 .classpath
 
 any one with my same issue ?
 
 thanks,
 valerio

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




-- 
View this message in context: 
http://www.nabble.com/-m2--eclipse%3Aeclipse-and-eclipse-3.2-projects-within-a-project-support.-tf2112924.html#a5979145
Sent from the Maven - Users forum at Nabble.com.


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



RE: How to write groovy plugins/mojos?

2006-08-25 Thread Vincent Massol


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: vendredi 25 août 2006 09:48
 To: Lakshman Srilakshmanan
 Cc: Maven Users List
 Subject: RE: How to write groovy plugins/mojos?
 
 Yes, but i've encountered some issues on compiling the whole, it using
 some old
 groovy distribution.
 
 So i'm trying to contact the plugin author, and can anyone told me if the
 codehaus mojo mailing list is working cause' i've send several emails for
 registering, ain't got no answers...

I think you need to use xircles now (yeah I know it's a pain):
http://xircles.codehaus.org/manage_email

-Vincent

 Selon Lakshman Srilakshmanan [EMAIL PROTECTED]:
 
  Hi
 
  Did you try
  http://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/groovy-maven-tools/
 
 
  Thanks
  Lakshman
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Friday, 25 August 2006 12:04 AM
   To: Maven Users List; Tomasz Pik
   Cc: Maven Users List
   Subject: Re: How to write groovy plugins/mojos?
  
   Thanks,
  
   I've tried to compile all the sources but it seems quite old and
  doesn't work
   well.
  
   I 've contacted the plugin developper but no answer (maybe holidays:),
  does
   anyone know if he still working on it ?? Maybe i can help ...
  
   Ben
  
   ***
   Benoit doumas
   J2EE consultant
   www.octo.com
   www.doumas.com
   ***
  
  
   Selon Tomasz Pik [EMAIL PROTECTED]:
  
On 8/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi all,

 I've seeing on the mailing list that it should be possible to
  write groovy
 mojos, like to write Ant mojos.

 But the project : groovy-maven-tools doesn't seem to work ...
 (http://mojo.codehaus.org/groovy-maven-tools = not found)
   
you may find it here:
   
  
  http://svn.mojo.codehaus.org/browse/mojo/trunk/mojo/mojo-sandbox/groovy-
  maven-tools
but I'm worry that's all I can help.
   
regards,
Tomek
   
   
  -
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]



 p4.vert.ukl.yahoo.com uncompressed Fri Aug 25 07:27:01 GMT 2006


___
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences.
http://fr.answers.yahoo.com


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



Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Barrie Treloar

On 8/25/06, Valerio Schiavoni [EMAIL PROTECTED] wrote:

 Eclipse does not support hierarchical project  structures.

i thought eclipse 3.2 just introduced this new feature ...


Yes it does.
Hence my original post wondering how to get it to work.
The notes I posted worked for me.

Try to get it working manually to prove to yourself that it can be done.
Just checkout a multi-module project and then try to import the
modules as existing projects.
If you can't get that to work you may have other problems.

Then its just a matter of running mvn eclipse:eclipse from the root,
delete the root/.project file and doing the same steps again.

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



RE: hibernate3-maven-plugin: hbm2hbmxml does not generate any hbm.xml files

2006-08-25 Thread kajh

Hi!

Thanks for answering!

No. I don't have any pojos yet.

I have a database and want to generate hbm.xml files for the tables owned by
the given databaseuser in this database, and then generate pojos from these
hbm.xml files.


-Kaj :)


Johann Reyes-2 wrote:
 
 Kaj
 
 Question, do you have annotated classes? 
 

-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin%3A-hbm2hbmxml-does-not-generate-any-hbm.xml-files-tf2157468.html#a5979349
Sent from the Maven - Users forum at Nabble.com.


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



maven1 doesn't download artifacts from Archiva...

2006-08-25 Thread Nicolas De Loof


I've setup my archiva as a maven proxy and can get artifacts as expected 
using legacy path when using a browser.


I've set maven.repo.remote = 
http://localhost:8080/maven-repository-webapp/proxy/vasn/
Now, when I run maven (1.1-beta-3) to build my project, artifacts are 
downloaded in my managed repo as expected, but maven1 doesn't put them 
into my local repo :

I get output in maven console :

Tentative de téléchargement des dépandances manquantes/snapshot requis 
par hamlet:

Tentative de téléchargement de log4j-1.2.13.jar.
Téléchargement passé car la copie locale est à jour!
Tentative de téléchargement de commons-modeler-1.1.jar.
Téléchargement passé car la copie locale est à jour!
...


Just to help, here is the HTTP headers I get when using a browser :


GET /maven-repository-webapp/proxy/vasn//log4j/jars/log4j-1.2.13.jar 
HTTP/1.1

Host: localhost:8580
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.6) 
Gecko/20060728 Firefox/1.5.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=7CB00D6F750F3BB6B228688AD48BC923; 
jforumUserHash=null; jforumAutoLogin=null; jforumUserId=2


HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
content-disposition: filename=log4j-1.2.13.jar
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Date: Fri, 25 Aug 2006 08:22:44 GMT


Any idea ?

Nico.





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.



Multi-project site generation

2006-08-25 Thread Arnaud Bailly
Hi,
I am trying to create site and deploy it for a multi-project
package. In the coo (parent) pom, I define various reports to
generate. The root also contains src/site/... tree with
documentation. The site.xml does not contains reports sections. The
pom is:


 reporting
  plugins
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
   /plugin
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
   /plugin
   plugin
 groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId
   /plugin

   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   /plugin
   
   plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjxr-maven-plugin/artifactId
   /plugin
   
   plugin
groupIdorg.codehaus.mojo/groupId
artifactIdchanges-maven-plugin/artifactId 
   /plugin
  /plugins
 /reporting


The modules each contain src/site/site.xml descriptor and POMs inherit
from parent without any additional reports. Here is a sample site
descriptor:

?xml version=1.0 encoding=ISO-8859-1?
project name=JAutomata Core
 skin
  groupIdorg.apache.maven.skins/groupId
  artifactIdmaven-stylus-skin/artifactId
  version1.0/version
 /skin
 poweredBy
  logo
   name=Hosted on SourceForge.net
   href=http://sourceforge.net;   
   img=http://sflogo.sourceforge.net/sflogo.php?group_id=170468amp;type=1/
  logo
   name=Build with Maven 2
   href=http://maven.apache.org;
   img=images/logos/maven-feather.png/
 /poweredBy  
 body
  links
   item name=Maven 2 href=http://maven.apache.org/maven2//
  /links

  menu name=JAuto ref=parent /
  
  menu name=Standard reports ref=reports /

 /body
/project

What happens is that 'mvn site' fails in parent site generation with:


[INFO] Generate Project Team report.
[INFO] Generate Maven Surefire Report report.
[INFO] Generate Cobertura Test Coverage report.
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[ERROR] Error: data file 
/home/nono/projets/jautomata/jautomata-2.0/cobertura.ser does not exist

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

Embedded error: Error rendering Maven report: Error in Cobertura Report 
generation: Unable to generate Cobertura Report for project.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 25 seconds
[INFO] Finished at: Fri Aug 25 10:19:56 CEST 2006
[INFO] Final Memory: 21M/38M

This is normal as the parent does not contains any code. What
puzzles me is that this generation process used to work when  child
did not have descriptors !? 

Help would be of course appreciated. 

-- 
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: Multi-project site generation

2006-08-25 Thread Stéphane Bouchet

Arnaud Bailly a écrit :

Hi,
I am trying to create site and deploy it for a multi-project
package. In the coo (parent) pom, I define various reports to
generate. The root also contains src/site/... tree with
documentation. The site.xml does not contains reports sections. The
pom is:


 reporting
  plugins
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-project-info-reports-plugin/artifactId
   /plugin
   plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
   /plugin
   plugin
 groupIdorg.codehaus.mojo/groupId
artifactIdsurefire-report-maven-plugin/artifactId
   /plugin

   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   /plugin
   
   plugin

groupIdorg.codehaus.mojo/groupId
artifactIdjxr-maven-plugin/artifactId
   /plugin
   
   plugin

groupIdorg.codehaus.mojo/groupId
artifactIdchanges-maven-plugin/artifactId 
   /plugin

  /plugins
 /reporting


The modules each contain src/site/site.xml descriptor and POMs inherit
from parent without any additional reports. Here is a sample site
descriptor:

?xml version=1.0 encoding=ISO-8859-1?
project name=JAutomata Core
 skin
  groupIdorg.apache.maven.skins/groupId
  artifactIdmaven-stylus-skin/artifactId
  version1.0/version
 /skin
 poweredBy
  logo
   name=Hosted on SourceForge.net
   href=http://sourceforge.net;   
   img=http://sflogo.sourceforge.net/sflogo.php?group_id=170468amp;type=1/

  logo
   name=Build with Maven 2
   href=http://maven.apache.org;
   img=images/logos/maven-feather.png/
 /poweredBy  
 body

  links
   item name=Maven 2 href=http://maven.apache.org/maven2//
  /links

  menu name=JAuto ref=parent /
  
  menu name=Standard reports ref=reports /


 /body
/project

What happens is that 'mvn site' fails in parent site generation with:


[INFO] Generate Project Team report.
[INFO] Generate Maven Surefire Report report.
[INFO] Generate Cobertura Test Coverage report.
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[ERROR] Error: data file 
/home/nono/projets/jautomata/jautomata-2.0/cobertura.ser does not exist

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

Embedded error: Error rendering Maven report: Error in Cobertura Report 
generation: Unable to generate Cobertura Report for project.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 25 seconds
[INFO] Finished at: Fri Aug 25 10:19:56 CEST 2006
[INFO] Final Memory: 21M/38M

This is normal as the parent does not contains any code. What
puzzles me is that this generation process used to work when  child
did not have descriptors !? 

Help would be of course appreciated. 

  

Hi,

there is an issue with cobertura-report.
See : http://jira.codehaus.org/browse/MCOBERTURA-38

It seems it is fixed in trunk, so try to build it from it.

Cheers,

Stéphane

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



RE: [m2] copy of Central Repository

2006-08-25 Thread Lakshman Srilakshmanan
Hi Marc,

I did a full build on the box that hosts our internal repo, but as
explained, it did not work for me. I have also explained, below, my
finding why it did not work. Could you please confirm the name of the
following files in your repository. 

a) maven-metadata*.xml
b) maven-metadata*.xml.sha1


Is it possible you are still looking at the central server at
http://repo1.maven.org/maven2 ??



Thanks
Lakshman


 -Original Message-
 From: Marc L. Veary [mailto:[EMAIL PROTECTED]
 Sent: Friday, 25 August 2006 5:40 PM
 To: 'Maven Users List'
 Subject: RE: [m2] copy of Central Repository
 
 Hi.
 
 We started using mvn deploy:deploy-file, but then realised that if we
did a
 full build on the box that hosts our internal repo - this would do the
job -
 and it does.
 
 However, I would like to know if there is a better or 'proper'
solution to
 this.
 
 Kind regards,
 --
 Marc
 
 -Original Message-
 From: Lakshman Srilakshmanan
 [mailto:[EMAIL PROTECTED]
 Sent: 25 August 2006 07:54
 To: Maven Users List
 Subject: [m2] copy of Central Repository
 
 
 Hi All,
 
 In maven 1.x I could execute maven once on a project and build my
local
 repository. I could then copy it on to my company's central server and
 get all the developers to refer to this for updates.
 
 When I needed a new plugin or dependency, I could run maven 1.x
against
 ibiblio and follow the above process.
 
 The above strategy ensured that we had only the plugins  dependencies
 we needed and not the whole central repository of 5G. I am not going
 into the details of how I kept this up-to-date as it would side track
 the main issue that I wish to discuss.
 
 
 Now, in maven 2 I did the same process as described above. The build
 started breaking, with errors such as -- plugin 'xxx' does not exist
or
 no valid version could be found --.
 
 Further investigation revealed this problem was due to two missing
files
 in my repository.
a) maven-metadata.xml
b) maven-metadata.xml.sha1
 
 In my local repository these files are named as
a) maven-metadata-central.xml
b) maven-metadata-central.xml.sha1
 
 so when I copied my local repository to my company's central
repository
 the above files caused the problem.
 
 When I renamed the files as required, maven 2 was happy and everything
 started to work again.
 
 
 So my question is, is there a easier way of getting the required
 components from maven central repository copied to my company's
central
 server without having to take a full copy ?
 
 Well, an alternative is to create a script to traverse the repository
 and rename the files as required.
 
 I would much appreciate to hear from anyone who has solved this
problem
 or is there a tool/process that I have overlooked.
 
 Thanks in advance
 
 Lakshman
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: [m2] copy of Central Repository

2006-08-25 Thread Lakshman Srilakshmanan
Hi 

We can't do this because from time to time we may need to download files
manually and install it.

Thanks
Lakshman


 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
 Sent: Friday, 25 August 2006 5:57 PM
 To: users@maven.apache.org
 Subject: Re: [m2] copy of Central Repository
 
 Putting up a maven proxy might solve your problem:
 the first time a jar is needed it downloads it from the central repo
and
 caches it.
 
 There are 3 free implementations I know of:
 maven-proxy (from the maven guys): beta?, abandoned in favor of
Archiva
 Archiva (from the maven guys): beta, needs to be build from source,
but
 has some positive remarks on this list
 Proximity (from 3th party): sounds more stable, has had a bunch of
 releases and some positive remarks on this list
 
 Check this list for Archiva and proximity.
 
 Lakshman Srilakshmanan wrote, On 2006-08-25 8:53 AM:
  Hi All,
 
  In maven 1.x I could execute maven once on a project and build my
local
  repository. I could then copy it on to my company's central server
and
  get all the developers to refer to this for updates.
 
  When I needed a new plugin or dependency, I could run maven 1.x
against
  ibiblio and follow the above process.
 
  The above strategy ensured that we had only the plugins 
dependencies
  we needed and not the whole central repository of 5G. I am not going
  into the details of how I kept this up-to-date as it would side
track
  the main issue that I wish to discuss.
 
 
  Now, in maven 2 I did the same process as described above. The build
  started breaking, with errors such as -- plugin 'xxx' does not exist
or
  no valid version could be found --.
 
  Further investigation revealed this problem was due to two missing
files
  in my repository.
 a) maven-metadata.xml
 b) maven-metadata.xml.sha1
 
  In my local repository these files are named as
 a) maven-metadata-central.xml
 b) maven-metadata-central.xml.sha1
 
  so when I copied my local repository to my company's central
repository
  the above files caused the problem.
 
  When I renamed the files as required, maven 2 was happy and
everything
  started to work again.
 
 
  So my question is, is there a easier way of getting the required
  components from maven central repository copied to my company's
central
  server without having to take a full copy ?
 
  Well, an alternative is to create a script to traverse the
repository
  and rename the files as required.
 
  I would much appreciate to hear from anyone who has solved this
problem
  or is there a tool/process that I have overlooked.
 
  Thanks in advance
 
  Lakshman
 
 --
 With kind regards,
 Geoffrey De Smet
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: [m2] copy of Central Repository

2006-08-25 Thread Lakshman Srilakshmanan
Hi All,

I think the answer lies in Maven Repository Manager. Pg 200 in the book
Better Builds with Maven.

Could someone please verify my understanding and whether a download is
available ?

Thanks
Lakshman


 -Original Message-
 From: Lakshman Srilakshmanan
 Sent: Friday, 25 August 2006 4:54 PM
 To: Maven Users List
 Subject: [m2] copy of Central Repository
 
 Hi All,
 
 In maven 1.x I could execute maven once on a project and build my
local
 repository. I could then copy it on to my company's central server and
 get all the developers to refer to this for updates.
 
 When I needed a new plugin or dependency, I could run maven 1.x
against
 ibiblio and follow the above process.
 
 The above strategy ensured that we had only the plugins  dependencies
 we needed and not the whole central repository of 5G. I am not going
 into the details of how I kept this up-to-date as it would side track
 the main issue that I wish to discuss.
 
 
 Now, in maven 2 I did the same process as described above. The build
 started breaking, with errors such as -- plugin 'xxx' does not exist
or
 no valid version could be found --.
 
 Further investigation revealed this problem was due to two missing
files
 in my repository.
a) maven-metadata.xml
b) maven-metadata.xml.sha1
 
 In my local repository these files are named as
a) maven-metadata-central.xml
b) maven-metadata-central.xml.sha1
 
 so when I copied my local repository to my company's central
repository
 the above files caused the problem.
 
 When I renamed the files as required, maven 2 was happy and everything
 started to work again.
 
 
 So my question is, is there a easier way of getting the required
 components from maven central repository copied to my company's
central
 server without having to take a full copy ?
 
 Well, an alternative is to create a script to traverse the repository
 and rename the files as required.
 
 I would much appreciate to hear from anyone who has solved this
problem
 or is there a tool/process that I have overlooked.
 
 Thanks in advance
 
 Lakshman
 
 
 -
 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 upload a repository on to apache httpd server

2006-08-25 Thread manoj kaushik

hi everyone
i want to upload a repository  on to the apache httpd server, the one way is
to map the source location in httpd.conf file,i want to know if there is any
way to place it directly in any module pf httpd server similar to place our
source in webaap folder of tomcat server.
thanks in advance

Manoj Kaushik


RE: [m2] copy of Central Repository

2006-08-25 Thread Marc L. Veary
Hi Lakshman,

We have a number of these files some are *-local.xml, some are
*-ibiblio.xml, some are the name of the repo from setting.xml on dev
machines.

I'm not an expert at this, and please excuse if I am stating the obvious,
but did you try using -U switch?

Kind regards,
--
Marc

-Original Message-
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED]
Sent: 25 August 2006 09:18
To: Maven Users List
Subject: RE: [m2] copy of Central Repository


Hi Marc,

I did a full build on the box that hosts our internal repo, but as
explained, it did not work for me. I have also explained, below, my
finding why it did not work. Could you please confirm the name of the
following files in your repository. 

a) maven-metadata*.xml
b) maven-metadata*.xml.sha1


Is it possible you are still looking at the central server at
http://repo1.maven.org/maven2 ??



Thanks
Lakshman


 -Original Message-
 From: Marc L. Veary [mailto:[EMAIL PROTECTED]
 Sent: Friday, 25 August 2006 5:40 PM
 To: 'Maven Users List'
 Subject: RE: [m2] copy of Central Repository
 
 Hi.
 
 We started using mvn deploy:deploy-file, but then realised that if we
did a
 full build on the box that hosts our internal repo - this would do the
job -
 and it does.
 
 However, I would like to know if there is a better or 'proper'
solution to
 this.
 
 Kind regards,
 --
 Marc
 
 -Original Message-
 From: Lakshman Srilakshmanan
 [mailto:[EMAIL PROTECTED]
 Sent: 25 August 2006 07:54
 To: Maven Users List
 Subject: [m2] copy of Central Repository
 
 
 Hi All,
 
 In maven 1.x I could execute maven once on a project and build my
local
 repository. I could then copy it on to my company's central server and
 get all the developers to refer to this for updates.
 
 When I needed a new plugin or dependency, I could run maven 1.x
against
 ibiblio and follow the above process.
 
 The above strategy ensured that we had only the plugins  dependencies
 we needed and not the whole central repository of 5G. I am not going
 into the details of how I kept this up-to-date as it would side track
 the main issue that I wish to discuss.
 
 
 Now, in maven 2 I did the same process as described above. The build
 started breaking, with errors such as -- plugin 'xxx' does not exist
or
 no valid version could be found --.
 
 Further investigation revealed this problem was due to two missing
files
 in my repository.
a) maven-metadata.xml
b) maven-metadata.xml.sha1
 
 In my local repository these files are named as
a) maven-metadata-central.xml
b) maven-metadata-central.xml.sha1
 
 so when I copied my local repository to my company's central
repository
 the above files caused the problem.
 
 When I renamed the files as required, maven 2 was happy and everything
 started to work again.
 
 
 So my question is, is there a easier way of getting the required
 components from maven central repository copied to my company's
central
 server without having to take a full copy ?
 
 Well, an alternative is to create a script to traverse the repository
 and rename the files as required.
 
 I would much appreciate to hear from anyone who has solved this
problem
 or is there a tool/process that I have overlooked.
 
 Thanks in advance
 
 Lakshman
 
 
 -
 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]

displayFileDetailUrl with ViewVC SVN

2006-08-25 Thread Rob MavenUser

Does anybody has a simple pom.xml with an example of configuration ? (Maven2
changelog plugin)
I do not see anything on the website.

Thanks

Rob
-- 
View this message in context: 
http://www.nabble.com/displayFileDetailUrl-with-ViewVC---SVN-tf2163677.html#a5980186
Sent from the Maven - Users forum at Nabble.com.


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



building several jar files using maven-jar-plugin

2006-08-25 Thread chua

Hello,

I have a maven1 project and I want to migrate it to maven2.
In maven2 doesn´t exist maven.xml and I have to do all the things that did
maven.xml using plugins.
My maven.xml did a war of the project but It did several things more. For
doing the same things as maven.xml I have to create a directory called
applet for my applets and into this directory I have to add:

- 3 jar files from /etc/applet_bin directory. That´s easy only doing:

resource
targetPathapplet/targetPath
directory${basedir}/etc/applet_bin/directory
/resource

- 1 jar file that I have to create from 3 properties files from
/etc/applet_text directory
- 1 more jar file (called editor.jar) with all compiled and all files from
/target/classes
- The last thing: I have to sign editor.jar

The first I did was to translate the part od maven.xml that did this using
maven-antrun-plugin and It works fine but I would want not to use ant
because I want a full migration.

Now, I´m using maven-jar-plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId   
executions
execution
idmaking_applet_text/id
phaseprocess-classes/phase
configuration
jarNameapplet_text/jarName
basedir${basedir}/etc/applet_text/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory
/configuration
goals
goaljar/goal
/goals
/execution
execution
idmaking_editor/id
phaseprocess-classes/phase  
configuration
jarNameeditor/jarName
basedir${project.build.outputDirectory}/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory  
excludes  
exclude**/applet/**/exclude
/excludes
/configuration
goals
goaljar/goal
/goals
/execution
execution
idsigning/id
phasepackage/phase
configuration
jarNameeditor/jarName
basedir${project.build.outputDirectory}/applet/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory
!--Options form signing the jar file--
/configuration
goals
goalsign/goal
/goals
/execution
/executions
/plugin

But first two jars are alwas jars composed by the compiled and filtered
files from target/classes directory (this is
${project.build.outputDirectory}) and the plugin signs the final war file
and it doesn´t sign the file I want (editor.jar).

I think the problem is that I don´t know how to say to pom.xml that the
files I want to pack in a jar file are in the location I want. I´ve written
basedirlocationbasedir but it doesn´t work.

Any idea?

Thanks and sorry for the lenght.

-- 
View this message in context: 
http://www.nabble.com/building-several-jar-files-using-maven-jar-plugin-tf2163705.html#a5980275
Sent from the Maven - Users forum at Nabble.com.


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



Broken build due to antrun version

2006-08-25 Thread Jörg Schaible
Hi folks,

we encounter a problem with the version(s) of the antrun plugin. We configured 
this plugin for a module successfully and it works as expected. The problem is 
that the build breaks in multi-module mode i.e. if the module is not build 
locally. After looking though the debug output for a while we noticed, that the 
local build is using version 1.1 of the antrun plugin. If we build from the 
parent we get this exception:

== % 
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
gins:maven-antrun-plugin:1.0:run': Unable to find the mojo 'org.apache.maven.plu
gins:maven-antrun-plugin:1.0:run' in the plugin 'org.apache.maven.plugins:maven-
antrun-plugin'
Component descriptor cannot be found in the component repository: org.apache.mav
en.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run.
[INFO] 
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the pl
ugin manager executing goal 'org.apache.maven.plugins:maven-antrun-plugin:1.0:ru
n': Unable to find the mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:ru
n' in the plugin 'org.apache.maven.plugins:maven-antrun-plugin'
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:538)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find the mo
jo 'org.apache.maven.plugins:maven-antrun-plugin:1.0:run' in the plugin 'org.apa
che.maven.plugins:maven-antrun-plugin'
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:533)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:390)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Component descriptor cannot be found in the component repository: org.ap
ache.maven.plugin.Mojoorg.apache.maven.plugins:maven-antrun-plugin:1.0:run.
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:323)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:312)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:524)
... 18 more
== % 

Obvisouly Maven suddenly tries to use version 1.0 of the plugin for unknown 
reason and fails. We already defined the version of the plugin in the local POM 
of the module as 1.1, but there's no difference, in multi-module mode M2 still 
wants 1.0. So what can we do now?

- Jörg

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



Re: maven1 doesn't download artifacts from Archiva...

2006-08-25 Thread Nicolas De Loof


Maven1 is sending an If-Modified-Since header. Sounds like Archiva 
doesn't send the file. As it just downloaded it, I supose file in 
managed repo has lastchanged date to now. So this sounds like an 
Archiva bug.


Nicolas De Loof a écrit :


I've setup my archiva as a maven proxy and can get artifacts as 
expected using legacy path when using a browser.


I've set maven.repo.remote = 
http://localhost:8080/maven-repository-webapp/proxy/vasn/
Now, when I run maven (1.1-beta-3) to build my project, artifacts are 
downloaded in my managed repo as expected, but maven1 doesn't put them 
into my local repo :

I get output in maven console :

Tentative de téléchargement des dépandances manquantes/snapshot requis 
par hamlet:

Tentative de téléchargement de log4j-1.2.13.jar.
Téléchargement passé car la copie locale est à jour!
Tentative de téléchargement de commons-modeler-1.1.jar.
Téléchargement passé car la copie locale est à jour!
...


Just to help, here is the HTTP headers I get when using a browser :


GET /maven-repository-webapp/proxy/vasn//log4j/jars/log4j-1.2.13.jar 
HTTP/1.1

Host: localhost:8580
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.6) 
Gecko/20060728 Firefox/1.5.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 


Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=7CB00D6F750F3BB6B228688AD48BC923; 
jforumUserHash=null; jforumAutoLogin=null; jforumUserId=2


HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
content-disposition: filename=log4j-1.2.13.jar
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Date: Fri, 25 Aug 2006 08:22:44 GMT


Any idea ?

Nico.





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.




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.



[m2 2.0.4] maven-release-plugin 2.0-beta-4 fails with ejb-client depency type to perform prepare

2006-08-25 Thread Markku Saarela
For all ejb-client type depencies in multiproject system fails to 
resolve artifacts:


   dependency
 groupIdvarma.yrpro.income/groupId
 artifactIddbserviceejb/artifactId
 version1.0-SNAPSHOT/version
 typeejb-client/type
   /dependency

produces error like this:

[INFO] Failed to resolve artifact.

Missing:
--
1) varma.yrpro.income:dbserviceejb:ejb-client:client:1.0

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=varma.yrpro.income 
-DartifactId=dbserviceejb \

 -Dversion=1.0 -Dpackaging=ejb-client -Dfile=/path/to/file

 Path to dependency:
   1) varma.yrpro.income:ctrlcommon:ejb:1.0
   2) varma.yrpro.income:dbserviceejb:ejb-client:client:1.0

Any ideas solving this problem.

Last wednesday it worked and now it's broken.

- Markku Saarela


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



POM not downloaded from remote repository for patched plugin

2006-08-25 Thread Szak�ly
Hi all,

I made a modification to the surefire plugin for use in our project
(to modify the classloading order). I installed the plugin to our
company Maven repository. The surprise: when running Maven, Maven
recognises the new version of the plugin, the JAR file of the patched
plugin is downloaded to the local repository, but the POM file is
not. Consequently the build fails.

On the other hand:

If I download the POM file manually to the local repository, the
plugin starts working.

If I add the plugin artifact to my Maven project as a dependency and
execute 'mvn compile', the same POM file *does get downloaded* and
the plugin starts working If I execute 'mvn install' instead 'mvn
compile', the POM is *not* downloaded.

Any idea?

Gergely

__
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: maven1 doesn't download artifacts from Archiva...

2006-08-25 Thread Nicolas De Loof


I was wrong in this diagnostic.

Sounds like a Wagon bug : When artifact doesn't exists, maven ask for 
last-modified = 0

Archiva response has no last-modified header, so wagon uses lastModified=0

The response content is extracted from HTTP response only if (timestamp 
 lastModified).


- This is a Wagon HTTP provider bug. It should consider long 
lastModified = Long.MAX_VALUE; as default


- To be compatible with existing maven, Archiva should send a 
Last-Modified header. No idea what value to send. Idealy, the 
last-modified date of the artifact in the proxied repo would be the best.



Nicolas De Loof a écrit :


Maven1 is sending an If-Modified-Since header. Sounds like Archiva 
doesn't send the file. As it just downloaded it, I supose file in 
managed repo has lastchanged date to now. So this sounds like an 
Archiva bug.


Nicolas De Loof a écrit :


I've setup my archiva as a maven proxy and can get artifacts as 
expected using legacy path when using a browser.


I've set maven.repo.remote = 
http://localhost:8080/maven-repository-webapp/proxy/vasn/
Now, when I run maven (1.1-beta-3) to build my project, artifacts are 
downloaded in my managed repo as expected, but maven1 doesn't put 
them into my local repo :

I get output in maven console :

Tentative de téléchargement des dépandances manquantes/snapshot 
requis par hamlet:

Tentative de téléchargement de log4j-1.2.13.jar.
Téléchargement passé car la copie locale est à jour!
Tentative de téléchargement de commons-modeler-1.1.jar.
Téléchargement passé car la copie locale est à jour!
...


Just to help, here is the HTTP headers I get when using a browser :


GET /maven-repository-webapp/proxy/vasn//log4j/jars/log4j-1.2.13.jar 
HTTP/1.1

Host: localhost:8580
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.6) 
Gecko/20060728 Firefox/1.5.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 


Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=7CB00D6F750F3BB6B228688AD48BC923; 
jforumUserHash=null; jforumAutoLogin=null; jforumUserId=2


HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
content-disposition: filename=log4j-1.2.13.jar
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Date: Fri, 25 Aug 2006 08:22:44 GMT


Any idea ?

Nico.





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.




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.




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.



Re: maven1 doesn't download artifacts from Archiva...

2006-08-25 Thread Nicolas De Loof


I don't find support for Last-Modified header in webwork StreamResult. I 
never used webwork before, so I don't knwo where to search...


I'd like to add this to ProxyAction :

private Date lastModified;

public String execute()
   throws ProxyException
   {
  ...
   lastModified = new Date(file.lastModified());
  ...
   }

It seems the default Date.toString() is acceptable for Last-Modified header.

Nico.

Nicolas De Loof a écrit :


I was wrong in this diagnostic.

Sounds like a Wagon bug : When artifact doesn't exists, maven ask for 
last-modified = 0
Archiva response has no last-modified header, so wagon uses 
lastModified=0


The response content is extracted from HTTP response only if 
(timestamp  lastModified).


- This is a Wagon HTTP provider bug. It should consider long 
lastModified = Long.MAX_VALUE; as default


- To be compatible with existing maven, Archiva should send a 
Last-Modified header. No idea what value to send. Idealy, the 
last-modified date of the artifact in the proxied repo would be the best.



Nicolas De Loof a écrit :


Maven1 is sending an If-Modified-Since header. Sounds like Archiva 
doesn't send the file. As it just downloaded it, I supose file in 
managed repo has lastchanged date to now. So this sounds like an 
Archiva bug.


Nicolas De Loof a écrit :


I've setup my archiva as a maven proxy and can get artifacts as 
expected using legacy path when using a browser.


I've set maven.repo.remote = 
http://localhost:8080/maven-repository-webapp/proxy/vasn/
Now, when I run maven (1.1-beta-3) to build my project, artifacts 
are downloaded in my managed repo as expected, but maven1 doesn't 
put them into my local repo :

I get output in maven console :

Tentative de téléchargement des dépandances manquantes/snapshot 
requis par hamlet:

Tentative de téléchargement de log4j-1.2.13.jar.
Téléchargement passé car la copie locale est à jour!
Tentative de téléchargement de commons-modeler-1.1.jar.
Téléchargement passé car la copie locale est à jour!
...


Just to help, here is the HTTP headers I get when using a browser :


GET /maven-repository-webapp/proxy/vasn//log4j/jars/log4j-1.2.13.jar 
HTTP/1.1

Host: localhost:8580
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.0.6) 
Gecko/20060728 Firefox/1.5.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 


Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=7CB00D6F750F3BB6B228688AD48BC923; 
jforumUserHash=null; jforumAutoLogin=null; jforumUserId=2


HTTP/1.x 200 OK
Server: Apache-Coyote/1.1
content-disposition: filename=log4j-1.2.13.jar
Content-Type: application/octet-stream
Transfer-Encoding: chunked
Date: Fri, 25 Aug 2006 08:22:44 GMT


Any idea ?

Nico.





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.




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.




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.




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.



Preventing archetype resources being parsed

2006-08-25 Thread geir.arnesen
Anyone knows if it is possible of preventing archetype resources being
subject to parsing.

I have developed an archetypeArtifact for creating a web application
skeleton based on an inhouse pattern. The project contains several .java
files, - and also graphics. The problem is that all files defined in the
archetype.xml are subject to Velocity template parsing. Is there any way
to prevent files being subject to Velocity parsing??

Geir

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



Re: POM not downloaded from remote repository for patched plugin

2006-08-25 Thread Maria Odea Ching

Hi Gergely,

Have you tried executing mvn install with -U to update the plugins for 
the project?

e.g. mvn install -U

Hope this helps :-)

Thanks,
Odea


Gergely Szakály wrote:


Hi all,

I made a modification to the surefire plugin for use in our project
(to modify the classloading order). I installed the plugin to our
company Maven repository. The surprise: when running Maven, Maven
recognises the new version of the plugin, the JAR file of the patched
plugin is downloaded to the local repository, but the POM file is
not. Consequently the build fails.

On the other hand:

If I download the POM file manually to the local repository, the
plugin starts working.

If I add the plugin artifact to my Maven project as a dependency and
execute 'mvn compile', the same POM file *does get downloaded* and
the plugin starts working If I execute 'mvn install' instead 'mvn
compile', the POM is *not* downloaded.

Any idea?

Gergely

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

 




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



Re: building several jar files using maven-jar-plugin

2006-08-25 Thread Geoffrey De Smet
There's a guide on using maven when you can't use the conventions or 
something that explains one way to do this:
basically create a different pom.xml for each jar and let them use 
common directory's.


chua wrote, On 2006-08-25 11:32 AM:

Hello,

I have a maven1 project and I want to migrate it to maven2.
In maven2 doesn´t exist maven.xml and I have to do all the things that did
maven.xml using plugins.
My maven.xml did a war of the project but It did several things more. For
doing the same things as maven.xml I have to create a directory called
applet for my applets and into this directory I have to add:

- 3 jar files from /etc/applet_bin directory. That´s easy only doing:

resource
targetPathapplet/targetPath
directory${basedir}/etc/applet_bin/directory
/resource

- 1 jar file that I have to create from 3 properties files from
/etc/applet_text directory
- 1 more jar file (called editor.jar) with all compiled and all files from
/target/classes
- The last thing: I have to sign editor.jar

The first I did was to translate the part od maven.xml that did this using
maven-antrun-plugin and It works fine but I would want not to use ant
because I want a full migration.

Now, I´m using maven-jar-plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId   
executions
execution
idmaking_applet_text/id
phaseprocess-classes/phase
configuration
jarNameapplet_text/jarName
basedir${basedir}/etc/applet_text/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory
/configuration
goals
goaljar/goal
/goals
/execution
execution
idmaking_editor/id
phaseprocess-classes/phase  
configuration
jarNameeditor/jarName
basedir${project.build.outputDirectory}/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory  
excludes
exclude**/applet/**/exclude
/excludes
/configuration
goals
goaljar/goal
/goals
/execution
execution
idsigning/id
phasepackage/phase
configuration
jarNameeditor/jarName
basedir${project.build.outputDirectory}/applet/basedir
outputDirectory${project.build.outputDirectory}/applet/outputDirectory
!--Options form signing the jar file--
/configuration
goals
goalsign/goal
/goals
/execution
/executions
/plugin

But first two jars are alwas jars composed by the compiled and filtered
files from target/classes directory (this is
${project.build.outputDirectory}) and the plugin signs the final war file
and it doesn´t sign the file I want (editor.jar).

I think the problem is that I don´t know how to say to pom.xml that the
files I want to pack in a jar file are in the location I want. I´ve written
basedirlocationbasedir but it doesn´t work.

Any idea?

Thanks and sorry for the lenght.



--
With kind regards,
Geoffrey De Smet


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



Re: POM not downloaded from remote repository for patched plugin - SOLUTION

2006-08-25 Thread Szak�ly
Hi,

Maria, -U did not help and it seems that ther problem is that in case
of this praticular plugin and only in case its POM file Maven tries
to download it only from the Central Maven directory and not from our
one. (The configuration is good because other plugins of ours are
working perfectly.)

The solution: I have to define the version of the plugin in the POM
file. If it is defined, the POM is downloaded and everything is fine.

Who understands...

Gergely

--- Maria Odea Ching [EMAIL PROTECTED] wrote:

 Hi Gergely,
 
 Have you tried executing mvn install with -U to update the plugins
 for 
 the project?
 e.g. mvn install -U
 
 Hope this helps :-)
 
 Thanks,
 Odea
 
 
 Gergely Szak�ly wrote:
 
 Hi all,
 
 I made a modification to the surefire plugin for use in our
 project
 (to modify the classloading order). I installed the plugin to our
 company Maven repository. The surprise: when running Maven, Maven
 recognises the new version of the plugin, the JAR file of the
 patched
 plugin is downloaded to the local repository, but the POM file is
 not. Consequently the build fails.
 
 On the other hand:
 
 If I download the POM file manually to the local repository, the
 plugin starts working.
 
 If I add the plugin artifact to my Maven project as a dependency
 and
 execute 'mvn compile', the same POM file *does get downloaded* and
 the plugin starts working If I execute 'mvn install' instead
 'mvn
 compile', the POM is *not* downloaded.
 
 Any idea?
 
 Gergely
 
 __
 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]
 
   
 
 
 

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


__
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: [m2] copy of Central Repository

2006-08-25 Thread Jeff Jensen
That's fine, these products allow manual installation as well (in fact, they
expect you to).  This handles the use cases of using commercial artifacts
(Oracle, MQ Series, and Java itself, etc.) and installing artifacts from
your own company's products.

By your statement, I wonder if you misunderstand how they are used/what they
do.  FYI, We use Proximity; it works great.  I suggest reading its docs/site
info.


-Original Message-
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:20 AM
To: Maven Users List
Cc: [EMAIL PROTECTED]
Subject: RE: [m2] copy of Central Repository

Hi 

We can't do this because from time to time we may need to download files
manually and install it.

Thanks
Lakshman


 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
 Sent: Friday, 25 August 2006 5:57 PM
 To: users@maven.apache.org
 Subject: Re: [m2] copy of Central Repository
 
 Putting up a maven proxy might solve your problem:
 the first time a jar is needed it downloads it from the central repo
and
 caches it.
 
 There are 3 free implementations I know of:
 maven-proxy (from the maven guys): beta?, abandoned in favor of
Archiva
 Archiva (from the maven guys): beta, needs to be build from source,
but
 has some positive remarks on this list Proximity (from 3th party): 
 sounds more stable, has had a bunch of releases and some positive 
 remarks on this list
 
 Check this list for Archiva and proximity.
 
 Lakshman Srilakshmanan wrote, On 2006-08-25 8:53 AM:
  Hi All,
 
  In maven 1.x I could execute maven once on a project and build my
local
  repository. I could then copy it on to my company's central server
and
  get all the developers to refer to this for updates.
 
  When I needed a new plugin or dependency, I could run maven 1.x
against
  ibiblio and follow the above process.
 
  The above strategy ensured that we had only the plugins 
dependencies
  we needed and not the whole central repository of 5G. I am not going 
  into the details of how I kept this up-to-date as it would side
track
  the main issue that I wish to discuss.
 
 
  Now, in maven 2 I did the same process as described above. The build 
  started breaking, with errors such as -- plugin 'xxx' does not exist
or
  no valid version could be found --.
 
  Further investigation revealed this problem was due to two missing
files
  in my repository.
 a) maven-metadata.xml
 b) maven-metadata.xml.sha1
 
  In my local repository these files are named as
 a) maven-metadata-central.xml
 b) maven-metadata-central.xml.sha1
 
  so when I copied my local repository to my company's central
repository
  the above files caused the problem.
 
  When I renamed the files as required, maven 2 was happy and
everything
  started to work again.
 
 
  So my question is, is there a easier way of getting the required 
  components from maven central repository copied to my company's
central
  server without having to take a full copy ?
 
  Well, an alternative is to create a script to traverse the
repository
  and rename the files as required.
 
  I would much appreciate to hear from anyone who has solved this
problem
  or is there a tool/process that I have overlooked.
 
  Thanks in advance
 
  Lakshman
 
 --
 With kind regards,
 Geoffrey De Smet
 
 
 -
 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: Broken build due to antrun version

2006-08-25 Thread Jörg Schaible
Jörg Schaible wrote on Friday, August 25, 2006 11:35 AM:

 Hi folks,
 
 we encounter a problem with the version(s) of the antrun
 plugin. We configured this plugin for a module successfully
 and it works as expected. The problem is that the build
 breaks in multi-module mode i.e. if the module is not build
 locally. After looking though the debug output for a while we
 noticed, that the local build is using version 1.1 of the
 antrun plugin.

[snip]

It's known: MANTRUN-37 :-/

- Jörg

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



New release of XDoclet plugin?

2006-08-25 Thread Jörg Schaible
Hi folks,

is there any chance of a new release of the XDocelt plugin with actualized 
versions? Especially the dep to the antrun plugin 1.0 does major grief, since 
it breaks any multi-module builds that usilize both plugins.

- Jörg

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



Re: Better to use variables or hard-coded paths?

2006-08-25 Thread Daniel Serodio
Scott Ryan wrote:
 We actually use the same application context but use the test resources 
 construct to pull it out of the main build path for use during testing.  You 
 just need to include the xml files from the main tree in your resources 
 during testing and it works very nice.  We use a different hibernate 
 configuration since in one case we are using a JNDI lookup in production and 
 during testing just a direct jdbc connection.  The xml is configured to build 
 the session factory from the data source we define in the properties file.  
 If you like I can send you the maven 1 or 2 config we are using.
   
Can you please send me the m2 config? I don't understand what you mean
by pull it out of the main build path.
 Scott Ryan
 Chief Technology Officer
 Soaring Eagle L.L.C.
 [EMAIL PROTECTED]
 www.soaringeagleco.com
 (303) 263-3044 

 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 23, 2006 10:58 AM
 To: Maven Users List
 Subject: Re: Better to use variables or hard-coded paths?


 On 8/23/06, Daniel Serodio [EMAIL PROTECTED] wrote:
   
 Matt Raible wrote:
 
 I'm customizing my pom.xml so XML files are available on my classpath
 (at /WEB-INF/*.xml) when testing. My question is (hopefully) simple.

 Is it better to use:
   
 snip/

 I think using Hard-coded directories is more Maven-like, while using
 variables is more Ant-like. I'd stick with the hard-coded directories,
 or better yet, use Maven's stardard directory layout
 http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
 

 I am using this layout, I just need to include src/main/webapp in my
 classpath so I can use /WEB-INF/applicationContext.xml in my tests -
 w/o having duplicate context files.

 Thanks for your advice Daniel.

 Matt

   
 HTH,
 Daniel Serodio
 


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



RE: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Douglas Ferguson
I also am using hierarchial projects. I got 3 levels deep and it works fine. It 
only creates project files for the leaf nodes. The parent poms (packaging=pom) 
will not get project files.

I am having 1 problem with eclipse:eclipse. I have a parent pom that isn't 
intended to be portable. It uses variables that prevent it from validating, 
however, I need it so my 100s of sub poms don't have to define the same stuff 
over and over. Anyway, eclipse:eclipse is barfing on some paths, just curious 
if there is a way to get it to be less strict or something.

-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 3:16 AM
To: Maven Users List
Subject: Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project 
suppo

On 8/25/06, Valerio Schiavoni [EMAIL PROTECTED] wrote:
  Eclipse does not support hierarchical project  structures.
 
 i thought eclipse 3.2 just introduced this new feature ...

Yes it does.
Hence my original post wondering how to get it to work.
The notes I posted worked for me.

Try to get it working manually to prove to yourself that it can be done.
Just checkout a multi-module project and then try to import the
modules as existing projects.
If you can't get that to work you may have other problems.

Then its just a matter of running mvn eclipse:eclipse from the root,
delete the root/.project file and doing the same steps again.

-
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: xref not generating class html docs:SOLVED

2006-08-25 Thread Jeff Mutonho

On 8/18/06, Jeff Mutonho [EMAIL PROTECTED] wrote:


The xref reports generated for my project are broken.I can see the
packages frame(on the top left hand corner) and the list of packages in the
module.Underneath the packages frame there also is  classes frame with a
list of all the classes(as hyperlinks) in the module.Clicking on the these
class links , I get a Not Found error.Eg for a class called CpeManager , I
get :

Not Found

The requested URL
/websites/eportal/eportal-services/xref/za/co/pragmaticus/portal/services/CpeManager.html
was not found on this server.
This is happening for all the classes in all my modules.Why isn't the xref
plugin generating the html docs for my classes?




As always , human error.My pom had sourceDirectorysrc/za/sourceDirectory
instead of just
sourceDirectorysrc/sourceDirectory.

A very big thanks to Fabrice for helping me!
--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: Using Java System Properties in pom.xml

2006-08-25 Thread Nick Veys

Jimisola:

The parameter that is getting its slashes altered, is it a String or
File in the the Mojo?  If it is just a String, try a File, I've seen
your problem before and I believe that handled it.

On 8/25/06, Jimisola Laursen [EMAIL PROTECTED] wrote:


Hi!

Are we taking about the same thing? I am taking about Java System Properties
and not System Properties. It was not replaced when I first tried (perhaps I
was doing something wrong). the documentation only mentions Java System
Properties with filtering.

Does the Java System Properties have a prefix or can I just use
${file.separator} in the configuration section?

I thought I could use forward slashes for paths too, but the problem is
caused with a home-made plugin. The plugin takes the output file as a
parameter in the configuration section and I don't believe that slashes (/)
are replaced with backslashes (\) on the fly. Should I handle this in my
plugin perhaps?

Sorry if I am missing out on something trivial here. I don't even run
Windows myself, so I haven't tested - all I got was a bug report from a team
member:

Example:
${project.build.directory}/generated-resources/buildinfo-maven-${project.build.finalName}.xml

This results in:
C:\myrepository\.../generated-resources/buildinfo-maven-

Regards,
Jimisola


Eric Redmond wrote:

 You can use System properties. However, you don't need to use
 file.seperator... you can just use forward slash for paths.

 Eric

 On 8/24/06, Jimisola Laursen [EMAIL PROTECTED] wrote:


 Hi!

 Been reading through the documentation on maven.apache.org and the book,
 but
 I can't find any information on if it is possible to use Java System
 Properties such as file.separator, user.name and more
 (
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
 )
 in pom.xml?

 I have a problem with file separators because we use both Linux and
 Windows
 when developing and it therefore looks as I if I need to use
 ${file.separator} in our common POM.

 Regards,
 Jimisola
 --
 View this message in context:
 
http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5973537
 Sent from the Maven - Users forum at Nabble.com.


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




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



--
View this message in context: 
http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5978571
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: POM not downloaded from remote repository for patched plugin

2006-08-25 Thread Doug Douglass

What version did you give your modified maven-surefire-plugin?

When creating locally modified versions of plugins, it's a very good idea
(best practice???) to give them a very clear/specific version that
differentiates them from the main versions. For example, if your surefire
modifications were based on plugin version 2.2, you might use a version like
2.2-MYCOMPANY-R1, or 2.2-MYCOMPANY-SNAPSHOT. Then add the plugin as a
dependency in the pom with your version.

HTH,
Doug

On 8/25/06, Maria Odea Ching [EMAIL PROTECTED] wrote:


Hi Gergely,

Have you tried executing mvn install with -U to update the plugins for
the project?
e.g. mvn install -U

Hope this helps :-)

Thanks,
Odea


Gergely Szakály wrote:

Hi all,

I made a modification to the surefire plugin for use in our project
(to modify the classloading order). I installed the plugin to our
company Maven repository. The surprise: when running Maven, Maven
recognises the new version of the plugin, the JAR file of the patched
plugin is downloaded to the local repository, but the POM file is
not. Consequently the build fails.

On the other hand:

If I download the POM file manually to the local repository, the
plugin starts working.

If I add the plugin artifact to my Maven project as a dependency and
execute 'mvn compile', the same POM file *does get downloaded* and
the plugin starts working If I execute 'mvn install' instead 'mvn
compile', the POM is *not* downloaded.

Any idea?

Gergely

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





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




RE: Configuring build process on cvs checkin?

2006-08-25 Thread Kapil Gupta
Hi Emmanuel,

Even after adding my target directory in the cvsignore file, continuum is still 
building the project when there is no source code change.
The build report shows that there is change in target folder.

Regadrs,
Kapil


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 2:10 PM
To: continuum-users@maven.apache.org
Subject: Re: Configuring build process on cvs checkin?

target directory must be in your cvsignore file.

Emmanuel

Kapil Gupta(CT) a écrit :
 Hi Emmanuel,
 I have set scheduler that builds my project daily at 2 AM.
 As you said, build starts if there is any change but Continuum is building my 
 project even if there is no change in source code.
 Am using goal clean, package, install for this. Should I use only package 
 install only as build logs depicts that there are changes in the target 
 directory.
 Thanks,
 Kapil
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 21, 2006 9:12 PM
 To: continuum-users@maven.apache.org
 Subject: Re: Configuring build process on cvs checkin?
 
 The build start only if there is changes. Mail sent are independant of the 
 changes.
 
 Kapil Gupta(CT) a écrit :
 Hi,

  

 Can I configure Continuum to build project and send mail only if there
 are any code changes (cvs commits)?

  

 Right now, it sends mail either always or on state change but I would
 like it to build my project and send mail only when there is change in
 source code

  

 Thanks,

  

 Kapil

  


 
 
 
 



maven-abbot-plugin to test webstart application

2006-08-25 Thread Chris Kohlhepp

Hello All,

I have a beginner's question. And I know nothing about Maven :)

What I am trying to do is to use the maven-abbot-plugin from within
Abbot to conduct end user testing of an arbitrary Java webstart application.
Does anyone have any experience with this ? I have looked at the 
documentation

and I got as far as that I need to somehow use AbbotWebstartTestRunner which
appears to have a static main entry point that I can reference from within
Abbot. The class is contained within the plugin.

How do I go from there ? Any pointers would be much appreciated.

Chris Kohlhepp

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



Re: Configuring build process on cvs checkin?

2006-08-25 Thread Emmanuel Venisse

you can try to remove it manually in your working directory and force a build

Emmanuel

Kapil Gupta a écrit :

Hi Emmanuel,

Even after adding my target directory in the cvsignore file, continuum is still 
building the project when there is no source code change.
The build report shows that there is change in target folder.

Regadrs,
Kapil


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 2:10 PM

To: continuum-users@maven.apache.org
Subject: Re: Configuring build process on cvs checkin?

target directory must be in your cvsignore file.

Emmanuel

Kapil Gupta(CT) a écrit :

Hi Emmanuel,
I have set scheduler that builds my project daily at 2 AM.
As you said, build starts if there is any change but Continuum is building my 
project even if there is no change in source code.
Am using goal clean, package, install for this. Should I use only package 
install only as build logs depicts that there are changes in the target 
directory.
Thanks,
Kapil

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 9:12 PM

To: continuum-users@maven.apache.org
Subject: Re: Configuring build process on cvs checkin?

The build start only if there is changes. Mail sent are independant of the 
changes.

Kapil Gupta(CT) a écrit :

Hi,

 


Can I configure Continuum to build project and send mail only if there
are any code changes (cvs commits)?

 


Right now, it sends mail either always or on state change but I would
like it to build my project and send mail only when there is change in
source code

 


Thanks,

 


Kapil

 
















Re: [M2] Problem deploying to filesystem on remote server

2006-08-25 Thread Doug Douglass

Christoph,

Have you resolved this problem yet?

I think you may find that maven deployed your artifact into a local
directory. Look for a directory in the root of your local filesystem with
the same name as the remote host. I say this because your file url doesn't
appear to be correct for a remote location. I think it should be 
file://host/some/path, or if the remote location is a windows share the url
should be  file://host/share/some/path.

HTH,
Doug

On 8/23/06, Amshoff Christoph, Köln  [EMAIL PROTECTED] wrote:


Hi,

I'm new to Maven2 and trying to deploy my first JAR... alas without
success
up to now.

We are running an internal repository using Maven-Proxy (using it as a
proxy
to central and for hosting our own artifacts).
This is working well, and now I would like to put my JARs (snapshot
version)
onto this server using the deploy goal with file system configuration.

In my POM, I configured the settings like this:

snapshotRepository
  idcentral/id
  namexxx/name
  urlfile:///[a_server]/maven2-server/target/repo-local/url
  uniqueVersionfalse/uniqueVersion
/snapshotRepository

The output seems to be ok, it says 551 K uploaded, but the file has NOT
been copied. Even with enabled debug information (see below) I don't see
any
problems... or is this not adding permissions to wagon connection
telling
me anything? And yes, I have full access to the specified folder on the
remote computer.

Is file system deploy only working locally?
What else should I use to deploy to Maven-Repo?

Any help is appreciated...

Thanks in advance,
Christoph.

--- snip ---
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from central
[DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT'
could not be found on repository: central
[DEBUG] not adding permissions to wagon connection
Uploading:

file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/yy
y-4.3.2-SNAPSHOT.jar

file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/y
yy-4.3.2-SNAPSHOT.jar 
551K uploaded
[INFO] Retrieving previous metadata from central
[DEBUG] repository metadata for: 'artifact sss:foundation' could not be
found on repository: central
[INFO] Uploading repository metadata for: 'artifact sss:foundation'
[DEBUG] not adding permissions to wagon connection
[INFO] Retrieving previous metadata from central
[DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT'
could not be found on repository: central
[INFO] Uploading repository metadata for: 'snapshot
sss:foundation:4.3.2-SNAPSHOT'
[DEBUG] not adding permissions to wagon connection
[INFO] Retrieving previous metadata from central
[DEBUG] project information for foundation 4.3.2-SNAPSHOT could not be
found
on repository: central
[INFO] Uploading project information for foundation 4.3.2-SNAPSHOT
[DEBUG] not adding permissions to wagon connection
--- snap ---


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




Re: configuration for subversion username/pw

2006-08-25 Thread Emmanuel Venisse

you can use http://username:[EMAIL PROTECTED]/path.pom.xml

Emmanuel

[EMAIL PROTECTED] a écrit :

Hello,

I am trying to add a maven2 project to continuum from a subversion 
repository that has a username/password authentication required for read 
access. Is there a configuration file that I can add my username/pw 
credentials to ? or is a there a directory within continuum that  I can 
place a cookie with the credentials ?


In the meantime, I can work-around this by upload the projects from the 
local filesystem.


With thanks

Ashley


-
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law.  If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED.  Although this transmission and
any attachments are believed to be free of any virus or other
defect that might affect any computer system into which it is
received and opened, it is the responsibility of the recipient to
ensure that it is virus free and no responsibility is accepted by
JPMorgan Chase  Co., its subsidiaries and affiliates, as
applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately
contact the sender and destroy the material in its entirety,
whether in electronic or hard copy format. Thank you.





Distribution Management

2006-08-25 Thread Douglas Ferguson
If I define a repository in distribution management so that it deploys
to an internal repository.

 

Do I also have to define it as a repository a profile if I want team
mates to resolve dependences from that internal repository rather than
building source, or does having the distribution management add it for
dependence resolution?

 

Thanks,


D-




Snapshot Locations for maven-plugins a maven-assembly-plugin

2006-08-25 Thread Alexis Midon

Hi all,

I'd like to use a snapshot version of the assembly plugin, but I can't found
out a snapshot repository.
Can someone tell me if such a repo is available or should I build a snapshot
by myself?

Thanks in advance,

Alexis


RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-08-25 Thread Johann Reyes
Hello Matt

The dependencies issue its fixed in the hibernate tools dependency that's in 
queue to be uploaded (http://jira.codehaus.org/browse/MAVENUPLOAD-1053). These 
dependencies would depend on jars that are in the maven repo like the 
Geronimo's JTA implementation. So as soon these dependencies are uploaded, I'll 
publish a new snapshot of the plugin.

Regards

Johann Reyes

-Original Message-
From: mraible [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 5:14 PM
To: users@maven.apache.org
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together




Paul Kuykendall wrote:
 
 Jose,
 
 I found this in a blog somewhere (I didn't bookmark it, just copied it 
 into a tips and tricks email I sent myself at work).  I still ran 
 into problems with the hibernate3-maven-plugin complaining it couldn't 
 resolve a dependency somewhere down the line to 
 maven-hibernate3-plugin.  It could have been something I've been doing 
 wrong, but your problem was fairly easy to track down (after more than 
 a few hours of google searching).  I did use a different way of doing 
 the jta installation.  I created a jar file and installed that rather 
 than the zip file.
 
 /Paul
 
 The below is quite shamefully included without attribution.  I take no 
 claim for its origination.
 
 Special dependencies
 
 Most of the dependencies you need will be automatically downloaded by 
 Maven from a remote repository, but two by Sun can't be held there. Go 
 to this page http://java.sun.com/products/jta/ to get the JTA 
 interfaces from the Download link next to Class Files 1.0.1B, then 
 paste the following into a shell in your download directory:
 
 mvn install:install-file -DgroupId=javax.transaction \
   -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
   -Dfile=jta-1_0_1B-classes.zip
 
 (Or use jta.jar from the Hibernate 3.1.1 distribution, if you have 
 that already — just change the -Dfile= parameter above.)
 
 For the EJB 3.0 *public final draft* dependency, you'll need to 
 download Hibernate 
 Annotationshttp://prdownloads.sourceforge.net/hibernate/hibernate-ann
 otations-3.2.0.CR1.tar.gz?download,
 expand the archive, change to its lib directory, then:
 
 mvn install:install-file -DgroupId=javax.persistence \
   -DartifactId=ejb -Dversion=3.0-public-draft-20060502
  \
   -Dpackaging=jar -Dfile=ejb3-persistence.jar
 
 

Is it possible to override a plugin's dependencies, like you can with a normal 
dependency?  I'm trying to use the maven-hibernate3-plugin, and getting the 
following error:

Missing:
--
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from: 
  http://java.sun.com/products/jta

  Then, install it using the command: 
  mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta \
  -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency: 
1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9
2) org.hibernate:hibernate-tools:jar:3.1.0.beta4
3) org.hibernate:hibernate:jar:3.1.2
4) javax.transaction:jta:jar:1.0.1B

--
1 required artifact is missing.

for artifact: 
 
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060418.000301-9

I'd like to do something like I can do in my normal pom.xml's - where I can use 
Geronimo's JTA implementation instead:

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version3.2.0.cr3/version
exclusions
exclusion
groupIdjavax.transaction/groupId
artifactIdjta/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdgeronimo-spec/groupId
artifactIdgeronimo-spec-jta/artifactId
version1.0.1B-rc4/version
/dependency

Thanks,

Matt
--
View this message in context: 
http://www.nabble.com/-m2--Frustration-getting-Maven-2-and-Hibernate-working-together-tf1892454.html#a5972898
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]



maven site, apt: how to nested tables?

2006-08-25 Thread Valerio Schiavoni

hello,
i need to render nested tables. i tried the following apt code, but the
nested table is displayed as verbatim code:

*--*---:
| flat | nested|
| attribute|   |
|  | *-*-: |
|  | | _B_ | _C_ | |
|  | *-*-: |
|  |   |
*--*---:
A nested relation

any one ever faced this same problem?

thanks,
valerio

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


Re: [for newbie] ClearCase configuration

2006-08-25 Thread Benoitx

Has anybody found the solution?

I have the clearcase-setting.xml file but where shall I put it to be taken
into account by Continuum-1.0.3

Thanks

Benoit
-- 
View this message in context: 
http://www.nabble.com/ClearCase-configuration-tf2026205.html#a5985271
Sent from the Continuum - Users forum at Nabble.com.



Question on process to request new artefact's to be uploaded to ibiblio or other Maven repos

2006-08-25 Thread Rob Walker
I'm fairly new to maven and wonder whether there is a process/place to 
request a new artifact version be placed on ibiblio or other Maven repos 
site. The specific artifact of interest is Jetty 6.0.0rc1 (rc0 is 
already present).


Please excuse if this is not the appropriate mailing list - and redirect 
me to the correct place to post if so


Regards

-- Rob Walker


Ascert - Taking systems to the Edge
[EMAIL PROTECTED]
+44 (0)20 7488 3470
www.ascert.com


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



M2 ClearCase ... and continuum...

2006-08-25 Thread Benoit Xhenseval
Hi All

I know it *could* be a question for Continuum but:

Scm Clearcase is using \\mymachine\viewstore which of course is no good for me

I have followed http://maven.apache.org/scm/clearcase.html
Which specifies to create a clearcase-setting.xml in a directory .scm under my 
home directory.

This seems to be ignored by maven (or Continuum), to avoid any doubt, the 
settings should contain:
clearcase-settings
viewstore\\mymachine\cc_views/viewstore
/clearcase-settings 

and be in:
C:\Documents and Settings\userid\.scm\clearcase-settings.xml
Right?

Would Continuum require any setting for viewstore?

Many thanks!

Benoit



RE: probs with profiles - really stuck...

2006-08-25 Thread EJ Ciramella
Is there really no way to do this folks?  This would really nuke our
maven progress at this point. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 6:48 PM
To: Maven Users List
Subject: probs with profiles

I have a question about profiles and their usage.  Our build machines
have one path to things like jboss and other third party directories, in
the various qa stacks, these paths may be different.  Additionally, a
property may change from project to project.
 
How come the sub projects don't get the second profile?!
 
E:\work\up-svcs\lty\proj\LTY-P39mvn help:active-profiles -P
LTY-P39,dev-crimson -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]   Lty Utils
[INFO]   Lty Crypto(Client)
[INFO]   LtyModel
[INFO]   LtyDataGen
[INFO]   Crypto Server
[INFO]   Upromise.com Site
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]


[INFO] Building Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]


[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'lty:app:pom:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - dev-crimson (source: profiles.xml)
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-utils:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:crypto:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-model:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-datagen:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:cryptoServer:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'uprweb:uprweb:war:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 

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



RE: Question on process to request new artefact's to be uploaded to ibiblio or other Maven repos

2006-08-25 Thread Jeff Jensen
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
 

-Original Message-
From: Rob Walker [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 10:13 AM
To: users@maven.apache.org
Subject: Question on process to request new artefact's to be uploaded to
ibiblio or other Maven repos

I'm fairly new to maven and wonder whether there is a process/place to
request a new artifact version be placed on ibiblio or other Maven repos
site. The specific artifact of interest is Jetty 6.0.0rc1 (rc0 is already
present).

Please excuse if this is not the appropriate mailing list - and redirect me
to the correct place to post if so

Regards

-- Rob Walker


Ascert - Taking systems to the Edge
[EMAIL PROTECTED]
+44 (0)20 7488 3470
www.ascert.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: Snapshot Locations for maven-plugins a maven-assembly-plugin

2006-08-25 Thread John Casey

Add this:

pluginRepositories
 pluginRepository
   idapache.snapshots/id
   urlhttp://people.apache.org/repo/m2-snapshot-repository/url
   !-- NOTE: omit releases section here! --
 /pluginRepository
/pluginRepositories

Then, when you run the build, use the -U option to refresh your plugins.

If that doesn't work, let me know.

-john

On 8/25/06, Alexis Midon [EMAIL PROTECTED] wrote:


Hi all,

I'd like to use a snapshot version of the assembly plugin, but I can't
found
out a snapshot repository.
Can someone tell me if such a repo is available or should I build a
snapshot
by myself?

Thanks in advance,

Alexis




AW: [M2] Problem deploying to filesystem on remote server

2006-08-25 Thread Amshoff Christoph, Köln
Doug,

thanks for your reply... I was a bit surprised to get none up to now ;o)  So
thanks a lot.

Well, you are right, the file was put into a local directory. So I changed
the URL to the file://host/share/some/path style:

snapshotRepository
  idcentral/id
  nameFJA Internal Repository/name
  urlfile://xxx/yyy/maven2-server/target/repo-local/url
  uniqueVersionfalse/uniqueVersion
/snapshotRepository

And now the file is not in the local directoy anymore (except my local M2
repository, of course) -- but not on the server either!
Any ideas?

Thanks,
Christoph.


 -Ursprüngliche Nachricht-
 Von: Doug Douglass [mailto:[EMAIL PROTECTED] 
 Gesendet: Freitag, 25. August 2006 16:06
 An: Maven Users List
 Betreff: Re: [M2] Problem deploying to filesystem on remote server
 
 
 Christoph,
 
 Have you resolved this problem yet?
 
 I think you may find that maven deployed your artifact into a local
 directory. Look for a directory in the root of your local 
 filesystem with
 the same name as the remote host. I say this because your 
 file url doesn't
 appear to be correct for a remote location. I think it should be 
 file://host/some/path, or if the remote location is a 
 windows share the url
 should be  file://host/share/some/path.
 
 HTH,
 Doug
 
 On 8/23/06, Amshoff Christoph, Köln  
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm new to Maven2 and trying to deploy my first JAR... alas without
  success
  up to now.
 
  We are running an internal repository using Maven-Proxy 
 (using it as a
  proxy
  to central and for hosting our own artifacts).
  This is working well, and now I would like to put my JARs (snapshot
  version)
  onto this server using the deploy goal with file system 
 configuration.
 
  In my POM, I configured the settings like this:
 
  snapshotRepository
idcentral/id
namexxx/name
urlfile:///[a_server]/maven2-server/target/repo-local/url
uniqueVersionfalse/uniqueVersion
  /snapshotRepository
 
  The output seems to be ok, it says 551 K uploaded, but 
 the file has NOT
  been copied. Even with enabled debug information (see 
 below) I don't see
  any
  problems... or is this not adding permissions to wagon connection
  telling
  me anything? And yes, I have full access to the specified 
 folder on the
  remote computer.
 
  Is file system deploy only working locally?
  What else should I use to deploy to Maven-Repo?
 
  Any help is appreciated...
 
  Thanks in advance,
  Christoph.
 
  --- snip ---
  [INFO] [deploy:deploy]
  [INFO] Retrieving previous build number from central
  [DEBUG] repository metadata for: 'snapshot 
 sss:foundation:4.3.2-SNAPSHOT'
  could not be found on repository: central
  [DEBUG] not adding permissions to wagon connection
  Uploading:
 
  
 file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3
.2-SNAPSHOT/yy
 y-4.3.2-SNAPSHOT.jar


file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/y
 yy-4.3.2-SNAPSHOT.jar 
 551K uploaded
 [INFO] Retrieving previous metadata from central
 [DEBUG] repository metadata for: 'artifact sss:foundation' could not be
 found on repository: central
 [INFO] Uploading repository metadata for: 'artifact sss:foundation'
 [DEBUG] not adding permissions to wagon connection
 [INFO] Retrieving previous metadata from central
 [DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT'
 could not be found on repository: central
 [INFO] Uploading repository metadata for: 'snapshot
 sss:foundation:4.3.2-SNAPSHOT'
 [DEBUG] not adding permissions to wagon connection
 [INFO] Retrieving previous metadata from central
 [DEBUG] project information for foundation 4.3.2-SNAPSHOT could not be
 found
 on repository: central
 [INFO] Uploading project information for foundation 4.3.2-SNAPSHOT
 [DEBUG] not adding permissions to wagon connection
 --- snap ---


 -
 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: Question on process to request new artefact's to be uploaded to ibiblio or other Maven repos

2006-08-25 Thread Carlos Sanchez

http://www.mvnregistry.com/search/version/77734

On 8/25/06, Rob Walker [EMAIL PROTECTED] wrote:

I'm fairly new to maven and wonder whether there is a process/place to
request a new artifact version be placed on ibiblio or other Maven repos
site. The specific artifact of interest is Jetty 6.0.0rc1 (rc0 is
already present).

Please excuse if this is not the appropriate mailing list - and redirect
me to the correct place to post if so

Regards

-- Rob Walker


Ascert - Taking systems to the Edge
[EMAIL PROTECTED]
+44 (0)20 7488 3470
www.ascert.com


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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: Using Java System Properties in pom.xml

2006-08-25 Thread Jimisola Laursen

Hi,

It's a String:

/**
 * @parameter   expression=${outputFile}
 */
String outputFile;

I'll change it to File and see if that does the works..

Thank you for your information.

This might be something for the FAQ or Wiki?

Regards,
Jimisola

Nick Veys wrote:
 
 Jimisola:
 
 The parameter that is getting its slashes altered, is it a String or
 File in the the Mojo?  If it is just a String, try a File, I've seen
 your problem before and I believe that handled it.
 
 On 8/25/06, Jimisola Laursen [EMAIL PROTECTED] wrote:

 Hi!

 Are we taking about the same thing? I am taking about Java System
 Properties
 and not System Properties. It was not replaced when I first tried
 (perhaps I
 was doing something wrong). the documentation only mentions Java System
 Properties with filtering.

 Does the Java System Properties have a prefix or can I just use
 ${file.separator} in the configuration section?

 I thought I could use forward slashes for paths too, but the problem is
 caused with a home-made plugin. The plugin takes the output file as a
 parameter in the configuration section and I don't believe that slashes
 (/)
 are replaced with backslashes (\) on the fly. Should I handle this in my
 plugin perhaps?

 Sorry if I am missing out on something trivial here. I don't even run
 Windows myself, so I haven't tested - all I got was a bug report from a
 team
 member:

 Example:
 ${project.build.directory}/generated-resources/buildinfo-maven-${project.build.finalName}.xml

 This results in:
 C:\myrepository\.../generated-resources/buildinfo-maven-

 Regards,
 Jimisola


 Eric Redmond wrote:
 
  You can use System properties. However, you don't need to use
  file.seperator... you can just use forward slash for paths.
 
  Eric
 
  On 8/24/06, Jimisola Laursen [EMAIL PROTECTED] wrote:
 
 
  Hi!
 
  Been reading through the documentation on maven.apache.org and the
 book,
  but
  I can't find any information on if it is possible to use Java System
  Properties such as file.separator, user.name and more
  (
 
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
  )
  in pom.xml?
 
  I have a problem with file separators because we use both Linux and
  Windows
  when developing and it therefore looks as I if I need to use
  ${file.separator} in our common POM.
 
  Regards,
  Jimisola
  --
  View this message in context:
 
 http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5973537
  Sent from the Maven - Users forum at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  Eric Redmond
  http://codehaus.org/~eredmond
 
 

 --
 View this message in context:
 http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5978571
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-Java-System-Properties-in-pom.xml-tf2161474.html#a5987251
Sent from the Maven - Users forum at Nabble.com.


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



RE: probs with profiles - really stuck...

2006-08-25 Thread EJ Ciramella
If two profiles are loaded and both have a property set in it, which one
takes precedence? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 11:42 AM
To: Maven Users List
Subject: RE: probs with profiles - really stuck...

Is there really no way to do this folks?  This would really nuke our
maven progress at this point. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 6:48 PM
To: Maven Users List
Subject: probs with profiles

I have a question about profiles and their usage.  Our build machines
have one path to things like jboss and other third party directories, in
the various qa stacks, these paths may be different.  Additionally, a
property may change from project to project.
 
How come the sub projects don't get the second profile?!
 
E:\work\up-svcs\lty\proj\LTY-P39mvn help:active-profiles -P
LTY-P39,dev-crimson -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]   Lty Utils
[INFO]   Lty Crypto(Client)
[INFO]   LtyModel
[INFO]   LtyDataGen
[INFO]   Crypto Server
[INFO]   Upromise.com Site
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]


[INFO] Building Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]


[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'lty:app:pom:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - dev-crimson (source: profiles.xml)
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-utils:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:crypto:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-model:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-datagen:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:cryptoServer:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'uprweb:uprweb:war:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 

-
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: probs with profiles - really stuck...

2006-08-25 Thread EJ Ciramella
Even more fun - if I specify a profile that only exists in my
settings.xml file, some of the resources don't even get processed.

What gives? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 1:47 PM
To: Maven Users List
Subject: RE: probs with profiles - really stuck...

If two profiles are loaded and both have a property set in it, which one
takes precedence? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 11:42 AM
To: Maven Users List
Subject: RE: probs with profiles - really stuck...

Is there really no way to do this folks?  This would really nuke our
maven progress at this point. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 6:48 PM
To: Maven Users List
Subject: probs with profiles

I have a question about profiles and their usage.  Our build machines
have one path to things like jboss and other third party directories, in
the various qa stacks, these paths may be different.  Additionally, a
property may change from project to project.
 
How come the sub projects don't get the second profile?!
 
E:\work\up-svcs\lty\proj\LTY-P39mvn help:active-profiles -P
LTY-P39,dev-crimson -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]   Lty Utils
[INFO]   Lty Crypto(Client)
[INFO]   LtyModel
[INFO]   LtyDataGen
[INFO]   Crypto Server
[INFO]   Upromise.com Site
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]


[INFO] Building Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]


[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'lty:app:pom:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - dev-crimson (source: profiles.xml)
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-utils:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:crypto:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-model:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-datagen:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:cryptoServer:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'uprweb:uprweb:war:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 

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



Maven 1 dependancy Problem with jnlp

2006-08-25 Thread swebb

Hi there,

I am using maven 1 and using the jnlp goal to generate a jnlp file and sign
the associated jar files. The problem I have is that one of the jar files is
generated by the build as well as the normal project generated jar. Because
the jar is generated it isn't in the dependancy list so the jnlp plugin
doesn't know anything about it and doesn't put a reference to it in the jnlp
file. Also I should mention I don't want to use the repository for this
generated jar.

Is there anyway for me to add the details of the dependancy as a preGoal to
the jnlp goal ? I'm new to Maven so still finding my feet. From what I
understand the dependancy information is stored in the pom.artifacts is
there any way to add to this programatically within the build script ? I saw
some code that used something called system-scope to set another existing
variable could this be used ?

Thanks for any help.

Steve
-- 
View this message in context: 
http://www.nabble.com/Maven-1-dependancy-Problem-with-jnlp-tf2166273.html#a5988779
Sent from the Maven - Users forum at Nabble.com.


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



SCP Deploy

2006-08-25 Thread Douglas Ferguson
I just starting trying to do an SCP based deploy and for some reason it
is attempting to use my current user rather than the user I have set in
the settings.xml under server.

 

settings

  servers

server

  idinternal/id

  usernameuser/username

  passwordpass/password 

/server

  /servers

/settings

 

  distributionManagement

  

 repository

idinternal/id

nameInternal Repository/name

urlscp://vm2003e/repository/releases/url

/repository

 snapshotRepository

idinternal/id

nameInternal Repository/name

urlscp://vm2003e/web-dev/repository/snapshots/url

/snapshotRepository





  /distributionManagement




Re: [M2] Problem deploying to filesystem on remote server

2006-08-25 Thread Doug Douglass

Hmmm, the deploy succeeds but the artifact is neither local (like before)
nor on the specified remote host?

Perhaps running maven with -X will give some more detail on where the deploy
is actually going. You might also try running the deploy manually via the
deploy:deploy-file goal with the same URL and see what happens.

Also, maybe try a different remote file:// location, just to make sure it's
not something funny with file://xxx/yyy.

Doug

On 8/25/06, Amshoff Christoph, Köln [EMAIL PROTECTED] wrote:


Doug,

thanks for your reply... I was a bit surprised to get none up to now
;o)  So
thanks a lot.

Well, you are right, the file was put into a local directory. So I changed
the URL to the file://host/share/some/path style:

snapshotRepository
  idcentral/id
  nameFJA Internal Repository/name
  urlfile://xxx/yyy/maven2-server/target/repo-local/url
  uniqueVersionfalse/uniqueVersion
/snapshotRepository

And now the file is not in the local directoy anymore (except my local M2
repository, of course) -- but not on the server either!
Any ideas?

Thanks,
Christoph.


 -Ursprüngliche Nachricht-
 Von: Doug Douglass [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 25. August 2006 16:06
 An: Maven Users List
 Betreff: Re: [M2] Problem deploying to filesystem on remote server


 Christoph,

 Have you resolved this problem yet?

 I think you may find that maven deployed your artifact into a local
 directory. Look for a directory in the root of your local
 filesystem with
 the same name as the remote host. I say this because your
 file url doesn't
 appear to be correct for a remote location. I think it should be 
 file://host/some/path, or if the remote location is a
 windows share the url
 should be  file://host/share/some/path.

 HTH,
 Doug

 On 8/23/06, Amshoff Christoph, Köln 
 [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I'm new to Maven2 and trying to deploy my first JAR... alas without
  success
  up to now.
 
  We are running an internal repository using Maven-Proxy
 (using it as a
  proxy
  to central and for hosting our own artifacts).
  This is working well, and now I would like to put my JARs (snapshot
  version)
  onto this server using the deploy goal with file system
 configuration.
 
  In my POM, I configured the settings like this:
 
  snapshotRepository
idcentral/id
namexxx/name
urlfile:///[a_server]/maven2-server/target/repo-local/url
uniqueVersionfalse/uniqueVersion
  /snapshotRepository
 
  The output seems to be ok, it says 551 K uploaded, but
 the file has NOT
  been copied. Even with enabled debug information (see
 below) I don't see
  any
  problems... or is this not adding permissions to wagon connection
  telling
  me anything? And yes, I have full access to the specified
 folder on the
  remote computer.
 
  Is file system deploy only working locally?
  What else should I use to deploy to Maven-Repo?
 
  Any help is appreciated...
 
  Thanks in advance,
  Christoph.
 
  --- snip ---
  [INFO] [deploy:deploy]
  [INFO] Retrieving previous build number from central
  [DEBUG] repository metadata for: 'snapshot
 sss:foundation:4.3.2-SNAPSHOT'
  could not be found on repository: central
  [DEBUG] not adding permissions to wagon connection
  Uploading:
 
 
 file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3
.2-SNAPSHOT/yy
 y-4.3.2-SNAPSHOT.jar



file:///[a_server]/maven2-server/target/repo-local/xxx/yyy/4.3.2-SNAPSHOT/y
 yy-4.3.2-SNAPSHOT.jar 
 551K uploaded
 [INFO] Retrieving previous metadata from central
 [DEBUG] repository metadata for: 'artifact sss:foundation' could not be
 found on repository: central
 [INFO] Uploading repository metadata for: 'artifact sss:foundation'
 [DEBUG] not adding permissions to wagon connection
 [INFO] Retrieving previous metadata from central
 [DEBUG] repository metadata for: 'snapshot sss:foundation:4.3.2-SNAPSHOT
'
 could not be found on repository: central
 [INFO] Uploading repository metadata for: 'snapshot
 sss:foundation:4.3.2-SNAPSHOT'
 [DEBUG] not adding permissions to wagon connection
 [INFO] Retrieving previous metadata from central
 [DEBUG] project information for foundation 4.3.2-SNAPSHOT could not be
 found
 on repository: central
 [INFO] Uploading project information for foundation 4.3.2-SNAPSHOT
 [DEBUG] not adding permissions to wagon connection
 --- snap ---


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




maven emma plugin

2006-08-25 Thread Satish


how to configure the maven emma plugin and where to get this from.
Any body got success integrating this in Maven2

emma.jar
emma-ant.jar
maven-emma-plugin.jar

Thanks,
Satish
-- 
View this message in context: 
http://www.nabble.com/maven-emma-plugin-tf2166530.html#a5989608
Sent from the Maven - Users forum at Nabble.com.


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



Root.dir or basedir

2006-08-25 Thread EJ Ciramella
Is/are there some variable that allows something like ${basedir} type
usage in pom.xml?  Is there some variable for the current working
directory of the pom.xml that's getting used?


Re: Maven 1 dependancy Problem with jnlp

2006-08-25 Thread Stephane Nicoll

Hi,

On 8/25/06, swebb [EMAIL PROTECTED] wrote:

I am using maven 1 and using the jnlp goal to generate a jnlp file and sign
the associated jar files. The problem I have is that one of the jar files is
generated by the build as well as the normal project generated jar. Because
the jar is generated it isn't in the dependancy list so the jnlp plugin
doesn't know anything about it and doesn't put a reference to it in the jnlp
file. Also I should mention I don't want to use the repository for this
generated jar.


Well this is against the maven philosophy. Plugins are built namely on
some maven concept such as the dependency mechanism.



Is there anyway for me to add the details of the dependancy as a preGoal to
the jnlp goal ?


No. You can still rewrite the JNLP goal in jelly with the ant
integration though.

HTH,
Stéphane




I'm new to Maven so still finding my feet. From what I
understand the dependancy information is stored in the pom.artifacts is
there any way to add to this programatically within the build script ? I saw
some code that used something called system-scope to set another existing
variable could this be used ?

Thanks for any help.

Steve
--
View this message in context: 
http://www.nabble.com/Maven-1-dependancy-Problem-with-jnlp-tf2166273.html#a5988779
Sent from the Maven - Users forum at Nabble.com.


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





--
.::You're welcome ::.

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



Maven 2 Ant Plugin: Java task fails but build succeeds

2006-08-25 Thread Snir Kodesh
I've been following the Better Builds with Maven ant plugin creation
example (found on 5.4.2) to create an ant plugin which will leverage the
java task by adding the ant library to the maven-plugin-plugin. I've
forked the JVM, specified a classpath, and made the appropriate java
calls.The plugin is functionally sound. Per the example in the text,
I've created the corresponding x.mojos.xml file which corresponds to the
x.build.xml file.
 
My problem comes if and when I get an error from the java task. In the
case of any kind of exception from the java task, the plugin will fail
and yet the build will print Success.
 
Snir Kodesh
Software Engineering Intern
Qpass - Amdocs Digital Commerce Division 
2211 Elliott Avenue | Suite 400 | Seattle, WA 98121
o: +1 206.695.9521| [EMAIL PROTECTED]

 


JIRA issues - maven-changes-report

2006-08-25 Thread Satish


I was able to configure the maven-changes plugin for JIRA, but how to
generate a report.

my baisc question is: how does maven/svn knows what issues got fixes as part
of checkin? Does the developer needs to mention this data in some xml file.
I have read some where that if you configure the JIRA as the issue
management tool, it should pull automatically...i  don't get that..any
clues..
-- 
View this message in context: 
http://www.nabble.com/JIRA-issues---maven-changes-report-tf2167220.html#a5991824
Sent from the Maven - Users forum at Nabble.com.


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



Re: [m2] eclipse:eclipse and eclipse 3.2 projects within a project suppo

2006-08-25 Thread Max Cooper

Valerio Schiavoni wrote:

Hello Max,


Max Cooper wrote:

If you have a structure like this:

root
|--module1
|--module2
|--submodule2-1



my structure is a bit simpler, without nested submodules.


Okay, like this:

root
|--module1
|--module2




Max Cooper wrote:
... you would have to make sure that you hide/delete/rename the .project 
file in both the root and module2 directories for the submodule2-1 
project to show up on the import.




so fortunately this is not my case.


Generally, this still is the case. You MUST hide/delete the .project 
file in root so that Eclipse will allow you to add module1 and module2. 
It is the same issue, but you only have to worry about one level.


I have verified that the procedure outlined in this email thread works 
in Eclipse 3.2, as have others. If it isn't working for you, something 
is wrong.





Max Cooper wrote:

Eclipse does not support hierarchical project  structures.


i thought eclipse 3.2 just introduced this new feature ...


Eclipse 3.2 does not support hierarchical project hierarchies. It was 
rumored that 3.2 would have such support before the release, but it does 
not.


The procedure in this email thread is just a trick to get Eclipse to 
accept having overlapping projects. This trick allows a hierarchical 
structure of Maven modules to be mapped into a flat structure of Eclipse 
projects.





Max Cooper wrote:
IMO, moving your parent pom to a subdir is a better compromise than 
having all of your files show up two or more times in Eclipse. 


of course, but this would break a well established maven convention, which
i'd like to avoid..


Moving the parent to a subdir is documented on the Maven site, and many 
people are using this technique successfully.


The Eclipse trick in this thread is not as clean, IMO.

-Max


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



Flex application

2006-08-25 Thread Keith Marshall
We have a Flex application that communicates with a J2EE back end that
we are using Maven to build the project with. I am looking for any
information that may be available on using Maven to include the Flex
files in my build also.
 
Keith A. Marshall, B.Sc.
Lead Developer
Order and Account Management
Insight - USA
480-333-3000 Ext: 1692
[EMAIL PROTECTED]
.
IT For The Way You Work
 


Re: probs with profiles - really stuck...

2006-08-25 Thread Max Cooper
I have personally found the profile mechanism to be tricky to setup, but 
you can generally achieve your goals by applying various activation 
techniques, etc.


Profiles can be activated by properties. You could use a property to 
activate your dev-crimson profile, specified like 'mvn 
-DtargetEnv=dev-crimson'.


I am not certain, but perhaps the order the profiles in the list define 
how property value conflicts will be resolved. But even if this is true, 
it seems to lack the power to give precedence to a profile that is 
activated by some means other than the command line.


A useful trick for avoiding conflicts when using property-activated 
profiles is to have a profile with a default value for a property be 
activated when the profile-selecting property is NOT set. You can do 
this by specifying (e.g.) !targetEnv as the activation property for that 
profile. And then have other profiles that set the property to something 
else when the profile-selection property is set (activated when 
targetEnv has a value of 'dev-crimson', etc.).


-Max

EJ Ciramella wrote:

Even more fun - if I specify a profile that only exists in my
settings.xml file, some of the resources don't even get processed.

What gives? 


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 1:47 PM

To: Maven Users List
Subject: RE: probs with profiles - really stuck...

If two profiles are loaded and both have a property set in it, which one
takes precedence? 


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 25, 2006 11:42 AM

To: Maven Users List
Subject: RE: probs with profiles - really stuck...

Is there really no way to do this folks?  This would really nuke our
maven progress at this point. 


-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 6:48 PM

To: Maven Users List
Subject: probs with profiles

I have a question about profiles and their usage.  Our build machines
have one path to things like jboss and other third party directories, in
the various qa stacks, these paths may be different.  Additionally, a
property may change from project to project.
 
How come the sub projects don't get the second profile?!
 
E:\work\up-svcs\lty\proj\LTY-P39mvn help:active-profiles -P

LTY-P39,dev-crimson -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]   Lty Utils
[INFO]   Lty Crypto(Client)
[INFO]   LtyModel
[INFO]   LtyDataGen
[INFO]   Crypto Server
[INFO]   Upromise.com Site
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO]


[INFO] Building Unnamed - lty:app:pom:1.0-SNAPSHOT
[INFO]task-segment: [help:active-profiles] (aggregator-style)
[INFO]


[INFO] [help:active-profiles]
[INFO]
Active Profiles for Project 'lty:app:pom:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - dev-crimson (source: profiles.xml)

 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-utils:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:crypto:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-model:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:lty-datagen:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'lty:cryptoServer:jar:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 
 
Active Profiles for Project 'uprweb:uprweb:war:1.0-SNAPSHOT':
 
The following profiles are active:
 
 - LTY-P39 (source: settings.xml)
 
 


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


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


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



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



m2eclipse eclipse:eclipse

2006-08-25 Thread Douglas Ferguson
I have a few questsion about m2eclipse:
 
1) When configuring the external tool how do you specify a profile?
2) What settings.xml will get read? I am not sure that either my 
maven_install_dir/settings.xml or ~/.m2/settings.xml are getting read.
3) Can someone explain what update source directies does?

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



maven-overlay and jetty6 plugin

2006-08-25 Thread Matt Raible

While the war-overlay feature appears to work pretty well, it doesn't
work at all with the jetty6 plugin.  Is this a known issue?  Are there
any plans to fix this, or should I talk to someone on a different
(jetty) mailing list?

Without this feature, it doesn't seem that AppFuse can be a war
library, but rather will have to continue as a starter project w/ a
bunch of files in it by default.

Thanks,

Matt

http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

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



Customized settings.xml is never loaded

2006-08-25 Thread Jiaqi Guo

To deploy packages to remote repository through scp, I created the
settings.xml under continuum_install_dir/bin/linux/conf/ where
username(different from current user of os), privateKey of distribution
server and a non-default localRepository path are defined. From the log file
it seems the settings.xml file is loaded

- Building Maven global-level settings from:
'/usr/java/apache/continuum-1.0.3/bin/linux/conf/settings.xml'

However the mvn deploy goal always fails for authorized connection and jar
files are always downloaded to /.m2/repository (run as root). I've tried to
copy the settings.xml to /.m2, /root/.m2, $M2_HOME/conf/, and even set
-Dorg.apache.maven.global-settings=/home/jiaqi/.m2/settings.xml in launching
command and building definition. The settings.xml never gets actually loaded
even though the log file says so.

If I run mvn command with --settings or -Dorg.apache.maven.global-settings=
option packages are just deployed as expected.

I'm running continuum-1.0.3 with maven-2.0.4 on redhat-7.2.

Does anyone successfully make continuum load customized settings.xml file?
How did it work? Thanks.


-Jiaqi
-- 
View this message in context: 
http://www.nabble.com/Customized-settings.xml-is-never-loaded-tf2167564.html#a5993019
Sent from the Continuum - Users forum at Nabble.com.



Re: maven-overlay and jetty6 plugin

2006-08-25 Thread Carlos Sanchez

what's the problem? jetty:run? you can use war:inplace jetty:run

On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:

While the war-overlay feature appears to work pretty well, it doesn't
work at all with the jetty6 plugin.  Is this a known issue?  Are there
any plans to fix this, or should I talk to someone on a different
(jetty) mailing list?

Without this feature, it doesn't seem that AppFuse can be a war
library, but rather will have to continue as a starter project w/ a
bunch of files in it by default.

Thanks,

Matt

http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

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





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: maven-overlay and jetty6 plugin

2006-08-25 Thread Matt Raible

On 8/25/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

what's the problem? jetty:run? you can use war:inplace jetty:run


Yeah, jetty6:run doesn't work.  jetty6:run-war and jetty6:run-exploded
both seem to work fine, but don't pick up changes that I make/save in
my IDE.

Note: I say jetty6 vs. jetty b/c jetty6 actually works for me whereas
the jetty plugin seems to have issues with my project.

I suppose war:inplace works, but I tend to stay away from that b/c it
copies files into your source tree and I've seen rookie developers
often get confused when they go to check things into source control.
If there was a war:inplace-clean, it might be more usable.  However,
in something like AppFuse, where there will be .xml files overlayed
from another WAR - it might lead to a lot of confusion when folks use
war:inplace.

Do you think the current directory/project structure I have in place
is a good one?

appfuse2
   - data
   - common (model objects, interfaces)
   - hibernate
   - ibatis
   - service
   - web
   - common
   - common-war
   - jsf
   - jsf-war
   - spring
   - spring-war
   - struts
   - struts-war
   - tapestry
   - tapestry-war

I'd rather not have framework and framework-war, but it seems it's
necessary for end users to get both base classes and static files with
the war-overlay feature.

Thanks,

Matt




On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:
 While the war-overlay feature appears to work pretty well, it doesn't
 work at all with the jetty6 plugin.  Is this a known issue?  Are there
 any plans to fix this, or should I talk to someone on a different
 (jetty) mailing list?

 Without this feature, it doesn't seem that AppFuse can be a war
 library, but rather will have to continue as a starter project w/ a
 bunch of files in it by default.

 Thanks,

 Matt

 http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

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




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride



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



Re: maven-overlay and jetty6 plugin

2006-08-25 Thread Carlos Sanchez

On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:

On 8/25/06, Carlos Sanchez [EMAIL PROTECTED] wrote:
 what's the problem? jetty:run? you can use war:inplace jetty:run

Yeah, jetty6:run doesn't work.  jetty6:run-war and jetty6:run-exploded
both seem to work fine, but don't pick up changes that I make/save in
my IDE.



jetty6 was renamed to jetty
It's mantained by Mortbay, I don't know if they'll be adding the war
overlay feature to jetty:run. I was instructed to use the war:inplace
jetty:run when overlaying wars.

jetty:run-exploded works again the target dir so if you IDE don't copy
the changed files there it won't work. You may configure it tough.



Note: I say jetty6 vs. jetty b/c jetty6 actually works for me whereas
the jetty plugin seems to have issues with my project.

I suppose war:inplace works, but I tend to stay away from that b/c it
copies files into your source tree and I've seen rookie developers
often get confused when they go to check things into source control.
If there was a war:inplace-clean, it might be more usable.  However,
in something like AppFuse, where there will be .xml files overlayed
from another WAR - it might lead to a lot of confusion when folks use
war:inplace.

Do you think the current directory/project structure I have in place
is a good one?

appfuse2
- data
- common (model objects, interfaces)
- hibernate
- ibatis
- service
- web
- common
- common-war
- jsf
- jsf-war
- spring
- spring-war
- struts
- struts-war
- tapestry
- tapestry-war

I'd rather not have framework and framework-war, but it seems it's
necessary for end users to get both base classes and static files with
the war-overlay feature.


looks right. In m1 I think there was an option to add the classes as a
jar to the war instead of copying them to web-inf/classes.
The problem is how wars work, it's pretty limited.



Thanks,

Matt



 On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:
  While the war-overlay feature appears to work pretty well, it doesn't
  work at all with the jetty6 plugin.  Is this a known issue?  Are there
  any plans to fix this, or should I talk to someone on a different
  (jetty) mailing list?
 
  Without this feature, it doesn't seem that AppFuse can be a war
  library, but rather will have to continue as a starter project w/ a
  bunch of files in it by default.
 
  Thanks,
 
  Matt
 
  http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 I could give you my word as a Spaniard.
 No good. I've known too many Spaniards.
  -- The Princess Bride





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: maven-overlay and jetty6 plugin

2006-08-25 Thread Matt Raible

On 8/25/06, Carlos Sanchez [EMAIL PROTECTED] wrote:

On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:
 On 8/25/06, Carlos Sanchez [EMAIL PROTECTED] wrote:
  what's the problem? jetty:run? you can use war:inplace jetty:run

 Yeah, jetty6:run doesn't work.  jetty6:run-war and jetty6:run-exploded
 both seem to work fine, but don't pick up changes that I make/save in
 my IDE.


jetty6 was renamed to jetty
It's mantained by Mortbay, I don't know if they'll be adding the war
overlay feature to jetty:run. I was instructed to use the war:inplace
jetty:run when overlaying wars.

jetty:run-exploded works again the target dir so if you IDE don't copy
the changed files there it won't work. You may configure it tough.


 Note: I say jetty6 vs. jetty b/c jetty6 actually works for me whereas
 the jetty plugin seems to have issues with my project.

 I suppose war:inplace works, but I tend to stay away from that b/c it
 copies files into your source tree and I've seen rookie developers
 often get confused when they go to check things into source control.
 If there was a war:inplace-clean, it might be more usable.  However,
 in something like AppFuse, where there will be .xml files overlayed
 from another WAR - it might lead to a lot of confusion when folks use
 war:inplace.

 Do you think the current directory/project structure I have in place
 is a good one?

 appfuse2
 - data
 - common (model objects, interfaces)
 - hibernate
 - ibatis
 - service
 - web
 - common
 - common-war
 - jsf
 - jsf-war
 - spring
 - spring-war
 - struts
 - struts-war
 - tapestry
 - tapestry-war

 I'd rather not have framework and framework-war, but it seems it's
 necessary for end users to get both base classes and static files with
 the war-overlay feature.

looks right. In m1 I think there was an option to add the classes as a
jar to the war instead of copying them to web-inf/classes.


Really!?  If this was added to M2, could I revert back to one WAR
project (removing the similar JAR) project?  If so, I'd *really* like
to see this added, and of course, would be willing to try writing the
patch myself.

Matt


The problem is how wars work, it's pretty limited.


 Thanks,

 Matt


 
  On 8/25/06, Matt Raible [EMAIL PROTECTED] wrote:
   While the war-overlay feature appears to work pretty well, it doesn't
   work at all with the jetty6 plugin.  Is this a known issue?  Are there
   any plans to fix this, or should I talk to someone on a different
   (jetty) mailing list?
  
   Without this feature, it doesn't seem that AppFuse can be a war
   library, but rather will have to continue as a starter project w/ a
   bunch of files in it by default.
  
   Thanks,
  
   Matt
  
   http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  I could give you my word as a Spaniard.
  No good. I've known too many Spaniards.
   -- The Princess Bride
 



--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride



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



Should Acegi be packaged into ear or war?

2006-08-25 Thread Naresh Bhatia
I am packaging my web application as an ear file because it uses EJBs. I
am using Acegi for security. However if I add Acegi as a dependency in
the war subproject then it pulls in bunch of other jars that are also
needed in my ejb subproject (such as spring) and I run into classloader
issues at runtime. To avoid this, I have moved the Acegi dependency into
the ejb package. Now everything works fine - Acegi and Spring are both
available to the web application. The only problem is that the web
application cannot access Acegi taglibs because they are no longer under
WEB-INF/lib. I could put Acegi back in the war project but I would have
to exclude all the dependent jars - I don't like doing this because the
list of Acegi dependent jars is really long! What is the most elegant
way to handle this situation?

 

Thanks.

Naresh