Re: How access classes from war dependency?

2011-05-01 Thread Anders Hammar
No, you create a third project which is a standard jar Maven project. There
you but those Java classes. This will produce a jar artifact, which you
declare a dependency to from both war projects.

/Anders

On Sun, May 1, 2011 at 03:48, sipungora kostya...@yahoo.de wrote:

 Hi,

 I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/.
 How should I configure my pom, that I can access they?

 I assume, they should be copied from war/WEB-INF/classes/ into
 mywar/WEB-INF/classes/,  but I don't know, how my pom should correct be
 configured.

 this is a config of maven-war-plugin


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
configuration

  warSourceDirectorywar/warSourceDirectory

  webXmlsrc/main/webapp/WEB-INF/web.xml/webXml

  dependentWarExcludesWEB-INF/lib/*/dependentWarExcludes
archive


  manifestFilewar/META-INF/MANIFEST.MF
/manifestFile
/archive
/configuration
/plugin

 and this is the war-dependency:


dependency
groupId${groupId}/groupId
artifactIdtest/artifactId
version${version}/version
typewar/type
/dependency

 Thanks in advance.
 Best Regards.
 -sipungora.
 --
 View this message in context:
 http://maven.40175.n5.nabble.com/How-access-classes-from-war-dependency-tp4362127p4362127.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: Error assembling WAR: MANIFEST.MF does not exist.

2011-05-01 Thread Dennis Lundberg
On 2011-05-01 01:31, sipungora wrote:
 Sorry, it was my error. pom says:
 
 build
 outputDirectorywar/WEB-INF/classes/outputDirectory

This is not good. You should alway use a directory under target/ as your
output directory. Why are you setting outputDirectory manually?

 ...
 and
 ...
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   configuration
   
 warSourceDirectorywar/warSourceDirectory
   
 webXmlsrc/main/webapp/WEB-INF/web.xml/webXml
   
 dependentWarExcludesWEB-INF/lib/*/dependentWarExcludes
   archive
   
   
 manifestFile${project.build.outputDirectory}/META-INF/MANIFEST.MF
   /manifestFile

Here you are telling the plugin to use your own custom MANIFEST.MF that
is located in ${project.build.outputDirectory}/META-INF/ and with your
current outputDirectory that means in war/WEB-INF/classes/META-INF/ just
as it says in the error message.

   /archive
   /configuration
   /plugin
 ...
 /build
 
 Now I've corrected it and build is successful.
 
 Thank you for hint. Sorry. --
 View this message in context: 
 http://maven.40175.n5.nabble.com/Error-assembling-WAR-MANIFEST-MF-does-not-exist-tp4361924p4361959.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
 
 


-- 
Dennis Lundberg

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



Re: How access classes from war dependency?

2011-05-01 Thread Dennis Lundberg
On 2011-05-01 03:48, sipungora wrote:
 Hi,
 
 I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/.
 How should I configure my pom, that I can access they?
 
 I assume, they should be copied from war/WEB-INF/classes/ into
 mywar/WEB-INF/classes/,  but I don't know, how my pom should correct be
 configured.

