Re: Filtering in assembly plugin (2.2-beta-2 and 2.2)

2010-10-22 Thread Aleksey Didik
Looks like we need create an issue into Maven Jira and post our cases to it.
I'll do it tomorrow if no one answer.
Please vote for this issue :)

Aleksey.

2010/10/22 Simone Tripodi simone.trip...@gmail.com

 Hi all,
 I'm facing same problem, but what happens is that there are properties
 filtered correctly and some others not O_o
 Any hint?
 Simo

 http://people.apache.org/~simonetripodi/
 http://www.99soft.org/



 On Thu, Oct 21, 2010 at 7:08 PM, Jon Paynter kittl...@gmail.com wrote:
  On Thu, Oct 21, 2010 at 4:08 AM, Aleksey Didik
  aleksey.di...@maxifier.comwrote:
 
  Hello all!
 
  I have used maven-assembly-plugin 2.2-beta-2 before and have those lines
 in
  my descriptor:
 
  files
  file
  source${basedir}/src/scripts/python/updater.py/source
  outputDirectory//outputDirectory
  filteredtrue/filtered
  /file
  /files
 
  Filtering works right, I have got real project version instead of
  ${project.version}.
 
  After switch to the version 2.2, plugin not filter necessary file
 (declared
  into snippet above). All $properties stay unfiltered.
 
  Is something change between versions?
 
  And one more question, is it possible to use filtered for file sets
 into
  fileSets?
 
  In assembly descriptor description are wrote:
   filtered boolean Whether to filter symbols in the files as they are
  copied, using properties from the build configuration. (Since 2.2)
  *Default value is*: false.
 
  But into Filtering Some Distribution Files topic are wrote: Filtering
 is
  only enabled inside files so that's what we will use.
 
  Could anybody clear the situation?
 
 
  Im seeing the same behavior - using 2.2-beta-5 filtering is fine, but
 when I
  change to 2.2, filtering seems to be disabled across the board.
 
  assembly descriptor snippet:
  fileSet
  directoryconfig/app_config/vpp/directory
  outputDirectoryconfig/outputDirectory
  filteredtrue/filtered
  lineEndingunix/lineEnding
  /fileSet
 
  using 2.2, I get this in my output directory:
  var name=LOG_ENABLED value=${FW_LOG_ENABLED} /
 
  using 2.2-beta-5, I get this in my output directory:
  var name=LOG_ENABLED value=true /
 
  The only change I did was to edit the version tag for the assembly
 plugin
  in my top level pom.
 

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




Filtering in assembly plugin (2.2-beta-2 and 2.2)

2010-10-21 Thread Aleksey Didik
Hello all!

I have used maven-assembly-plugin 2.2-beta-2 before and have those lines in
my descriptor:

files
file
source${basedir}/src/scripts/python/updater.py/source
outputDirectory//outputDirectory
filteredtrue/filtered
/file
/files

Filtering works right, I have got real project version instead of
${project.version}.

After switch to the version 2.2, plugin not filter necessary file (declared
into snippet above). All $properties stay unfiltered.

Is something change between versions?

And one more question, is it possible to use filtered for file sets into
fileSets?

In assembly descriptor description are wrote:
filteredbooleanWhether to filter symbols in the files as they are copied,
using properties from the build configuration. (Since 2.2)
*Default value is*: false.

But into Filtering Some Distribution Files topic are wrote: Filtering is
only enabled inside files so that's what we will use.

Could anybody clear the situation?

Best regards.
-- 

*Aleksey Didik,*

Solution Architect



Tel (Office): + 7 846 342 51 74 ext.242
Mob: +7 927 730 76 43
Skype ID: aleksey.didik





*Maxifier - AOP Technology Award Winner 2010*



*Maxifier is a division of Magenta Corporation Ltd*





*Confidential and/or legally privileged information may be in this email,
which only the intended addressee(s) may access.  If you have received this
email in error, please inform us immediately and delete all copies from your
system.  Magenta Corporation Limited uses anti-virus systems but can take no
responsibility for any viruses which attach to this email.*


Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik

 Hello.

Could anyone tell me the difference between 
org.codehaus.*mojo*::sonar-maven-plugin and 
org.codehaus.*sonar*::sonar-maven-plugin?


Looks like I have lost a little.

Thanks,
Aleksey.


13.09.2010 19:24, Simon Brandhof пишет:

The Mojo team is pleased to announce the release of Sonar Maven Plugin,
version 1.0-beta-2.
It makes configuration easier when using a repository manager like Archiva
or Nexus. Indeed no additional settings are required anymore ! Let's remind
that the version 1.0-beta-1 needs to declare a mirror in maven settings.

This improvement requires Sonar 2.2+. It is automatically disabled when
using sonar 2.1 or less. Upgrading to this version should be automatic if
the shortcut mvn sonar:sonar is used.

Simon Brandhof





Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik
 Also I have error when trying to use 1.0-beta-2 plugin in combination 
with sonar 2.2.


[INFO] org.sonar.api.resources.Languages has unsatisfied dependency: 
class [Lorg.sonar.api.resources.Language; among unsatisfiable 
dependencies: [[class [Lorg.sonar.api.resources.Language;]] where 
org.picocontainer.defaultpicocontai...@d3f189:117Iorg.picocontainer.defaultpicocontai...@18efd7c:8Iorg.picocontainer.defaultpicocontai...@1c8c58:18| 
was the leaf container being asked for dependencies.
[INFO] 


[INFO] Trace
org.picocontainer.injectors.AbstractInjector$UnsatisfiableDependenciesException: 
org.sonar.api.resources.Languages has unsatisfied dependency: class 
[Lorg.sonar.api.resources.Language; among unsatisfiable dependencies: 
[[class [Lorg.sonar.api.resources.Language;]] where 
org.picocontainer.defaultpicocontai...@d3f189:117Iorg.picocontainer.defaultpicocontai...@18efd7c:8Iorg.picocontainer.defaultpicocontai...@1c8c58:18| 
was the leaf container being asked for dependencies.
at 
org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:188)
at 
org.picocontainer.injectors.ConstructorInjector.getGreediestSatisfiableConstructor(ConstructorInjector.java:110)
at 
org.picocontainer.injectors.ConstructorInjector.access$100(ConstructorInjector.java:51)
at 
org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:308)
at 
org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:274)
at 
org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:341)
at 
org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
at 
org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
at 
org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
at 
org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:689)
at 
org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:638)
at 
org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:663)

at org.sonar.batch.ProjectBatch.getComponent(ProjectBatch.java:131)
at 
org.sonar.batch.ProjectBatch.startChildContainer(ProjectBatch.java:94)

at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:49)
at org.sonar.batch.Batch.analyzeProject(Batch.java:112)
at org.sonar.batch.Batch.analyzeProject(Batch.java:109)
at org.sonar.batch.Batch.analyzeProjects(Batch.java:81)
at org.sonar.batch.Batch.execute(Batch.java:57)
at org.sonar.maven.SonarMojo.executeBatch(SonarMojo.java:142)
at org.sonar.maven.SonarMojo.execute(SonarMojo.java:133)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

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)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)




14.09.2010 13:00, Aleksey Didik пишет:

 Hello.

Could anyone tell me the difference

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:115)




14.09.2010 13:00, Aleksey Didik пишет:

   Hello.

Could anyone tell me the difference between
org.codehaus.*mojo*::sonar-maven-plugin and
org.codehaus.*sonar*::sonar-maven-plugin?

Looks like I have lost a little.

Thanks,
Aleksey.


13.09.2010 19:24, Simon Brandhof пишет:


The Mojo team is pleased to announce the release of Sonar Maven Plugin,
version 1.0-beta-2.
It makes configuration easier when using a repository manager like
Archiva
or Nexus. Indeed no additional settings are required anymore ! Let's
remind
that the version 1.0-beta-1 needs to declare a mirror in maven settings.

This improvement requires Sonar 2.2+. It is automatically disabled when
using sonar 2.1 or less. Upgrading to this version should be automatic if
the shortcut mvn sonar:sonar is used.

Simon Brandhof





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





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



Re: Maven parent classpath issues

2010-08-26 Thread Aleksey Didik

 Hello.

Use ${basedir}/src/main/jibx/customization.xml instead your variant.

By default work directory is a directory when you start mvn.
Always use ${basedir} before you relative file paths.

hth,
Aleksey.

26.08.2010 15:51, nishant@hsbcib.com ?:

src/main/jibx/customization.xml f




Re: Passing command line arguments to surefire plugin

2010-08-04 Thread Aleksey Didik

 Hi,
By default, surefire works in fork mode 'once' (new JVM) and all 
arguments passed from command line via Hudson will be available in base 
maven process,

but not in surefire process.

Try to use forkModenever/frokMode.

hth,
Aleksey.


04.08.2010 15:09, Taariq Levack пишет:

Hi

My surefire configuration contains the following snippet...
configuration
   systemPropertyVariables
 org.apache.cocoon.modedev/org.apache.cocoon.mode

This works fine to set the system property -Dorg.apache.cocoon.mode=dev,
but what I really want is for the build deployer to set or override that 
property using a command line argument via Hudson
so he can deploy to different environments with a different argument.

If I run Maven from command line and pass in that argument or any other it 
doesn't reach Surefire, so the question is how to get
properties passed along to Surefire?

Thanks,
Taariq Levack




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



Re: looks for manually installed in all remote repositories

2010-07-30 Thread Aleksey Didik

 Hi, Likin.

Is this dependency SNAPSHOT or not?

Aleksey.

30.07.2010 12:36, Lukin пишет:

Hi,
I have defined additional repositories in my settings.xml - works OK.
I have manually installed one dependency - OK (it is in my .m2 directory).
Problem is, that this dependency is always looked for in all of those
additional repositories and Maven complains Unable to find resource 

Build process is slow because of this.

Can I tell Maven not to look for this dependency in remote repositories?
Anyway, I thought, Maven searches local repository first and it should find
it there.

Thank you for any help,

Lukas



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



Re: maven release plugin not updating sub-module dependencies

2010-07-08 Thread Aleksey Didik

 Hello, Rick.
Please, clarify, how do you define submodule dependency?
Do you use dependecyManagement section in parent pom with 
${project.version} property?


Best regards,
Aleksey Didik.


08.07.2010 2:34, DeGrande, Rick пишет:

I have a multi--module configuration.  the directory structure is:

aggregate
ejb
war

