Re: make maven work in sun solaris 10

2008-10-06 Thread Patrizio Munzi
Hi,

I checked the file /etc/resolv.conf
and it seems ok.
Also the command:
--
[EMAIL PROTECTED] ~]$ telnet repo1.maven.org 80
Trying 38.97.124.18...
Connected to repo1.maven.org.
Escape character is '^]'.
^C
Connection to repo1.maven.org closed by foreign host.
works properly.
--
Here's my exception stack trace. Anyway I'm quite sure that it's a
network configuration problem.
--
[EMAIL PROTECTED] ~]$ mvn -X archetype:create -DgroupId=test -DartifactId=test
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.6.0_06
OS name: "sunos" version: "5.10" arch: "sparc" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from:
'/export/home/munzi/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/usr/local/maven-2.0.9/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not
be retrieved from repository: central due to an error: Error
transferring file
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Error transferring file
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:470)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:370)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:103)
at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:87)
at
org.apache.maven.plugin.DefaultPluginMappingManager.getByPrefix(DefaultPluginMappingManager.java:61)
at
org.apache.maven.plugin.DefaultPluginManager.getPluginDefinitionForPrefix(DefaultPluginManager.java:154)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1468)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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: java.net.UnknownHostException: repo1.maven.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:788)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:729)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977)
at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
... 22 more
---

BR
Patrizio

Olivier Lamy wrote:
> Hi,
> I use maven with solaris 10 all the day.
>
> Check the file : resolv.conf with the cli cat /etc/resolv.conf
>
> You should see something like
>
> ; try dns name server
> nameserver  dns server ip
> nameserver  secondary dns server ip
>
> And try the cli :
>
> bash-3.00$ telnet repo1.ma

Re: how to remove de default task in the life phase?

2008-10-06 Thread Nick Stolwijk
And if you really want to skip the normal execution of
maven-deploy-plugin, you can use the skip parameter. [1]

[1] http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#skip

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



2008/10/7 Arnaud HERITIER <[EMAIL PROTECTED]>:
> In maven 1 projects you can use maven 2 ant tasks
> http://maven.apache.org/ant-tasks.html
>
> cheers
>
> Arnaud
>
> 2008/10/7 陈思淼 <[EMAIL PROTECTED]>
>
>> our company have a own build tool derived from maven 1.0, and have lots of
>> our own features, after few year we decide to transfer our works to maven
>> 2.0 and contribute some tools to the community.
>> now the maven 2.0 and our own build tool are exist togother, we must
>> transfer project by project to the new maven 2.0 repository.
>>
>> but for maven project .we must to commit our artifactory to the old
>> repository format and then use a tool to tranform all the repository to the
>> maven repository. here is our situation.
>>
>> 2008/10/7 Brett Porter <[EMAIL PROTECTED]>
>>
>> > it is not presently possible to remove lifecycle phases, other than
>> > creating your own lifecycle, or disabling a plugin through
>> > configuration (like as is done with the surefire plugin).
>> >
>> > Perhaps it would be better to discuss what your need is for a
>> > different deployment plugin?
>> >
>> > - Brett
>> >
>> > 2008/10/7 陈思淼 <[EMAIL PROTECTED]>:
>> > > for example. when I run"mvn deploy" I want to deploy the artifactory to
>> > my
>> > > own reposition use my own deploy-plugin ,but the phase must run the
>> > default
>> > > maven-delploy-plugin, is there any method I can replace the default
>> > plugin
>> > > and use my own plugin ?
>> > >
>> >
>> >
>> >
>> > --
>> > Brett Porter
>> > Blog: http://blogs.exist.com/bporter/
>> >
>>
>
>
>
> --
> ..
> Arnaud HERITIER
> ..
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...
>


Re: how to remove de default task in the life phase?

2008-10-06 Thread Arnaud HERITIER
In maven 1 projects you can use maven 2 ant tasks
http://maven.apache.org/ant-tasks.html

cheers

Arnaud

2008/10/7 陈思淼 <[EMAIL PROTECTED]>

> our company have a own build tool derived from maven 1.0, and have lots of
> our own features, after few year we decide to transfer our works to maven
> 2.0 and contribute some tools to the community.
> now the maven 2.0 and our own build tool are exist togother, we must
> transfer project by project to the new maven 2.0 repository.
>
> but for maven project .we must to commit our artifactory to the old
> repository format and then use a tool to tranform all the repository to the
> maven repository. here is our situation.
>
> 2008/10/7 Brett Porter <[EMAIL PROTECTED]>
>
> > it is not presently possible to remove lifecycle phases, other than
> > creating your own lifecycle, or disabling a plugin through
> > configuration (like as is done with the surefire plugin).
> >
> > Perhaps it would be better to discuss what your need is for a
> > different deployment plugin?
> >
> > - Brett
> >
> > 2008/10/7 陈思淼 <[EMAIL PROTECTED]>:
> > > for example. when I run"mvn deploy" I want to deploy the artifactory to
> > my
> > > own reposition use my own deploy-plugin ,but the phase must run the
> > default
> > > maven-delploy-plugin, is there any method I can replace the default
> > plugin
> > > and use my own plugin ?
> > >
> >
> >
> >
> > --
> > Brett Porter
> > Blog: http://blogs.exist.com/bporter/
> >
>



-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Iterating profiles

2008-10-06 Thread Simone Tripodi
yes I already thought about it,
but I was curious if maven provides a feature for this issue. thanks

2008/10/6 陈思淼 <[EMAIL PROTECTED]>:
> write a shell script to do this kind of thing.
>
> 2008/10/6 Simone Tripodi <[EMAIL PROTECTED]>
>
>> Hi everybody,
>> In the company I'm in a situation where I need to iterate over all
>> profiles and generate the relative artifact: to be more detailed, my
>> application has many configuration files, structured as follow:
>>
>> src
>>  |
>>  \- main
>>|
>>\- config
>>   |
>>   \- local
>>|
>>\- *.properties, *.xml
>>
>>   |
>>   \- stage
>>|
>>\- *.properties, *.xml
>>
>>   |
>>   \- prod
>>|
>>\- *.properties, *.xml
>>
>> my pom contains some directives to use the config dir:
>>
>> 
>>...
>>
>>
>>local
>>
>>false
>>
>>
>>local
>>
>>
>>
>>stage
>>
>>false
>>
>>
>>stage
>>
>>
>>
>>prod
>>
>>false
>>
>>
>>prod
>>
>>
>>
>>
>>
>>...
>>
>>
>>
>>org.apache.maven.plugins
>>maven-jar-plugin
>>2.2
>>
>>
>>
>>
>> true
>>
>> true
>>
>>
>>
>>
>>
>>
>>${config}
>>
>>
>>jar
>>
>>
>>
>>
>>...
>>
>>...
>>
>>
>>src/main/config/${config}
>>
>>
>>src/main/resources
>>
>>
>>...
>>
>>
>> 
>>
>> Now, launching on the shell
>>
>>mvn deploy -P 
>>
>> a jar named 'modulename-version-.jar' will be deployed to my repo.
>>
>> Now my question is:
>>
>> is there a way to generate and deploy ALL artifacts FOR EACH profile?
>> I'm using also the release plugin and my wish is releasing the module
>> for each configuration!
>>
>> Many thanks in advance!!!
>> Best regards,
>> Simone
>>
>> --
>> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
>> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
>> My Picasa: http://picasaweb.google.com/simone.tripodi/
>> My Tube: http://www.youtube.com/user/stripodi
>> My Del.icio.us: http://del.icio.us/simone.tripodi
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi


Re: how to remove de default task in the life phase?

2008-10-06 Thread 陈思淼
our company have a own build tool derived from maven 1.0, and have lots of
our own features, after few year we decide to transfer our works to maven
2.0 and contribute some tools to the community.
now the maven 2.0 and our own build tool are exist togother, we must
transfer project by project to the new maven 2.0 repository.

but for maven project .we must to commit our artifactory to the old
repository format and then use a tool to tranform all the repository to the
maven repository. here is our situation.

2008/10/7 Brett Porter <[EMAIL PROTECTED]>

> it is not presently possible to remove lifecycle phases, other than
> creating your own lifecycle, or disabling a plugin through
> configuration (like as is done with the surefire plugin).
>
> Perhaps it would be better to discuss what your need is for a
> different deployment plugin?
>
> - Brett
>
> 2008/10/7 陈思淼 <[EMAIL PROTECTED]>:
> > for example. when I run"mvn deploy" I want to deploy the artifactory to
> my
> > own reposition use my own deploy-plugin ,but the phase must run the
> default
> > maven-delploy-plugin, is there any method I can replace the default
> plugin
> > and use my own plugin ?
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>


Re: how to remove de default task in the life phase?

2008-10-06 Thread Brett Porter
it is not presently possible to remove lifecycle phases, other than
creating your own lifecycle, or disabling a plugin through
configuration (like as is done with the surefire plugin).

Perhaps it would be better to discuss what your need is for a
different deployment plugin?

- Brett

2008/10/7 陈思淼 <[EMAIL PROTECTED]>:
> for example. when I run"mvn deploy" I want to deploy the artifactory to my
> own reposition use my own deploy-plugin ,but the phase must run the default
> maven-delploy-plugin, is there any method I can replace the default plugin
> and use my own plugin ?
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


how to remove de default task in the life phase?

2008-10-06 Thread 陈思淼
for example. when I run"mvn deploy" I want to deploy the artifactory to my
own reposition use my own deploy-plugin ,but the phase must run the default
maven-delploy-plugin, is there any method I can replace the default plugin
and use my own plugin ?


Re: Best practice for branching projects?

2008-10-06 Thread Stefan Fritz

Thanks for the reply.
Unfortunately we need this kind of granularity and therefore we have to 
live with the 150 projects :-(
No project has more than 3 direct dependencies. Although in the end the 
complete dependency tree consists of all 150 projects.
The basic concept of releasing Maven artifacts (to modify the pom.xml 
and work on snapshots) is clear to me. ;-)


My question was whether there is a "magic button" which I can press to 
branch all dependent projects or a best practice approach that worked 
already in a similar environment.


Thanks
Stefan

陈思淼 wrote:

It's not good you use all the 150 project in a large project.
some of the project should be idependent project if it don't have much real
relative to other project.
other project use  to dependon it.

if you have a branch project should under bugfix developement. for example
the last version is 1.1, now the new developing version should
 1.2-SNAPSHOT.

after you finish you development, you modified all the pom.xml which
dependent on the fixed version.

2008/10/6 Stefan Fritz <[EMAIL PROTECTED]>

  

Hi,

We use Maven in an environment where we have ca. 150 projects.
One project is the toplevel project (= the final deliverable to the
customer/user).
This project has dependencies to 10 projects, which have dependencies to
other projects etc. In the end we have 150 different projects in the
dependency hierachy.

The challange now is what happens if in one of the projects on the lowest
level is bug.
This means we have to branch from our released version to work on a patch
and then release the patched version.

