Re: filter some resources files and put them to other module.

2009-12-27 Thread alien.sulin
Mayby you can just try it, so you can find whether the targetPath can be set
to other module!

In my opinion, i would rather put all the config files to a single dir than
put them in different dir

On Sun, Dec 27, 2009 at 2:46 PM, maven apache wrote:

> Hi:
> I have a project containing three modules, Server,Io,and Webapp, and the
> webapp is a pakcage of war, the other two are jars.
> Since the web module need to read some config files,so I want to put them
> under the WEB-INF/conf. However I also want to file the config files under
> the Io module by using the resources *filtering*
> *
> *
> That's to say I want to config the the parameter in the pom.xml of the Io
> module,(under the module there is a config file like the following:
> 
> service=${service.name}
> time=${service.time}
> 
> ))
> Then I need to use this config file in the Webapp module and it should be
> put under Webapp/WEB-INF/conf.
>
> I have seen the resource plugin in the maven site,and I found that there is
> a parameter named:targetPath,I wonder if I can set this parameter as the
> following:
> 
> 
> src/main/java
> true
> ???(Can I set the path to other module for
> example the Webapp module? if yes, how to set? Note that , this xml
> fragment is under the Io module)
> 
> ---
> *
> *
>



-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


can pom file be filtered?

2009-12-19 Thread alien.sulin
dear all:
I have a problem about how to configure war plugin, the details are below.

A file(contain the password and username) as a resource in our project, it
should be
stored in different places with different machine; So i configure the pom as
below, but
maven can't get the varaible!

The pom.xml file


src/main/webconfig/config.properties

monitor


org.apache.maven.plugins
maven-war-plugin
2.1-alpha-1



${file.dir}
true
WEB-INF







and the config.properties file in my windows would be like this:
file.dir = D:/file

but the config.properties file in the server would be like file.dir =
/home/user/test/config

but when i run the mvn package, it should copy the file under the D:/file or
  /home/user/test/config
to the WEB-INF

but, the maven tell me the webresource directory is null . maven has not got
the varaible ${file.dir}

how can i make the webresource become a configurable?

Ant suggestion are appreciated!

alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: Project Builds

2009-11-21 Thread alien.sulin
you can use the dependency plugin, the goal
dependency:copy-dependencies<http://maven.apache.org/plugins/maven-dependency-plugin/>may
help you

On Fri, Nov 20, 2009 at 3:05 AM, Joel Schuster  wrote:

> It seems that Maven good about particular artifacts, but I can't seem to
> figure out how to do multiple projects into one distribution...
>
> I have various OSGi based applications. The core OSGi framework with all
> the bundles that all our projects use in common are included in one project.
> There are a number of bundles that are 3rd party and a number that are
> internal to our company.
>
> How would I use Maven to not just help me control single projects, but
> rather the entire execution environment including all the runtime
> dependencies, configuration files and even the startup scripts?
>
> Is there a documented example to help me along? I don't see any
> documentation within Maven that would help me wrap this problem.
>
> 
>
> Joel Schuster
> Senior Software Engineer
> NAVSYS Corporation
> 14960 Woodcarver Road, Colorado Springs, CO 80921
> 719-481-4877
>
>
>
>


-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: Excluding repositories

2009-11-21 Thread alien.sulin
Do you user Nexus as your local repo? it can block the repository

2009/11/20 Gajo Csaba 

> Hello,
>
> One of the dependencies is trying to access a repository at
> download.java.net, and this site is blocked by our firewall. Is there a
> way to tell Maven to skip this repository? Either in settings.xml or pom.xml
>
> Thanks, Csaba
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: Remote resource plugin doesn't work in release plugin

2009-11-18 Thread alien.sulin
use maven plugin like this  "mvn somePlugin:goal -Dparam=value" in cmd

the "param" should be the param of somePlugin supply?

And, the ${variable} in the pom file,it should be a variable which maven can
know it,
it can be a environment variable of OS or a property file  configed in the
pom

hope help you , Please forgive my poor English - -

2009/11/17 Max Grigoriev 