The war file includes the ejb as a dependency.  When I do a
release:prepare -DdryRun maven generates the pom.xml.tag correctly but
it doesn't update the sub module dependencies in the pom.xml.next.  How
do I get it to update the sub-module dependencies ?



thanks




-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.



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



Re: Finding out the dependencies of an (arbitrary) artifact

2010-07-08 Thread Aleksey Didik

 Hello Christoph,

Try to use mvnrepositry.com.

For example:

http://mvnrepository.com/artifact/org.sonatype.tycho/tycho-compiler-jdt/0.9.0

HTH,
Aleksey Didik.

08.07.2010 11:20, Christoph Kutzinski пишет:

Hi,

I thought this would be a no brainer, but suprisingly I found no answer to this 
so far:
How can I find out the dependencies of an arbitrary artifact (say 
org.sonatype.tycho:tycho-compiler-jdt)?

BTW:
yes, I know there's a workaround: Add it as a dependency to a POM and run mvn 
dependency:tree
But I thought there would be an easier way.


Christoph

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




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



Re: maven release plugin not updating sub-module dependencies

2010-07-08 Thread Aleksey Didik

 Hello Rick.

In this case release will not change dependencies versions, because 
maven have no difference between external artifact and module artifact.
My suggestion is to use ${project.version} and dependencyManagement 
for cross module dependencies.


hth,
Aleksey Didik.

08.07.2010 17:59, DeGrande, Rick пишет:

No, I was thinking about doing that, but I have the dependencies in the sibling 
poms.  I'm not using the ${project.version} in these poms.  I just have the 
SNAPSHOT version specified on the sibling dependencies.


Thanks
Rick

-Original Message-
From: Aleksey Didik [mailto:di...@magenta-technology.ru]
Sent: Thursday, July 08, 2010 1:14 AM
To: Maven Users List
Subject: Re: maven release plugin not updating sub-module dependencies


   Hello, Rick.
Please, clarify, how do you define submodule dependency?
Do you usedependecyManagement  section in parent pom with
${project.version} property?

Best regards,
Aleksey Didik.


08.07.2010 2:34, DeGrande, Rick пишет:

I have a multi--module configuration.  the directory structure is:

aggregate
ejb
war

The war file includes the ejb as a dependency.  When I do a
release:prepare -DdryRun maven generates the pom.xml.tag correctly but
it doesn't update the sub module dependencies in the pom.xml.next.  How
do I get it to update the sub-module dependencies ?



thanks




-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.


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




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



Re: maven release plugin not updating sub-module dependencies

2010-07-08 Thread Aleksey Didik

 Rick, see comments below.


I thought it would update the sibling modules based on the modules included in 
the parent pom. It updates the sibling dependencies when it changes the tagged 
version just not the next version.
Look like I've not clear understood release process with sibling 
dependencies. If it updates when it changes the tagged version, but not 
updates next version, it looks like an issue...



So you're saying move the sibling dependencies to the dependencyManagement and 
use ${project.version}, or just use ${project.version} in the sibling poms 
instead of using the X.X-SNAPSHOT version ??


By the way, I use ${project.version}-dependencyManagement way in all 
my projects and it's fully cover all necessities.


If you will use ${project.version} instead of using X.X-SNAPSHOT 
version, it could make some troubles, because ${project.version} 
property for current pom (module) is this module version. And if you 
associate dependency version with current module version/ it could be 
not good.


I use this way:

*parent pom.xml:*

version 1.0-SNAPSHOT /version

/modules
modulea-module/module
moduleb-module/module
/modules

dependencyManagement
dependencies
dependency
groupId.../groupId
artifactIda-module/artifactId
version${project.version}/version
/dependency
dependencies
/dependencyManagement/

*b-module pom.xml:*

/ dependencies
dependency
groupId.../groupId
artifactIda-module/artifactId
/dependency
dependencies/

In this variant I'm using the same version for all modules in my project 
and all sibling modules depends on each other by project version of 
parent module.
Release plugin update only module version, not dependency versions. All 
dependency versions will be updated automatically by using 
dependencyManagement section and ${project.version} property.
It's usable in most projects, than have no necessity to have different 
versions of project modules.


In this case also usable to set 
/autoVersionSubmodulestrue/autoVersionSubmodules/ in release plugin 
configuration.
It help you to input release and next version only for parent module, 
sibling modules will use the same version.


Hope this help,
Aleksey.










Re: Building the same project with 2 different pom.xml

2010-07-07 Thread Aleksey Didik

 Hello.

It's not clear why do you want to use two different poms,
but I can suggest, you have two different build cycle.
For example one for build on local machine, second for you continuum.
But in this case, the better solution is to use maven profiles. And you 
will have possibility to choose necessary profile by flag -P or by 
properties (and not only) activators.


Read more here: 
http://maven.apache.org/guides/introduction/introduction-to-profiles.html


HTH,
Aleksey.


07.07.2010 16:30, govind ashrit пишет:

Hello All

I have project which i want build with 2 different pom.xml . one after the
other

I have tried the mvn command line option like *mvn -f ./pom1.xml
install -e*which works fine.
Actually i have multi level projects which have build using continuum.

Is there any way i specify in my parent pom.xml to build the child project
with 2 different pom's


Some things like this : Parent pom.xml

.
modules
 moduleChild Project/module
   /modules


And i want to build child project with 2 different pom's(say pom1.xml and
pom2.xml which are @ root of child project)

Please help





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



Put applet jar to WAR root

2010-05-17 Thread Aleksey Didik

Hello all,
I need to put the applet jar to my WAR root folder.
Applet jar are developed in the same project, just another module.
I define applet jar as module dependency, but in this case it was put in 
WEB-INF/lib.
Is at possible to make some mapping to put this jar to root folder? And 
use outputFileMapping in the same time.

I use maven-war-plugin.

Thanks,
Aleksey.

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



Re: Using Maven without internet access

2010-05-17 Thread Aleksey Didik

Use mirror settings in settings.xml.

It make you possible to redirect every maven request to you local repo.

http://maven.apache.org/guides/mini/guide-mirror-settings.html

hth,
Aleksey

17.05.2010 15:07, Kenneth Petersen пишет:

I think my first mail was lost, so here I go again...

I am new to Maven, so if the answer is simple, I apologies.

I am trying to use Maven on a network with firewall restrictions disallowing 
Maven access to the different remote internet repositories. Therefore I need to 
install a Maven remote repository within the network, and have all Maven 
plug-in retrieved from this server.

For testing purposes, I have installed a Tomcat server on localhost, and added 
the artifactory.war file.

After installion artifactory, I have downloaded the following plug-in
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar
and deployed it in Artifactory.

In order to get Maven to use the remote repository running in Tomcat, I have 
added the following snippet to my pom.xml
repositories
   repository
 releases
   enabledfalse/enabled
   updatePolicyalways/updatePolicy
   checksumPolicywarn/checksumPolicy
 /releases
 snapshots
   enabledtrue/enabled
   updatePolicynever/updatePolicy
   checksumPolicyfail/checksumPolicy
 /snapshots
 idLPK/id
 nameLPK Repository/name
 urlhttp://localhost:8080/artifactory/url
 layoutdefault/layout
   /repository
/repositories

I expected this to tell Maven not to use the standard remote repositories, but 
use my local version.

When I now execute mvn package, I get the following message:

[INFO] Scanning for projects...
[INFO] 
[INFO] Building FutoramaUtil
[INFO] task-segment: [package]
[INFO] 
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 
'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository 
central (http://repo1.maven.org/maven2): Error transferring file: Connection 
timed out: connect
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
[WARNING] Unable to get resource 
'org.apache.maven.plugins:maven-resources-plugin:pom:2.3' from repository 
central (http://repo1.maven.org/maven2): Error transferring file: Connection 
timed out: connect
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).

Project ID: org.apache.maven.plugins:maven-resources-plugin

Reason: POM 'org.apache.maven.plugins:maven-resources-plugin' not found in 
repository: Unable to download the artifact from any repository

org.apache.maven.plugins:maven-resources-plugin:pom:2.3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  LPK (http://localhost:8080/artifactory)

for project org.apache.maven.plugins:maven-resources-plugin
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 43 seconds
[INFO] Finished at: Mon May 17 11:35:46 CEST 2010
[INFO] Final Memory: 1M/15M

 From this I conclude that I did not succeed in telling Maven to use my 
central repository. Where do I tell Maven to only use the localhost repository?



Best regards

Kenneth Petersen

   



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



Re: integration problem

2010-04-23 Thread Aleksey Didik

Ah, my fault.

Try to use.

mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.2.GA -DgroupId=org.docs.richfaces
-DartifactId=jsf-app 
-DarchetypeRepository=http://repository.jboss.org/maven2


Aleksey.

23.04.2010 10:21, pankjajain15 пишет:

i did it as you said but now  it showing me following errors

C:\projectmvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchetyp
eArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2-GA
-DgroupId=org.
docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbos
s.org/maven2
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO]

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on =  'false'.
[INFO] Setting property: resource.loader =  'classpath'.
[INFO] Setting property: resource.manager.logwhenfound =  'false'.
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] Archetype defined by properties
Downloading:
http://repository.jboss.org/maven2/org/richfaces/cdk/maven-archetyp
e-jsfwebapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.2-GA' in repository maven-archetype-jsfwebapp-repo
(http://repository.jboss.
org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.2-GA/maven-archetype-jsfwebapp-3.3.2-GA.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.2-GA' in repository central (http://repo1.maven.org/maven2)
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] The desired archetype does not exist
(org.richfaces.cdk:maven-archetype-j
sfwebapp:3.3.2-GA)
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Apr 23 11:47:50 IST 2010
[INFO] Final Memory: 8M/21M
[INFO]

C:\project
   



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



Re: integration problem

2010-04-23 Thread Aleksey Didik

Please, send to me a command from console?
Maven try to use SNAPSHOT versions. It's strange.

23.04.2010 15:39, pankjajain15 пишет:


ya i tried your command, but again foung following error

--
1) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=org.richfaces.framework
-DartifactId=rich
faces-api -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[u
rl] -DrepositoryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT

2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.richfaces.framework
-DartifactId=ri
chfaces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=org.richfaces.framework
-DartifactId=rich
faces-impl -Dversion=3.3.3-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
-Durl=[
url] -DrepositoryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT

3) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces
-ui -Dversion=3.3.2.GA -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=org.richfaces.ui
-DartifactId=richfaces-u
i -Dversion=3.3.2.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-Dreposito
ryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) org.richfaces.ui:richfaces-ui:jar:3.3.2.GA

