Exclude resources during jar generation

2009-03-25 Thread sylsau

Hello,

I use Maven 2 to package my solution which contains several projects. I am
in the project A which have dependencies with B and C projects.

In my pom.Xml for A project that I wish package I have mentionned an
assembly file which lets me to generate a global zip archive containing :

- libs/ directory containing jar from B and C projects
- libs/libsext directory containing externals jar that are in dependency
- resources/ directory containing resources from A project which are
containing in src/main/resources on this project

When I generate jar from A project, I would like to exclude these resources
(containing in src/main/resources) from my jar. For the moment, I haven't
found a solution.

There is a possibility to make that ?

Thanks for your help.

Sylvain 
-- 
View this message in context: 
http://www.nabble.com/Exclude-resources-during-jar-generation-tp22707492p22707492.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [M2] Site Generation

2008-04-12 Thread sylsau

First, I use the command mvn site then I run the command mvn site:stage.

The result is the same, the links are not good. So, perhars there are values
to put in the tag url on the pom ?
-- 
View this message in context: 
http://www.nabble.com/-M2--Site-Generation-tp16648682s177p16656455.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[M2] Site Generation

2008-04-12 Thread sylsau

Hello,

I am testing maven 2 and I saw that is was a possibility to generate a site
who lists the project's documentation.

My project has the following form :

- pom.xml (super POM)
- moduleA/  with a pom.xml
- moduleB/ with a pom.xml

The content of my the super POM is the following : 

[CODE]
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";>
  4.0.0
  fr.projet
  projet
  pom
  0.1
  Projet !

  
moduleA
moduleB
  

  

  junit
  junit
  3.8.1
  test

  
  

  
  

  org.apache.maven.plugins
  maven-javadoc-plugin
  
  
128m
512m
  


  
  org.apache.maven.plugins
  maven-jxr-plugin
  
  
  
maven-clover-plugin
  

  

  
  

[/CODE]

The pom's of the modules are almost the same and are like that : 

[CODE]
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";>
  4.0.0
  moduleA
  jar
  Module A
  

fr.projet
projet
0.1
../pom.xml
  
  



[/CODE]

When i use mvn site command, the site is well generated. The target
directory is created in the same directory that the super POM, but there is
also a directory target that is created in the modules' directories.

When i display the site, in the modules part on the left menu, the list with
my 2 modules is well displayed. However, there is a problem with the links
of theses modules. The links don't redirect correctly to the modules'
target. 

Their form is like that : ... maven/target/site/moduleB/index.html  whereas
the real path of this is the following :
maven/moduleB/target/site/index.html .

Do you know how I can do to generate the modules' target in the target of
the super POM ? or in the other case how I can change the links ?

Thanks for your help.

Sylvain.
-- 
View this message in context: 
http://www.nabble.com/-M2--Site-Generation-tp16648682s177p16648682.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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