For that to work you need to use a feature in Maven WAR Plugin that is
called overlays. That will overlay the dependant WAR on top of your
current project's WAR.

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

 
 this is a config of maven-war-plugin
 
 
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-war-plugin/artifactId
   configuration
   
 warSourceDirectorywar/warSourceDirectory
   
 webXmlsrc/main/webapp/WEB-INF/web.xml/webXml
   
 dependentWarExcludesWEB-INF/lib/*/dependentWarExcludes
   archive
   
   
 manifestFilewar/META-INF/MANIFEST.MF
   /manifestFile
   /archive
   /configuration
   /plugin
 
 and this is the war-dependency:
 
 
   dependency
   groupId${groupId}/groupId
   artifactIdtest/artifactId
   version${version}/version
   typewar/type
   /dependency
 
 Thanks in advance.
 Best Regards.
 -sipungora.
 --
 View this message in context: 
 http://maven.40175.n5.nabble.com/How-access-classes-from-war-dependency-tp4362127p4362127.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
 
 


-- 
Dennis Lundberg

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



Re: How access classes from war dependency?

2011-05-01 Thread sipungora
Thank you, Anders.

I'll try this to do. --
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362573.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: How access classes from war dependency?

2011-05-01 Thread sipungora
Thank you Dennis.

I will later write, if it works. --
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4362575.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



war plugin message for no apparent purpose

2011-05-01 Thread Benson Margulies
This message seems to be reporting a change from X to X, that is, no
change at all. Am I missing something?

[INFO] Dependency[Dependency {groupId=org.apache.lucene,
artifactId=lucene-analyzers, version=3.0.3, type=jar}] has changed
(was Dependency {groupId=org.apache.lucene,
artifactId=lucene-analyzers, version=3.0.3, type=jar}).

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



Re: Assembly Plugin Problem with multi module Project

2011-05-01 Thread Dmitriy Neretin
I need not only dependenciesSets, but also fileSets...

2011/4/28 Anders Hammar and...@hammar.net

 You should not traverse the file structure but rely on dependencies! It
 should work building when just checking out this specific module from scm.

 /Anders

 On Thu, Apr 28, 2011 at 18:01, Dmitriy Neretin 
 dmitriy.nere...@googlemail.com wrote:

  Holy sh... :)) Of cource it works :) But it is not really that what I
  wanted
  but it's not important now :) Thank you very much. But I still don't
  understand why the moduleSet didn't work... Strange (How old is the maven
  documentation). With this variable ${project.parent.basedir} I can
 get
  access on parent directory structure. So I hope to solve my problems
  completly!
 
  Have a nice day!
 
  2011/4/28 Anders Hammar and...@hammar.net
 
   No, you should not use moduleSet but dependencySet (or similar, I'm not
  at
   my computer and cannot check syntax).
  
   /Anders (mobile)
   Den 28 apr 2011 17.14 skrev Dmitriy Neretin 
   dmitriy.nere...@googlemail.com:
Well I just removed the assembly declaration from the parent POM. I
  just
left there the new distribution module. When I change to the
  distribution
folder and execute mvn assembly:single or mvn clean package I get
 this:
   
[INFO] Reading assembly descriptor: config/assembly.xml
[WARNING] The following patterns were never triggered in this
 artifact
inclusion filter:
o 'A'
   
[WARNING] The following patterns were never triggered in this
 artifact
inclusion filter:
o 'A'
   
[WARNING] NOTE: Currently, inclusion of module dependencies may
 produce
unpredictable results if a version conflict occu
rs.
[INFO]
   
  
[ERROR] BUILD ERROR
[INFO]
   
  
[INFO] Failed to create assembly: Error creating assembly archive
 test:
   You
must set at least one file.
   
Well the descriptor war reas only once, but we still see the double
   warning
about failed trigger :(
   
But the assembly configuration is right:
   
moduleSets
moduleSet
useAllReactorProjectstrue/useAllReactorProjects
includes
includeA/include
/includes
binaries
outputDirectorytools/caseviewer/outputDirectory
unpackfalse/unpack
/binaries
/moduleSet
/moduleSets
   
   
2011/4/28 Anders Hammar and...@hammar.net
   
Ok, the log output indicates that the assembly is executed twice
  (there
   is
a
warning about the same id used twice).
Start by removing any assembly configuration from your parent, to
 keep
things simple. Just add it yo your module. When you get that to work
  you
could start by doing advanced stuff.
   
/Anders
   
On Thu, Apr 28, 2011 at 15:37, Dmitriy Neretin 
dmitriy.nere...@googlemail.com wrote:
   
 Thanks for the reply!

 2011/4/28 Anders Hammar and...@hammar.net

  The declaration in your parent, is that a binding? Or is it in
  pluginManagement?
 

 Well I don't really understand what do you mean with binding :)
 The
 assembly
 plugin is declared between the plugins/ tags:

 plugins
 plugin
 Assembly declaration
 /plugin
 /plugins


 
  Why are configuring the descriptor in the parent? Are you trying
  to
make
 an
  assembly in the parent as well as in the child?
 

 I configure the descriptor in the parent because I have read this
   under
the
 link below (maven documentation). And I am not really shure it is
right...
 I
 am trying now to make an assembly from the child project but the
  main
 target
 is preety simple: After compiling (mvn install) of the whole
 project
(from
 the parent level) I want to find in the distribution directory
 some
 artifacts like binaries, some skripts, zips etc. I have already
 used
   this
 plugin for a child project to build a zip file and it worked :(

 
  /Anders
  On Thu, Apr 28, 2011 at 15:03, Dmitriy Neretin 
  dmitriy.nere...@googlemail.com wrote:
 
   Hello everybody,
  
   I have a problem with the assembly plugin. I used the
 following
   documentation:
  
  
 

   
  
  
 
 http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html
  
   I created the additional module to keep my assembly in the
  parent
POM:
  
   ...
   modules
   moduleA/module
   moduleB/module
   moduleC/module
   moduledistribution/module
   /modules
   ...
  
   and declared the assembly plugin in the parent POM:
  
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-assembly-plugin/artifactId
   version2.2.1/version
   

Re: Assembly Plugin Problem with multi module Project

2011-05-01 Thread Ron Wheeler

What are you trying to build?
Unless you are building something that is really off-beat, you should 
just be able to follow best practices.


Most people do not need to do what you are doing.

You seem to heading down a bizarre development path that is likely not 
needed and going to set up a complex and fragile build system.
Maven has Best Practices for all kinds of applications (from webapps to 
batch jobs to desktop apps) with sizes that range from 1 module to hundreds.

Very few of them involve anything as complex as what you are building.

You might take a minute to describe what you are trying to build and see 
if you get a simple solution.


One of the problems in this forum is that some of the guys here can make 
Maven do almost anything.
If you ask them a detailed technical question with no context, you will 
get a perfectly correct response that moves you forward.
If you are going down the wrong path, rapid progress is not necessarily 
in your best interest.


Take a step back and let the forum know what you are trying to build and 
how your sources are structured.


Ron

On 01/05/2011 9:50 AM, Dmitriy Neretin wrote:

I need not only dependenciesSets, but also fileSets...

2011/4/28 Anders Hammarand...@hammar.net


You should not traverse the file structure but rely on dependencies! It
should work building when just checking out this specific module from scm.

/Anders

On Thu, Apr 28, 2011 at 18:01, Dmitriy Neretin
dmitriy.nere...@googlemail.com  wrote:


Holy sh... :)) Of cource it works :) But it is not really that what I
wanted
but it's not important now :) Thank you very much. But I still don't
understand why the moduleSet didn't work... Strange (How old is the maven
documentation). With this variable ${project.parent.basedir} I can

get

access on parent directory structure. So I hope to solve my problems
completly!

Have a nice day!

2011/4/28 Anders Hammarand...@hammar.net


No, you should not use moduleSet but dependencySet (or similar, I'm not

at

my computer and cannot check syntax).

/Anders (mobile)
Den 28 apr 2011 17.14 skrev Dmitriy Neretin
dmitriy.nere...@googlemail.com:

Well I just removed the assembly declaration from the parent POM. I

just

left there the new distribution module. When I change to the

distribution

folder and execute mvn assembly:single or mvn clean package I get

this:

[INFO] Reading assembly descriptor: config/assembly.xml
[WARNING] The following patterns were never triggered in this

artifact

inclusion filter:
o 'A'

[WARNING] The following patterns were never triggered in this

artifact

inclusion filter:
o 'A'

[WARNING] NOTE: Currently, inclusion of module dependencies may

produce

unpredictable results if a version conflict occu
rs.
[INFO]




[ERROR] BUILD ERROR
[INFO]




[INFO] Failed to create assembly: Error creating assembly archive

test:

You

must set at least one file.

Well the descriptor war reas only once, but we still see the double

warning

about failed trigger :(

But the assembly configuration is right:

moduleSets
moduleSet
useAllReactorProjectstrue/useAllReactorProjects
includes
includeA/include
/includes
binaries
outputDirectorytools/caseviewer/outputDirectory
unpackfalse/unpack
/binaries
/moduleSet
/moduleSets


2011/4/28 Anders Hammarand...@hammar.net


Ok, the log output indicates that the assembly is executed twice

(there

is

a
warning about the same id used twice).
Start by removing any assembly configuration from your parent, to

keep

things simple. Just add it yo your module. When you get that to work

you

could start by doing advanced stuff.

/Anders

On Thu, Apr 28, 2011 at 15:37, Dmitriy Neretin
dmitriy.nere...@googlemail.com  wrote:


Thanks for the reply!

2011/4/28 Anders Hammarand...@hammar.net


The declaration in your parent, is that a binding? Or is it in
pluginManagement?


Well I don't really understand what do you mean with binding :)

The

assembly
plugin is declared between theplugins/  tags:

plugins
plugin
Assembly declaration
/plugin
/plugins



Why are configuring the descriptor in the parent? Are you trying

to

make

an

assembly in the parent as well as in the child?


I configure the descriptor in the parent because I have read this

under

the

link below (maven documentation). And I am not really shure it is

right...

I
am trying now to make an assembly from the child project but the

main

target
is preety simple: After compiling (mvn install) of the whole

project

(from

the parent level) I want to find in the distribution directory

some

artifacts like binaries, some skripts, zips etc. I have already

used

this

plugin for a child project to build a zip file and it worked :(


/Anders
On Thu, Apr 28, 2011 at 15:03, Dmitriy Neretin
dmitriy.nere...@googlemail.com  wrote:


Hello everybody,

I have a problem with the assembly plugin. I used 

How to use wagon-ssh-external instead of wagon-ssh?

2011-05-01 Thread Andreas Sewe
Hi,

I am facing some problems deploying my project's site using sftp. For
testing purposes I thus want to switch wagons, namely from
org.apache.maven.wagon:wagon-ssh:1.0-beta-7 to
org.apache.maven.wagon:wagon-ssh-external:1.0-beta-7. However, even
adding the appropriate extension to my POM doesn't convince the
maven-site-plugin:3.0-beta-4-SNAPSHOT to pick a different wagon for the
sftp URI scheme.

 extension
   groupIdorg.apache.maven.wagon/groupId
   artifactIdwagon-ssh-external/artifactId
   version1.0-beta-6/version
 /extension

At least, I still get the same exception, which clearly says that I am
using the JSch-based Wagon and not an external ssh process:

Caused by: 3: Permission denied
at
com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2291)
at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:1701)
at
org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.mkdir(SftpWagon.java:204)
at
org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.mkdirs(SftpWagon.java:184)
at
org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.putDirectory(SftpWagon.java:271)
... 25 more
[ERROR]

Any suggestions? How does the maven-site-plugin map URI schemes to wagons?

Also, is there any configuration option / system property to make the
wagon more chatty? Just running mvn site-deploy -X doesn't produce
enough information to track down what's actually going over the wire. :-(

Best wishes,

Andreas Sewe

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



gwt + jsf?

2011-05-01 Thread sipungora
Hi,

I'm developing a new application in gwt and I'm using an old application in
jsf. I can build both with maven. And after build classes of jsf-project are
correct arranged in WEB-INF/classes of gwt-war. My gwt project is also a
dynamic web project. But if I deploy my gwt project into Tomcat-Server in
Eclipse, the gwt-war will only be deployed without jsf-classes.

It seems the war will be taken, that is created by gwt compilation with
google plugin for eclipse. What can I do in this case?

Also:

I have jsf-war-dependency in the gwt-project. And it will correct be built
with maven. But the gwt-war will be deployed, that is created by google
plugin for eclipse and it contains no classes of jsf.

Thanks in advance.
Best Regards.
-sipungora--
View this message in context: 
http://maven.40175.n5.nabble.com/gwt-jsf-tp4363026p4363026.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: Error assembling WAR: MANIFEST.MF does not exist.

2011-05-01 Thread sipungora
 Why are you setting outputDirectory manually?

I have no good answer to your question. I have found the similar project
like my one. And I do copy and paste.

 that means in war/WEB-INF/classes/META-INF/ just as it says in the error
 message.

I've understood this, and therefore I've said sorry.


dennisl wrote:
 
 On 2011-05-01 01:31, sipungora wrote:
 Sorry, it was my error. pom says:
 
 build
 outputDirectorywar/WEB-INF/classes/outputDirectory
 
 This is not good. You should alway use a directory under target/ as your
 output directory. Why are you setting outputDirectory manually?
 
 ...
 and
 ...
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  configuration
  
 warSourceDirectorywar/warSourceDirectory
  
 webXmlsrc/main/webapp/WEB-INF/web.xml/webXml
  
 dependentWarExcludesWEB-INF/lib/*/dependentWarExcludes
  archive
  
  
 manifestFile${project.build.outputDirectory}/META-INF/MANIFEST.MF
  /manifestFile
 
 Here you are telling the plugin to use your own custom MANIFEST.MF that
 is located in ${project.build.outputDirectory}/META-INF/ and with your
 current outputDirectory that means in war/WEB-INF/classes/META-INF/ just
 as it says in the error message.
 
  /archive
  /configuration
  /plugin
 ...
 /build
 
 Now I've corrected it and build is successful.
 
 Thank you for hint. Sorry. --
 View this message in context:
 http://maven.40175.n5.nabble.com/Error-assembling-WAR-MANIFEST-MF-does-not-exist-tp4361924p4361959.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
 
 
 
 
 -- 
 Dennis Lundberg
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-assembling-WAR-MANIFEST-MF-does-not-exist-tp4361924p4363196.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