4) el-impl:el-impl:jar:1.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=
1.0 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=el-impl -DartifactId=el-impl
-Dversion=1.
0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) el-impl:el-impl:jar:1.0

5) javax.faces:jsf-api:jar:1.2_12

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dvers
ion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-api
-Dversio
n=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) javax.faces:jsf-api:jar:1.2_12

6) javax.faces:jsf-impl:jar:1.2_12

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dver
sion=1.2_12 -Dpackaging=jar -Dfile=/path/to/file

   Alternatively, if you host your own repository you can deploy the file
there:

   mvn deploy:deploy-file -DgroupId=javax.faces -DartifactId=jsf-impl
-Dversi
on=1.2_12 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]

   Path to dependency:
 1) org.docs.richfaces:jsf-app:war:3.3.3
 2) javax.faces:jsf-impl:jar:1.2_12

--
6 required artifacts are missing.

for artifact:
   org.docs.richfaces:jsf-app:war:3.3.3

from the specified remote repositories:
   central (http://repo1.maven.org/maven2)



[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 12 seconds
[INFO] Finished at: Fri Apr 23 16:39:44 IST 2010
[INFO] Final Memory: 7M/18M
[INFO]

C:\sample\jsf-app


   



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

Re: integration problem

2010-04-23 Thread Aleksey Didik

Ok, I undertsand.

Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.

Try to change previously added profiles section to listed below and 
try again with command.


profiles
profile
idjboss-repo/id
repositories
repository
idjboss/id
urlhttp://repository.jboss.org/maven2/url
releasesenabledtrue/enabled/releases
snapshotsenabledfalse/enabled/snapshots
/repository
/repositories
/profile

profile
idjboss-repo-snapshots/id
repositories
repository
idjboss-snapshots/id
urlhttp://snapshots.jboss.org/maven2//url
releasesenabledfalse/enabled/releases
snapshotsenabledtrue/enabled/snapshots
/repository
/repositories
/profile
/profiles
activeProfiles
activeProfilejboss-repo/activeProfile
activeProfilejboss-repo-snapshots/activeProfile
/activeProfiles




23.04.2010 16:11, pankjajain15 пишет:


i used same command as u told me

the command is as follow
C:\sample2mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2
   



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



Re: integration problem

2010-04-23 Thread Aleksey Didik

Ok, I have capitulated.

Sorry pankjajain, but it's much difficult to start maven project then 5 
minute install.
Maven environment need to be configured. Different repositories must be 
added to your configuration.

Try to read what Maven is. It will lead your to the right way.

By the way, try to change archetype version in command to earlier, like

3.3.1.GA
3.3.0.GA
3.2.2.GA
3.3.1.GA

May be the luck will be with you in one moment and this version of archetype 
will use only releases...

Aleksey.




23.04.2010 16:34, pankjajain15 пишет:

till it is asking for snapshot version



Aleksey Didik wrote:
   

Ok, I undertsand.

Looks like this archetype is quite difficult as I think before.
You need to add JBoss Snapshot repo to you maven settings.xml.

Try to change previously addedprofiles  section to listed below and
try again with command.

profiles
profile
idjboss-repo/id
repositories
repository
idjboss/id
urlhttp://repository.jboss.org/maven2/url
releasesenabledtrue/enabled/releases
snapshotsenabledfalse/enabled/snapshots
/repository
/repositories
/profile

profile
idjboss-repo-snapshots/id
repositories
repository
idjboss-snapshots/id
urlhttp://snapshots.jboss.org/maven2//url
releasesenabledfalse/enabled/releases
snapshotsenabledtrue/enabled/snapshots
/repository
/repositories
/profile
/profiles
activeProfiles
activeProfilejboss-repo/activeProfile
activeProfilejboss-repo-snapshots/activeProfile
/activeProfiles




23.04.2010 16:11, pankjajain15 пишет:
 

i used same command as u told me

the command is as follow
C:\sample2mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darchety
peArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.2.GA
-DgroupId=org
.docs.richfaces -DartifactId=jsf-app
-DarchetypeRepository=http://repository.jbo
ss.org/maven2

   


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



 
   



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



Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Hello all,

I create my own archetype and deploy it to my company repository (Nexus 
1.5).

Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes 
-DarchetypeArtifactId=magenta-basic-project -DarchetypeVersion=0.1-SNAPSHOT


Archetype plugin failed with unavailability to connect to central repo 
and said me: [WARNING] No archetype found in Remote catalog. Defaulting 
to internal Catalog.


We use proxy server, and it's ok that archetype plugin can't get central 
catalog.
My archetype is not registered in internal archetype-plugin catalog 
(it's predefined).
And my archetype is not registered in local repository catalog, because 
it was installed on another developer computer.
So, archetype plugin can't find my plugin in any available catalog on a 
developer computer.


So my question is: Is archetype-plugin really need to have information 
about archetype in archetype catalog to generate project from it???
And -DarchetypeGroupId=com.magenta.maven.archetypes 
-DarchetypeArtifactId=magenta-basic-project 
-DarchetypeVersion=0.1-SNAPSHOT is not enough???
Just before I think, that plugin just looking  for archetype in 
repositories like any another artifact.


Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus 
archetype catalog and define it usage on a 'generate' goal.







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



Re: Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Thanks for response, Tim.

Yes, sure, it's my own archetype. I created it and deployed to our 
company Nexus.
Mirror is defined too. It can't be in central, because it's for internal 
company usage only.
Question is how to generate project from this archetype in this case in 
linking with problems, defined below.


Aleksey.



22.04.2010 18:46, Tim O'Brien пишет:

There is no archetype in Central with the artifactId magenta-basic-project

Maybe you are trying to use an internal artifact?   You email is from
magenta-technology.ru, and you are attempting to reference a
com.magenta groupId.   I'd suggest contacting others in your
development group to find out what you should put in your
~/.m2/settings.xml.If you are using a repository manager, then you
will need to define a mirror in your settings.xml.

Tim

On Thu, Apr 22, 2010 at 4:19 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:
   

Hello all,

I create my own archetype and deploy it to my company repository (Nexus
1.5).
Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project -DarchetypeVersion=0.1-SNAPSHOT

Archetype plugin failed with unavailability to connect to central repo and
said me: [WARNING] No archetype found in Remote catalog. Defaulting to
internal Catalog.

We use proxy server, and it's ok that archetype plugin can't get central
catalog.
My archetype is not registered in internal archetype-plugin catalog (it's
predefined).
And my archetype is not registered in local repository catalog, because it
was installed on another developer computer.
So, archetype plugin can't find my plugin in any available catalog on a
developer computer.

So my question is: Is archetype-plugin really need to have information about
archetype in archetype catalog to generate project from it???
And -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project -DarchetypeVersion=0.1-SNAPSHOT
is not enough???
Just before I think, that plugin just looking  for archetype in repositories
like any another artifact.

Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus
archetype catalog and define it usage on a 'generate' goal.






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


 

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

   



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



Re: Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Thanks a lot, Tim.
Archetype can be found now, but Maven still try to get archetype catalog 
from central and print connection fail error to console (we have a proxy).
Is it possible to prevent looking for catalog? I needn't to choose 
archetype, I'm already know what I need.


Best regards,
Aleksey.

22.04.2010 19:49, Tim O'Brien пишет:

Ok, got it, you'll need to specify the archetype repository.Pass
in a -DarchetypeRepository=url  that will likely point to your
internal repository group.

Here's a blog post I wrote ages ago, for Alfresco archetypes which
uses this option: http://bit.ly/8YtLOh

On Thu, Apr 22, 2010 at 9:58 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:
   

Thanks for response, Tim.

Yes, sure, it's my own archetype. I created it and deployed to our company
Nexus.
Mirror is defined too. It can't be in central, because it's for internal
company usage only.
Question is how to generate project from this archetype in this case in
linking with problems, defined below.

Aleksey.



22.04.2010 18:46, Tim O'Brien пишет:
 

There is no archetype in Central with the artifactId
magenta-basic-project

Maybe you are trying to use an internal artifact?   You email is from
magenta-technology.ru, and you are attempting to reference a
com.magenta groupId.   I'd suggest contacting others in your
development group to find out what you should put in your
~/.m2/settings.xml.If you are using a repository manager, then you
will need to define a mirror in your settings.xml.

Tim

On Thu, Apr 22, 2010 at 4:19 AM, Aleksey Didik
di...@magenta-technology.ruwrote:

   

Hello all,

I create my own archetype and deploy it to my company repository (Nexus
1.5).
Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT

Archetype plugin failed with unavailability to connect to central repo
and
said me: [WARNING] No archetype found in Remote catalog. Defaulting to
internal Catalog.

We use proxy server, and it's ok that archetype plugin can't get central
catalog.
My archetype is not registered in internal archetype-plugin catalog (it's
predefined).
And my archetype is not registered in local repository catalog, because
it
was installed on another developer computer.
So, archetype plugin can't find my plugin in any available catalog on a
developer computer.

So my question is: Is archetype-plugin really need to have information
about
archetype in archetype catalog to generate project from it???
And -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT
is not enough???
Just before I think, that plugin just looking  for archetype in
repositories
like any another artifact.

Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus
archetype catalog and define it usage on a 'generate' goal.






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



 

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


   


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


 

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

   



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



Re: Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Yes, it's a variant.
Thanks a lot.

Aleksey.


22.04.2010 20:14, Tim O'Brien пишет:

Use archetype:create instead of archetype:generate

See here: 
http://maven.apache.org/archetype/maven-archetype-plugin/create-mojo.html

Tim

On Thu, Apr 22, 2010 at 11:11 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:
   

Thanks a lot, Tim.
Archetype can be found now, but Maven still try to get archetype catalog
from central and print connection fail error to console (we have a proxy).
Is it possible to prevent looking for catalog? I needn't to choose
archetype, I'm already know what I need.

Best regards,
Aleksey.

22.04.2010 19:49, Tim O'Brien пишет:
 

Ok, got it, you'll need to specify the archetype repository.Pass
in a -DarchetypeRepository=urlthat will likely point to your
internal repository group.

Here's a blog post I wrote ages ago, for Alfresco archetypes which
uses this option: http://bit.ly/8YtLOh

On Thu, Apr 22, 2010 at 9:58 AM, Aleksey Didik
di...@magenta-technology.ruwrote:

   

Thanks for response, Tim.

Yes, sure, it's my own archetype. I created it and deployed to our
company
Nexus.
Mirror is defined too. It can't be in central, because it's for internal
company usage only.
Question is how to generate project from this archetype in this case in
linking with problems, defined below.

Aleksey.



22.04.2010 18:46, Tim O'Brien пишет:

 

There is no archetype in Central with the artifactId
magenta-basic-project

Maybe you are trying to use an internal artifact?   You email is from
magenta-technology.ru, and you are attempting to reference a
com.magenta groupId.   I'd suggest contacting others in your
development group to find out what you should put in your
~/.m2/settings.xml.If you are using a repository manager, then you
will need to define a mirror in your settings.xml.

Tim

On Thu, Apr 22, 2010 at 4:19 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:


   

Hello all,

I create my own archetype and deploy it to my company repository (Nexus
1.5).
Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT

Archetype plugin failed with unavailability to connect to central repo
and
said me: [WARNING] No archetype found in Remote catalog. Defaulting to
internal Catalog.

We use proxy server, and it's ok that archetype plugin can't get
central
catalog.
My archetype is not registered in internal archetype-plugin catalog
(it's
predefined).
And my archetype is not registered in local repository catalog, because
it
was installed on another developer computer.
So, archetype plugin can't find my plugin in any available catalog on a
developer computer.

So my question is: Is archetype-plugin really need to have information
about
archetype in archetype catalog to generate project from it???
And -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT
is not enough???
Just before I think, that plugin just looking  for archetype in
repositories
like any another artifact.

Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus
archetype catalog and define it usage on a 'generate' goal.






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




 

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



   

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



 

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


   


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


 

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

   



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



Re: Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Oh, no.
My archetype use interactive mode for defining some project properties.
But create goal don't allow to define it by console on a creation step.

Aleksey.


My archetype
22.04.2010 20:14, Tim O'Brien пишет:

Use archetype:create instead of archetype:generate

See here: 
http://maven.apache.org/archetype/maven-archetype-plugin/create-mojo.html

Tim

On Thu, Apr 22, 2010 at 11:11 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:
   

Thanks a lot, Tim.
Archetype can be found now, but Maven still try to get archetype catalog
from central and print connection fail error to console (we have a proxy).
Is it possible to prevent looking for catalog? I needn't to choose
archetype, I'm already know what I need.

Best regards,
Aleksey.

22.04.2010 19:49, Tim O'Brien пишет:
 

Ok, got it, you'll need to specify the archetype repository.Pass
in a -DarchetypeRepository=urlthat will likely point to your
internal repository group.

Here's a blog post I wrote ages ago, for Alfresco archetypes which
uses this option: http://bit.ly/8YtLOh

On Thu, Apr 22, 2010 at 9:58 AM, Aleksey Didik
di...@magenta-technology.ruwrote:

   

Thanks for response, Tim.

Yes, sure, it's my own archetype. I created it and deployed to our
company
Nexus.
Mirror is defined too. It can't be in central, because it's for internal
company usage only.
Question is how to generate project from this archetype in this case in
linking with problems, defined below.

Aleksey.



22.04.2010 18:46, Tim O'Brien пишет:

 

There is no archetype in Central with the artifactId
magenta-basic-project

Maybe you are trying to use an internal artifact?   You email is from
magenta-technology.ru, and you are attempting to reference a
com.magenta groupId.   I'd suggest contacting others in your
development group to find out what you should put in your
~/.m2/settings.xml.If you are using a repository manager, then you
will need to define a mirror in your settings.xml.

Tim

On Thu, Apr 22, 2010 at 4:19 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:


   

Hello all,

I create my own archetype and deploy it to my company repository (Nexus
1.5).
Now some developers try to use my archetype by calling:
mvn archetype:generate -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT

Archetype plugin failed with unavailability to connect to central repo
and
said me: [WARNING] No archetype found in Remote catalog. Defaulting to
internal Catalog.

We use proxy server, and it's ok that archetype plugin can't get
central
catalog.
My archetype is not registered in internal archetype-plugin catalog
(it's
predefined).
And my archetype is not registered in local repository catalog, because
it
was installed on another developer computer.
So, archetype plugin can't find my plugin in any available catalog on a
developer computer.

So my question is: Is archetype-plugin really need to have information
about
archetype in archetype catalog to generate project from it???
And -DarchetypeGroupId=com.magenta.maven.archetypes
-DarchetypeArtifactId=magenta-basic-project
-DarchetypeVersion=0.1-SNAPSHOT
is not enough???
Just before I think, that plugin just looking  for archetype in
repositories
like any another artifact.

Please, solve my doubt.

Best regards,
Aleksey Didik.

P.S. Looks like I need to use nexus archetype plugin to create my nexus
archetype catalog and define it usage on a 'generate' goal.






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




 

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



   

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



 

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


   


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


 

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

   



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



Re: Some problems with Archetype Plugin

2010-04-22 Thread Aleksey Didik

Unfortunately yes :(
Just I need to show my archetype work on the local company Tech Days.
And errors in console or no-interactive-mode is not good for me.

Aleksey.

22.04.2010 20:41, Wayne Fay пишет:

My archetype use interactive mode for defining some project properties.
But create goal don't allow to define it by console on a creation step.
 

I believe you can set all of those properties via -D... but it is not
as user-friendly.

Wayne

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

   



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



Re: integration problem

2010-04-22 Thread Aleksey Didik

Hello pankjajain15.

Look like you need to add jboss repository to your settings.xml.
On the start Maven knows only about 'central' repository which can not 
contains necessary archetype.

This archetype contains in JBoss repository.

Try to do next:

1) Add to maven-dir/conf/settings.xml next xml in settings section:

profiles
profile
idjboss-repo/id
repositories
repository
idjboss/id
urlhttp://repository.jboss.org/maven2/url
releasesenabledtrue/enabled/releases
snapshotsenabledfalse/enabled/snapshots
/repository
/repositories
/profile
/profiles
activeProfiles
activeProfilejboss-repo/activeProfile
/activeProfiles

2) Try to use this command

mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.2-GA -DgroupId=org.docs.richfaces
-DartifactId=jsf-app -DarchetypeRepository=http://repository.jboss.org/maven2


Write me about results.

Hope this help,

Aleksey.


23.04.2010 9:34, pankjajain15 пишет:

Hi, i want to integrate maven with richfaces ,

i have followed section 3.3 from this
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html
link.

i have installed maven on c drive on windows machine .

as per instruction mentioned in above link , i created a folder project on
c drive and run a command line from it as mentioned in above link

the command is

mvn archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-DarchetypeArtifactId=maven-archetype-jsfwebapp
-DarchetypeVersion=3.3.3-SNAPSHOT -DgroupId=org.docs.richfaces
-DartifactId=jsf-app


after executing above code , it shows me following error on command prompt

C:\projectmvn -e archetype:generate -DarchetypeGroupId=org.richfaces.cdk
-Darche
typeArtifactId=maven-archetype-jsfwebapp -DarchetypeVersion=3.3.3-SNAPSHOT
-Dgro
upId=org.docs.richfaces -DartifactId=jsf-app
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] [INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] [INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on =  'false'.
[INFO] Setting property: resource.loader =  'classpath'.
[INFO] Setting property: resource.manager.logwhenfound =  'false'.
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[WARNING] No archetype repository found. Falling back to central repository
(htt
p://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=your repository  if archetype's
repository
is elsewhere.
[INFO] snapshot org.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT:
chec
king for updates from maven-archetype-jsfwebapp-repo
Downloading:
http://repo1.maven.org/maven2/org/richfaces/cdk/maven-archetype-jsf
webapp/3.3.3-SNAPSHOT/maven-archetype-jsfwebapp-3.3.3-SNAPSHOT.jar
[INFO] Unable to find resource
'org.richfaces.cdk:maven-archetype-jsfwebapp:jar:
3.3.3-SNAPSHOT' in repository maven-archetype-jsfwebapp-repo
(http://repo1.maven
.org/maven2)
[INFO] [ERROR] BUILD FAILURE
[INFO] [INFO] The desired archetype does not exist
(org.richfaces.cdk:maven-archetype-j
sfwebapp:3.3.3-SNAPSHOT)
[INFO] [INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not exist
(or
g.richfaces.cdk:maven-archetype-jsfwebapp:3.3.3-SNAPSHOT)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:715)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java: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 

Re: README.txt bundled with maven doesn't mention M2_HOME

2010-04-13 Thread Aleksey Didik

Hello Matthew,
IntelliJ Idea use M2_HOME as default maven dir, but you can override it 
(or point on it) through interface.


Best regards,
Aleksey.



13.04.2010 8:46, Matthew McCullough ?:

Okay.  Thanks for the input guys.  So it seems like _not_ defining it
is the more flexible option, which would mean removing it from the web
site materials.  I guess a JIRA is in order.  I'll point it at this
thread.

Any tooling absolutely require this M2_HOME var that you know of?
M2Eclipse?  IntelliJ?

Thanks,
-Matthew

On Thu, Apr 8, 2010 at 12:56 AM, Jörg Schaiblejoerg.schai...@gmx.de  wrote:
   

Brett Porter wrote at Donnerstag, 8. April 2010 05:53:

 

Sounds like making them consistent makes sense.

Note that the env var is not required - it is mostly for people that wish
to run multiple versions of Maven.
   

Actually I do explicitly not set it, *because* I run different versions of
Maven. The Maven start script will set it accordingly itself.

- Jörg


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


 

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

   




Re: some question

2010-04-12 Thread Aleksey Didik

42

12.04.2010 17:56, perfer_chen ??:

one ??
 I use maven version 2.2.1??I can download pom file??but the *.jar not??
   the pom file and jar in the same dictory
two??
  maven-jetty-plugin
  how to write the jetty-env.xml and jetty.xml

thanks



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



Re: Packing xml or wsdl in a jar, but in resource directory

2010-04-08 Thread Aleksey Didik

You can do it.
Just use:

resources
resource
directorysrc/main/resources//directory
filteringtrue/filtering
/resource
!--Resources within classes except java--
resource
directorysrc/main/java//directory
excludes
exclude**/*.java/exclude
/excludes
/resource
/resources

HTH,
Aleksey Didik.

08.04.2010 14:31, Cleiton Dos Santos Garcia пишет:

Hi,

I need put some files in different java packages and this files are .xml and 
.wsdl. I can't put it in the resources directory, I need put a wsdl file in the 
same package as your relative class. Is it possible?
In eclipse it is a default behavior in export-  jar, packing all .class and 
xml, or wsdl files. Anyone can help me how to it with maven?

Regards,

Cleiton Garcia.
IT Department
Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010
WEG Equipamentos Elétricos S.A.
www.weg.nethttp://www.weg.net/


   



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



Re: RES: Packing xml or wsdl in a jar, but in resource directory

2010-04-08 Thread Aleksey Didik



08.04.2010 17:07, Cleiton Dos Santos Garcia пишет:

Hi,

I’ve already tried this configuration, but maven removes the files of the 
relative directory/package to a [default] target. I’d like that these wsdl 
files was maintained in their relative locations.
   
Are you sure? We use this configuration and maven copy files in 
necessary relative locations in targets. Let me check it one more time. 
I'll try to make test project.


Aleksey.


Regards,
Cleiton Garcia.

-Mensagem original-
De: Aleksey Didik [mailto:di...@magenta-technology.ru]
Enviada em: Thursday, April 08, 2010 9:29 AM
Para: Maven Users List
Assunto: Re: Packing xml or wsdl in a jar, but in resource directory

You can do it.
Just use:

resources
resource
directorysrc/main/resources//directory
filteringtrue/filtering
/resource
!--Resources within classes except java--
resource
directorysrc/main/java//directory
excludes
exclude**/*.java/exclude
/excludes
/resource
/resources

HTH,
Aleksey Didik.

08.04.2010 14:31, Cleiton Dos Santos Garcia пишет:
   

Hi,

I need put some files in different java packages and this files are .xml and 
.wsdl. I can't put it in the resources directory, I need put a wsdl file in the 
same package as your relative class. Is it possible?
In eclipse it is a default behavior in export-   jar, packing all .class and 
xml, or wsdl files. Anyone can help me how to it with maven?

Regards,

Cleiton Garcia.
IT Department
Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010
WEG Equipamentos Elétricos S.A.
www.weg.nethttp://www.weg.net/



 


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

   



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



Re: RES: Packing xml or wsdl in a jar, but in resource directory

2010-04-08 Thread Aleksey Didik

Ok, It's work as I supposed.
Check target dir of the test project.
May be I understand something wrong in your problem description?

Aleksey

08.04.2010 17:17, Aleksey Didik пишет:



08.04.2010 17:07, Cleiton Dos Santos Garcia пишет:

Hi,

I’ve already tried this configuration, but maven removes the files of 
the relative directory/package to a [default] target. I’d like that 
these wsdl files was maintained in their relative locations.
Are you sure? We use this configuration and maven copy files in 
necessary relative locations in targets. Let me check it one more 
time. I'll try to make test project.


Aleksey.


Regards,
Cleiton Garcia.

-Mensagem original-
De: Aleksey Didik [mailto:di...@magenta-technology.ru]
Enviada em: Thursday, April 08, 2010 9:29 AM
Para: Maven Users List
Assunto: Re: Packing xml or wsdl in a jar, but in resource directory

You can do it.
Just use:

resources
resource
directorysrc/main/resources//directory
filteringtrue/filtering
/resource
!--Resources within classes except java--
resource
directorysrc/main/java//directory
excludes
exclude**/*.java/exclude
/excludes
/resource
/resources

HTH,
Aleksey Didik.

08.04.2010 14:31, Cleiton Dos Santos Garcia пишет:

Hi,

I need put some files in different java packages and this files are 
.xml and .wsdl. I can't put it in the resources directory, I need 
put a wsdl file in the same package as your relative class. Is it 
possible?
In eclipse it is a default behavior in export-   jar, packing all 
.class and xml, or wsdl files. Anyone can help me how to it with maven?


Regards,

Cleiton Garcia.
IT Department
Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010
WEG Equipamentos Elétricos S.A.
www.weg.nethttp://www.weg.net/





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




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





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

Re: RES: Packing xml or wsdl in a jar, but in resource directory

2010-04-08 Thread Aleksey Didik

Looks like it's a bad idea to attach zip archives.
I'm going to try again. Rename _zip to zip.

HTH,
Aleksey.

08.04.2010 17:24, Aleksey Didik пишет:

Ok, It's work as I supposed.
Check target dir of the test project.
May be I understand something wrong in your problem description?

Aleksey

08.04.2010 17:17, Aleksey Didik пишет:



08.04.2010 17:07, Cleiton Dos Santos Garcia пишет:

Hi,

I’ve already tried this configuration, but maven removes the files 
of the relative directory/package to a [default] target. I’d like 
that these wsdl files was maintained in their relative locations.
Are you sure? We use this configuration and maven copy files in 
necessary relative locations in targets. Let me check it one more 
time. I'll try to make test project.


Aleksey.


Regards,
Cleiton Garcia.

-Mensagem original-
De: Aleksey Didik [mailto:di...@magenta-technology.ru]
Enviada em: Thursday, April 08, 2010 9:29 AM
Para: Maven Users List
Assunto: Re: Packing xml or wsdl in a jar, but in resource directory

You can do it.
Just use:

resources
resource
directorysrc/main/resources//directory
filteringtrue/filtering
/resource
!--Resources within classes except java--
resource
directorysrc/main/java//directory
excludes
exclude**/*.java/exclude
/excludes
/resource
/resources

HTH,
Aleksey Didik.

08.04.2010 14:31, Cleiton Dos Santos Garcia пишет:

Hi,

I need put some files in different java packages and this files are 
.xml and .wsdl. I can't put it in the resources directory, I need 
put a wsdl file in the same package as your relative class. Is it 
possible?
In eclipse it is a default behavior in export-   jar, packing 
all .class and xml, or wsdl files. Anyone can help me how to it 
with maven?


Regards,

Cleiton Garcia.
IT Department
Fone (0xx47)3276-4167 Fax (0xx47) 3276-4010
WEG Equipamentos Elétricos S.A.
www.weg.nethttp://www.weg.net/





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




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






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



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

Maven resolve test dependencies even -Dmaven.test.skip=true

2010-03-29 Thread Aleksey Didik

Hello everybody!

*Breifly:*
One of company projects have met old problem when Maven resolve test-jar 
dependency (scope - test), even tests was skipped (include compilation). 
Do you have any information about this issue? May be some  bypass route 
exists?


*All:*
One of projects have module A and module B.
Module B depends on test-jar of module A and have dependency:

|dependency
  groupIdcom.cc/groupId
  artifactIdModule A/artifactId
  version${mx.version}/version
  typetest-jar/type
  scopetest/scope
/dependency|


When tests are skipped, build failed with dependency resolution.
We use to skip tests /-Dmaven.test.skip=true/. I try to use 
/skiptrue/skip/ in surefire configuration, it doesn't help.

May be you know some ways to solve this problem?

Best regards,
Aleksey Didik.



Re: Version numbers and milestones

2010-03-23 Thread Aleksey Didik

Hello.

In my projects I use second variant.

It's makes only one trouble for me, when I have to remember the name of the 
last milestone version I have released already and what will be the next :)

By my logic, you always develop snapshot of version 1.0 (for example). Not 
1.0-m1, not 1.0-m2. You don't know exactly how many milestones you will have. 
May be you will need to release 1.0-m1-2, or 1.0-m1-fix.

As to me,

this product won't need to upgrade every time there is a new
milestone release.

more important then,


I can always tell by looking at even the
SNAPSHOT version numbers what milestone we are getting towards.
 
Best regards,

Aleksey.




23.03.2010 13:21, Lóránt Pintér пишет:

Hi,

I am in doubt regarding what version numbers I should use for my
product. There are two schemes I can think of right now:

1) 1.0-m1-SNAPSHOT -  1.0-m1 -  1.0-m2-SNAPSHOT -  1.0-m2 -
1.0-rc1-SNAPSHOT -  1.0-rc1 ...

2) 1.0-SNAPSHOT -  1.0-m1 -  1.0-SNAPSHOT -  1.0-m2 -  1.0-SNAPSHOT -
1.0-rc1 ...