From my understanding the only way to do that is to branch all projects
which depend on the "buggy" project. And the same has to be done for all
levels up to toplevel project.
Most low level components are referenced by multiple projects and therefore
a patch-branch would afect ca. 30 projects :-(
As you can imagine this can end up in a nightmare of manual steps and/or
scripting.
Therefore I hope anybody has a better approach to that.

Is there a simple way to do that?
Any automation in Maven?
Any best practices?

Thanks
Stefan


-
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: Problem with release plugin

2008-10-06 Thread L. J.
during release:prepare, the plugin should prompt you for the next SNAPSHOT
version of your child2, that's where you can change the version number.


On Mon, Oct 6, 2008 at 6:00 AM, Samuli Saarinen
<[EMAIL PROTECTED]>wrote:

> Hello,
>
> I'm using maven 2.0.9 with a multi-module project and try to make a release
> using maven-release-plugin. My project structure is following:
>
> parent
>  - child1
>  - child2
>
> parent pom.xml:
> 
> ...
>  1.0.2-SNAPSHOT
>  
>child1
>child2
>  
> ...
> 
>
> child1 pom.xml:
> 
> ...
>1.0.3-SNAPSHOT
>
>com.foo.test
>test
>1.0.2-SNAPSHOT
>
> ...
> 
>
> child2 pom.xml:
> 
> ...
>1.0.2-SNAPSHOT
>
>com.foo.test
>test
>1.0.2-SNAPSHOT
>
>
>
>
>${project.groupId}
>child1
>1.0.3-SNAPSHOT
>
>
> ...
> 
>
>
> after I prepare a release the pom.xml.tag for child2 has dependency to
> 1.0.3 version of child1 as expected but pom.xml.next for child2 contains
> dependency to 1.0.3-SNAPSHOT of child1 although the next development version
> for child1 is specified as 1.0.4-SNAPSHOT.
>
> Is this the intended behaviour or a bug?
>
> Thanks in advance,
>
> Samuli
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Rick
Thanks everyone. You all make good points. Typically, with our ant builds,
we have a special task called "setup_jboss" that will deploy certain jboss
specific files (after doing some substitutions - ie datsource setup for a
dev db, etc.). It's obviously not run all the time, so I guess I could keep
the seem thing within maven (just haven't used the ant tasks from within
maven yet, but will look into that.


On Mon, Oct 6, 2008 at 10:13 PM, Edelson, Justin <
[EMAIL PROTECTED]> wrote:

> We treat these JBoss configuration files as artifacts outside of the main
> deployable (read: EAR file). The vast majority of our JBoss sites use the
> same base server configuration, which includes the jboss-service.xml and
> other files. jboss-service.xml uses system property placeholders for
> environmental-specific bits. The system properties are defined in a separate
> file and loaded into JBoss with the -P option. Each instance has its own
> log4j.xml file and datasource xml files, but AFAIK, these could use property
> placeholders as well if necessary. We version control all of these files
> (obviously), but outside of the main application.
>
> The goal of this architecture was, as Bob says below, to use the same build
> between dev, QA, and prod (although in reality, dev is usually a SNAPSHOT
> build from CI) and to simplify new site creation by reusing the same base
> server configuration.
>
> For more application-specific (vs. container-specific) stage-based
> configuration, we use a combination of system properties (-Dstage=qa) and a
> customized version of Spring internals.
>
> Justin Edelson
> VP, Platform Engineering
> MTV Networks Digital
>
> 
>
> From: Bob Aiello [mailto:[EMAIL PROTECTED]
> Sent: Mon 10/6/2008 9:00 PM
> To: Maven Users List
> Subject: Re: Best practice? Where to put app-server specific files
> (log4j.xml, datsource xml files, jboss-service.xml , etc.)
>
>
>
> I believe that most people use the Ant plugin Assembly to parse the dev,
> qa,
> prod
> environment files. I would suggest that you create them all during the
> build. I have
> seen some people put in the environment during the build and parse the
> files
> just for
> that environment. This meant that they had to rebuild for dev, QA and Prod
> (very
> bad practice!). From a compliance point of view you do want your QA build
> to be the same as the build that you promote into production (obviously you
> have a deployment script to change over the environment files).
>
> What does everyone else do?
>
> Bob Aiello
> Editor in Chief
> CM Crossroads
> www.cmcrossroads.com
> http://www.linkedin.com/in/BobAiello
>
>
> - Original Message -
> From: "Rick" <[EMAIL PROTECTED]>
> To: "Maven Users List" 
> Sent: Monday, October 06, 2008 6:25 PM
> Subject: Best practice? Where to put app-server specific files (log4j.xml,
> datsource xml files, jboss-service.xml , etc.)
>
>
> > I'm working on a typical JEE application that will be deployed to JBoss.
> > (JBoss5 if it matters.) Things are going. I have a pretty standard setup:
> >
> > Parent Module
> > EJB-JAR Module
> > JAR Module
> > WEB Module
> > EAR Module
> >
> >
> > Currently, however, I'm manually having to deal with certain files that I
> > need in JBoss:
> > *  datasource.xml files
> > *  jboss-service.xml
> > *  log4j.xml files
> > There will probably be some others as well.
> >
> > What is the best way to deal with these files? Is the best practice to
> > create a directory in the parent module or ear module and just create
> some
> > custom ant task to move them around where they need to go? I couldn't
> find
> > much about a jboss maven plugin to help with these tasks, so I'm assuming
> > hooking in regular old ant is the way to go?
> >
> > I'll also want to have certain variables in those files replaced with
> > variables from a profile (dev, test, prod) depending on what profile I'm
> > running. I'll look into that as well, since I'm sure there are some docs
> > on
> > it, but are the any issues to be aware of since I'm guessing these aren't
> > standard files  that I'm dealing with so is using the replacement
> > mechanism
> > more difficult?
> >
> > Thanks
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


-- 
Rick


RE: Adding a dependency to a report

2008-10-06 Thread Edelson, Justin
Found it - http://jira.codehaus.org/browse/MNG-1948
 
Fix for 3.0 :(



From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Mon 10/6/2008 10:52 PM
To: Maven Users List
Subject: Re: Adding a dependency to a report



yes, though I don't know it off the top of my head. You should be able
to find it in searching JIRA - let us know if you have any trouble.

Cheers,
Brett

2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
> Bummer. Is there a JIRA for this addition I can track?
>
> Thanks,
> Justin
>
> 
>
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Mon 10/6/2008 8:33 PM
> To: Maven Users List
> Subject: Re: Adding a dependency to a report
>
>
>
> That's right. Unfortunately for now you are probably left to build a
> custom version of the NCSS plugin.
>
> - Brett
>
> 2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
>> I need to add an additional dependency to the JavaNCSS plugin to work
>> around http://jira.codehaus.org/browse/MJNCSS-16. However, there's no
>> such element /reporting/plugins/plugin/dependencies. How do I go about
>> adding this dependency? I tried adding it to pluginManagement, but that
>> didn't seem to work. From browsing the list archives, it looks like this
>> isn't possible. Is that really the case?
>>
>> Thanks,
>>
>> Justin Edelson
>> VP, Platform Engineering
>> MTV Networks Digital
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



--
Brett Porter
Blog: http://blogs.exist.com/bporter/

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





Re: Adding a dependency to a report

2008-10-06 Thread Brett Porter
yes, though I don't know it off the top of my head. You should be able
to find it in searching JIRA - let us know if you have any trouble.

Cheers,
Brett

2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
> Bummer. Is there a JIRA for this addition I can track?
>
> Thanks,
> Justin
>
> 
>
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Mon 10/6/2008 8:33 PM
> To: Maven Users List
> Subject: Re: Adding a dependency to a report
>
>
>
> That's right. Unfortunately for now you are probably left to build a
> custom version of the NCSS plugin.
>
> - Brett
>
> 2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
>> I need to add an additional dependency to the JavaNCSS plugin to work
>> around http://jira.codehaus.org/browse/MJNCSS-16. However, there's no
>> such element /reporting/plugins/plugin/dependencies. How do I go about
>> adding this dependency? I tried adding it to pluginManagement, but that
>> didn't seem to work. From browsing the list archives, it looks like this
>> isn't possible. Is that really the case?
>>
>> Thanks,
>>
>> Justin Edelson
>> VP, Platform Engineering
>> MTV Networks Digital
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



RE: Adding a dependency to a report

2008-10-06 Thread Edelson, Justin
Bummer. Is there a JIRA for this addition I can track?
 
Thanks,
Justin



From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: Mon 10/6/2008 8:33 PM
To: Maven Users List
Subject: Re: Adding a dependency to a report



That's right. Unfortunately for now you are probably left to build a
custom version of the NCSS plugin.

- Brett

2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
> I need to add an additional dependency to the JavaNCSS plugin to work
> around http://jira.codehaus.org/browse/MJNCSS-16. However, there's no
> such element /reporting/plugins/plugin/dependencies. How do I go about
> adding this dependency? I tried adding it to pluginManagement, but that
> didn't seem to work. From browsing the list archives, it looks like this
> isn't possible. Is that really the case?
>
> Thanks,
>
> Justin Edelson
> VP, Platform Engineering
> MTV Networks Digital
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



--
Brett Porter
Blog: http://blogs.exist.com/bporter/

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





Re: maven repository update.

2008-10-06 Thread Wendy Smoak
On Mon, Oct 6, 2008 at 6:51 PM, Marco Villalobos
<[EMAIL PROTECTED]> wrote:

> I have  a repository called Red, and a build machine called Ark.
> Naturally, when you do a build, Ark has its own local repository.
> Somebody deployed artifact widget-1.1 to Red.
> Ark already has widget-1.1 in its local repository.  But it is an older
> version.  You can tell by its date timestamp.  The version of widget-1.1
> in Red is newer, and correct.
> Is there a way to tell maven to analyze the date, and update the local
> repository with the newer version?
> We tried mvn -U, but that did not work.

A released version should never change.   If widget is under
development, its version number should be 1.1-SNAPSHOT.  Then Maven
will behave as you expect, checking for newer versions and updating
the local repository.

-- 
Wendy

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



RE: Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Edelson, Justin
We treat these JBoss configuration files as artifacts outside of the main 
deployable (read: EAR file). The vast majority of our JBoss sites use the same 
base server configuration, which includes the jboss-service.xml and other 
files. jboss-service.xml uses system property placeholders for 
environmental-specific bits. The system properties are defined in a separate 
file and loaded into JBoss with the -P option. Each instance has its own 
log4j.xml file and datasource xml files, but AFAIK, these could use property 
placeholders as well if necessary. We version control all of these files 
(obviously), but outside of the main application.
 
The goal of this architecture was, as Bob says below, to use the same build 
between dev, QA, and prod (although in reality, dev is usually a SNAPSHOT build 
from CI) and to simplify new site creation by reusing the same base server 
configuration. 
 
For more application-specific (vs. container-specific) stage-based 
configuration, we use a combination of system properties (-Dstage=qa) and a 
customized version of Spring internals.
 
Justin Edelson
VP, Platform Engineering
MTV Networks Digital



From: Bob Aiello [mailto:[EMAIL PROTECTED]
Sent: Mon 10/6/2008 9:00 PM
To: Maven Users List
Subject: Re: Best practice? Where to put app-server specific files (log4j.xml, 
datsource xml files, jboss-service.xml , etc.)



I believe that most people use the Ant plugin Assembly to parse the dev, qa,
prod
environment files. I would suggest that you create them all during the
build. I have
seen some people put in the environment during the build and parse the files
just for
that environment. This meant that they had to rebuild for dev, QA and Prod
(very
bad practice!). From a compliance point of view you do want your QA build
to be the same as the build that you promote into production (obviously you
have a deployment script to change over the environment files).

What does everyone else do?

Bob Aiello
Editor in Chief
CM Crossroads
www.cmcrossroads.com
http://www.linkedin.com/in/BobAiello


- Original Message -
From: "Rick" <[EMAIL PROTECTED]>
To: "Maven Users List" 
Sent: Monday, October 06, 2008 6:25 PM
Subject: Best practice? Where to put app-server specific files (log4j.xml,
datsource xml files, jboss-service.xml , etc.)


> I'm working on a typical JEE application that will be deployed to JBoss.
> (JBoss5 if it matters.) Things are going. I have a pretty standard setup:
>
> Parent Module
> EJB-JAR Module
> JAR Module
> WEB Module
> EAR Module
>
>
> Currently, however, I'm manually having to deal with certain files that I
> need in JBoss:
> *  datasource.xml files
> *  jboss-service.xml
> *  log4j.xml files
> There will probably be some others as well.
>
> What is the best way to deal with these files? Is the best practice to
> create a directory in the parent module or ear module and just create some
> custom ant task to move them around where they need to go? I couldn't find
> much about a jboss maven plugin to help with these tasks, so I'm assuming
> hooking in regular old ant is the way to go?
>
> I'll also want to have certain variables in those files replaced with
> variables from a profile (dev, test, prod) depending on what profile I'm
> running. I'll look into that as well, since I'm sure there are some docs
> on
> it, but are the any issues to be aware of since I'm guessing these aren't
> standard files  that I'm dealing with so is using the replacement
> mechanism
> more difficult?
>
> Thanks
>


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





Re: maven repository update.

2008-10-06 Thread Carlos Sanchez
no, there is not.
Artifacts are not supposed to change after being released. You'd have
to manually copy/delete the file

On Mon, Oct 6, 2008 at 6:51 PM, Marco Villalobos
<[EMAIL PROTECTED]> wrote:
> Hello,
>
>
>
> I have  a repository called Red, and a build machine called Ark.
>
>
>
> Naturally, when you do a build, Ark has its own local repository.
>
>
>
> Somebody deployed artifact widget-1.1 to Red.
>
>
>
> Ark already has widget-1.1 in its local repository.  But it is an older
> version.  You can tell by its date timestamp.  The version of widget-1.1
> in Red is newer, and correct.
>
>
>
> Is there a way to tell maven to analyze the date, and update the local
> repository with the newer version?
>
>
>
> We tried mvn -U, but that did not work.
>
>
>
> Thank you.
>
>
>
> -M
>
>

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



maven repository update.

2008-10-06 Thread Marco Villalobos
Hello,

 

I have  a repository called Red, and a build machine called Ark.

 

Naturally, when you do a build, Ark has its own local repository.

 

Somebody deployed artifact widget-1.1 to Red.

 

Ark already has widget-1.1 in its local repository.  But it is an older
version.  You can tell by its date timestamp.  The version of widget-1.1
in Red is newer, and correct.

 

Is there a way to tell maven to analyze the date, and update the local
repository with the newer version?

 

We tried mvn -U, but that did not work.

 

Thank you.

 

-M



RE: Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Martin Gainty

download andromda source at
http://sourceforge.net/project/showfiles.php?group_id=73047&package_id=117392&release_id=593519
then build the F:\Andromda\samples\animal-quiz\app
this will build a jboss animal-quiz-3.4-SNAPSHOT.ear for you

tweak the pom.xml to suit your needs

HTH
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Mon, 6 Oct 2008 21:00:41 -0400
> From: [EMAIL PROTECTED]
> Subject: Re: Best practice? Where to put app-server specific files 
> (log4j.xml, datsource xml files, jboss-service.xml , etc.)
> To: users@maven.apache.org
> 
> I believe that most people use the Ant plugin Assembly to parse the dev, qa, 
> prod
> environment files. I would suggest that you create them all during the 
> build. I have
> seen some people put in the environment during the build and parse the files 
> just for
> that environment. This meant that they had to rebuild for dev, QA and Prod 
> (very
> bad practice!). From a compliance point of view you do want your QA build
> to be the same as the build that you promote into production (obviously you
> have a deployment script to change over the environment files).
> 
> What does everyone else do?
> 
> Bob Aiello
> Editor in Chief
> CM Crossroads
> www.cmcrossroads.com
> http://www.linkedin.com/in/BobAiello
> 
> 
> - Original Message - 
> From: "Rick" <[EMAIL PROTECTED]>
> To: "Maven Users List" 
> Sent: Monday, October 06, 2008 6:25 PM
> Subject: Best practice? Where to put app-server specific files (log4j.xml, 
> datsource xml files, jboss-service.xml , etc.)
> 
> 
> > I'm working on a typical JEE application that will be deployed to JBoss.
> > (JBoss5 if it matters.) Things are going. I have a pretty standard setup:
> >
> > Parent Module
> > EJB-JAR Module
> > JAR Module
> > WEB Module
> > EAR Module
> >
> >
> > Currently, however, I'm manually having to deal with certain files that I
> > need in JBoss:
> > *  datasource.xml files
> > *  jboss-service.xml
> > *  log4j.xml files
> > There will probably be some others as well.
> >
> > What is the best way to deal with these files? Is the best practice to
> > create a directory in the parent module or ear module and just create some
> > custom ant task to move them around where they need to go? I couldn't find
> > much about a jboss maven plugin to help with these tasks, so I'm assuming
> > hooking in regular old ant is the way to go?
> >
> > I'll also want to have certain variables in those files replaced with
> > variables from a profile (dev, test, prod) depending on what profile I'm
> > running. I'll look into that as well, since I'm sure there are some docs 
> > on
> > it, but are the any issues to be aware of since I'm guessing these aren't
> > standard files  that I'm dealing with so is using the replacement 
> > mechanism
> > more difficult?
> >
> > Thanks
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Bob Aiello
I believe that most people use the Ant plugin Assembly to parse the dev, qa, 
prod
environment files. I would suggest that you create them all during the 
build. I have
seen some people put in the environment during the build and parse the files 
just for
that environment. This meant that they had to rebuild for dev, QA and Prod 
(very

bad practice!). From a compliance point of view you do want your QA build
to be the same as the build that you promote into production (obviously you
have a deployment script to change over the environment files).

What does everyone else do?

Bob Aiello
Editor in Chief
CM Crossroads
www.cmcrossroads.com
http://www.linkedin.com/in/BobAiello


- Original Message - 
From: "Rick" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Monday, October 06, 2008 6:25 PM
Subject: Best practice? Where to put app-server specific files (log4j.xml, 
datsource xml files, jboss-service.xml , etc.)




I'm working on a typical JEE application that will be deployed to JBoss.
(JBoss5 if it matters.) Things are going. I have a pretty standard setup:

Parent Module
EJB-JAR Module
JAR Module
WEB Module
EAR Module


Currently, however, I'm manually having to deal with certain files that I
need in JBoss:
*  datasource.xml files
*  jboss-service.xml
*  log4j.xml files
There will probably be some others as well.

What is the best way to deal with these files? Is the best practice to
create a directory in the parent module or ear module and just create some
custom ant task to move them around where they need to go? I couldn't find
much about a jboss maven plugin to help with these tasks, so I'm assuming
hooking in regular old ant is the way to go?

I'll also want to have certain variables in those files replaced with
variables from a profile (dev, test, prod) depending on what profile I'm
running. I'll look into that as well, since I'm sure there are some docs 
on

it, but are the any issues to be aware of since I'm guessing these aren't
standard files  that I'm dealing with so is using the replacement 
mechanism

more difficult?

Thanks




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



Re: Adding a dependency to a report

2008-10-06 Thread Brett Porter
That's right. Unfortunately for now you are probably left to build a
custom version of the NCSS plugin.

- Brett

2008/10/7 Edelson, Justin <[EMAIL PROTECTED]>:
> I need to add an additional dependency to the JavaNCSS plugin to work
> around http://jira.codehaus.org/browse/MJNCSS-16. However, there's no
> such element /reporting/plugins/plugin/dependencies. How do I go about
> adding this dependency? I tried adding it to pluginManagement, but that
> didn't seem to work. From browsing the list archives, it looks like this
> isn't possible. Is that really the case?
>
> Thanks,
>
> Justin Edelson
> VP, Platform Engineering
> MTV Networks Digital
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Brett Porter
To my knowledge, these are usually used as standard resource files,
bundled up in the same way as anything else going in the archive. I'm
not sure if the JBoss plugin will help you manipulate the files, but
if you are hand editing them you should have no trouble.

As far as filtering them goes, this is a very common question. I
highly recommend not deploying artifacts to the repository that are
dependent on a particular environment.

Cheers,
Brett

2008/10/7 Rick <[EMAIL PROTECTED]>:
> I'm working on a typical JEE application that will be deployed to JBoss.
> (JBoss5 if it matters.) Things are going. I have a pretty standard setup:
>
> Parent Module
> EJB-JAR Module
> JAR Module
> WEB Module
> EAR Module
>
>
> Currently, however, I'm manually having to deal with certain files that I
> need in JBoss:
> *  datasource.xml files
> *  jboss-service.xml
> *  log4j.xml files
> There will probably be some others as well.
>
> What is the best way to deal with these files? Is the best practice to
> create a directory in the parent module or ear module and just create some
> custom ant task to move them around where they need to go? I couldn't find
> much about a jboss maven plugin to help with these tasks, so I'm assuming
> hooking in regular old ant is the way to go?
>
> I'll also want to have certain variables in those files replaced with
> variables from a profile (dev, test, prod) depending on what profile I'm
> running. I'll look into that as well, since I'm sure there are some docs on
> it, but are the any issues to be aware of since I'm guessing these aren't
> standard files  that I'm dealing with so is using the replacement mechanism
> more difficult?
>
> Thanks
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: How to use Maven with multiple repositories?

2008-10-06 Thread Brett Porter
Because of the mirror setting, everything is going to be redirected to
your internal repository.

You have two options:
1) point this to a group on the server, and have that group dictate
which repositories are used
2) add additional mirrors for different repositories (they are keyed by the ID).

Hope that helps.

Cheers,
Brett

2008/10/7 midnight.codder <[EMAIL PROTECTED]>:
>
> I have read the setting reference and the POM reference probably a gazillion
> times and searched this forum for similar posts, and even found them (!) but
> the solution proposed therein did not work for me at all.
>
> We are using Archiva as our internal repository. On Archiva we have 3
> repositories, 2 for third party artifacts (one for snapshot and one for
> releases) and one for our artifacts (we have just began and just trying to
> get up and running, so releases and snapshot at still together).
> I can get the deploy goal to deploy my artifact to my group's repository.
> But my colleague cannot compile his module which depends on the artifact I
> just deployed.
>
> I declared those repositories in repositories tags in a profile tag and
> activated it in the setting.xml (attached) - but it makes no difference.
> Maven can't locate the artifact.
>
> A very confusing paragraph in the setting reference got me thinking that I
> just don't understand Maven enough or have problems with reading
> comprehension (or both):
>
> The final piece of the settings.xml puzzle is the activeProfiles element.
> This contains a set of activeProfile elements, which each have a value of a
> profile id. Any profile id defined as an activeProfile will be active,
> reguardless of any environment settings. If no matching profile is found
> nothing will happen. For example, if env-test is an activeProfile, a profile
> in a pom.xml (or profile.xml with a corrosponding id will be active. If no
> such profile is found then execution will continue as normal.
>
> So I thought maybe I am missing a profile tag in the pom.xml of my project.
> I tried adding that but it did not do squat.
>
> setting.xml is attached and the project's pom.xml too.
> A link to a very similar post (to the best of my understanding I tried the
> solution, but no success):
> http://www.nabble.com/-m2--multiple-repository-confusion-td978358.html#a978358
>
> Thanks.
> http://www.nabble.com/file/p19846425/settings.xml settings.xml
> http://www.nabble.com/file/p19846425/pom.xml pom.xml
>
> --
> View this message in context: 
> http://www.nabble.com/How-to-use-Maven-with-multiple-repositories--tp19846425p19846425.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]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Problem with release plugin

2008-10-06 Thread Brett Porter
That sounds like a bug. It is generally uncommon to use the release
plugin to simultaneously release projects of different versions, but
it should work.

- Brett

2008/10/7 Samuli Saarinen <[EMAIL PROTECTED]>:
> Hello,
>
> I'm using maven 2.0.9 with a multi-module project and try to make a release
> using maven-release-plugin. My project structure is following:
>
> parent
>  - child1
>  - child2
>
> parent pom.xml:
> 
> ...
>  1.0.2-SNAPSHOT
>  
>child1
>child2
>  
> ...
> 
>
> child1 pom.xml:
> 
> ...
>1.0.3-SNAPSHOT
>
>com.foo.test
>test
>1.0.2-SNAPSHOT
>
> ...
> 
>
> child2 pom.xml:
> 
> ...
>1.0.2-SNAPSHOT
>
>com.foo.test
>test
>1.0.2-SNAPSHOT
>
>
>
>
>${project.groupId}
>child1
>1.0.3-SNAPSHOT
>
>
> ...
> 
>
>
> after I prepare a release the pom.xml.tag for child2 has dependency to 1.0.3
> version of child1 as expected but pom.xml.next for child2 contains
> dependency to 1.0.3-SNAPSHOT of child1 although the next development version
> for child1 is specified as 1.0.4-SNAPSHOT.
>
> Is this the intended behaviour or a bug?
>
> Thanks in advance,
>
> Samuli
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Cobertura check fails on deleted classes

2008-10-06 Thread Brett Porter
It seems cobertura:clean should do that as well - that would be an
enhancement request to make in it's issue tracker.

The way you can achieve it for now is to bind the clean plugin into
the lifecycle to delete only that directory on every build. However,
this will slow things down - it would seem to make more sense to clean
when you need to clean (which is the case for all of the classes).

- Brett

2008/10/6 Ole Laurisch <[EMAIL PROTECTED]>:
> Hello,
>
> I'm using Cobertura for code coverage checks. Therefore I have the
> following paragraph in my pom.xml:
>
>  
>org.codehaus.mojo
>cobertura-maven-plugin
>
>  
>
>  clean
>  check
>
>  
>
>
>  
>20
>20
>  
>  128m
>
>  
>
> Now I have a class "Foo.class" that has no test coverage. Therefore the
> coverage check, executed by running "mvn verify", fails. After deleting
> the class "Foo" and rerunning "mvn verify" the coverage check stills fails
> because the class "Foo.class" is still available in the folder
> "target/generated-classes/cobertura/".
> Is there a way to update this folder before every run without having to
> clean the whole target folder by running "mvn clean"?
>
> Thanks in advance,
> Ole
>
> --
> engram GmbH
> Konsul-Smidt-Straße 8r
> 28217 Bremen
> Germany
> Tel.: +49-[0]421-620298-0
> Fax: +49-[0]421-620298-999
> Handelsregister Bremen HRB 20782
> Geschäftsführer: Jens Wünderlich
> Aufsichtsratsvorsitzender: Ralf Paslack
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Problem moving property file around

2008-10-06 Thread Brett Porter
I don't quite get it... it sounds like you don't want the properties
file in CVS at all, so the solution you have at the end is fine. What
are the surprises you are concerned about?

- Brett

2008/10/7 Jon Strayer <[EMAIL PROTECTED]>:
> Hang with me, this takes a while to explain.  :-)
>
> I'm trying to add a build number to a footer panel in GWT.
>
> CruiseControl passes the build label to Maven.
> Maven copies a properties file while performing a substitution which
> gives me a properties file in target/classes with the correct values
> in it.
> To get GWT to build the properties file into the application I have to
> copy the file from target/classes to the source tree (I use an ant
> task for that).
> For Eclipse builds to build correctly I need a default properties file
> in the source tree.
>
> The problem is that CVS won't tag the build because now the properties
> file in the source tree is not in CVS.  I tried many ways to make a
> backup copy of the file in the source tree and copy it back, but I've
> never been able to find a phase to tie different copying calls to that
> only executes once.
>
> So, in short, what I need is a way to
>1. backup a properties file in the source directory before
> resources are processed.
>2. copy a processed properties file from target/classes to the
> source tree after resources are processed.
>3. copy the backup of the properties file back to the source tree
> before scm:tag.
>
> Right now I'm trying to work around the problem by having scm:tag not
> tag that file, but that could lead to surprises.
>
> --
> Esse Quam Videre
> To Be, rather than to Seem
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Site deployment to sourceforge.net broken

2008-10-06 Thread Thiago Moreira (timba)
  Which JIRA project/component should I open the ticket ??

  Thanks

  Thiago Moreira


Re: Assembly Tar: How to exclude directories

2008-10-06 Thread Brett Porter
Not to my knowledge. Maven doesn't execute the tar executable but
rather uses a Java implementation of it, which I don't believe has as
many different configuration options.

- Brett

2008/10/4 gotama <[EMAIL PROTECTED]>:
>
>
> I'm curious if the Assembly plugin is capable of creating a tar file similar
> to the following command:
>
> find * ! -type d | tar zcvfT $TARFILE -
>
> if you exec 'tar ztvf myAssembly.tar.gz' you will see that directories are
> listed in the tar file. if you create a tar w/ the above command, you will
> notice that when you list the tar w/ 'tar ztvf myAssembly.tar.gz' you will
> just see files and the full path to that file.
>
> please note, i am not trying to exclude entire directories or to flatten the
> tar, but to not include the directories in the tar. please try out these
> commands w/ a sample if its confusing and you will see what i mean.
>
> thanks.
>
> --
> View this message in context: 
> http://www.nabble.com/Assembly-Tar%3A-How-to-exclude-directories-tp19806706p19806706.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]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Dependencies without version tag

2008-10-06 Thread Brett Porter
How are you using the JAR exactly?

In other projects we deal with this by copying the file to a new
location with the version removed at the time it needs to be used.

- Brett

2008/10/4 Simon Trudeau <[EMAIL PROTECTED]>:
> I would like to add a dependency to my maven project but have it
> included WITHOUT the version tag. I am currently running into problems
> where the comm.jar (javax.comm) library needs to be exactly named that
> way and cannot be named comm-2.0.3.jar or some other thing because
> otherwise it fails. This library references a .dll and a properties
> file... this must have something to do with it. That is why I don't want
> my project to depend on a library with a version number. This means that
> my classpath entry autogenerated must also reference jars without
> version tag.
>
> Is there a way to strip the version tag from a dependency so that it
> will be reflected in the classpath entry of the jar's manifest?
>
> Thanks.
>
> Simon
>
> P.S.: Any maven help in dealing with the comm.jar library is also
> welcomed! :.)
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Adding a dependency to a report

2008-10-06 Thread Edelson, Justin
I need to add an additional dependency to the JavaNCSS plugin to work
around http://jira.codehaus.org/browse/MJNCSS-16. However, there's no
such element /reporting/plugins/plugin/dependencies. How do I go about
adding this dependency? I tried adding it to pluginManagement, but that
didn't seem to work. From browsing the list archives, it looks like this
isn't possible. Is that really the case?

Thanks,

Justin Edelson
VP, Platform Engineering
MTV Networks Digital


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



Re: Dependency licenses

2008-10-06 Thread James William Dumay
Cool Brian I'm glad you liked it. Ill see if I can get a version of it
up on central for you shortly.

James

On Mon, 2008-10-06 at 10:13 -0700, bshepherd wrote:
> That worked!
> 
> Would like to see this plugin in central. It helped me alot.
> 
> Brian
> 
> 
> Wayne Fay wrote:
> > 
> > As described here:
> > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> > 
> > You can execute the mojo with:
> > mvn groupID:artifactID:version:goal
> > 
> > In this case, it should be something like (not sure about the goal,
> > check the plugin sources or documentation):
> > mvn com.atlassian.maven.plugins:maven-licenses-plugin:1.0-SNAPSHOT:list
> > 
> > Wayne
> > 
> > On Mon, Oct 6, 2008 at 9:51 AM, bshepherd <[EMAIL PROTECTED]> wrote:
> >>
> >> Thanks, I was able to build the plugin by pointing to the repo you
> >> listed. I
> >> have verified that the plugin was installed into my local repository. I
> >> am
> >> not sure how to run it. I tried:
> >>
> >> mvn licenses:list
> >>
> >> and got
> >> [INFO] Searching repository for plugin with prefix: 'licenses'.
> >> [INFO]
> >> 
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> 
> >> [INFO] The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does
> >> not
> >> exist or no valid version could be found
> >> [INFO]
> >> 
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> >> 'org.apache.maven.plugins:maven-licenses-plugin' does not exist or no
> >> valid
> >> version
> >>  could be found
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
> >>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> >>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> >>at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> >>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>at java.lang.reflect.Method.invoke(Method.java:597)
> >>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.version.PluginVersionNotFoundException:
> >> The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not
> >> exist
> >> or no valid version could be found
> >>at
> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
> >>at
> >> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
> >>at
> >> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
> >>at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
> >>... 14 more
> >> [INFO]
> >> 
> >> [INFO] Total time: 2 seconds
> >> [INFO] Finished at: Mon Oct 06 10:43:29 MDT 2008
> >> [INFO] Final Memory: 6M/11M
> >> [INFO]
> >> 
> >>
> >>
> >> I have place the following in my Reporting section of the pom
> >>
> >>
> >>com.atlassian.maven.plugins
> >>maven-licenses-plugin
> >>1.0-SNAPSHOT
> >>
> >>
> >> Is there something else I need to do?
> >>
> >>
> >> justinedelson wrote:
> >>>
> >>> It's in the Atlassian public repo:
> >>> https://maven.atlassian.com/repository/public/
> >>>
> >>> -Original Message-
> >>> From: bshepherd [mailto:[EMAIL PROTECTED]
> >>> Sent: Monday, October 06, 2008 8:51 AM
> >>> To: users@maven.apache.org
> >>> Subject: Re: Dependency licenses
> >>>
> >>>
> >>> I found out that here at work we can not checkout from other companies
> >>> svn.
> >>> So I followed all the links and downloaded the files manually. However,
> >>> there is a dependency on a

Best practice? Where to put app-server specific files (log4j.xml, datsource xml files, jboss-service.xml , etc.)

2008-10-06 Thread Rick
I'm working on a typical JEE application that will be deployed to JBoss.
(JBoss5 if it matters.) Things are going. I have a pretty standard setup:

Parent Module
 EJB-JAR Module
 JAR Module
 WEB Module
 EAR Module


Currently, however, I'm manually having to deal with certain files that I
need in JBoss:
*  datasource.xml files
*  jboss-service.xml
*  log4j.xml files
There will probably be some others as well.

What is the best way to deal with these files? Is the best practice to
create a directory in the parent module or ear module and just create some
custom ant task to move them around where they need to go? I couldn't find
much about a jboss maven plugin to help with these tasks, so I'm assuming
hooking in regular old ant is the way to go?

I'll also want to have certain variables in those files replaced with
variables from a profile (dev, test, prod) depending on what profile I'm
running. I'll look into that as well, since I'm sure there are some docs on
it, but are the any issues to be aware of since I'm guessing these aren't
standard files  that I'm dealing with so is using the replacement mechanism
more difficult?

Thanks


How to use Maven with multiple repositories?

2008-10-06 Thread midnight.codder

I have read the setting reference and the POM reference probably a gazillion
times and searched this forum for similar posts, and even found them (!) but
the solution proposed therein did not work for me at all.

We are using Archiva as our internal repository. On Archiva we have 3
repositories, 2 for third party artifacts (one for snapshot and one for
releases) and one for our artifacts (we have just began and just trying to
get up and running, so releases and snapshot at still together).
I can get the deploy goal to deploy my artifact to my group's repository.
But my colleague cannot compile his module which depends on the artifact I
just deployed.

I declared those repositories in repositories tags in a profile tag and
activated it in the setting.xml (attached) - but it makes no difference.
Maven can't locate the artifact.

A very confusing paragraph in the setting reference got me thinking that I
just don't understand Maven enough or have problems with reading
comprehension (or both):

The final piece of the settings.xml puzzle is the activeProfiles element.
This contains a set of activeProfile elements, which each have a value of a
profile id. Any profile id defined as an activeProfile will be active,
reguardless of any environment settings. If no matching profile is found
nothing will happen. For example, if env-test is an activeProfile, a profile
in a pom.xml (or profile.xml with a corrosponding id will be active. If no
such profile is found then execution will continue as normal.

So I thought maybe I am missing a profile tag in the pom.xml of my project.
I tried adding that but it did not do squat.

setting.xml is attached and the project's pom.xml too.
A link to a very similar post (to the best of my understanding I tried the
solution, but no success):
http://www.nabble.com/-m2--multiple-repository-confusion-td978358.html#a978358

Thanks.
http://www.nabble.com/file/p19846425/settings.xml settings.xml 
http://www.nabble.com/file/p19846425/pom.xml pom.xml 

-- 
View this message in context: 
http://www.nabble.com/How-to-use-Maven-with-multiple-repositories--tp19846425p19846425.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]



Re: automatically go offline

2008-10-06 Thread Wayne Fay
On Mon, Oct 6, 2008 at 1:07 PM, Reto Bachmann-Gmür <[EMAIL PROTECTED]> wrote:
> I would like to automatically switch betwenn online and offline mode
> depending on the network interface that i have activated. I've
> configured NetworkManager to create a file (/tmp/fast-network-up)
> whenever a fast network interface is up, I would like to configure maven
> to switch to offline mode when this file is missing.

You could adjust the "mvn" shell script to look for that file and pass
in -o (or not) rather than depending on what seem to be bugs in the
profile handling, at least as a short-term fix.

Wayne


Re: automatically go offline

2008-10-06 Thread Wendy Smoak
On Mon, Oct 6, 2008 at 1:07 PM, Reto Bachmann-Gmür <[EMAIL PROTECTED]> wrote:
> I would like to automatically switch betwenn online and offline mode
> depending on the network interface that i have activated. I've
> configured NetworkManager to create a file (/tmp/fast-network-up)
> whenever a fast network interface is up, I would like to configure maven
> to switch to offline mode when this file is missing.
>
> I've tried using profiles in settings.xml, as in
...
> but had no success. any idea?

What happened?

There's an issue [1] complaining that a profile intended to be
activated when a file is missing is *always* active.  You might want
to comment on/vote for it if you're having the same problem.

[1] http://jira.codehaus.org/browse/MNG-3524

-- 
Wendy

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



automatically go offline

2008-10-06 Thread Reto Bachmann-Gmür
I would like to automatically switch betwenn online and offline mode
depending on the network interface that i have activated. I've
configured NetworkManager to create a file (/tmp/fast-network-up)
whenever a fast network interface is up, I would like to configure maven
to switch to offline mode when this file is missing.

I've tried using profiles in settings.xml, as in


offline


/tmp/fast-network-upg



true



${offline.value}

but had no success. any idea?

Cheers,
reto



signature.asc
Description: OpenPGP digital signature


Problem moving property file around

2008-10-06 Thread Jon Strayer
Hang with me, this takes a while to explain.  :-)

I'm trying to add a build number to a footer panel in GWT.

CruiseControl passes the build label to Maven.
Maven copies a properties file while performing a substitution which
gives me a properties file in target/classes with the correct values
in it.
To get GWT to build the properties file into the application I have to
copy the file from target/classes to the source tree (I use an ant
task for that).
For Eclipse builds to build correctly I need a default properties file
in the source tree.

The problem is that CVS won't tag the build because now the properties
file in the source tree is not in CVS.  I tried many ways to make a
backup copy of the file in the source tree and copy it back, but I've
never been able to find a phase to tie different copying calls to that
only executes once.

So, in short, what I need is a way to
1. backup a properties file in the source directory before
resources are processed.
2. copy a processed properties file from target/classes to the
source tree after resources are processed.
3. copy the backup of the properties file back to the source tree
before scm:tag.

Right now I'm trying to work around the problem by having scm:tag not
tag that file, but that could lead to surprises.

-- 
Esse Quam Videre
To Be, rather than to Seem

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



Bind Maven Goal Execution to a Lifecycle

2008-10-06 Thread Shelley
Is there any way to bind a goal's execution not only to a lifecycle *phase*,
but to limit the execution to a specific *lifecycle *as well?

I would like to bind a goal to the integration-test phase of the standard
build lifecycle, but exclude it from being executed in a forked lifecycle
(clover).  Is there any way to do this, or to detect which lifecycle is
currently executing (so that a profile, for example, might be configured
appropriately)?


Re: Dependency licenses

2008-10-06 Thread bshepherd

That worked!

Would like to see this plugin in central. It helped me alot.

Brian


Wayne Fay wrote:
> 
> As described here:
> http://maven.apache.org/guides/plugin/guide-java-plugin-development.html
> 
> You can execute the mojo with:
> mvn groupID:artifactID:version:goal
> 
> In this case, it should be something like (not sure about the goal,
> check the plugin sources or documentation):
> mvn com.atlassian.maven.plugins:maven-licenses-plugin:1.0-SNAPSHOT:list
> 
> Wayne
> 
> On Mon, Oct 6, 2008 at 9:51 AM, bshepherd <[EMAIL PROTECTED]> wrote:
>>
>> Thanks, I was able to build the plugin by pointing to the repo you
>> listed. I
>> have verified that the plugin was installed into my local repository. I
>> am
>> not sure how to run it. I tried:
>>
>> mvn licenses:list
>>
>> and got
>> [INFO] Searching repository for plugin with prefix: 'licenses'.
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does
>> not
>> exist or no valid version could be found
>> [INFO]
>> 
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
>> 'org.apache.maven.plugins:maven-licenses-plugin' does not exist or no
>> valid
>> version
>>  could be found
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>at java.lang.reflect.Method.invoke(Method.java:597)
>>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.version.PluginVersionNotFoundException:
>> The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not
>> exist
>> or no valid version could be found
>>at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
>>at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
>>at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
>>at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
>>... 14 more
>> [INFO]
>> 
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Mon Oct 06 10:43:29 MDT 2008
>> [INFO] Final Memory: 6M/11M
>> [INFO]
>> 
>>
>>
>> I have place the following in my Reporting section of the pom
>>
>>
>>com.atlassian.maven.plugins
>>maven-licenses-plugin
>>1.0-SNAPSHOT
>>
>>
>> Is there something else I need to do?
>>
>>
>> justinedelson wrote:
>>>
>>> It's in the Atlassian public repo:
>>> https://maven.atlassian.com/repository/public/
>>>
>>> -Original Message-
>>> From: bshepherd [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, October 06, 2008 8:51 AM
>>> To: users@maven.apache.org
>>> Subject: Re: Dependency licenses
>>>
>>>
>>> I found out that here at work we can not checkout from other companies
>>> svn.
>>> So I followed all the links and downloaded the files manually. However,
>>> there is a dependency on a parent pom that is not in the checkout url
>>> link.
>>> Therefore I can not  seem to build. Any ideas?
>>>
>>> Downloading:
>>> http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/
>>> atlassian-public-pom/14/atlassian-public-pom-14.pom
>>> 
>>> [ERROR]FATAL ERROR
>>> --

Re: Dependency licenses

2008-10-06 Thread Wayne Fay
As described here:
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

You can execute the mojo with:
mvn groupID:artifactID:version:goal

In this case, it should be something like (not sure about the goal,
check the plugin sources or documentation):
mvn com.atlassian.maven.plugins:maven-licenses-plugin:1.0-SNAPSHOT:list

Wayne

On Mon, Oct 6, 2008 at 9:51 AM, bshepherd <[EMAIL PROTECTED]> wrote:
>
> Thanks, I was able to build the plugin by pointing to the repo you listed. I
> have verified that the plugin was installed into my local repository. I am
> not sure how to run it. I tried:
>
> mvn licenses:list
>
> and got
> [INFO] Searching repository for plugin with prefix: 'licenses'.
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not
> exist or no valid version could be found
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
> 'org.apache.maven.plugins:maven-licenses-plugin' does not exist or no valid
> version
>  could be found
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>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.version.PluginVersionNotFoundException:
> The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not exist
> or no valid version could be found
>at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
>at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
>at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
>... 14 more
> [INFO]
> 
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Oct 06 10:43:29 MDT 2008
> [INFO] Final Memory: 6M/11M
> [INFO]
> 
>
>
> I have place the following in my Reporting section of the pom
>
>
>com.atlassian.maven.plugins
>maven-licenses-plugin
>1.0-SNAPSHOT
>
>
> Is there something else I need to do?
>
>
> justinedelson wrote:
>>
>> It's in the Atlassian public repo:
>> https://maven.atlassian.com/repository/public/
>>
>> -Original Message-
>> From: bshepherd [mailto:[EMAIL PROTECTED]
>> Sent: Monday, October 06, 2008 8:51 AM
>> To: users@maven.apache.org
>> Subject: Re: Dependency licenses
>>
>>
>> I found out that here at work we can not checkout from other companies
>> svn.
>> So I followed all the links and downloaded the files manually. However,
>> there is a dependency on a parent pom that is not in the checkout url
>> link.
>> Therefore I can not  seem to build. Any ideas?
>>
>> Downloading:
>> http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/
>> atlassian-public-pom/14/atlassian-public-pom-14.pom
>> 
>> [ERROR]FATAL ERROR
>> 
>> Error building POM (may not be this project's POM).
>>
>>
>> Project ID:
>> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
>> HOT
>>
>> Reason: Cannot find parent: com.atlassian.pom:atlassian-

Re: Is there a way to create 2 war files from one war project?

2008-10-06 Thread David
Thanks Wayne!!

On Mon, Oct 6, 2008 at 11:42 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> The best approach is to split your war project up into 2 war projects
> (move the professional edition files to a new project), and then use
> the war-overlays feature to merge the standard and professional
> versions. And you should really just use a different artifactId -- one
> for each war project -- though classifier would work, if you wanted to
> use it instead.
>
> Wayne
>
> On Mon, Oct 6, 2008 at 6:31 AM, David <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I've need to create two varieties of the same war file.  Say for example
> a
> > standard and professional edition.  I can make these two editions using
> > profiles.  Now I'm trying to figure out the best way to identify them
> after
> > they are built.  Using a classifier comes to mind but the only thing I
> know
> > of that does that is the assembly plugin.  Is this the way to go or is
> there
> > a better way?
> >
> > Thanks,
> >
> > David
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Dependency licenses

2008-10-06 Thread bshepherd

Thanks, I was able to build the plugin by pointing to the repo you listed. I
have verified that the plugin was installed into my local repository. I am
not sure how to run it. I tried:

mvn licenses:list

and got
[INFO] Searching repository for plugin with prefix: 'licenses'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not
exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-licenses-plugin' does not exist or no valid
version
 could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-licenses-plugin' does not exist
or no valid version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:229)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:91)
at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
... 14 more
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Oct 06 10:43:29 MDT 2008
[INFO] Final Memory: 6M/11M
[INFO]



I have place the following in my Reporting section of the pom


com.atlassian.maven.plugins
maven-licenses-plugin
1.0-SNAPSHOT


Is there something else I need to do?


justinedelson wrote:
> 
> It's in the Atlassian public repo:
> https://maven.atlassian.com/repository/public/ 
> 
> -Original Message-
> From: bshepherd [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 06, 2008 8:51 AM
> To: users@maven.apache.org
> Subject: Re: Dependency licenses
> 
> 
> I found out that here at work we can not checkout from other companies
> svn.
> So I followed all the links and downloaded the files manually. However,
> there is a dependency on a parent pom that is not in the checkout url
> link.
> Therefore I can not  seem to build. Any ideas?
> 
> Downloading:
> http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/
> atlassian-public-pom/14/atlassian-public-pom-14.pom
> 
> [ERROR]FATAL ERROR
> 
> Error building POM (may not be this project's POM).
> 
> 
> Project ID:
> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
> HOT
> 
> Reason: Cannot find parent: com.atlassian.pom:atlassian-public-pom for
> project:
> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
> HOT
> for project
> com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
> HOT
> 
> 
> 
> Wayne Fay wrote:
>> 
>> The reply from James @ Atlassian provided the SVN trunk url:
>> https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-lic
>> enses-plugin/trunk/
>> 
>> I haven't done it, but I imagine you can check out the code and 
>> build/install/use it pretty easily.
>> 
>> Wayne
>> 
>> On Fri, Oct 3, 2008 at 11:47 AM, bshepherd

Re: Site deployment to sourceforge.net broken

2008-10-06 Thread Wayne Fay
Then file a bug in JIRA, and get lots of people to vote on it.

Complaining about bugs on the Maven Users list is certainly not
guaranteed to have them addressed.

Wayne

On Mon, Oct 6, 2008 at 3:45 AM, Marat Radchenko
<[EMAIL PROTECTED]> wrote:
> Ping. This is a really serious bug. It affects all sf-hosted maven projects.
>
> 2008/9/25 Marat Radchenko <[EMAIL PROTECTED]>:
>> After last changes in sf.net infrastructure there are three ways of
>> uploading stuff to web area:
>>
>> 1) sftp
>> 2) scp
>> 3) rsync over ssh
>>
>> I've tried two first options and they both failed. Maven uploads zip
>> file (wagon.zip) and then tries to unzip it. However unzip
>> commandis not available.
>> As far as I understand, Maven doesn't support site deployment via rsync.
>>
>> Am I doing something wrong or it is a real bug? Any existing workarounds?
>>
>
> -
> 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: Is there a way to create 2 war files from one war project?

2008-10-06 Thread Wayne Fay
The best approach is to split your war project up into 2 war projects
(move the professional edition files to a new project), and then use
the war-overlays feature to merge the standard and professional
versions. And you should really just use a different artifactId -- one
for each war project -- though classifier would work, if you wanted to
use it instead.

Wayne

On Mon, Oct 6, 2008 at 6:31 AM, David <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I've need to create two varieties of the same war file.  Say for example a
> standard and professional edition.  I can make these two editions using
> profiles.  Now I'm trying to figure out the best way to identify them after
> they are built.  Using a classifier comes to mind but the only thing I know
> of that does that is the assembly plugin.  Is this the way to go or is there
> a better way?
>
> Thanks,
>
> David
>

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



Re: Jeffrey N Hagelberg is out of the office.

2008-10-06 Thread 陈思淼
you don't need to notify the maven mail list about your vacation.

2008/10/3 Jeffrey N Hagelberg <[EMAIL PROTECTED]>

>
> I will be out of the office starting  10/02/2008 and will not return until
> 10/14/2008.
>


Re: graphical eclipse plugin to display dependencies?

2008-10-06 Thread 陈思淼
http://m2eclipse.codehaus.org/is very powerful tool to use.

2008/10/7 Mark Hobson <[EMAIL PROTECTED]>

> You can either use dependency:tree:
>
>
> http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html
>
> http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html
>
> Or m2eclipse for a graphical view within Eclipse:
>
> http://m2eclipse.codehaus.org/
>
> Mark
>
> 2008/10/6 Nicola Benaglia <[EMAIL PROTECTED]>:
> > Hi,
> > isn't there an eclipse plugin to see a graph with dependencies in a
> > maven project?
> > I have to exclude some jar deployed but I found difficult to find the
> > calling dependency with the command mvn dependency:resolve -X
> > Maybe some of you knows the existence of such a plugin :)
> >
> > Thank you
> > Nicola
> >
> > -
> > 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: Best practice for branching projects?

2008-10-06 Thread 陈思淼
It's not good you use all the 150 project in a large project.
some of the project should be idependent project if it don't have much real
relative to other project.
other project use  to dependon it.

if you have a branch project should under bugfix developement. for example
the last version is 1.1, now the new developing version should
 1.2-SNAPSHOT.

after you finish you development, you modified all the pom.xml which
dependent on the fixed version.

2008/10/6 Stefan Fritz <[EMAIL PROTECTED]>

> Hi,
>
> We use Maven in an environment where we have ca. 150 projects.
> One project is the toplevel project (= the final deliverable to the
> customer/user).
> This project has dependencies to 10 projects, which have dependencies to
> other projects etc. In the end we have 150 different projects in the
> dependency hierachy.
>
> The challange now is what happens if in one of the projects on the lowest
> level is bug.
> This means we have to branch from our released version to work on a patch
> and then release the patched version.
>
> From my understanding the only way to do that is to branch all projects
> which depend on the "buggy" project. And the same has to be done for all
> levels up to toplevel project.
> Most low level components are referenced by multiple projects and therefore
> a patch-branch would afect ca. 30 projects :-(
> As you can imagine this can end up in a nightmare of manual steps and/or
> scripting.
> Therefore I hope anybody has a better approach to that.
>
> Is there a simple way to do that?
> Any automation in Maven?
> Any best practices?
>
> Thanks
> Stefan
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: make maven work in sun solaris 10

2008-10-06 Thread Olivier Lamy
Hi,
I use maven with solaris 10 all the day.

Check the file : resolv.conf with the cli cat /etc/resolv.conf

You should see something like

; try dns name server
nameserver  dns server ip
nameserver  secondary dns server ip

And try the cli :

bash-3.00$ telnet repo1.maven.org 80
Trying 38.97.124.18...
Connected to repo1.maven.org.
Escape character is '^]'.
^C^]


--
Olivier

2008/10/6 Wayne Fay <[EMAIL PROTECTED]>:
> Seems like your DNS resolution is not working properly. You need to
> talk to who ever your sysadmin is to get that fixed, and then Maven
> should work fine.
>
> And if *you* are the sysadmin of this box, you need to get help from a
> "Solaris beginners" forum to get your box set up and working on the
> Internet properly, then try Maven again.
>
> Wayne
>
> On Mon, Oct 6, 2008 at 9:15 AM, 陈思淼 <[EMAIL PROTECTED]> wrote:
>> you can ping repo1.maven.org to verify the network working.
>> Maven can work in Solaris of cause because that SUN's home platform.
>> and maven is a java program.
>>
>> 2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>
>>
>>> Hi everybody,
>>>
>>> I've been trying to make maven work on SUN Solaris 10 for the last few
>>> days, but since I'm not a Solaris administration expert I had no luck.
>>> I have the following exception:
>>>
>>> Caused by: java.net.UnknownHostException: repo1.maven.org
>>>
>>> I think it's related to some Solaris network configurations, but I don't
>>> know how to solve them.
>>>
>>> Can anyone help me...?
>>>
>>> Thanks
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>


Re: make maven work in sun solaris 10

2008-10-06 Thread Wayne Fay
Seems like your DNS resolution is not working properly. You need to
talk to who ever your sysadmin is to get that fixed, and then Maven
should work fine.

And if *you* are the sysadmin of this box, you need to get help from a
"Solaris beginners" forum to get your box set up and working on the
Internet properly, then try Maven again.

Wayne

On Mon, Oct 6, 2008 at 9:15 AM, 陈思淼 <[EMAIL PROTECTED]> wrote:
> you can ping repo1.maven.org to verify the network working.
> Maven can work in Solaris of cause because that SUN's home platform.
> and maven is a java program.
>
> 2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>
>
>> Hi everybody,
>>
>> I've been trying to make maven work on SUN Solaris 10 for the last few
>> days, but since I'm not a Solaris administration expert I had no luck.
>> I have the following exception:
>>
>> Caused by: java.net.UnknownHostException: repo1.maven.org
>>
>> I think it's related to some Solaris network configurations, but I don't
>> know how to solve them.
>>
>> Can anyone help me...?
>>
>> Thanks
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


Re: graphical eclipse plugin to display dependencies?

2008-10-06 Thread Mark Hobson
You can either use dependency:tree:

http://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html
http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html

Or m2eclipse for a graphical view within Eclipse:

http://m2eclipse.codehaus.org/

Mark

2008/10/6 Nicola Benaglia <[EMAIL PROTECTED]>:
> Hi,
> isn't there an eclipse plugin to see a graph with dependencies in a
> maven project?
> I have to exclude some jar deployed but I found difficult to find the
> calling dependency with the command mvn dependency:resolve -X
> Maybe some of you knows the existence of such a plugin :)
>
> Thank you
> Nicola
>
> -
> 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: make maven work in sun solaris 10

2008-10-06 Thread 陈思淼
Maybe you should you mvnDebug intall to open a debug port on solaris. and
use eclipse's remote debug function to debug the maven program.and you can
know the detailed error message.
or you can use mvn -X to display detailed message.

2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>

> I already tried to ping repo1.maven.org and it worked.
> I know maven can work on solaris, I'm not a maven newbie, I 've been using
> it for a year.
> As I said I think it's a network configuration problem.
> I've already done any under my knowledge sun solaris network configurations
> but I still have the same problem.
>
> Any other help..??
>
>
> ??? wrote:
>
>> you can ping repo1.maven.org to verify the network working.
>> Maven can work in Solaris of cause because that SUN's home platform.
>> and maven is a java program.
>>
>> 2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>
>>
>>
>>
>>> Hi everybody,
>>>
>>> I've been trying to make maven work on SUN Solaris 10 for the last few
>>> days, but since I'm not a Solaris administration expert I had no luck.
>>> I have the following exception:
>>>
>>> Caused by: java.net.UnknownHostException: repo1.maven.org
>>>
>>> I think it's related to some Solaris network configurations, but I don't
>>> know how to solve them.
>>>
>>> Can anyone help me...?
>>>
>>> Thanks
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
>
> *Patrizio Munzi*
> Product Specialist
> Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
> tel: +39 06 4543 3540
> fax: +39 06 4543 3587
> mobile: +39 393 7195 164
> mail: [EMAIL PROTECTED] 
> web: http://www.eris4.com 
> skype: eris4_munzi 
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Iterating profiles

2008-10-06 Thread 陈思淼
write a shell script to do this kind of thing.

2008/10/6 Simone Tripodi <[EMAIL PROTECTED]>

> Hi everybody,
> In the company I'm in a situation where I need to iterate over all
> profiles and generate the relative artifact: to be more detailed, my
> application has many configuration files, structured as follow:
>
> src
>  |
>  \- main
>|
>\- config
>   |
>   \- local
>|
>\- *.properties, *.xml
>
>   |
>   \- stage
>|
>\- *.properties, *.xml
>
>   |
>   \- prod
>|
>\- *.properties, *.xml
>
> my pom contains some directives to use the config dir:
>
> 
>...
>
>
>local
>
>false
>
>
>local
>
>
>
>stage
>
>false
>
>
>stage
>
>
>
>prod
>
>false
>
>
>prod
>
>
>
>
>
>...
>
>
>
>org.apache.maven.plugins
>maven-jar-plugin
>2.2
>
>
>
>
> true
>
> true
>
>
>
>
>
>
>${config}
>
>
>jar
>
>
>
>
>...
>
>...
>
>
>src/main/config/${config}
>
>
>src/main/resources
>
>
>...
>
>
> 
>
> Now, launching on the shell
>
>mvn deploy -P 
>
> a jar named 'modulename-version-.jar' will be deployed to my repo.
>
> Now my question is:
>
> is there a way to generate and deploy ALL artifacts FOR EACH profile?
> I'm using also the release plugin and my wish is releasing the module
> for each configuration!
>
> Many thanks in advance!!!
> Best regards,
> Simone
>
> --
> My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
> My GoogleCode profile: http://code.google.com/u/simone.tripodi/
> My Picasa: http://picasaweb.google.com/simone.tripodi/
> My Tube: http://www.youtube.com/user/stripodi
> My Del.icio.us: http://del.icio.us/simone.tripodi
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: make maven work in sun solaris 10

2008-10-06 Thread Patrizio Munzi

I already tried to ping repo1.maven.org and it worked.
I know maven can work on solaris, I'm not a maven newbie, I 've been 
using it for a year.

As I said I think it's a network configuration problem.
I've already done any under my knowledge sun solaris network 
configurations but I still have the same problem.


Any other help..??

??? wrote:

you can ping repo1.maven.org to verify the network working.
Maven can work in Solaris of cause because that SUN's home platform.
and maven is a java program.

2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>

  

Hi everybody,

I've been trying to make maven work on SUN Solaris 10 for the last few
days, but since I'm not a Solaris administration expert I had no luck.
I have the following exception:

Caused by: java.net.UnknownHostException: repo1.maven.org

I think it's related to some Solaris network configurations, but I don't
know how to solve them.

Can anyone help me...?

Thanks

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





  


--

*Patrizio Munzi*
Product Specialist
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [EMAIL PROTECTED] 
web: http://www.eris4.com 
skype: eris4_munzi 


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



Re: Migrating project to Maven. Adding dependencies.

2008-10-06 Thread 陈思淼
Thats just a one time work, it just cost you some time and bring you lots
of benefits.you can use http://mvnrepository.com/
to find the right groupId and artifactoryId

2008/10/6 Valerio Schiavoni <[EMAIL PROTECTED]>

> Hi,
>
>
> On Sat, Oct 4, 2008 at 1:25 AM, emma.sender <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi, I'm trying to migrate a project to maven that has all the .jars in a
> > lib
> > folder relative to the project root folder, and I don't want to have to
> > specify every .jar in a  element... Is there a way to include
> > lib/*.jar in the classpath?
>
>
> one thing that you could technically do is to define a "virtual" repository
> pointing to your lib/ directory, and then specify that those dependencies
> come from that repository.
> Even if possible, it's a practice I would strongly discourage, and I would
> go for the conventional technique.
>
>
> WHy do you see a problem with that ? It's a do-it-once (almost) activity.
> and once you define your deps in a top-level module, those are inherited by
> the eventual submodules...
>
>
> --
> http://www.linkedin.com/in/vschiavoni
> http://jroller.com/vschiavoni
>


Re: eclipse plugin, resolve dependencies to the projects in the workspace

2008-10-06 Thread Eugene Kuleshov


Eugeny N Dzhurinsky-2 wrote:
> 
> On Tue, Sep 23, 2008 at 12:00:39PM +0300, N Dzhurinsky wrote:
>> >   Out of curiosity, why don't you use Maven IDe integration, such as
>> > m2eclipse? http://m2eclipse.codehaus.org/
>> 
>> I just tried it and I was really impressed of it's capabilities. Many
>> thanks!
> 
> After a time of using it I found for some reason it hangs the workspace
> building - it shows it is trying to compile a class for a while (I was
> waiting for 5 or 10 minutes). I removed the m2eclipse plugin - and
> everything works fine.
> 
> Do you have any ideas why is it and how to fix it? I am using Eclipse 3.4
> if
> that matters.
> 

  You may want to check Eclipse's Progress view and Maven console to see
what m2eclipse is doing.
  If that does not help, please report a bug in project bug tracker [1] at
and provide thread dump [2] when build hangs for your project. Also clarify
what "trying to compile a class" exactly mean (did you run Project/Clean or
launched Maven from Run as.. / Maven shortcut).
  Also, it is better to discuss issues specific to m2eclipe in its own
mailing list [3] or Eclipse newsgroups [4].

  Thanks

  Eugene

[1] http://jira.codehaus.org/browse/MNGECLIPSE
[2]
http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-threadDump
[3] http://m2eclipse.codehaus.org/mail-lists.html
[4]
http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.m2e
-- 
View this message in context: 
http://www.nabble.com/eclipse-plugin%2C-resolve-dependencies-to-the-projects-in-the-workspace-tp19610981p19841133.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]



Re: make maven work in sun solaris 10

2008-10-06 Thread 陈思淼
you can ping repo1.maven.org to verify the network working.
Maven can work in Solaris of cause because that SUN's home platform.
and maven is a java program.

2008/10/7 Patrizio Munzi <[EMAIL PROTECTED]>

> Hi everybody,
>
> I've been trying to make maven work on SUN Solaris 10 for the last few
> days, but since I'm not a Solaris administration expert I had no luck.
> I have the following exception:
>
> Caused by: java.net.UnknownHostException: repo1.maven.org
>
> I think it's related to some Solaris network configurations, but I don't
> know how to solve them.
>
> Can anyone help me...?
>
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


graphical eclipse plugin to display dependencies?

2008-10-06 Thread Nicola Benaglia
Hi,
isn't there an eclipse plugin to see a graph with dependencies in a
maven project?
I have to exclude some jar deployed but I found difficult to find the
calling dependency with the command mvn dependency:resolve -X
Maybe some of you knows the existence of such a plugin :)

Thank you
Nicola

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



Re: eclipse plugin, resolve dependencies to the projects in the workspace

2008-10-06 Thread Eugeny N Dzhurinsky
On Mon, Oct 06, 2008 at 04:51:55PM +0300, Eugeny N Dzhurinsky wrote:
> On Tue, Sep 23, 2008 at 06:16:20AM +0930, Barrie Treloar wrote:
> > yes, from the command line you use "Expression" not the configuration
> > valeue, so use "eclipse.workspace"
> > as in
> > 
> > mvn eclipse:eclipse -Declipse.workspace=/home/user/workspace
> 
> This doesn't work either - a JAR dependency is being added instead of the
> project. Is there any way to see what is wrong?

Sorry, my bad. I've got the source for maven eclipse plugin and realized if I
specify the workspace path as ~/workspace - it doesn't find any files there.
I wrote the test case for Java and found the listFiles method returns null if
the directory is specified with ~ in front instead of the full path. Awesome )

-- 
Eugene N Dzhurinsky


pgpHYtFSnht9X.pgp
Description: PGP signature


make maven work in sun solaris 10

2008-10-06 Thread Patrizio Munzi

Hi everybody,

I've been trying to make maven work on SUN Solaris 10 for the last few 
days, but since I'm not a Solaris administration expert I had no luck.

I have the following exception:

Caused by: java.net.UnknownHostException: repo1.maven.org

I think it's related to some Solaris network configurations, but I don't 
know how to solve them.


Can anyone help me...?

Thanks

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



Re: Migrating project to Maven. Adding dependencies.

2008-10-06 Thread Valerio Schiavoni
Hi,


On Sat, Oct 4, 2008 at 1:25 AM, emma.sender <[EMAIL PROTECTED]> wrote:

>
> Hi, I'm trying to migrate a project to maven that has all the .jars in a
> lib
> folder relative to the project root folder, and I don't want to have to
> specify every .jar in a  element... Is there a way to include
> lib/*.jar in the classpath?


one thing that you could technically do is to define a "virtual" repository
pointing to your lib/ directory, and then specify that those dependencies
come from that repository.
Even if possible, it's a practice I would strongly discourage, and I would
go for the conventional technique.


WHy do you see a problem with that ? It's a do-it-once (almost) activity.
and once you define your deps in a top-level module, those are inherited by
the eventual submodules...


-- 
http://www.linkedin.com/in/vschiavoni
http://jroller.com/vschiavoni


RE: Jar not in repository

2008-10-06 Thread Edelson, Justin
AfAIK, You don't need to write a custom wagon for a "non-standard"
layout, just an implementation of
org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
(and expose that as a plexus component). This is how the Maven 1 layout
is supported.

You would need a wagon if you needed to access the repository through a
transport that wasn't already supported by an existing wagon. Wagons and
layouts should be able to be mixed and matched at will.

And to be clear, it's not me looking to use ClearCase as a Maven
repository.

Justin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Baptiste
MATHUS
Sent: Friday, October 03, 2008 2:11 AM
To: Maven Users List
Subject: Re: Jar not in repository

Just a question to you and other maven's mavens :-) : isn't there a way
to expose some "non-standard" repository under the required hierarchy? I
thought I read something about being able to provide a specific
implementation for it.

In this case, maybe Justin could consider writing this "connector" for
his clearcase repository to be seen as a standard maven one. This would
avoid using system scopes, and avoid deployment duplication.

OK, after some research: the wagons. Wouldn't it be possible to writing
something like ClearCaseRepositoryWagon? Is there any caveat you might
think of?
http://maven.apache.org/wagon/

Cheers

2008/10/3 Wendy Smoak <[EMAIL PROTECTED]>

> Yes, that makes sense.  Okay, not a bug. :)  Just not very useful in 
> this case.
>
> I don't think we ever heard from the OP why the jars can't go into a 
> repository?  That they need to be stored in ClearCase doesn't mean 
> they can't also be in a repository...
>
> --
> Wendy
>
> On Thu, Oct 2, 2008 at 2:31 PM, Edelson, Justin 
> <[EMAIL PROTECTED]> wrote:
> > http://maven.apache.org/guides/introduction/introduction-to-dependen
> > cy-m echanism.html implies this would be the case in that system 
> > scope is similar to provided. This should probably be made more 
> > explicit.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Baptiste  MATHUS - http://batmat.net Sauvez un arbre, Mangez un
castor !

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



RE: Dependency licenses

2008-10-06 Thread Edelson, Justin
It's in the Atlassian public repo:
https://maven.atlassian.com/repository/public/ 

-Original Message-
From: bshepherd [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2008 8:51 AM
To: users@maven.apache.org
Subject: Re: Dependency licenses


I found out that here at work we can not checkout from other companies
svn.
So I followed all the links and downloaded the files manually. However,
there is a dependency on a parent pom that is not in the checkout url
link.
Therefore I can not  seem to build. Any ideas?

Downloading:
http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/
atlassian-public-pom/14/atlassian-public-pom-14.pom

[ERROR]FATAL ERROR

Error building POM (may not be this project's POM).


Project ID:
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
HOT

Reason: Cannot find parent: com.atlassian.pom:atlassian-public-pom for
project:
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
HOT
for project
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPS
HOT



Wayne Fay wrote:
> 
> The reply from James @ Atlassian provided the SVN trunk url:
> https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-lic
> enses-plugin/trunk/
> 
> I haven't done it, but I imagine you can check out the code and 
> build/install/use it pretty easily.
> 
> Wayne
> 
> On Fri, Oct 3, 2008 at 11:47 AM, bshepherd <[EMAIL PROTECTED]>
wrote:
>>
>> I can follow the link in my browser, but how do you check out the 
>> code so I can build it. It sounds exactly what I need.
>> Thanks
>>
>>
>> Keith Bonawitz-2 wrote:
>>>
>>> Is there a way to create an assembly that includes a license file 
>>> for each dependency (including transitive dependencies)?
>>>
>>> Thanks,
>>> Keith
>>>
>>> 
>>> - To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dependency-licenses-tp17040644p19803517.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]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

--
View this message in context:
http://www.nabble.com/Dependency-licenses-tp17040644p19837323.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]


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



Re: eclipse plugin, resolve dependencies to the projects in the workspace

2008-10-06 Thread Eugeny N Dzhurinsky
On Tue, Sep 23, 2008 at 06:16:20AM +0930, Barrie Treloar wrote:
> yes, from the command line you use "Expression" not the configuration
> valeue, so use "eclipse.workspace"
> as in
> 
> mvn eclipse:eclipse -Declipse.workspace=/home/user/workspace

This doesn't work either - a JAR dependency is being added instead of the
project. Is there any way to see what is wrong?

Thank you!

-- 
Eugene N Dzhurinsky


pgp0wRtWJd78U.pgp
Description: PGP signature


Re: eclipse plugin, resolve dependencies to the projects in the workspace

2008-10-06 Thread Eugeny N Dzhurinsky
On Tue, Sep 23, 2008 at 12:00:39PM +0300, Eugeny N Dzhurinsky wrote:
> >   Out of curiosity, why don't you use Maven IDe integration, such as
> > m2eclipse? http://m2eclipse.codehaus.org/
> 
> I just tried it and I was really impressed of it's capabilities. Many thanks!

After a time of using it I found for some reason it hangs the workspace
building - it shows it is trying to compile a class for a while (I was waiting
for 5 or 10 minutes). I removed the m2eclipse plugin - and everything works
fine.

Do you have any ideas why is it and how to fix it? I am using Eclipse 3.4 if
that matters.

Thank you!

-- 
Eugene N Dzhurinsky


pgpa3Brvyf3Fj.pgp
Description: PGP signature


Is there a way to create 2 war files from one war project?

2008-10-06 Thread David
Hello All,

I've need to create two varieties of the same war file.  Say for example a
standard and professional edition.  I can make these two editions using
profiles.  Now I'm trying to figure out the best way to identify them after
they are built.  Using a classifier comes to mind but the only thing I know
of that does that is the assembly plugin.  Is this the way to go or is there
a better way?

Thanks,

David


Iterating profiles

2008-10-06 Thread Simone Tripodi
Hi everybody,
In the company I'm in a situation where I need to iterate over all
profiles and generate the relative artifact: to be more detailed, my
application has many configuration files, structured as follow:

src
  |
  \- main
|
\- config
   |
   \- local
|
\- *.properties, *.xml

   |
   \- stage
|
\- *.properties, *.xml

   |
   \- prod
|
\- *.properties, *.xml

my pom contains some directives to use the config dir:


...


local

false


local



stage

false


stage



prod

false


prod





...



org.apache.maven.plugins
maven-jar-plugin
2.2




true

true






${config}


jar




...

...


src/main/config/${config}


src/main/resources


...




Now, launching on the shell

mvn deploy -P 

a jar named 'modulename-version-.jar' will be deployed to my repo.

Now my question is:

is there a way to generate and deploy ALL artifacts FOR EACH profile?
I'm using also the release plugin and my wish is releasing the module
for each configuration!

Many thanks in advance!!!
Best regards,
Simone

-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

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



Re: Dependency licenses

2008-10-06 Thread bshepherd

I found out that here at work we can not checkout from other companies svn.
So I followed all the links and downloaded the files manually. However,
there is a dependency on a parent pom that is not in the checkout url link.
Therefore I can not  seem to build. Any ideas?

Downloading:
http://coors.casper.local/nexus/content/groups/public/com/atlassian/pom/atlassian-public-pom/14/atlassian-public-pom-14.pom

[ERROR]FATAL ERROR

Error building POM (may not be this project's POM).


Project ID:
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPSHOT

Reason: Cannot find parent: com.atlassian.pom:atlassian-public-pom for
project:
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPSHOT
for project
com.atlassian.maven.plugins:maven-licenses-plugin:maven-plugin:1.0-SNAPSHOT



Wayne Fay wrote:
> 
> The reply from James @ Atlassian provided the SVN trunk url:
> https://svn.atlassian.com/svn/public/atlassian/maven-plugins/maven-licenses-plugin/trunk/
> 
> I haven't done it, but I imagine you can check out the code and
> build/install/use it pretty easily.
> 
> Wayne
> 
> On Fri, Oct 3, 2008 at 11:47 AM, bshepherd <[EMAIL PROTECTED]> wrote:
>>
>> I can follow the link in my browser, but how do you check out the code so
>> I
>> can build it. It sounds exactly what I need.
>> Thanks
>>
>>
>> Keith Bonawitz-2 wrote:
>>>
>>> Is there a way to create an assembly that includes a license file for
>>> each dependency (including transitive dependencies)?
>>>
>>> Thanks,
>>> Keith
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Dependency-licenses-tp17040644p19803517.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]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dependency-licenses-tp17040644p19837323.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]



Force compilation before executing a mojo

2008-10-06 Thread brasileiro

Hi,

I have a mojo that I invoke manually:
mvn os:run

I invoke this mojo from a project of type 'pom' and it is run in aggregated
mode.
The mojo gets the reactor projects and invoke them one by one.

What I would like it to do is first to invoke the project's compilation.
I tried using @execute phase=compile but it doesn't work.
I think it's due to the fact that the project is of type 'pom' (no
bindings).

I also tries to create my own lifecycle with my own role hint using plexus
but maven complained that
aggregated or multi module projects need to be of type 'pom'.

So, how can I make maven invoke compilation before executing my mojo?

Thanks,
Shai
-- 
View this message in context: 
http://www.nabble.com/Force-compilation-before-executing-a-mojo-tp19837352p19837352.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]



Best practice for branching projects?

2008-10-06 Thread Stefan Fritz

Hi,

We use Maven in an environment where we have ca. 150 projects.
One project is the toplevel project (= the final deliverable to the 
customer/user).
This project has dependencies to 10 projects, which have dependencies to 
other projects etc. In the end we have 150 different projects in the 
dependency hierachy.


The challange now is what happens if in one of the projects on the 
lowest level is bug.
This means we have to branch from our released version to work on a 
patch and then release the patched version.


From my understanding the only way to do that is to branch all projects 
which depend on the "buggy" project. And the same has to be done for all 
levels up to toplevel project.
Most low level components are referenced by multiple projects and 
therefore a patch-branch would afect ca. 30 projects :-(
As you can imagine this can end up in a nightmare of manual steps and/or 
scripting.

Therefore I hope anybody has a better approach to that.

Is there a simple way to do that?
Any automation in Maven?
Any best practices?

Thanks
Stefan


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



Problem with release plugin

2008-10-06 Thread Samuli Saarinen

Hello,

I'm using maven 2.0.9 with a multi-module project and try to make a 
release using maven-release-plugin. My project structure is following:


parent
  - child1
  - child2

parent pom.xml:

...
  1.0.2-SNAPSHOT
  
child1
child2
  
...


child1 pom.xml:

...
1.0.3-SNAPSHOT

com.foo.test
test
1.0.2-SNAPSHOT

...


child2 pom.xml:

...
1.0.2-SNAPSHOT

com.foo.test
test
1.0.2-SNAPSHOT




${project.groupId}
child1
1.0.3-SNAPSHOT


...



after I prepare a release the pom.xml.tag for child2 has dependency to 
1.0.3 version of child1 as expected but pom.xml.next for child2 contains 
dependency to 1.0.3-SNAPSHOT of child1 although the next development 
version for child1 is specified as 1.0.4-SNAPSHOT.


Is this the intended behaviour or a bug?

Thanks in advance,

Samuli

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



Cobertura check fails on deleted classes

2008-10-06 Thread Ole Laurisch
Hello,

I'm using Cobertura for code coverage checks. Therefore I have the 
following paragraph in my pom.xml:

  
org.codehaus.mojo
cobertura-maven-plugin

  

  clean
  check

  


  
20
20
  
  128m

  

Now I have a class "Foo.class" that has no test coverage. Therefore the 
coverage check, executed by running "mvn verify", fails. After deleting 
the class "Foo" and rerunning "mvn verify" the coverage check stills fails 
because the class "Foo.class" is still available in the folder 
"target/generated-classes/cobertura/". 
Is there a way to update this folder before every run without having to 
clean the whole target folder by running "mvn clean"?

Thanks in advance,
Ole

--  
engram GmbH 
Konsul-Smidt-Straße 8r 
28217 Bremen 
Germany 
Tel.: +49-[0]421-620298-0 
Fax: +49-[0]421-620298-999 
Handelsregister Bremen HRB 20782 
Geschäftsführer: Jens Wünderlich 
Aufsichtsratsvorsitzender: Ralf Paslack 


Re: Conditional dependencies

2008-10-06 Thread Simone Gianni
Hi Michael,
thanks a lot for your answer.

This is how we are currently doing it. In reality our scenario is a bit
more complicated than the given database example. We have many artifacts
(like A and B), and a whole lot of "connection" parts (like A2B), that
would be better placed in their own artifacts, provided that they are
used when both artifacts are in the classpath, and we don't want to have
the user bother with these connection artifacts. Also because A and B
could arrive in the classpath via transiitive dependencies, so the user
have no idea (if not doing a dependency:tree) that they are there and
the connection part A2B is missing.

As a last resort, do you think a plugin can handle these "dynamic"
dependencies? Can a plugin add dependencies to the project, and then
have them resolved and used in the rest of the build lifecycle? Maybe
binding to one of the early phases?

Simone

Michael McCallum wrote:
> wrap the dependency for the db driver in a pom project that also depends upon 
> the dialect
>
> e.g.
>
> example.company.db.posgresql
> -> postgresql jdc driver
> -> postgresql database dialect
>
> then
>
> example.company.applicationwithdb
> -> example.company.db.postgresql
>
> profiles should not be used to munge up dependencies, it just makes it 
> confusing for people to have side effects.
>
> On Mon, 06 Oct 2008 05:47:16 Simone Gianni wrote:
>   
>> Has anybody ever done something
>> like this? Has anybody had the same need and investigated a way to solve
>> it?
>> 
>
>
>
>   


-- 
Simone GianniCEO Semeru s.r.l.   Apache Committer
MALE human being programming a computer   http://www.simonegianni.it/


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



Re: Site deployment to sourceforge.net broken

2008-10-06 Thread Marat Radchenko
Ping. This is a really serious bug. It affects all sf-hosted maven projects.

2008/9/25 Marat Radchenko <[EMAIL PROTECTED]>:
> After last changes in sf.net infrastructure there are three ways of
> uploading stuff to web area:
>
> 1) sftp
> 2) scp
> 3) rsync over ssh
>
> I've tried two first options and they both failed. Maven uploads zip
> file (wagon.zip) and then tries to unzip it. However unzip
> commandis not available.
> As far as I understand, Maven doesn't support site deployment via rsync.
>
> Am I doing something wrong or it is a real bug? Any existing workarounds?
>

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



Books and POM Hierarchies

2008-10-06 Thread Joachim Zittmayr
dear list members!

is it possible to reflect a POM hierarchy (with modules) when setting up
a book?

example POM:

  - TOP_POM
- SUB_POM_1
  - SUBSUB_POM_1
  - SUBSUB_POM_2
- SUB_POM_2

so i want to have a book descriptor in TOP_POM project's site, where i
reference the sub-projects' sites and it's chapters.

is this possible?

thx in advance!
joachim


-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free



Re: pass extra parameters to idlj plugin

2008-10-06 Thread maarten roosendaal
Cheers, it worked, thanks a lot.



- Original Message 
From: Henric Larsson <[EMAIL PROTECTED]>
To: users@maven.apache.org
Cc: [EMAIL PROTECTED]
Sent: Monday, October 6, 2008 12:08:49 PM
Subject: Re: pass extra parameters to idlj plugin

Hi, 

You can add extra parameters via the source tag:


  
      -fallTie
  



Cheers,
Henric

The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc.) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Index plc is a company registered in England and Wales under number 
01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 
157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.



  

Re: Surefire plugin - is there a way to activate properties/profiles based on test results?

2008-10-06 Thread Stephen Connolly
The short answer is NO

The long answer follows:

Maven builds the project model before it starts processing the lifecycle.
Determining which profiles are active is part of building the project model.
Thus the active profiles are determined before your unit tests run.

What you are trying to do will not work the way you are trying to do it.

You either need to use multiple executions of the surefire plugin
(executions will be processed in the order in which they are defined,
and if one fails, the rest will not be executed) or attach the
surefire plugin to multiple phases (same as multiple executions, but
with more explicit ordering)

When changing from drinking the ANT coolaid to drinking the Maven
coolaid you will encounter a few bad tastes until you get used to the
flavour of the Maven coolaid. ;-)

-Stephen

2008/10/3  <[EMAIL PROTECTED]>:
>
>
> Hi all,
>
> I'm currently migrating an Ant script to Maven.  In Ant, we have a phased
> JUnit build set up:
>
> First, run environment checks.  If those pass, run system/integration and
> unit tests.  Otherwise, run only unit tests.
>
> We're accomplishing this using a junit task which toggles a flag on tests
> failure using "failureproperty":
> 
>   printsummary="no"
>   fork="true"
>   forkmode="once"
>   failureproperty="environmentchecks.failed"
>   errorproperty="environmentchecks.failed">
>
> Inside the second junit task, particular filesets only are tested if the
> environmentchecks.failed property is absent:
>   unless="environmentchecks.failed">
>
>  
>
> I'd like to do the same with Maven.  I think activating a profile with
> surefire plugins specifically configured for system/integration tests will
> work, but I need a way to activate the profile, based on the Surefire
> plugin's result.  A "failureproperty" which either toggles a property, or
> activates a profile, would do the trick, but I don't see anything similar
> to this in the Surefire docs.
>
> Is there any way to accomplish this task using Surefire?
>
> Thanks,
> Matt Steele.  
>   
> This message and any attachments contain information from Union Pacific 
> which may be confidential and/or privileged.
> If you are not the intended recipient, be aware that any disclosure, copying, 
> distribution or use of the contents of this message is strictly prohibited by 
> law. If you receive this message in error, please contact the sender 
> immediately and delete the message and any attachments.
>

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



Re: pass extra parameters to idlj plugin

2008-10-06 Thread Henric Larsson
Hi, 

You can add extra parameters via the source tag:


   
  -fallTie
   



Cheers,
Henric

The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any 
copies of it. Opinions, conclusions (etc.) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it. IG Index plc is a company registered in England and Wales under number 
01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 
157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the 
Financial Services Authority. FSA Register number 114059.


Re: Can maven generate this kind report?

2008-10-06 Thread 陈思淼
I got the answer.thank everybody who helps.

2008/10/6 陈思淼 <[EMAIL PROTECTED]>

> I got this report page from maven.apache.org. how to generate it?
> http://maven.apache.org/maven-1.x/plugins/jira/changes-report.html
>


Re: Question about Change List?

2008-10-06 Thread 陈思淼
I can use changes.xml to descible my project ,but this plugin don't support
UTF-8 encoding, so I cant use my chinese word to describe question, can
anybody use changes plugin with UTF-8 plugin?

2008/9/29 陈思淼 <[EMAIL PROTECTED]>

> That help me a lot, thanks
>
> 2008/9/29 Brett Porter <[EMAIL PROTECTED]>
>
> Are you using this plugin already?
>>
>> http://maven.apache.org/plugins/maven-changes-plugin/
>>
>> 2008/9/28 陈思淼 <[EMAIL PROTECTED]>:
>> > We would like to document some change list information about our maven
>> > project, for example. level up from 1.2 to 1.3. wo have  fix Bug
>> > connection time out in Connection.java
>> > < Improvement > ...
>> > because we use JIRA together. so we think It's great if we can combine
>> maven
>> > change list with JIRA, anybody have some Idea about that?
>> > Thank you for help.
>> >
>>
>>
>>
>> --
>> Brett Porter
>> Blog: http://blogs.exist.com/bporter/
>>
>
>


Re: command line debug args for jetty plugin?

2008-10-06 Thread Mick Knutson
Worked great. THanks

On Thu, Oct 2, 2008 at 1:07 PM, Andrew Robinson <
[EMAIL PROTECTED]> wrote:

> jetty runs inside of maven, so just pass those settings in your
> MAVEN_OPTS environment variable and attach to maven. That has worked
> for me.
>
> -Andrew
>
> On Thu, Oct 2, 2008 at 1:48 PM, Mick Knutson <[EMAIL PROTECTED]>
> wrote:
> > I am trying to connect to my Jetty application, but want to know how to
> add
> > the following to the jetty plugin:
> >
> > -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
> >
> >
> >
> > --
> > ---
> > Thank You…
> >
> > Mick Knutson
> > BASE Logic, inc.
> > (415) 354-4215
> >
> > Website: http://baselogic.com
> > Blog: http://baselogic.com/blog
> > BLiNC Magazine: http://blincmagazine.com
> > Linked IN: http://linkedin.com/in/mickknutson
> > DJ Mick: http://djmick.com
> > MySpace: http://myspace.com/mickknutson
> > Vacation Rental: http://tahoe.baselogic.com
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.
(415) 354-4215

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com


Re: Jar not in repository

2008-10-06 Thread Baptiste MATHUS
Just a question to you and other maven's mavens :-) : isn't there a way to
expose some "non-standard" repository under the required hierarchy? I
thought I read something about being able to provide a specific
implementation for it.

In this case, maybe Justin could consider writing this "connector" for his
clearcase repository to be seen as a standard maven one. This would avoid
using system scopes, and avoid deployment duplication.

OK, after some research: the wagons. Wouldn't it be possible to writing
something like ClearCaseRepositoryWagon? Is there any caveat you might think
of?
http://maven.apache.org/wagon/

Cheers

2008/10/3 Wendy Smoak <[EMAIL PROTECTED]>

> Yes, that makes sense.  Okay, not a bug. :)  Just not very useful in this
> case.
>
> I don't think we ever heard from the OP why the jars can't go into a
> repository?  That they need to be stored in ClearCase doesn't mean
> they can't also be in a repository...
>
> --
> Wendy
>
> On Thu, Oct 2, 2008 at 2:31 PM, Edelson, Justin
> <[EMAIL PROTECTED]> wrote:
> > http://maven.apache.org/guides/introduction/introduction-to-dependency-m
> > echanism.html implies this would be the case in that system scope is
> > similar to provided. This should probably be made more explicit.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Possible bug when using ant:run in build configuration

2008-10-06 Thread Jon Strayer
Where is this documented?

On Tue, Sep 16, 2008 at 1:45 PM, L. J. <[EMAIL PROTECTED]> wrote:
> compile is part of mvn package and install build lifecycle.
>
> On Tue, Sep 16, 2008 at 8:44 AM, dmcgeown <[EMAIL PROTECTED]> wrote:
>
>>
>> Hello, im having a problem when trying to run some ant tasks within the
>> build
>> configuration. I basically using Ant to generate a build number. However
>> when i specify the  to compile then then run 'mvn package' or 'mvn
>> install' the ant tasks execute even tough they are specified to only run
>> with the compile phase. Im i doing something stupid here or whats going on.
>> Pleasse refer to my code snippet below.
>>
>> Thanks in advance
>>
>>
>> 
>> 
>> 
>> org.apache.maven.plugins
>> maven-antrun-plugin
>> 1.2
>> false
>> 
>> 
>> create.buildnumber
>> compile
>> 
>> run
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> > todir="${common}/java/com/mycompany/common/" />
>> 
>>
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/Possible-bug-when-using-ant%3Arun-in-build-configuration-tp19514566p19514566.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]
>>
>>
>



-- 
Esse Quam Videre
To Be, rather than to Seem

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



Surefire plugin - is there a way to activate properties/profiles based on test results?

2008-10-06 Thread MDSTEELE


Hi all,

I'm currently migrating an Ant script to Maven.  In Ant, we have a phased
JUnit build set up:

First, run environment checks.  If those pass, run system/integration and
unit tests.  Otherwise, run only unit tests.

We're accomplishing this using a junit task which toggles a flag on tests
failure using "failureproperty":



Inside the second junit task, particular filesets only are tested if the
environmentchecks.failed property is absent:
  

  

I'd like to do the same with Maven.  I think activating a profile with
surefire plugins specifically configured for system/integration tests will
work, but I need a way to activate the profile, based on the Surefire
plugin's result.  A "failureproperty" which either toggles a property, or
activates a profile, would do the trick, but I don't see anything similar
to this in the Surefire docs.

Is there any way to accomplish this task using Surefire?

Thanks,
Matt Steele.

This message and any attachments contain information from Union Pacific which 
may be confidential and/or privileged.
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this message is strictly prohibited by 
law. If you receive this message in error, please contact the sender 
immediately and delete the message and any attachments.


Re: Can't Maven handle dependendies recursively?

2008-10-06 Thread Baptiste MATHUS
What's the output of "mvn dependency:tree", does the tree you see correctly
display the dependency you're expecting?

Cheers

2008/10/4 youhaodeyi <[EMAIL PROTECTED]>

>
> I have checked the P2 and it can be built successfully.
>
>
> Jörg Schaible-2 wrote:
> >
> > youhaodeyi wrote:
> >
> >>
> >> I didn't define the scope. It should be the default value.
> >
> > Then something is wrong with your POM for P2 ...
> >
> >>
> >> Wendy Smoak-3 wrote:
> >>>
> >>> On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi <[EMAIL PROTECTED]>
> wrote:
>  I set up a maven project "P1" which depends on the project "P2". P2
>  includes
>  several dependencies which are used in P1. In this case, I must add
>  these dependencies in P1 too. If not, I will fail to build P1. How can
>  I
>  let maven
>  deal with this recursive dependencies?
> >>>
> >>> How are the dependencies declared in P2?  If they are in the default
> >>> compile scope, they should be transitive (so P1 should compile.)
> >>>
> >>> --
> >>> Wendy
> >>>
> >>> -
> >>> 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/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19809831.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]
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Can't Maven handle dependendies recursively?

2008-10-06 Thread Baptiste MATHUS
What's the output of "mvn dependency:tree", does the tree you see correctly
display the dependency you're expecting?

2008/10/4 youhaodeyi <[EMAIL PROTECTED]>

>
> I have checked the P2 and it can be built successfully.
>
>
> Jörg Schaible-2 wrote:
> >
> > youhaodeyi wrote:
> >
> >>
> >> I didn't define the scope. It should be the default value.
> >
> > Then something is wrong with your POM for P2 ...
> >
> >>
> >> Wendy Smoak-3 wrote:
> >>>
> >>> On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi <[EMAIL PROTECTED]>
> wrote:
>  I set up a maven project "P1" which depends on the project "P2". P2
>  includes
>  several dependencies which are used in P1. In this case, I must add
>  these dependencies in P1 too. If not, I will fail to build P1. How can
>  I
>  let maven
>  deal with this recursive dependencies?
> >>>
> >>> How are the dependencies declared in P2?  If they are in the default
> >>> compile scope, they should be transitive (so P1 should compile.)
> >>>
> >>> --
> >>> Wendy
> >>>
> >>> -
> >>> 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/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19809831.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]
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: "Couldn't find a version" error

2008-10-06 Thread Baptiste MATHUS
What's the maven version you're using? Did you check that using the full
version name resolved the artifact? That's the first thing I'd do.

If it's OK, then try having more information using mvn -X (debugging) and
filing an issue in the tracker.

You could also try and understand the pb by reading the maven default
versioning code:
http://svn.apache.org/viewvc/maven/artifact/trunk/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java?view=markup

Cheers.

2008/10/5 buters <[EMAIL PROTECTED]>

>
> Hi all,
>
> http://www.nabble.com/file/p19825141/rcp_err.png
>
> There is org.eclipse.equinox.registry-3.4.0-v20080516-0950.jar In my local
> repository.
> There is one dependency in its pom.xml:
>  
>
>  org.eclipse.equinox
>  common
>  [3.2.0,4.0.0)
>
>  
>
> The question: where should I search for [3.2.1-R32x_v20060814,
> 3.3.0-v20070522] and [3.4.0,4.0.0)???
> :confused::confused::confused:
>
> Thanks beforehand,
> regards, buters
> --
> View this message in context:
> http://www.nabble.com/%22Couldn%27t-find-a-version%22-error-tp19825141p19825141.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]
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


Re: Problem when mvn site:site `Generating "Dependencies" report'

2008-10-06 Thread Baptiste MATHUS
Check that the file is not corrupted: use the sha1 or md5 from the central
repo to check the one you downloaded matches.
You can delete the local file if it was download and have a look if there's
a warning when downloading it.

Cheers.

2008/10/6 qrtt1 <[EMAIL PROTECTED]>

>
> Hello,
>
> I try use maven site plugin and it can generate project site well, but
> something wrong with dependencies report. there are some message :
>
> =
> [INFO] Generating "Plugin Management" report.
> [INFO] Generating "Mailing Lists" report.
> [INFO] Generating "Continuous Integration" report.
> [INFO] Generating "Project License" report.
> [INFO] Generating "Project Team" report.
> [INFO] Generating "Source Repository" report.
> [INFO] Generating "Issue Tracking" report.
> [INFO] Generating "Project Summary" report.
> [INFO] Generating "Project Plugins" report.
> [INFO] Generating "Dependencies" report.
> [WARNING] Unable to process class
> com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in JarAnalyzer File
> C:\Documents and
> Settings\qty\.m2\repository\com\ibm\icu\icu4j\2.6.1\icu4j-2.6.1.jar
> org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in
> constant
> pool: 60
>at
> org.apache.bcel.classfile.Constant.readConstant(Constant.java:146)
>at
> org.apache.bcel.classfile.ConstantPool.(ConstantPool.java:67)
>at
>
> org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:222)
>at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136)
>at
>
> org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClassesAnalysis.java:92)
>at
>
> org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarDependencyDetails(Dependencies.java:285)
>at
>
> org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.hasSealed(DependenciesRenderer.java:1278)
>at
>
> org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderSectionDependencyFileDetails(DependenciesRenderer.java:423)
>at
>
> org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRenderer.renderBody(DependenciesRenderer.java:268)
>at
>
> org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMavenReportRenderer.java:65)
>at
>
> org.apache.maven.report.projectinfo.DependenciesReport.executeReport(DependenciesReport.java:239)
>at
>
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:90)
>at
>
> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:139)
>at
>
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
>at
>
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
>at
> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)
>at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)
>at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:597)
>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)
>
> =
>
>
> some JARs are unanalyzed. I try use mvn dpenedency:tree to see any problem
> with dependencies and everything is ok. Someone can tell me how to exclude
> JARs in dependenc

pass extra parameters to idlj plugin

2008-10-06 Thread maarten roosendaal
Hi,

We're moving a Java project from ANT to Maven 2 and part of this transition is 
the use of idlj. The current ant target looks like this:
 
We are trying to use the codehaus idlj plugin but we can't pass a parameter 
through the plugin. We need to pass -fallTie as a param to this plugin. 
 
Is there anyone who has used this plugin and/or knows a solution to this 
besides downloading and changing the sourcecode?
 
Thanks,
Maarten    


  

Re: Problem when mvn site:site `Generating "Dependencies" report'

2008-10-06 Thread qrtt1

Hi Wayne,

Thanks for your suggestion.

but it's not a direct dependency.

jaxen use xom and xom use icu4j. 

Maybe just ignore the warnings and errors.


Wayne Fay wrote:
> 
> As I suspected, there are several newer versions (3.4.4, 3.6.1, 3.8):
> http://repo1.maven.org/maven2/com/ibm/icu/icu4j/
> 
> Try the latest v3.8 instead.
> 
> Wayne
> 
> On Sun, Oct 5, 2008 at 11:44 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> It appears this class/jar is the source of your problems. Perhaps IBM
>> has a newer version of icu4j?
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-when-mvn-site%3Asite-%60Generating-%22Dependencies%22-report%27-tp19831145p19834001.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]



Re: mysterious assembly-plugin

2008-10-06 Thread Wolfgang22

With the includes something is found now. 
However, with my multi-module project, I put only one assembly descriptor
file alongside with the top- pom.xml in D:\projekte\core. During execution
of maven on this pom, the submodules are traversed and I get the error:
Error locating assembly descriptor file:
D:\projekte\core\database\product\assembly-descriptor.xml. It seems the
plugin searches the descriptor file not in an absolute path but relative to
the sub-module pom files. Do I really have to copy the descriptor file
redundantly into every submodule?


Lee Meador-3 wrote:
> 
> Try filling in a bit more in your xml file.
> 
> Also use the information at
> http://maven.apache.org/plugins/maven-assembly-plugin/usage.html and go
> down
> to the example below the heading "Normal Assemblies" to see how the pom
> should look.
> 
> Your  parts should look like this:
> 
>  
> src/main/properties/development
> dev
> 
> *.properties
> *.xml
> 
> 
> 
>  is where in your maven project you are getting the files. If
> you
> put a dot only, it will use the ${basedir} the same folder where you
> normally put your pom.
> 
>  defines a folder in the generated zip, tar.gz, etc.
> 
> And you need the includes to specify some files that go into the generated
> archive. You may want some excludes to tell it to get all but some files.
> 
> --Lee
> 
> On Thu, Oct 2, 2008 at 2:59 AM, <[EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> I have great problems to solve a simple requirement with Maven2. I have
>> a Maven project with several sub-modules. Each submodule has its own
>> config- and install files. I want to distribute and deploy these files
>> together with its respective submodule artefact. The assembly-plugin
>> seems to be appropriate for this task but as I made always the
>> experience up to now with nearly every Maven functionality, it does not
>> work as expected and documented and error messages are mysterious.
>> Furthermore it is very hard to understand the different goals and
>> parameters of assembly-plugin and from where does it count paths.
>>
>>
>>
>> I defined the plugin in my parent pom:
>>
>>
>>
>>  
>>
>>maven-assembly-plugin
>>
>>
>>
>>  
>>
>>assembly-descriptor.xml
>>
>>  
>>
>>  
>>
>>
>>
>>
>>
>>  
>>
>>make-assembly
>>
>>package
>>
>>
>>
>>  single
>>
>>
>>
>>  
>>
>>
>>
>>  
>>
>>
>>
>> I defined the descriptor:
>>
>>
>>
>> 
>>
>>  install
>>
>>  
>>
>>zip
>>
>>  
>>
>>  
>>
>>
>>
>>  src/main/install
>>
>>  
>>
>>
>>
>>  
>>
>>  
>>
>>
>>
>>  readme.txt
>>
>>  
>>
>>
>>
>>  
>>
>> 
>>
>>
>>
>> I have modified these two in any possible way, I tried also goal
>> attached but when I execute mvn install I always get the error: you must
>> set at least one file.
>>
>>
>>
>> [DEBUG] Configuring mojo
>> 'org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-1:single' with
>> basic configurator -->
>>
>> [DEBUG]   (s) appendAssemblyId = true
>>
>> [DEBUG]   (f) attach = true
>>
>> [DEBUG]   (s) basedir = D:\projekte\core
>>
>> [DEBUG]   (s) descriptors = [Ljava.io.File;@1742c56
>>
>> [DEBUG]   (s) filters = []
>>
>> [DEBUG]   (s) finalName = core-0.0.2-SNAPSHOT
>>
>> [DEBUG]   (s) includeSite = false
>>
>> [DEBUG]   (s) localRepository = [local] ->
>> file://D:\projekte\maven-repository
>>
>> [DEBUG]   (s) outputDirectory = D:\projekte\core\target
>>
>> [DEBUG]   (f) project = MavenProject: net.atos.wlp:core:0.0.2-SNAPSHOT @
>> D:\projekte\core\pom.xml
>>
>> [DEBUG]   (s) reactorProjects = [MavenProject:
>> net.atos.wlp:plugin-setproperties:0.0.2 @
>> D:\projekte\core\plugin-setproperties\pom.xml, MavenProject:
>> net.atos.wlp:grandparent-pom:0.0.2 @
>> D:\projekte\core\grandparent-pom\pom.xml, MavenProject:
>> net.atos.wlp:core-install:0.0.2-SNAPSHOT @
>> D:\projekte\core\install\pom.xml, MavenProject:
>> net.atos.wlp:plugin-jbossinstall:0.0.2-SNAPSHOT @
>> D:\projekte\core\plugin-jbossinstall\pom.xml, MavenProject:
>> net.atos.wlp:core:0.0.2-SNAPSHOT @ D:\projekte\core\pom.xml,
>> MavenProject: net.atos.wlp:core-database:0.0.2-SNAPSHOT @
>> D:\projekte\core\database\product\pom.xml, MavenProject:
>> net.atos.wlp:core-config:0.0.2-SNAPSHOT @
>> D:\projekte\core\config\product\pom.xml, MavenProject:
>> net.atos.wlp:core-template:0.0.2-SNAPSHOT @
>> D:\projekte\core\template\pom.xml, MavenProject:
>> net.atos.wlp:core-translation:0.0.2-SNAPSHOT @
>> D:\projekte\core\translation\product\pom.xml, MavenProject:
>> net.atos.wlp:plugin-translationimport:0.0.2-SNAPSHOT @
>> D:\projekte\core\plugin-translationimport\pom.xml, MavenProject:
>> net.atos.wlp:plugin-blobloader:0.0.2-SNAPSHOT @
>> D:\projekte\core\plugin-blobloader\pom.xml, MavenProject:
>> net.atos.wlp:parent-pom:0.0.2-SNAPSHOT @
>> D:\projekte\core\parent-pom\pom.xml, M

Can maven generate this kind report?

2008-10-06 Thread 陈思淼
I got this report page from maven.apache.org. how to generate it?
http://maven.apache.org/maven-1.x/plugins/jira/changes-report.html


Re: zip instead of jar

2008-10-06 Thread buters

Thank you, Wendy, very much.

I've not tried yet. I do it later, now I have no time.

Best Regards, buters


Wendy Smoak-3 wrote:
> 
> On Sun, Oct 5, 2008 at 4:55 PM, buters <[EMAIL PROTECTED]> wrote:
> 
>> how can I create a zip-Archive instead of jar-one with Maven?
> 
> You can use the Assembly plugin [1] to create zip files.
> 
> ... and you might want to keep an eye on MNG-1683 [2] which adds zip
> as a packaging type.
> 
> [1] http://maven.apache.org/plugins/maven-assembly-plugin
> [2] http://jira.codehaus.org/browse/MNG-1683
> 
> -- 
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/zip-instead-of-jar-tp19830308p19833638.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]



AW: from workaround to workaround 3

2008-10-06 Thread Wolfgang.Winter

I tried everything now: set activeByDefault to true, delete
activeByDefault entirely, delete the activeProfiles section, refreshed
the settings in Eclipse (what gives the error: 
Error on adding indexing context local; Cannot find file
D:\projekte\.metadata\.plugins\org.maven.ide.eclipse\nexus\local\_y.fnm
)

always same result: when I execute help:active-profiles on the top-pom
'There are no active profiles'.
I am absolutely frustrated with Maven.

 

I'm pretty sure activeByDefault is not used in settings, this is for the
pom only. That's what the activeProfiles section is for.

-Original Message-
From: Stephen Connolly [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 05, 2008 6:27 AM
To: Maven Users List
Subject: Re: from workaround to workaround 3

On Fri, Sep 5, 2008 at 9:45 AM, <[EMAIL PROTECTED]> wrote:

> >
> > By the way, the settings.xml contains this:
> >   
> > jboss
> > 
> >
>
>
> You need to change this to
>
>  true
>
> as
>
> assert "true".equalsIgnoreCase("") == false;
>
>
> > 
> > 
> >oracle.jdbc.driver.OracleDriver
> >ing_epa
> >ing_epa
> >jdbc:oracle:thin:@deneb:1521:WLP
> >...
> > 
> >   
> >  
> >
> >  
> >jboss
> >  
> >
>
> [Winter, Wolfgang] okay, maybe. But I activated the profile explicitly
> in the last line! Please excuse me when I criticize, but for me this
is
> bad design. This is not what a dumb user like me expects, regardless
of
> the setting of 


Actually no, when you specify  (that is equivalent to
false) which AFAIK is overriding the
 section.

If you had removed the  entirely it would be active

-Stephen

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