Reference archive from another module

2011-05-01 Thread CassUser CassUser
Hey all,

I have a multimodule maven project.  One of the modules creates a archive
file.  It's packaging is jar, but uses another plugin to create a different
type of archive.  I have a deployment modules which needs to move that
archive into a conf folder.  How can i achieve this?
Thanks.


Re: Reference archive from another module

2011-05-01 Thread Benson Margulies
Generally people use the assembly plugin in a 'distribution' module to
rearrange things into a distribution hierarchy. Is that what you have
in mind here?

On Sun, May 1, 2011 at 3:40 PM, CassUser CassUser cassu...@gmail.com wrote:
 Hey all,

 I have a multimodule maven project.  One of the modules creates a archive
 file.  It's packaging is jar, but uses another plugin to create a different
 type of archive.  I have a deployment modules which needs to move that
 archive into a conf folder.  How can i achieve this?
 Thanks.


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



Re: Reference archive from another module

2011-05-01 Thread CassUser CassUser
Yeah.  the distribution module actually is an RPM module, and we use the
copy dependencies plugin to ref modules within the project.  The
dependencies are then mapped to locations in the rpm plugin like:
mapping

directory${install.location}/libraries/directory
sources
source

location${project.build.directory}/dependency/location
/source
/sources
/mapping