If I use the first solution, I can always tell by looking at even the
SNAPSHOT version numbers what milestone we are getting towards.
However, if I use the second version, my other products that depend on
this product won't need to upgrade every time there is a new
milestone release. This is a high maintenance, error-prone task that I
would like to avoid.

What do you suggest?

   



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



Re: run jetty with war from dependencies

2010-03-10 Thread Aleksey Didik

Hello,
Try to use maven-dependency-plugin in couple with jetty-maven-plugin.
First can dowload artifact (war) from repository. Second, start this war 
as webapp.


http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying-artifacts.html

hth,
Aleksey.

11.03.2010 10:30, Alexander пишет:

Hello,

How could I run jetty from maven with webapp (war file) from repository?

   



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



Re: Setting up mirrors

2010-03-08 Thread Aleksey Didik

Hmm,
_*!**_  looks strange.
Try to use

mirror
idnew-repository/id
urlhttp://repo.upromise.com:8080/archiva/repository/new-repo/url
mirrorOfplatform-release,platform-snapshot/mirrorOf
/mirror

Aleksey.

09.03.2010 4:49, Michael Delaney пишет:

All,

Using Maven 2.2.1, I'm trying to setup (in the 
$M2_HOME/conf/settings.xml file) some mirrors. Looking at the 
documentation 
(http://maven.apache.org/guides/mini/guide-mirror-settings.html) for 
2.2.1, it says that, in the mirrorOf tag, I can set repository 
includes and repository excludes but I can't seem to get it working as 
expected. Can anyone provide some help?


mirrors
mirror
idnew-repository/id
urlhttp://repo.upromise.com:8080/archiva/repository/new-repo/url
mirrorOf!*,platform-release,platform-snapshot/mirrorOf
/mirror
mirror
idfull/id
urlhttp://repo.upromise.com:8080/archiva/repository/full/url
mirrorOf*,!platform-release,!platform-snapshot/mirrorOf
/mirror
/mirrors

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





Right way to create ${user.home}/.m2

2010-03-07 Thread Aleksey Didik

Hello all,
I'm writing instructions for new company developers how to install Maven.
On the one step, developer need to copy prepared settings.xml to 
${user.home}/.m2, but before, this folder must be created.
But Windows XP don't allow to create folder with such name :(. It say I 
need to input file name...

Is exists right way to create this folder?

Now I use just /mvn/ command in console, it has broken because no one 
project exists in work, but .m2 folder has been created.


Best regards,
Aleksey Didik.


Re: Right way to create ${user.home}/.m2

2010-03-07 Thread Aleksey Didik

Thank you, Wendy!

Yes, it's possible to create first dotted folder by windows console :) 
Quite good.

But idea with msi is the good one, may be I will make it.

Aleksey.

07.03.2010 16:36, Wendy Smoak пишет:

On Sun, Mar 7, 2010 at 7:32 AM, Aleksey Didik
di...@magenta-technology.ru  wrote:
   

I'm writing instructions for new company developers how to install Maven.
On the one step, developer need to copy prepared settings.xml to
${user.home}/.m2, but before, this folder must be created.
But Windows XP don't allow to create folder with such name :(. It say I need
to input file name...
Is exists right way to create this folder?
 

I think you can create it at the command prompt with mkdir, just not
in the graphical explorer.  (Or maybe I simply resort to Cygwin when
this happens...)

It might be interesting to package it up as a .msi with your custom
settings.xml file.

   



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



Re: File name filtering in maven-archetype plugin

2010-02-24 Thread Aleksey Didik

Thanks for help :)