> Hi everybody,
>
>
>
> I have a project which uses remote-resources (hibernate mapping files).
>
>
>
> My pom.xml
>
>
>
> ...
>
> 
>
> maven-remote-resources-plugin
>
> 1.1
>
> 
>
> 
>
> 
>
> process
>
> 
>
> 
>
> 
>
>
> com.myproj.sws2:sws-mapping:${sws.mapping.version}
>
> 
>
>
> ${project.build.directory}
>
> false
>
> 
>
> 
>
> 
>
> 
>
> ...
>
> 
>
> maven-release-plugin
>
> 2.0-beta-9
>
> 
>
> https://path-to-svn/tags
>
> 
>
> 
>
> ...
>
>
>
>
>
> When I make mvn package -Dsws.mapping.version=2.0.0 - everything's ok and
> resources are resolved and downloaded also they are put to WAR file.
>
>
>
> But when I try to release this project:
>
>
>
> mvn release:clean release:prepare  -Dsws.mapping.version=2.0.0
> -Dusername=svn_user -Dpassword=svn_passwd
>
>
>
>
>
> And I  receive error:
>
> [INFO] [INFO] [remote-resources:process {execution: default}]
>
> [INFO] [WARNING] Unable to get resource
> 'com.myproj.sws2:sws-mapping:jar:null' from repository myrep (
> http://maven.myrepcom:8081): While configuring wagon for 'mavuser':
>
> Unable to apply wagon configuration.
>
>  [INFO] [INFO]
> 
>
> [INFO] [ERROR] BUILD ERROR
>
> [INFO] [INFO]
> 
>
> [INFO] [INFO] Resources JAR cannot be found.
>
>
>
> As you can see, resource version is unset -
> 'com.myproj.sws2:sws-mapping:jar:null'.
>
>
>
> Why my property (sws.mapping.version) is null not 2.0.0 as I set in command
> line ?
>
>
>
>
>
> Thanks
>
>


-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: web module created by maven

2009-11-15 Thread alien.sulin
Also ,you should have made a overview of the definitive guide of
maven<http://www.sonatype.com/books/maven-book/reference/>
.
What's more ,you can open this
URL<http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html>
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
it tells you some basical information about maven!

On Mon, Nov 16, 2009 at 1:16 PM, alien.sulin wrote:

> you will know more about maven project as well as you come to use maven.
> I think that's just the experience after you have been a user of maven.
>
> for you ^_^
>
>
> On Mon, Nov 16, 2009 at 11:25 AM, maven apache wrote:
>
>> >
>> > Thanks!
>> >
>> But how do you know this?
>> I mean if I do not ask you how do I know to create a new folder?
>> Since I do not think it is a good  habit to ask other for help once he
>> meet
>> a problem.
>>
>
>
>
> --
> alien.sulin(苏琳冲)
> SuLinchong
> Qq387973308
> Msn  sulinch...@hotmail.com
>



-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: web module created by maven

2009-11-15 Thread alien.sulin
you will know more about maven project as well as you come to use maven.
I think that's just the experience after you have been a user of maven.

for you ^_^

On Mon, Nov 16, 2009 at 11:25 AM, maven apache wrote:

> >
> > Thanks!
> >
> But how do you know this?
> I mean if I do not ask you how do I know to create a new folder?
> Since I do not think it is a good  habit to ask other for help once he meet
> a problem.
>



-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: web module created by maven

2009-11-15 Thread alien.sulin
you can add the dir "src/main/java" to the project ,and maven will also
known it

some suggestion: mayby you can look the maven-war-plugin - -
hope help you

On Mon, Nov 16, 2009 at 9:55 AM, maven apache wrote:

> 2009/11/16 Wayne Fay 
>
> > > So after install , under the WebPro/src/main/webap/web-info/lib ,there
> > are
> > > some jars (the dependency),I wonder if I can add some classes in the
> > WebPro
> > > rather than use the jar?
> >
> > Yes, you can add the classes to WebPro/src/main/java directly.
> >
> The web module does not have the src/main/java it is src/main/webapp.
>
> >
> > Wayne
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>



-- 
alien.sulin(苏琳冲)
SuLinchong
Qq387973308
Msn  sulinch...@hotmail.com


Re: Maven multi-module build appears to have improper dependencies

2009-04-13 Thread alien.sulin
Before your CI system runs your project, you can run this cmd "svn up and
mvn install" .This may will help you?

On Tue, Apr 14, 2009 at 1:41 AM, David Hoffer  wrote:

> More details.
>
> It turns out the CI system just did a deploy; instead of clean deploy which
> works.
>
> We aren't clear why the clean is necessary because the CI system is doing a
> full checkout into clean directory.  We thought clean just removed the
> target folders.
>
> Any insight?  We would like to know why this works.
>
> -Dave
>
> On Mon, Apr 13, 2009 at 11:28 AM, David Hoffer  wrote:
>
> > I have a multi-module maven project that works fine on developer systems,
> > however fails on CI builds.  We aren't sure why but the error log
> indicates
> > that certain modules cannot find recent code added to other modules.  So
> it
> > seems that maven might be using a prior snapshot instead of the new
> source
> > code when the build tries to link class from other modules.
> >
> > How does maven handle module dependencies?  Does it build and publish the
> > modules as listed in the modules section to the local repository?  Then
> when
> > building subsequent modules does it link with those in the local
> repository?
> >
> > Why might maven be finding old jars as dependencies?
> >
> > -Dave
> >
>



-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com


Re: eclipse:eclipse and sorting in .classpath

2009-04-13 Thread alien.sulin
yeah, it is the same to me ,since maven has download the
eclipse-plugin(version:2.6),
anybody comes to help us?

Thanks!

On Tue, Apr 14, 2009 at 12:05 AM, Ingo Düppe wrote:

> Hello,
>
> I don't know what I did or what happened, but since a week the order of the
> source folder within the .classpath file of eclipse had changed after I ran
> mvn eclipse:clean eclipse:eclipse. Now the test folders come first and than
> the main folder.
>
> So the order of my source folders in eclipse is src/main/java,
> src/test/java instead of src/test/java,src/main/java.
>
> Does anybody know how to reset the default order?
>
>
> Regards
> Ingo
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
漠洋(苏琳冲)
SuLinchong
Phone   13656669328
Qq387973308
Msn  sulinch...@hotmail.com