From one of those dependent modules I would like to reference a archive file
that it creates (like the jars the dependency plugin grabs).  Would the
assembly plugin work in this use case (example?)

dependency plugin:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idcopy-dependencies/id
phasecompile/phase
goals
goalcopy-dependencies/goal
/goals
configuration
overWriteReleasesfalse/overWriteReleases
overWriteSnapshotsfalse/overWriteSnapshots
overWriteIfNewertrue/overWriteIfNewer
/configuration
/execution
/executions
/plugin

On Sun, May 1, 2011 at 12:43 PM, Benson Margulies bimargul...@gmail.comwrote:

 Generally people use the assembly plugin in a 'distribution' module to
 rearrange things into a distribution hierarchy. Is that what you have
 in mind here?

 On Sun, May 1, 2011 at 3:40 PM, CassUser CassUser cassu...@gmail.com
 wrote:
  Hey all,
 
  I have a multimodule maven project.  One of the modules creates a archive
  file.  It's packaging is jar, but uses another plugin to create a
 different
  type of archive.  I have a deployment modules which needs to move that
  archive into a conf folder.  How can i achieve this?
  Thanks.
 

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




Re: Reference archive from another module

2011-05-01 Thread CassUser CassUser
One other question.

Anyone know whats the preferred way to reference spring files?  the files in
src/main/resources in other sibling modules to be packaged for deployment...