Aleksey.

19.02.2010 17:34, Adam Leggett (UPCO) пишет:

I blogged about how to do this here:
http://blogs.mikeci.com/2010/01/14/working-with-custom-maven-archetypes-part-1/

See step four - filtering a file name.

Cheers

Adam

On Fri, 2010-02-19 at 17:27 +0400, Aleksey Didik wrote:
   

Hello all,
I have some properties files in my maven archetype and I want to name it
in real project as /artifactId.properties/
Is it possible to do?
Create /${archetypeId}.properties /file in archetype project and use
resourcesrc/main/properties/${artifactId}.properties/resource  in
archetype.xml is not work, as expected.
May be anybody know solution?

Thanks and best regards,
Aleksey Didik.


 



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



File name filtering in maven-archetype plugin

2010-02-19 Thread Aleksey Didik

Hello all,
I have some properties files in my maven archetype and I want to name it 
in real project as /artifactId.properties/

Is it possible to do?
Create /${archetypeId}.properties /file in archetype project and use 
resourcesrc/main/properties/${artifactId}.properties/resource in 
archetype.xml is not work, as expected.

May be anybody know solution?

Thanks and best regards,
Aleksey Didik.




Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Aleksey Didik

We use

plugin
artifactIdmaven-jar-plugin/artifactId
version2.2/version
configuration
archive
manifestFiletarget/classes/META-INF/MANIFEST.MF/manifestFile
manifest
addClasspathtrue/addClasspath
mainClass${main.class}/mainClass
/manifest
/archive
/configuration
/plugin