On Sun, May 1, 2011 at 1:07 PM, CassUser CassUser cassu...@gmail.comwrote:

 Yeah.  the distribution module actually is an RPM module, and we use the
 copy dependencies plugin to ref modules within the project.  The
 dependencies are then mapped to locations in the rpm plugin like:
 mapping

 directory${install.location}/libraries/directory
 sources
 source

 location${project.build.directory}/dependency/location
 /source
 /sources
 /mapping

 From one of those dependent modules I would like to reference a archive
 file that it creates (like the jars the dependency plugin grabs).  Would the
 assembly plugin work in this use case (example?)

 dependency plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
 execution
 idcopy-dependencies/id
 phasecompile/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 overWriteReleasesfalse/overWriteReleases
 overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 /configuration
 /execution
 /executions
 /plugin


 On Sun, May 1, 2011 at 12:43 PM, Benson Margulies 
 bimargul...@gmail.comwrote:

 Generally people use the assembly plugin in a 'distribution' module to
 rearrange things into a distribution hierarchy. Is that what you have
 in mind here?

 On Sun, May 1, 2011 at 3:40 PM, CassUser CassUser cassu...@gmail.com
 wrote:
  Hey all,
 
  I have a multimodule maven project.  One of the modules creates a
 archive
  file.  It's packaging is jar, but uses another plugin to create a
 different
  type of archive.  I have a deployment modules which needs to move that
  archive into a conf folder.  How can i achieve this?
  Thanks.
 

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





Re: gwt + jsf?

2011-05-01 Thread Stephen Connolly
sounds like you don't have an issue with maven... did you mean to send this
to the eclipse or the m2eclipse list?

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense
words and other nonsense are a direct result of using swype to type on the
screen
On 1 May 2011 17:31, sipungora kostya...@yahoo.de wrote:


Re: Reference archive from another module

2011-05-01 Thread Ron Wheeler

On 01/05/2011 3:40 PM, CassUser CassUser wrote:

Hey all,

I have a multimodule maven project.  One of the modules creates a archive
file.  It's packaging is jar, but uses another plugin to create a different
type of archive.  I have a deployment modules which needs to move that
archive into a conf folder.  How can i achieve this?
Thanks.

It might help if you added a bit more detail about what you are actually 
trying to accomplish.



Ron

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



Re: Reference archive from another module

2011-05-01 Thread Ron Wheeler

Spring is just a dependency.
We use Spring extensively to build both webapps and batch jobs. No 
special plug-in or assembly required for Spring.



Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/

Unless you are building something that no one else has ever heard of, 
you are likely to find that hundreds of people have already done it.


Try not to reinvent a square wheel.

Ron


On 01/05/2011 4:11 PM, CassUser CassUser wrote:

One other question.

Anyone know whats the preferred way to reference spring files?  the files in
src/main/resources in other sibling modules to be packaged for deployment...

On Sun, May 1, 2011 at 1:07 PM, CassUser CassUsercassu...@gmail.comwrote:


Yeah.  the distribution module actually is an RPM module, and we use the
copy dependencies plugin to ref modules within the project.  The
dependencies are then mapped to locations in the rpm plugin like:
 mapping

directory${install.location}/libraries/directory
 sources
 source

location${project.build.directory}/dependency/location
 /source
 /sources
 /mapping

 From one of those dependent modules I would like to reference a archive
file that it creates (like the jars the dependency plugin grabs).  Would the
assembly plugin work in this use case (example?)

dependency plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
 execution
 idcopy-dependencies/id
 phasecompile/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 overWriteReleasesfalse/overWriteReleases
 overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 /configuration
 /execution
 /executions
 /plugin


On Sun, May 1, 2011 at 12:43 PM, Benson Marguliesbimargul...@gmail.comwrote:


Generally people use the assembly plugin in a 'distribution' module to
rearrange things into a distribution hierarchy. Is that what you have
in mind here?

On Sun, May 1, 2011 at 3:40 PM, CassUser CassUsercassu...@gmail.com
wrote:

Hey all,

I have a multimodule maven project.  One of the modules creates a

archive

file.  It's packaging is jar, but uses another plugin to create a

different

type of archive.  I have a deployment modules which needs to move that
archive into a conf folder.  How can i achieve this?
Thanks.


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





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



Re: Reference archive from another module

2011-05-01 Thread CassUser CassUser
I don't think I'm explaining myself clearly.  let me try again.

Spring is just a dependency.
We use Spring extensively to build both webapps and batch jobs. No special
plug-in or assembly required for Spring.

Yeah i understand that.  I meant the application context spring files used
in a given module being copied to the deployment module.

 Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/

Yep.  Thats what we're using.

I think the assembly plugin is what i was looking for.

Assume module A is a simple maven project with jar packaging which uses a
couple spring context files to initialize the application (in
src/main/resources ). This module has no dependencies on other modules.  It
is self contained with its own unit/integ tests etc.

module B is another simple maven module with jar packaging.  In it's pom it
uses a plugin which generates a archive file (assume tar or something) in
the target directory.

Module C, we'll call it a the deployment module has the following
directories:

+ src/main/resources/bin
+ src/main/resources/configuration

When module C is built, i would like the spring files from module A to be
copied to bin, and the archive in module B to configuration.

Does that make sense, or am I going about this wrong..?

Thanks for your help