with own assembly descriptor with

dependencySets
dependencySet
outputDirectorylib/outputDirectory
/dependencySet
/dependencySets

Assembly put jar + dependency jars into one folder and main jar manifest 
contains class-path with all dependencies.


THT,
Aleksey.

19.02.2010 18:07, Yaakov Chaikin пишет:

Thanks, but what I am really looking for is jar + dependencies in lib
folder type of outcome. Is there a way to tweak what is on that page
to get assembly to produce that?

Thanks,
Yaakov.

On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net  wrote:
   

I think this is what you're looking for:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/

/Anders

On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote:

 

Hi all,

Tried Googling, but nothing that useful came up... I am pretty sure
it's possible to do this though...

I have a multi-module project and one of the modules is a standalone
executable with dependencies on other modules as well as other 3rd
party libraries.

I need to run an assembly such that the executable module ends up as a
JAR with Class-Path in its manifest pointing to all of its JAR
dependencies and place all the other dependencies (whatever they are -
I don't want to have to specify them all by hand in assembly.xml)
should be brought into the same directory and the Class-Path should
have relative path pointing to them.

Does anyone have some snippets they can share to accomplish this? The
assembly documentation is pretty thin so I would so much love to avoid
trial-and-error pattern.

Any help would be greatly appreciated.

Thanks,
Yaakov.

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


   
 

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

   



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



Re: Assemble a jar with dependent jars next to it

2010-02-19 Thread Aleksey Didik

The way to put jar + dependencies jars in one folder is:

assembly
idbundle/id
formats
formatzip/format
formattar.gz/format
/formats

includeBaseDirectoryfalse/includeBaseDirectory

dependencySets
dependencySet
outputDirectory//outputDirectory
/dependencySet
/dependencySets
/assembly

Aleksey.


19.02.2010 18:07, Yaakov Chaikin пишет:

Thanks, but what I am really looking for is jar + dependencies in lib
folder type of outcome. Is there a way to tweak what is on that page
to get assembly to produce that?

Thanks,
Yaakov.

On Fri, Feb 19, 2010 at 9:02 AM, Anders Hammarand...@hammar.net  wrote:
   

I think this is what you're looking for:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/

/Anders

On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikinyaakov.chai...@gmail.comwrote:

 

Hi all,

Tried Googling, but nothing that useful came up... I am pretty sure
it's possible to do this though...

I have a multi-module project and one of the modules is a standalone
executable with dependencies on other modules as well as other 3rd
party libraries.

I need to run an assembly such that the executable module ends up as a
JAR with Class-Path in its manifest pointing to all of its JAR
dependencies and place all the other dependencies (whatever they are -
I don't want to have to specify them all by hand in assembly.xml)
should be brought into the same directory and the Class-Path should
have relative path pointing to them.

Does anyone have some snippets they can share to accomplish this? The
assembly documentation is pretty thin so I would so much love to avoid
trial-and-error pattern.

Any help would be greatly appreciated.

Thanks,
Yaakov.

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


   
 

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

   



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



Read all repos exclude someone privilege

2010-02-18 Thread Aleksey Didik

Hello all,
my question is:

Can I add privilege to CRUD, view, upload and download artifacts from 
any repository except someone?


Thanks for you response,
Aleksey Didik.









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



Re: Read all repos exclude someone privilege

2010-02-18 Thread Aleksey Didik

Sorry for this message, it's for nexus group.

Aleksey.

18.02.2010 18:25, Aleksey Didik пишет:

Hello all,
my question is:

Can I add privilege to CRUD, view, upload and download artifacts from 
any repository except someone?


Thanks for you response,
Aleksey Didik.











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



Re: Prevent duplicates in assembly

2010-02-04 Thread Aleksey Didik

Hello.
Is twice entries from different jar dependencies?
Is this jar dependencies the same artifacts but with different versions?
Or it's just classes with equals names from different artifacts?

Aleksey.

04.02.2010 12:13, Hauschild, Klaus (EXT) пишет:

Hi,

I'm using the assembly-plugin to create a jar-with-dependencies by the build-in 
assembly descriptor. In the resulting .jar appears some entries twice. Is there 
a way to prevent those duplicates.
My current workarround is: unzip and zip the jar by hand after packing.

Thanks


   



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



Re: AW: Prevent duplicates in assembly

2010-02-04 Thread Aleksey Didik
In this case may be better to use maven-shade-plugin
http://maven.apache.org/plugins/maven-shade-plugin/index.html to make
jar-with-dependencies artifact.
As I know, it has some merge mechanizm for compose jars with equal
entries names.

HTH,
Aleksey.

04.02.2010 13:10, Hauschild, Klaus (EXT) пишет:
 Yes, there are more than one dependency. Currently the problematic entry is 
 META-INF/NOTICE.TXT.

 After packing the .jar I use this with JNLP and its Jar-Loader doesn't 
 support duplicate entries in jar files.

 -Ursprüngliche Nachricht-
 Von: Aleksey Didik [mailto:di...@magenta-technology.ru] 
 Gesendet: Donnerstag, 4. Februar 2010 09:36
 An: Maven Users List
 Betreff: Re: Prevent duplicates in assembly

 Hello.
 Is twice entries from different jar dependencies?
 Is this jar dependencies the same artifacts but with different versions?
 Or it's just classes with equals names from different artifacts?

 Aleksey.

 04.02.2010 12:13, Hauschild, Klaus (EXT) пишет:
   
 Hi,

 I'm using the assembly-plugin to create a jar-with-dependencies by the 
 build-in assembly descriptor. In the resulting .jar appears some entries 
 twice. Is there a way to prevent those duplicates.
 My current workarround is: unzip and zip the jar by hand after packing.

 Thanks



 

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

   



Re: Automatic updates from repository

2010-02-01 Thread Aleksey Didik

I will write a mail in Russian to your gmail account.
It will be more useful to speak about this problem.

Aleksey Didik.

01.02.2010 17:06, Andrey Razumovsky пишет:

Hi,

Thanks for an answer.
I don't want to use snapshot for every pom because it brings ugly postfixes
for artifacts e.g. when I deploy them to server, and i don't want to
configure new names for every artifact in my POM's deploy to server
executions.
Removing artifact from local repo isn't fine because I want automatic
updates for all developers

2010/2/1 Ilya Kazakevichkazakev...@devexperts.com

   

Hello,

Why do not you want to use SNAPSHOT?

Fixed version should never be changed but snapshot can.
You have SNAPSHOT while you develop your artifact, and when you're ready to
release it -- you give it version number.

Other artifacts may depend on your snapshot. If so -- maven knows that
snapshot could be changed and fetches new version of snapshot periodically.
But if you depend on fixed version (i.e: my-artifact-1.2.3) and you already
have it in your local repository -- maven would not fetch it again, because
it should be the same and maven knows it.

If you really want to refetch such artifact -- simply remove it from your
local repository, but that's bad idea because it breakes maven's philosophy
and brings pain in your development process.

Ilya.


-Original Message-
From: Andrey Razumovsky [mailto:razumovsky.and...@gmail.com]
Sent: Monday, February 01, 2010 1:42 PM
To: Maven Users List
Subject: Automatic updates from repository

Hello,

In our company we've got a local repository. There's an artifact (packaged
as POM or as JAR), which is deployed by me and used by other projects. It
is
changing frequently, so we don't want referencing POM to change often (i.e.
version changes rarely). Now it seems new versions are not downloaded by
referencing projects automatically at build time. Is it because I haven't
specified SNAPSHOT postfix? If yes, is there a way to allow automatic
changes detection without SNAPSHOT postfix?

Thanks,
Andrey


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


 


   



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



Re: Plugin for updating external XML file content

2010-02-01 Thread Aleksey Didik

I don't see anything with this functionality.
May be better to use /maven-antrun-plugin/ and write necessary ant script.

Best regards,
Aleksey.

01.02.2010 19:42, Ilya Kazakevich ?:

Hi all,

I have a slightly weird situation: I need to update contents of some
external XML file each time I do deploy.
I wonder if there is a plugin that could be installed in deploy phase and
do that for me?

Plugin should be able to replace some token in text file for example or
something like that.

Thanks. 


Ilya Kazakevich




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

   




Re: Plugin for updating external XML file content

2010-02-01 Thread Aleksey Didik

But I have found this one:

http://code.google.com/p/maven-replacer-plugin/

01.02.2010 19:42, Ilya Kazakevich пишет:

Hi all,

I have a slightly weird situation: I need to update contents of some
external XML file each time I do deploy.
I wonder if there is a plugin that could be installed in deploy phase and
do that for me?

Plugin should be able to replace some token in text file for example or
something like that.

Thanks. 


Ilya Kazakevich




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

   



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



Upload files to remote host

2009-11-25 Thread Aleksey Didik

Hello all,
Do you have any ideas, how to upload some project files to another host?
I have found wagon-maven-plugin, but it's upload goal is very poor (imho).
I want to upload 2 files from different folders, but I can define only 
one fromDir.
But if I define fromDir as ${basedir} and set includes with full file 
path, wagon copy it with full path, not only file to toDir


:(

plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdwagon-maven-plugin/artifactId
   executions
execution
 phasedeploy/phase
 goals
   goalupload/goal
  /goals
   configuration
 
urlfile://host/_releases/_app/${project.version}/url
 includes/target/app.war, 
src/main/scripts/db/delta-${project.version}.sql/includes

/configuration
 /execution
/executions
/plugin

Aleksey.



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



Re: How to skip testResources execution when tests are skipped

2009-11-24 Thread Aleksey Didik

Hello,
as to me, the best way for integration tests organization is using 'pom' 
packaging for it module.
In this case you could manually switch on only necessary plugins like 
compiling only tests, copy resources or not, and etc..


My it-module pom:

project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;

parent
artifactId.../artifactId
groupId.../groupId
version0.1-SNAPSHOT/version
/parent
modelVersion4.0.0/modelVersion
artifactIdfunctional-tests/artifactId
packagingpom/packaging
version0.1-SNAPSHOT/version

build
testSourceDirectory${basedir}/it/main/java/testSourceDirectory
testResources
testResource
directory${basedir}/it/main/resources/directory
filteringtrue/filtering
/testResource
/testResources
/build

profiles
profile
idit/id
activation
property
nameit/name
/property
/activation
build
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
executions
execution
goals
goaltestCompile/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdmaven-resources-plugin/artifactId
executions
execution
goals
goaltestResources/goal
/goals
/execution
/executions
/plugin
plugin
artifactIdmaven-surefire-plugin/artifactId
configuration
forkModenever/forkMode
/configuration
executions
execution
idit/id
phaseintegration-test/phase
goals
goaltest/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile
/profiles

/project

In hope to help,
Aleksey.

maik.eb...@icw.de пишет:

Hello everyone,

is it possible to remove the maven-resource-plugin with its testResources 
mojo execution from the lifecycle when tests are skipped?


The maven-compiler-plugin respects the skipTests parameter and does not 
compile the test classes, but the maven-resource-plugin does still process 
the test resources. That's not necessary in my opinion.


Is there a solution to my problem without patching the 
maven-resource-plugin?


Thanks,

Maik Ebert | RD ProfessionalGate
InterComponentWare AG | Industriestraße 41 | 69190 Walldorf (Baden) | 
Germany 
Tel.: +49 (0) 6227 385 203 | Fax: +49 (0) 6227 385

maik.eb...@icw.de | www.icw.de | www.lifesensor.com

InterComponentWare AG:  
Vorstand: Dr. Lutz Kleinholz (Vors.), Dr. Georg Ralle, Jörg Stadler / Aufsichtsratsvors.: Prof. Dr. Christof Hettich  
Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516  


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



Re: How to skip testResources execution when tests are skipped

2009-11-24 Thread Aleksey Didik

Sorry, looks like I don't understand your question.
The shame.

Aleksey.

maik.eb...@icw.de пишет:

Hello everyone,

is it possible to remove the maven-resource-plugin with its testResources 
mojo execution from the lifecycle when tests are skipped?


The maven-compiler-plugin respects the skipTests parameter and does not 
compile the test classes, but the maven-resource-plugin does still process 
the test resources. That's not necessary in my opinion.


Is there a solution to my problem without patching the 
maven-resource-plugin?


Thanks,

Maik Ebert | RD ProfessionalGate
InterComponentWare AG | Industriestraße 41 | 69190 Walldorf (Baden) | 
Germany 
Tel.: +49 (0) 6227 385 203 | Fax: +49 (0) 6227 385

maik.eb...@icw.de | www.icw.de | www.lifesensor.com

InterComponentWare AG:  
Vorstand: Dr. Lutz Kleinholz (Vors.), Dr. Georg Ralle, Jörg Stadler / Aufsichtsratsvors.: Prof. Dr. Christof Hettich  
Firmensitz: 69190 Walldorf, Industriestraße 41 / AG Mannheim HRB 351761 / USt.-IdNr.: DE 198388516  


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



Re: One project, two outputs, how to do it?

2009-11-24 Thread Aleksey Didik
But what about maven-assembly-plugin?All assemblies will be installed 
and deployed, not only main jar.


http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

Getting started with the Assembly Plugin is pretty simple. If you're 
using one of the prefabricated assembly descriptors, you just tell it 
which one; if you're using a custom assembly descriptor, you give it the 
path to the descriptor. Note that a single invocation of the Assembly 
Plugin can actually produce assemblies from multiple descriptors, 
allowing you maximum flexibility to customize the suite of binaries your 
project produces. When the assembly is created it will use the 
assemblyId as the artifact's classifier and will attach the created 
assembly to the project and will be uploaded into the repository on an 
install and deploy goal.


Aleksey.

Gajo Csaba ?:
No, different, one containing one part of the compiled code, the other 
the rest.



Alexander wrote:

Two identical jar?

2009/11/24 Gajo Csaba csaba.g...@cosylab.com

 

Hello,

Usually when I build a project and install it to my local repository, I
have one jar file there. In one specific case, I would like two jars 
to be
created, and they should both be installed into the repository. Is 
there a

way to do this?

Creating two jars is not so much a problem, the problem is how to 
tell the

project to use both during installation.

Regards, Csaba


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






  



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



Re: No primary artifact to install ?

2009-09-16 Thread Aleksey Didik

Hi,
because you use _aseembly:single_ instead of _assembly:assembly_.

Documentation of maven-assembly-plugin, goal single :


Assemble an application bundle or distribution from an assembly descriptor. This goal 
is suitable either for binding to the lifecycle or calling directly from the command 
line (provided all  required files are available before the build starts, or 
are produced by another goal specified before this one on the command line).



Change _goalsingle/goal_ to  _goalassembly/goal_ and try again.



Best regards,

Aleksey Didik




Wim Deblauwe ?:

Hi,

I have a maven project with 'swf' packaging. I also have the assembly plugin
configured as follows:

 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-assembly-plugin/artifactId
   executions
 execution
   idassembly/id
   goals
  goalsingle/goal
   /goals
   phasepackage/phase
   configuration
descriptors

descriptorsrc/main/assembly/descriptor.xml/descriptor
/descriptors
/configuration
   /execution
 /executions
 /plugin

When I do a 'mvn clean install', the swf is not generated and I see the
following info message:

[INFO] [install:install {execution: default-install}]
[INFO] No primary artifact to install, installing attached artifacts
instead.

Why is my swf no longer being installed?

regards,

Wim

  


Re: One pom file generating 2 artifacts

2009-09-16 Thread Aleksey Didik

Hello,

maven-ejb-plugin has possibility to create client jar with all what you 
need.


http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html

If you want to create more then one artifact from one module, read about 
maven-assembly-plugin 
http://maven.apache.org/plugins/maven-assembly-plugin/index.html


Best regards,
Aleksey Didik


Valentin Jacquemin пишет:

Hi all,

Is it possible to use one pom file that generates 2 artifacts?
I have one pom taking care of creating an ejb artifact but I'd like to
produce also a jar library containing every interfaces declaration of my ejb
to be able to include it in my war file How can I do that?


Thanks in advance,


Valentin Jacquemin

  


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



Re: Why is my WAR exploded in the EAR?

2009-09-07 Thread Aleksey Didik

Unfortunately not,
you can't use parent project with packaging pom as ear module.
Own module for EAR is a part of Maven paradigm: module - artifact.
EAR plugin just replace JAR plugin in EAR module and it can't be used 
just like surefire plugin.
In other words, EAR plugin doesn't attach to necessary build phase. It 
replace packaging mechanism of Maven.

Is it a problem to make one new module?
If you war module is a main and alone module in project, and you don't 
want to create parent module and change project structure, just make one 
more project, only for EAR.


Parent POM could be used for dependencies specification which must be 
included into EAR.


Best regards,
Aleksey Didik



Joerg Heinicke ?:

Aleksey Didik didik at magenta-technology.ru writes:

  

Using separate module for EAR is the most useful solution.
This module is description of what must be in the ear.
Use packagingear/packaging, modules section in the configuration 
and, attention, don't forget add dependency to project-web artifact to 
dependencies section.



Thanks Aleksey.

Can I directly combine this with a parent POM? From another thread I got a
parent POM is helpful in general for centralizing dependency management. I
already have multiple projects for the JARs of the webapp. (I overtook the
application, but only the source code, not the build files.) So can I use the
parent POM for also specifying the content of the EAR as you described above?

Joerg


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


  


Re: Why is my WAR exploded in the EAR?

2009-09-06 Thread Aleksey Didik

Hi,

Using separate module for EAR is the most useful solution.
This module is description of what must be in the ear.
Use packagingear/packaging, modules section in the configuration 
and, attention, don't forget add dependency to project-web artifact to 
dependencies section.


Like below:

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=...
 xsi:schemaLocation=...
 modelVersion4.0.0/modelVersion
 groupIdmy.project/groupId
 artifactIdproject-ear/artifactId
 packagingear/packaging
 versionSNAPSHOT/version
 nameMy Project/name
 build
   plugins
 ...
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-ear-plugin/artifactId
   configuration 
	   modules

  webModule
groupIdmy.project/groupId
artifactIdproject-web/artifactId
bundleFileNameproject-web.war/bundleFileName
  /webModule
   /modules
   
applicationXmlsrc/main/resources/META-INF/application.xml/applicationXml
   /configuration
 /plugin
   /plugins
 /build
 dependencies
   ...
dependency
   groupIdmy.project/groupId
artifactIdproject-web/artifactId
   versionSNAPSHOT/version 
   /dependency 
 /dependencies

/project

Belive, it will help your.

Best regards,
Aleksey Didik




Joerg Heinicke пишет:

Hi,

I'm trying to create an EAR from my WAR file. The WAR itself works perfectly.
Now I expected ear:ear will simply create my EAR file. (It is supposed to
consist only of this one web module.) Unfortunately the WAR is exploded in the
EAR's root.

I searched in the archives but it seems people usually want to have it the other
way around. I also tried configuring the ear plugin by declaring the web module

  modules
webModule
  groupIdmy.project/groupId
  artifactIdproject-web/artifactId
  bundleFileNameproject-web.war/bundleFileName
/webModule
  /modules

Now it chokes on missing dependency on the project-web artifact. Does that mean
I need a separate project just for the EAR?

My pom.xml:

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=...
  xsi:schemaLocation=...
  modelVersion4.0.0/modelVersion
  groupIdmy.project/groupId
  artifactIdproject-web/artifactId
  packagingwar/packaging
  versionSNAPSHOT/version
  nameMy Project/name
  build
plugins
  ...
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
configuration
 
applicationXmlsrc/main/resources/META-INF/application.xml/applicationXml

/configuration
  /plugin
/plugins
  /build
  dependencies
...
  /dependencies
/project

Any ideas?
Thanks in advance,
Joerg


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


  


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



Re: beginner problem

2009-08-14 Thread Aleksey Didik

Hello Sammaiah,

You have started maven in offline mode in first case. And maven wrote about it 
in log.


Reason: System is offline.

...

*NOTE: Maven is executing in offline mode. Any artifacts not already in your 
local
repository will be inaccessible.*



When you start maven firstly, it's download some parts of itself from net. But 
you have run it in oflline mode. You you have caught errors..

*--offline* - exclude this key from command line

and this tag *offlinetrue/offline* from settings.xml.

Be careful, use offline mode only if you are fully sure, that you have all what you need in your local repository, 

Aleksey. 





Sammaiah Nagapuri ?:

Hi thanks for giving the prompt reply for my first question.

Here my another problem is If I run the normal command like 'mvn 
archetype:create' I am getting the following console output which is showing 
unable to create the project. See the following one.
I am running this command in offline mode as I don't have the internet 
connection.

F:\Ravi\sammvn archetype:create -DgroupId=org.sonatype.mavenbook.ch03 
-DartifactId=simple -DpackageName=org.sonatype.mavenbook --offline
[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in your 
local
repository will be inaccessible.

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not 
exist or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Fri Aug 14 14:57:41 GMT+05:30 2009
[INFO] Final Memory: 1M/2M
[INFO] 
F:\Ravi\sam


Where as if I run this command differently while giving the settings.xml as an 
argument it is perfectly creating. What is the problem? Is there any other way 
to give this setting file as an argument like setting in classpath? But I have 
already mentioned in path but it is not resolving.

F:\Ravi\sammvn -Dorg.apache.maven.global-settings=.m2/settings.xml 
archetype:create -DgroupId=org.sonatype.mavenbook.ch03 -DartifactId=simple -Dpacka
geName=org.sonatype.mavenbook

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO] 
[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: 
checking for updates from central
[INFO] 

[INFO] Using following parameters for creating OldArchetype: 
maven-archetype-quickstart:RELEASE
[INFO] 

[INFO] Parameter: groupId, Value: org.sonatype.mavenbook.ch03
[INFO] Parameter: packageName, Value: org.sonatype.mavenbook
[INFO] Parameter: basedir, Value: F:\Ravi\sam
[INFO] Parameter: package, Value: org.sonatype.mavenbook
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: simple
[INFO] * End of debug info from resources from generated 
POM ***
[INFO] OldArchetype created in dir: F:\Ravi\sam\simple
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 6 seconds
[INFO] Finished at: Fri Aug 14 14:40:57 GMT+05:30 2009
[INFO] Final Memory: 8M/15M
[INFO] 

Where as my .m2/settings.xml file is following one

settings xmlns=http://maven.apache.org/settings/1.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0 
http://maven.apache.org/xsd/settings-1.0.0.xsd;
  localRepository/.m2/repository/localRepository
  offlinetrue/offline
  proxies
proxy
  activetrue/active
  

Artifact with classifier have main artifact dependency

2009-06-22 Thread Aleksey Didik

Hello all.
I have met a situation which confuse me a little.

Let's imagine we have two assembly for one maven module: full version  
(for example server part of application) and brief version (client part 
for remote call). Will use maven-assembly-plugin for build them.


Full (server):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   /dependency


Short (client):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   classifierclient/classifier
   /dependency

Both artifacts have the same pom.xml which is owned by full version.
If I attach dependency on client jar I will have all dependencies of 
full version of artifact in spite of client artifact have less count of 
dependencies. Result of this is unnecessary libraries in application 
which use client jar.


Real example:

In my app I use jboss 5.0.0-GA. I have client app which have access to 
JBoss JMX and I use the next dependency, which is one of assembly of 
main jboss artifact /jboss-as-server/ :


   dependency
   groupIdorg.jboss.jbossas/groupId
   artifactIdjboss-as-server/artifactId
   classifierjmx-invoker-adaptor-client/classifier
   version5.0.0.GA/version
   scopecompile/scope
   /dependency

When I attach this dependency to my project I have so much transactive 
dependencies from /jboss-as-server, /but most of them is not needed for 
client part. It's around 9 Mbytes of unnecessary dependencies which is 
used for jboss server  work, not for my client application.


It's a real problem for me, but may be I don't  understand  something 
important about maven  work  with  classified artifacts and it's 
dependencies...


Do you have any ideas?

Best regards, Aleksey Didik.




Re: Artifact with classifier have main artifact dependency

2009-06-22 Thread Aleksey Didik

Thanks for so fast response, Jorg.
I'll try to use your solutions.

Best regards, Aleksey.



Jörg Schaible пишет:

Hi Aleksey,

Aleksey Didik wrote at Montag, 22. Juni 2009 08:08:

  

Hello all.
I have met a situation which confuse me a little.

Let's imagine we have two assembly for one maven module: full version
(for example server part of application) and brief version (client part
for remote call). Will use maven-assembly-plugin for build them.

Full (server):
dependency
groupIdorg.foo/groupId
artifactIdfoo/artifactId
version1.0/version
/dependency


Short (client):
dependency
groupIdorg.foo/groupId
artifactIdfoo/artifactId
version1.0/version
classifierclient/classifier
/dependency

Both artifacts have the same pom.xml which is owned by full version.
If I attach dependency on client jar I will have all dependencies of
full version of artifact in spite of client artifact have less count of
dependencies. Result of this is unnecessary libraries in application
which use client jar.



This is one of the unfortunate items with Maven. An attached artifact always
shares the deps of the main artifact. In case of the ejb-client this is,
well, suboptimal ;-)

You have two possibilities:

1/ Use a common parent POM (note, this does not have to be necessarily in
the parent directory, you can handle it as any other artifact) with a
depMgmnt section that contains both the EJB and the EJB client. For the
client you define additionally the exclusions. Then you're able to declare
a dependency to the client without repeating the exclusions, because they
get mixed in from the parent's depMgmnt section.

2/ A different approach is to create a separate artifact for the client. Use
the dependency plugin to unpack the EJB and configure the jar plugin to
include only the necessary classes. In the dependency section you declare
the EJB with the appropriate exclusions.

Hope this helps,
Jörg


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


  


Artifact with classifier

2009-06-18 Thread Aleksey Didik

Hello all.

I have met a situation which confuse me a little.

Let's imagine we have two assembly for one maven module: full version  
(for example server part of application) and brief version (client part 
for remote call). Will use maven-assembly-plugin for build them.


Full (server):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   /dependency


Short (client):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   classifierclient/classifier
   /dependency

Both artifacts have the same pom.xml which is owned by full version.
If I attach dependency on client jar I will have all dependencies of 
full version of artifact in spite of client artifact have less count of 
dependencies. Result of this is unnecessary libraries in application 
which use client jar.


Real example:

In my app I use jboss 5.0.0-GA. I have client app which have access to 
JBoss JMX and I use the next dependency, which is one of assembly of 
main jboss artifact /jboss-as-server/ :


   dependency
   groupIdorg.jboss.jbossas/groupId
   artifactIdjboss-as-server/artifactId
   classifierjmx-invoker-adaptor-client/classifier
   version5.0.0.GA/version
   scopecompile/scope
   /dependency

When I attach this dependency to my project I have so much transactive 
dependencies from /jboss-as-server, /but most of them is not needed for 
client part. It's around 9 Mbytes of unnecessary dependencies which is 
used for jboss server  work, not for my client application.


It's a real problem for me, but may be I don't  understand  something 
important about maven  work  with  classified artifacts and it's 
dependencies...


Do you have any ideas?

Best regards, Aleksey Didik.








Artifacts with classifier

2009-06-18 Thread Aleksey Didik

Hello all.

I have met a situation which confuse me a little.

Let's imagine we have two assembly for one maven module: full version  
(for example server part of application) and brief version (client part 
for remote call). Will use maven-assembly-plugin for build them.


Full (server):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   /dependency


Short (client):
   dependency
   groupIdorg.foo/groupId
   artifactIdfoo/artifactId
   version1.0/version
   classifierclient/classifier
   /dependency

Both artifacts have the same pom.xml which is owned by full version.
If I attach dependency on client jar I will have all dependencies of 
full version of artifact in spite of client artifact have less count of 
dependencies. Result of this is unnecessary libraries in application 
which use client jar.


Real example:

In my app I use jboss 5.0.0-GA. I have client app which have access to 
JBoss JMX and I use the next dependency, which is one of assembly of 
main jboss artifact /jboss-as-server/ :


   dependency
   groupIdorg.jboss.jbossas/groupId
   artifactIdjboss-as-server/artifactId
   classifierjmx-invoker-adaptor-client/classifier
   version5.0.0.GA/version
   scopecompile/scope
   /dependency

When I attach this dependency to my project I have so much transactive 
dependencies from /jboss-as-server, /but most of them is not needed for 
client part. It's around 9 Mbytes of unnecessary dependencies which is 
used for jboss server  work, not for my client application.


It's a real problem for me, but may be I don't  understand  something 
important about maven  work  with  classified artifacts and it's 
dependencies...


Do you have any ideas?

Best regards, Aleksey Didik.