On Sun, May 1, 2011 at 2:57 PM, Ron Wheeler
rwhee...@artifact-software.comwrote:

 Spring is just a dependency.
 We use Spring extensively to build both webapps and batch jobs. No special
 plug-in or assembly required for Spring.


 Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/

 Unless you are building something that no one else has ever heard of, you
 are likely to find that hundreds of people have already done it.

 Try not to reinvent a square wheel.

 Ron



 On 01/05/2011 4:11 PM, CassUser CassUser wrote:

 One other question.

 Anyone know whats the preferred way to reference spring files?  the files
 in
 src/main/resources in other sibling modules to be packaged for
 deployment...

 On Sun, May 1, 2011 at 1:07 PM, CassUser CassUsercassu...@gmail.com
 wrote:

  Yeah.  the distribution module actually is an RPM module, and we use the
 copy dependencies plugin to ref modules within the project.  The
 dependencies are then mapped to locations in the rpm plugin like:
 mapping

 directory${install.location}/libraries/directory
 sources
 source

 location${project.build.directory}/dependency/location
 /source
 /sources
 /mapping

  From one of those dependent modules I would like to reference a archive
 file that it creates (like the jars the dependency plugin grabs).  Would
 the
 assembly plugin work in this use case (example?)

 dependency plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
 execution
 idcopy-dependencies/id
 phasecompile/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 overWriteReleasesfalse/overWriteReleases

 overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 /configuration
 /execution
 /executions
 /plugin


 On Sun, May 1, 2011 at 12:43 PM, Benson Marguliesbimargul...@gmail.com
 wrote:

  Generally people use the assembly plugin in a 'distribution' module to
 rearrange things into a distribution hierarchy. Is that what you have
 in mind here?

 On Sun, May 1, 2011 at 3:40 PM, CassUser CassUsercassu...@gmail.com
 wrote:

 Hey all,

 I have a multimodule maven project.  One of the modules creates a

 archive

 file.  It's packaging is jar, but uses another plugin to create a

 different

 type of archive.  I have a deployment modules which needs to move that
 archive into a conf folder.  How can i achieve this?
 Thanks.

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




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




Re: How access classes from war dependency?

2011-05-01 Thread sipungora
Hi Anders,

 you create a third project which is a standard jar Maven project.

I've done it. But how can I configure my pom, that this jar will after
building be in WEB-INF/lib of my war? Currently I do it manually.

Thank you in advance.
Best Regards,
-sipungora--
View this message in context: 
http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4363706.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: gwt + jsf?

2011-05-01 Thread sipungora

stephenconnolly wrote:
 
 sounds like you don't have an issue with maven... did you mean to send
 this
 to the eclipse or the m2eclipse list?
 
 - Stephen
 
 ---
 Sent from my Android phone, so random spelling mistakes, random nonsense
 words and other nonsense are a direct result of using swype to type on the
 screen
 On 1 May 2011 17:31, sipungora lt;kostya...@yahoo.degt; wrote:
 

probably I do it later. But now I have found a work around. I've created a
new project with only for gwt-project needed java classes. I make it to jar.
And so I have now in gwt-project this jar-dependency and I don't need a
jsf-war dependency.

My problem now is, how can I configure my pom so, that the jar will be in
WEB-INF/lib of my war?
Currently I do it manually.

Thank you in advance.
Best Regards.
-sipungora--
View this message in context: 
http://maven.40175.n5.nabble.com/gwt-jsf-tp4363026p4363731.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: Reference archive from another module

2011-05-01 Thread Ron Wheeler

On 01/05/2011 6:14 PM, CassUser CassUser wrote:

I don't think I'm explaining myself clearly.  let me try again.


Spring is just a dependency.
We use Spring extensively to build both webapps and batch jobs. No special

plug-in or assembly required for Spring.

Yeah i understand that.  I meant the application context spring files used
in a given module being copied to the deployment module.


Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/

Yep.  Thats what we're using.

I think the assembly plugin is what i was looking for.

Assume module A is a simple maven project with jar packaging which uses a
couple spring context files to initialize the application (in
src/main/resources ). This module has no dependencies on other modules.  It
is self contained with its own unit/integ tests etc.

module B is another simple maven module with jar packaging.  In it's pom it
uses a plugin which generates a archive file (assume tar or something) in
the target directory.

Module C, we'll call it a the deployment module has the following
directories:

+ src/main/resources/bin
+ src/main/resources/configuration

When module C is built, i would like the spring files from module A to be
copied to bin, and the archive in module B to configuration.

Does that make sense, or am I going about this wrong..?
I could be wrong but I would think that the Spring configuration files 
belong in Project C.
You may need something is Module A to do testing but generally the 
dependent modules should be ignorant of application packaging.
Spring configuration files are generally tied to the top level module 
since they are generally gluing stuff together.


OTOH, if the configuration files only relate to module A, Spring can 
probably find them inside the module A jar.


Not sure why a jar file would appear in a configuration directory but 
you could be doing something that is outside my experience.
Try to describe why this is required and someone will likely be able to 
relate to this.


In our case, this is pretty common since Spring is used for lots of 
dependencies that are not supplied by us and we have never had any need 
to pull a Spring XML file out of someone's jar file into the top level 
module.


We have a project with over 70 modules that creates many webapps (Tomcat 
applications) that are webservices and servlets as well as standalone 
Java applications that run on other servers as batch jobs.

They all use Spring.
We are not building any RPMs but I imagine that the RPM part is pretty 
minor and all the effects are at the top level. The lower level jars 
should have no idea how the top level module will be packaged.


I hope that this moves the discussion forward and lets some of the real 
experts give you good advice.


There is always someone here who has done whatever you want to do.

Ron



Thanks for your help


On Sun, May 1, 2011 at 2:57 PM, Ron Wheeler
rwhee...@artifact-software.comwrote:


Spring is just a dependency.
We use Spring extensively to build both webapps and batch jobs. No special
plug-in or assembly required for Spring.


Did you Google Maven RPM? http://mojo.codehaus.org/rpm-maven-plugin/

Unless you are building something that no one else has ever heard of, you
are likely to find that hundreds of people have already done it.

Try not to reinvent a square wheel.

Ron



On 01/05/2011 4:11 PM, CassUser CassUser wrote:


One other question.

Anyone know whats the preferred way to reference spring files?  the files
in
src/main/resources in other sibling modules to be packaged for
deployment...

On Sun, May 1, 2011 at 1:07 PM, CassUser CassUsercassu...@gmail.com

wrote:

  Yeah.  the distribution module actually is an RPM module, and we use the

copy dependencies plugin to ref modules within the project.  The
dependencies are then mapped to locations in the rpm plugin like:
 mapping

directory${install.location}/libraries/directory
 sources
 source

location${project.build.directory}/dependency/location
 /source
 /sources
 /mapping

   From one of those dependent modules I would like to reference a archive
file that it creates (like the jars the dependency plugin grabs).  Would
the
assembly plugin work in this use case (example?)

dependency plugin:

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
 execution
 idcopy-dependencies/id
 phasecompile/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 overWriteReleasesfalse/overWriteReleases

overWriteSnapshotsfalse/overWriteSnapshots
  

Re: How to use wagon-ssh-external instead of wagon-ssh?

2011-05-01 Thread Brett Porter
I think in the Maven 3 version of the site plugin, you need to add the wagon as 
a dependency of the site plugin, instead of as an extension (which only applies 
to the core deployment components).

On 02/05/2011, at 1:05 AM, Andreas Sewe wrote:

 Hi,
 
 I am facing some problems deploying my project's site using sftp. For
 testing purposes I thus want to switch wagons, namely from
 org.apache.maven.wagon:wagon-ssh:1.0-beta-7 to
 org.apache.maven.wagon:wagon-ssh-external:1.0-beta-7. However, even
 adding the appropriate extension to my POM doesn't convince the
 maven-site-plugin:3.0-beta-4-SNAPSHOT to pick a different wagon for the
 sftp URI scheme.
 
 extension
   groupIdorg.apache.maven.wagon/groupId
   artifactIdwagon-ssh-external/artifactId
   version1.0-beta-6/version
 /extension
 
 At least, I still get the same exception, which clearly says that I am
 using the JSch-based Wagon and not an external ssh process:
 
 Caused by: 3: Permission denied
at
 com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2291)
at com.jcraft.jsch.ChannelSftp.mkdir(ChannelSftp.java:1701)
at
 org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.mkdir(SftpWagon.java:204)
at
 org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.mkdirs(SftpWagon.java:184)
at
 org.apache.maven.wagon.providers.ssh.jsch.SftpWagon.putDirectory(SftpWagon.java:271)
... 25 more
 [ERROR]
 
 Any suggestions? How does the maven-site-plugin map URI schemes to wagons?
 
 Also, is there any configuration option / system property to make the
 wagon more chatty? Just running mvn site-deploy -X doesn't produce
 enough information to track down what's actually going over the wire. :-(
 
 Best wishes,
 
 Andreas Sewe
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 

--
Brett Porter
br...@apache.org
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter





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



Re: How access classes from war dependency?

2011-05-01 Thread Anders Hammar
Should happen automagically if you declare a dependency to it in your war
project. Use the standard compile scope for the dependency.

/Anders

On Mon, May 2, 2011 at 01:33, sipungora kostya...@yahoo.de wrote:

 Hi Anders,

  you create a third project which is a standard jar Maven project.

 I've done it. But how can I configure my pom, that this jar will after
 building be in WEB-INF/lib of my war? Currently I do it manually.

 Thank you in advance.
 Best Regards,
 -sipungora--
 View this message in context:
 http://maven.40175.n5.nabble.com/How-to-access-classes-from-war-dependency-tp4362127p4363706.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