packing jars in another jar

2008-03-26 Thread Sonar, Nishant
Hi 

 

I have multi module project. I need to make a distributable JAR in a way
that should hold all the dependent jars, including the jars referred by
dependent jars.

 

Need help 

 

I am trying to pack dependent jars in another jars (don't want to use
assembley plugin)  

 

Is it possible with jar plugin? I need to add a maniest file to include
dependent files in the class path too. This facility is in the jar
plugin.

 

Regards,

Nishant Sonar



how can i install maven-copy-plugin

2008-03-10 Thread Sonar, Nishant
Hi 

 

I was using this maven-copy-plugin which copies files from src to
destination, I did downloaded from a site
(http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-
maven-plugin) earlier but I can't find it now. All I have is the older
downloaded jars and poms , but now I want this again. Is there any place
I can download this plugin from or reinstall it if I have the jars?

 

Regards,

Nishant Sonar



RE: Can't get to work exec plugin

2008-01-23 Thread Sonar, Nishant
Hi 

You must add the dependency(jar) under dependencies for following
classs

javax/jms/MessageListener


Regards,
Nishant Sonar

-Original Message-
From: Daniele De Francesco [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 23, 2008 8:15 PM
To: Maven Users List
Subject: Can't get to work exec plugin

Hi,

I have to accomplish this task, that I thought it was simple..., I have
to
launch a java program (I used exec plugin) I issue the command

mvn -Premote -Dmaven.test.skip=true clean package exec:java

and I get


[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO]

[INFO] Building ailclient
[INFO]task-segment: [clean, package, exec:java]
[INFO]

[INFO] [clean:clean]
[INFO] Deleting directory C:\workspace-nb\ailclient\target
[INFO] Deleting directory C:\workspace-nb\ailclient\target\classes
[INFO] Deleting directory C:\workspace-nb\ailclient\target\test-classes
[INFO] Deleting directory C:\workspace-nb\ailclient\target\site
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading activation:activation:1.0.2
  This artifact has been relocated to javax.activation:activation:1.0.2.


[INFO] [compiler:compile]
[INFO] Compiling 11 source files to
C:\workspace-nb\ailclient\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Not compiling test sources
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [jar:jar]
[INFO] Building jar: C:\workspace-nb\ailclient\target\ailclient-
1.1-SNAPSHOT.jar

[INFO] Preparing exec:java
[INFO] No goals needed for project - skipping
[INFO] [exec:java]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] javax/jms/MessageListener
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError: javax/jms/MessageListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(
SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.codehaus.mojo.exec.ExecJavaMojo$IsolatedClassLoader.loadClass
(Exe
cJavaMojo.java:265)
at org.codehaus.mojo.exec.ExecJavaMojo.execute(ExecJavaMojo.java
:113)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPlugi
nManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals
(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
(Defau
ltLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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:585)
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)
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Jan 23 15:27:03 CET 2008
[INFO] Final Memory: 6M/14M
[INFO]


As you can see the exec plugin complains that it's not able to find the
dependency javax.jms:jms:1.1 that definitely it's on 

assembly plugin builds again

2007-12-16 Thread Sonar, Nishant

I am using assembly plugin to generate a jar/zip. Why is this plugin
compiling again the stuffs it wants to pack in the assembly?
I want to created zip containing some properties file and the jar
created, but I cant understand why it recompiles retests again and
again.

Is there a way to stop compiling again?

Nishant Sonar


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



RE: gathe rlist of plugin in poms

2007-12-06 Thread Sonar, Nishant
Hi 
Calling mvn dependency:resolve-plugins solved it!

Regards,
Nishant Sonar

-Original Message-
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 10:28 PM
To: Maven Users List
Subject: Re: gathe rlist of plugin in poms

You can use the maven-help-plugin for this. The following command will 
give you *lots* of information, but it will include the plugins that you

have configured.

mvn help:effective-pom

Sonar, Nishant wrote:
 Hi 
 
  
 
 I want to gather list of all plugins used in the poms , with there
 versions,groupid and artifact id. 
 
 For dependency we are using dependency:resolve is there any command
for
 plugin
 
  
 
 -Nishant
 
  
 
 


-- 
Dennis Lundberg

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


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



deploy jar with dependencies

2007-12-05 Thread Sonar, Nishant
Hi

 

I need to build on a machine and deploy the jar on another machine. Now
there are dependencies in my jar are to be supplied with this jar, as it
is no the build machine the classpath.

 

How should I create a single distributable comprising all the jars? Like

 

Myjar.jar

|---com.myapp.app

|---lib

|--dependent jars

 

 

Regards,

Nishant Sonar



multiple profiles sharing a sommon set of plugin execution

2007-12-03 Thread Sonar, Nishant
Hi 

 

I have a project where I want to read a properties file depending on the
environment. I want to use profiles here. Now my build differed only in
the properties file and the plugin , rest of the plugin execution
remains same. This way I need to create two profiles with 2 build and
the repeatative (redundant) plugin exections in both profiles only
differeing in properties plugin execution.

 

Is there a way to execute rest of the plugins by default and then choose
the properties plugin differently ?

 

Regards,

Nishant Sonar



jaxws plugin doesnt works on linux

2007-11-13 Thread Sonar, Nishant
Hi 

 

I am running jaxws-plugin (wsimport) when I run it on windows maching it
works fine but the same pom when running on linux environment creates
problems , while generating wsimport artifacts. I am using following as
the jaxws-plugin in pom

 

 

!--  generate ws client artifacts --

plugin

  groupIdorg.codehaus.mojo/groupId

  artifactIdjaxws-maven-plugin/artifactId

  version1.2/version

  configuration

 

catalog

 
${basedir}/src/main/resources/META-INF/jax-ws-catalog.xml

/catalog

verbosetrue/verbose

keeptrue/keep

wsdlUrls

  wsdlUrl http://com.XXX.lucenesearch/wsdl /wsdlUrl

/wsdlUrls

 

packageName

  com.XXX.cib.readapi.wsclient

/packageName

bindingDirectory

  ${basedir}/src/main/resources/webservice

/bindingDirectory

  /configuration

  executions

execution

  goals

goalwsimport/goal

  /goals

  phasegenerate-sources/phase

 

/execution

  /executions

 

My commands run as

 

Linux 

___

 

jaxws:wsimport args: [

-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, 

-d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog, /src/main/resources/META-INF/jax-ws-catalog.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, 

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

Windows 

__

 

jaxws:wsimport args: [

-s,
C:\workspace\lucene_search_framework\search-api-mock\target\jaxws\wsimpo
rt\java, 

-d, C:\workspace\lucene_search_framework\search-api-mock\target\classes,
-verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
META-INF\jax-ws-catalog.xml, 

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-client.xml,

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-schema.xml,

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

for windows it runs fine and I get the generated classes but for linux I
get the following error

 

[INFO] jaxws:wsimport args: [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

[ERROR] Failed to read the WSDL document:
http://com.XXX.lucenesearch/wsdl, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not wsdl:definitions.

unknown location

 

Failed to parse the WSDL.

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error executing: wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

[INFO]


[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing:
wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:564)

at

RE: jaxws plugin doesnt works on linux

2007-11-13 Thread Sonar, Nishant

I've found the solution now, it was issue with absolute path for linux
environment for everything binding files, wsdl location etc

Nishant

-Original Message-
From: Sonar, Nishant 
Sent: Tuesday, November 13, 2007 7:48 PM
To: Maven Users List
Subject: jaxws plugin doesnt works on linux 

Hi 

 

I am running jaxws-plugin (wsimport) when I run it on windows maching it
works fine but the same pom when running on linux environment creates
problems , while generating wsimport artifacts. I am using following as
the jaxws-plugin in pom

 

 

!--  generate ws client artifacts --

plugin

  groupIdorg.codehaus.mojo/groupId

  artifactIdjaxws-maven-plugin/artifactId

  version1.2/version

  configuration

 

catalog

 
${basedir}/src/main/resources/META-INF/jax-ws-catalog.xml

/catalog

verbosetrue/verbose

keeptrue/keep

wsdlUrls

  wsdlUrl http://com.XXX.lucenesearch/wsdl /wsdlUrl

/wsdlUrls

 

packageName

  com.XXX.cib.readapi.wsclient

/packageName

bindingDirectory

  ${basedir}/src/main/resources/webservice

/bindingDirectory

  /configuration

  executions

execution

  goals

goalwsimport/goal

  /goals

  phasegenerate-sources/phase

 

/execution

  /executions

 

My commands run as

 

Linux 

___

 

jaxws:wsimport args: [

-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, 

-d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog, /src/main/resources/META-INF/jax-ws-catalog.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, 

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

Windows 

__

 

jaxws:wsimport args: [

-s,
C:\workspace\lucene_search_framework\search-api-mock\target\jaxws\wsimpo
rt\java, 

-d, C:\workspace\lucene_search_framework\search-api-mock\target\classes,
-verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
META-INF\jax-ws-catalog.xml, 

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-client.xml,

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-schema.xml,

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

for windows it runs fine and I get the generated classes but for linux I
get the following error

 

[INFO] jaxws:wsimport args: [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

[ERROR] Failed to read the WSDL document:
http://com.XXX.lucenesearch/wsdl, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not wsdl:definitions.

unknown location

 

Failed to parse the WSDL.

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error executing: wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

[INFO]


[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing:
wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice

RE: jaxws plugin doesnt works on linux

2007-11-13 Thread Sonar, Nishant

I've found the solution now, it was issue with absolute path for linux
environment for everything binding files, wsdl location etc

Nishant

-Original Message-
From: Sonar, Nishant 
Sent: Tuesday, November 13, 2007 7:48 PM
To: Maven Users List
Subject: jaxws plugin doesnt works on linux 

Hi 

 

I am running jaxws-plugin (wsimport) when I run it on windows maching it
works fine but the same pom when running on linux environment creates
problems , while generating wsimport artifacts. I am using following as
the jaxws-plugin in pom

 

 

!--  generate ws client artifacts --

plugin

  groupIdorg.codehaus.mojo/groupId

  artifactIdjaxws-maven-plugin/artifactId

  version1.2/version

  configuration

 

catalog

 
${basedir}/src/main/resources/META-INF/jax-ws-catalog.xml

/catalog

verbosetrue/verbose

keeptrue/keep

wsdlUrls

  wsdlUrl http://com.XXX.lucenesearch/wsdl /wsdlUrl

/wsdlUrls

 

packageName

  com.XXX.cib.readapi.wsclient

/packageName

bindingDirectory

  ${basedir}/src/main/resources/webservice

/bindingDirectory

  /configuration

  executions

execution

  goals

goalwsimport/goal

  /goals

  phasegenerate-sources/phase

 

/execution

  /executions

 

My commands run as

 

Linux 

___

 

jaxws:wsimport args: [

-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, 

-d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog, /src/main/resources/META-INF/jax-ws-catalog.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, 

-b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, 

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

Windows 

__

 

jaxws:wsimport args: [

-s,
C:\workspace\lucene_search_framework\search-api-mock\target\jaxws\wsimpo
rt\java, 

-d, C:\workspace\lucene_search_framework\search-api-mock\target\classes,
-verbose, 

-p, com.XXX.cib.readapi.wsclient, 

-catalog,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
META-INF\jax-ws-catalog.xml, 

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-client.xml,

-b,
C:\workspace\lucene_search_framework\search-api-mock\src\main\resources\
webservice\custom-schema.xml,

http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

for windows it runs fine and I get the generated classes but for linux I
get the following error

 

[INFO] jaxws:wsimport args: [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

parsing WSDL...

 

 

[ERROR] Failed to read the WSDL document:
http://com.XXX.lucenesearch/wsdl, because 1) could not find the
document; /2) the document could not be read; 3) the root element of the
document is not wsdl:definitions.

unknown location

 

Failed to parse the WSDL.

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error executing: wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-schema.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice/custom-client.xml, http://com.XXX.lucenesearch/wsdl]

[INFO]


[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Error executing:
wsimport [-s,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/jaxws/w
simport/java, -d,
/usr/local/qawork/lucene_search_framework/search-api-mock/target/classes
, -verbose, -p, com.XXX.cib.readapi.wsclient, -catalog,
/src/main/resources/META-INF/jax-ws-catalog.xml, -b,
/usr/local/qawork/lucene_search_framework/search-api-mock/src/main/resou
rces/webservice

RE: compilation error when building jaxb using mvn2

2007-11-13 Thread Sonar, Nishant
Search for ajar which has this class  SAXParseException2 and add it to
plugin dependency. Rem full name com/sun/istack/SAXParseException2

Nishant Sonar,


-Original Message-
From: chandan choudhary [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 14, 2007 1:04 PM
To: users@maven.apache.org
Subject: compilation error when building jaxb using mvn2


hi,
when i am building my jaxb using maven 2 in linux its working fine.but
when
i do this on windows it gives following  error --.
if any one has solution then please reply me.

---
[INFO] Compiling
file:/D:/Maven2POCPlatformService/zensoa-platformservice-jaxb/s
rc/main/resources/schema/Common/CommonBasicElements_1_0.xsd
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] com/sun/istack/SAXParseException2
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError: com/sun/istack/SAXParseException2
at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:448)
at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:397)
at com.sun.tools.xjc.XJC2Task.execute(XJC2Task.java:332)
at com.sun.tools.xjc.maven2.XJCMojo.execute(XJCMojo.java:304)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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 org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 12 seconds
[INFO] Finished at: Wed Nov 14 12:40:37 GMT+05:30 2007
[INFO] Final Memory: 5M/10M
[INFO]

-- 
View this message in context:
http://www.nabble.com/compilation-error-when-building-jaxb-using-mvn2-tf
4802798s177.html#a13741340
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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



driver not found for hibernate3-maven-plugin

2007-11-02 Thread Sonar, Nishant
Hi

 

I have 2 child modules under 1 parent; one of them is using the
mssqlserver driver and other the oracle driver.

 

When I run the POMs for these which are using the
hibernate3-maven-plugin, the one which executes later says that the
driver is not found

I've tried changing the sequence of pom execution for both but again
it's for later where I get the driver not found error.

 

The drivers are specified as plug-in dependencies.

Does anybody faced such kind of problem or maybe I am taking a wrong
direction for trouble shooting

 

Regards,

Nishant Sonar

Synechron Technologies

Desk: +91 20 305 13400 (Ext# 294) Cell: +91 9823871676

Working hours : 2:30 AM - 10:30 AM EST

 



jars always added to ear

2007-10-31 Thread Sonar, Nishant
Hi

I am building an ear from ear-plugin which composes of two moduels a.war
and b.jar .i only want ti add these 2 modules to ear , but the followinf
lisr of jars are always added. This is strange for me, I'[ve checked in
my parent poms for this module and other , nowhere I am using these as
dependencies .Here is the list

 

[INFO] Copying artifact[jar:javax.transaction:jta:1.0.1B]
to[jta-1.0.1B.jar]

[INFO] Copying artifact[jar:asm:asm:1.5.3] to[asm-1.5.3.jar]

[INFO] Copying
artifact[jar:commons-collections:commons-collections:2.1.1]
to[commons-collections-2.1.1.jar]

[INFO] Copying artifact[jar:net.sf.ehcache:ehcache:1.2]
to[ehcache-1.2.jar]

[INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4]
to[commons-logging-1.0.4.jar]

[INFO] Copying artifact[jar:dom4j:dom4j:1.6.1] to[dom4j-1.6.1.jar]

[INFO] Copying artifact[jar:org.hibernate:hibernate:3.2.0.cr5]
to[hibernate-3.2.0.cr5.jar]

[INFO] Copying artifact[jar:cglib:cglib:2.1_3] to[cglib-2.1_3.jar]

[INFO] Copying artifact[jar:asm:asm-attrs:1.5.3] to[asm-attrs-1.5.3.jar]

[INFO] Copying artifact[jar:antlr:antlr:2.7.6] to[antlr-2.7.6.jar]

 

Is this the default nature of ear-plugin or is there any alternate to
restrict these jars

 

Regards,

Nishant Sonar

 



RE: copy jars to jboss lib

2007-10-29 Thread Sonar, Nishant
Hi Wayne

Your mail did help ...you know sometimes even we have worked on some
plugins but still forget them.

Thanks it worked

Regards,
Nishant Sonar
Synechron Technologies

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 29, 2007 10:59 AM
To: Maven Users List
Subject: Re: copy jars to jboss lib

Actually, not unpack, but one of the other goals in dependency plugin
(perhaps copy-dependencies?) will probably work.
http://maven.apache.org/plugins/maven-dependency-plugin/examples/copying
-project-dependencies.html

Wayne

On 10/28/07, Wayne Fay [EMAIL PROTECTED] wrote:
 Not positive, but dependency:unpack might be what you need.

 Wayne

 On 10/28/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
  Hi,
 
 
 
  I need to add some libraries (Jars) to jboss in
  {JBOSS_HOME}/server/default/lib, these libraries are in the hosted
  central server repository (proximity). What I need is to write a POM
  that can download these dependencies to a lib folder (without group
  directories) and then copy these to jboss/lib. E.g
 
 
 
  dependencies
 
  
 
  /dependencies
 
 
 
  To be download to
 
 
 
  {project_home}\lib\
 
 -jar-1.0.jar
 
 -jar-2.0.2.jar
 
 -xxxjar-3.2.jar
 
 -abc-4.5.jar
 
  And then these to be copied to jboss/server/default/lib
 
 
 
  Can anybody help me in this?
 
 
 
  Regards,
 
  Nishant Sonar
 
 


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


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



use a dependency in system scope witout version

2007-10-29 Thread Sonar, Nishant
Hi 

 

Can I use a dependency with scope=system with no version number

 

I want to use  rt.jar which is inside C:\Java\jdk1.5.0_11\jre\lib . now
this jar doesn't has a verion number

How should I use ot

 

dependency

groupIdwhat to use here?/

artifactIdWhat to use here?/

versionwhat version if no version for the jar/

scopesystem/

systemPath C:\Java\jdk1.5.0_11\jre\lib/systemPath

/dependency

 

 

Regards,

Nishant Sonar

 



copy jars to jboss lib

2007-10-28 Thread Sonar, Nishant
Hi,

 

I need to add some libraries (Jars) to jboss in
{JBOSS_HOME}/server/default/lib, these libraries are in the hosted
central server repository (proximity). What I need is to write a POM
that can download these dependencies to a lib folder (without group
directories) and then copy these to jboss/lib. E.g

 

dependencies



/dependencies

 

To be download to 

 

{project_home}\lib\

-jar-1.0.jar

-jar-2.0.2.jar

-xxxjar-3.2.jar

-abc-4.5.jar

And then these to be copied to jboss/server/default/lib

 

Can anybody help me in this?

 

Regards,

Nishant Sonar



profiles qustion

2007-10-14 Thread Sonar, Nishant
Hi

 

We work with profiles in maven as 

 

Mvn -Pprofile1,profile2

 

On pom

 

profiles

profile

idprofile1/id

build

plugin

... 

/plugin

/build

profile

profile

idprofile2/id

build

plugin

... 

/plugin

/build

profile

/profiles

 

In this case both the builds are different .Consider a case where we have a 
comman build tasks in 

Both tasks but some ½ different build tasks (plugins) to be different , Is 
there a way to specify one common build which

Will always execute and one which will execute plugins on basis of profile

 

 

Thanks

nishant

 



package file in ear throug ear-plugin

2007-10-10 Thread Sonar, Nishant
Hi

 

I want to add a file 'aop.xml' to ear in the META-INF folder, is it
possible through 

Maven-ear-plugin?

 

 

xxx.ear 

|

|---META-INF

|

|application.xml

|---aop.xml (want toad this file here)

|---abc.war

|---pqr.war



Pleas help

 

-Nishant 



RE: package file in ear throug ear-plugin

2007-10-10 Thread Sonar, Nishant
Thanks Wayene

I dont know how did I skip this thing...its written there...i fooled
myself

Regards,
Nishant

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 10, 2007 4:59 PM
To: Maven Users List
Subject: Re: package file in ear throug ear-plugin

As seen in the documentation:
http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html

The configuration you are looking for is earSourceDirectory which
defaults to ${basedir}/src/main/application. Try putting your file
there.

Wayne

On 10/10/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
 Hi



 I want to add a file 'aop.xml' to ear in the META-INF folder, is it
 possible through

 Maven-ear-plugin?





 xxx.ear

 |

 |---META-INF

|

|application.xml

|---aop.xml (want toad this file here)

|---abc.war

|---pqr.war



 Pleas help



 -Nishant



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


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



RE: Load a property file in a pom.xml

2007-10-04 Thread Sonar, Nishant

You can use a maven-properties-plugin developed by Zarar Sidddiqui ,
this way u can have a properties file , and all name=value pairs
available to the build from the global prop file.

http://arsenalist.com/2007/02/07/maven-properties-plugin-download/


Thanks
Nishant Sonar
-Original Message-
From: Gisbert Amm [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 7:39 AM
To: Maven Users List
Subject: Re: Load a property file in a pom.xml

The Maven way is to use snapshots or version ranges for that.

-Gisbert

NiranjanG wrote:
 Hi, 
 
  Can anyone let me know, How I can load a property file in pom.xml.
 
 For eg., in my pom.xml, I have to update the version of a dependency
jar .
 dynamically, which will be available in a global property file.
 
 This is needed because, the component I work depends on 15 otehr
componets,
 and I do not have any automated way to know the latest versions of the
 binaries published by them.
 I decided to have a global property file, which contains all the
component's
 latest versions( which will be updated dynamically ,when they publish
their
 binary, and I want update my pom automatically with the values in that
file,
 so that I will not need to modify my pom everyday.
 
 Your suggestions will be invaluable to me.
 Thanks,
 Niranjan

-- 
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

11 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas 
Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert 
Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren

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


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



adding with current classpath a resource?

2007-10-04 Thread Sonar, Nishant
Hello,

 

I want to add a reference (folder) for the current classpath

 

Ie .i wanna set something as

 

Classpath=classpath;some/folder/ref

 

Through sirefireplugin

 

I am not getting what to write for existing 'classpath'

 

I wrote as

 

plugin

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-surefire-plugin/artifactId

  configuration

 
argLine-classpath=${classpath};${project.build.outputDirectory}\somedi
r/argLine

  /configuration

/plugin

 

 

The maven is not taking ${classpath} it says null , I also 

Tried
{maven.test.classpath},{maven.compile.classpath},{maven.compile.classpat
h} 

But all are giving null

 

How to use current classpath here and add something to that classpath in
surefire plugin

 

Thanks

Nishant Sonar



RE: selective modules build

2007-10-04 Thread Sonar, Nishant
Thanks Brian 
I think that this will work , I ddnt try it yet but will do shortly

I never knew activeByDefault thing

-Nishant

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 1:16 AM
To: Maven Users List
Subject: RE: selective modules build

Put each module in a profile and then you could do mvn -P1,2 or -P3. If
you put all of them in a profile with activeByDefault then this one
will go if nothing else is active but is deactivated if something else
is.

-Original Message-
From: Sonar, Nishant [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 5:15 PM
To: Maven Users List
Subject: RE: selective modules build

Thanks tim,

But for this I need to add profiles /profiles for all kind of
combinations for modules.

e.g. 
profile
profile
id1n2/id
modules
module
Ch1
/module
module
Ch2
/module
/modules

/profile
profile
id3Only/id
modules
module
Ch3
/module
/modules

/profile
profiles

And the command as 
mvn clean -P3Only
mvn clean -P1n2

this is tedious, also when I need to do all the 
mvn clean -P3Only,1n2,somemore

Is there any workaround?


Thanks
Nishant


-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 3:09 AM
To: Maven Users List
Subject: Re: selective modules build

Hi,

$ mvn --help

usage: mvn [options] [goal(s)] [phase(s)]

Options:
[...]
  -P,--activate-profilesComma-delimited list of profiles to
activate

-Tim

Sonar, Nishant schrieb:
 Hi,
 
  
 
 I want to run a selective modules when I am building, my pom hierarchy
 is like
 
  
 
 * Super- parent
 
   *   Parent1
 
   *   Ch1
   *   Ch2
 
   *   Parent 2
 
   *   Ch1
   *   Ch2
 
   *   Parent 3
 
   *   Ch1
   *   Ch2
   *   Ch3
 
 I am running pom for super-parent as these are necessary tasks and
want
 to custom run modules like parent 1 only, parent 1@ only, parent 3
 only, in super-parent.pom I defined profiles as
 
 profile
 
 id1/id
 
 modules
 
 moduleparent1/module
 
 /profile
 
 profile
 
 id12/id
 
 modules
 
 moduleparent1/module
 
 moduleparent2/module
 
 /profile
 
 profile
 
 id3/id
 
 modules
 
 moduleparent3/module
 
 /profile
 
 profile
 
 idall/id
 
 modules
 
 moduleparent1/module
 
 moduleparent2/module
 
 moduleparent3/module
 
 /profile
 
  
 
 My intension is to control this selective module build from command
line
 specifying which modules to build, is it possible?
 
  
 
 Regards,
 
 Nishant Sonar
 
  
 
 


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


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


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


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



RE: maven-surefire-plugin

2007-10-04 Thread Sonar, Nishant
I came across your mail for providing the classpath argument in surefire
plugin. I am coming across the same need , for adding a dependency in
classpath plus the existing classpath. 
Did you come across the workaround , found some maven property to refer
to current classpath? If yes please share.
-Nishant

-Original Message-
From: Guillaume Boucherie [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 9:30 AM
To: Maven Users List
Subject: Re: maven-surefire-plugin

Thanks a lot, I've just tested on my project and it work fine.

-- 
CletteBou
clettebou.miniville.fr


2007/9/26, Tim Kettler [EMAIL PROTECTED]:

 Ah ok, that's something different. I understand that you don't want to
 create extra projects for this jars as they probably never will
change.

 First I thought you just could place the jars in a directory in your
 project and add system dependendcies to them. But then I realized that
 'system' is already a scope and thus one can't further limit the scope
 to 'test'. Thinking about this a bit I think 'system' shouldn't be a
 scope at all, it's more of a dependency type.

 The only other solution I can think of is to store the jars in a
 repository like directory layout (for example under src/test/testjars)
 and declare this directory as a repository in your pom:

repository
  idmy-test-artifact-repository/id
  urlfile://${basedir}/src/test/testjars/url
/repository

 and then declare the jars as normal test-scoped dependencies.

 -Tim

 Guillaume Boucherie schrieb:
  Oh I'm sorry I'm not clear.
  In my project I have a functionality that search xml files with the
same
  name in the classpath and merge it before read it.
  And to test it I must have jars that just contains xml file, I don't
 want to
  create a maven project just for this type of jar.
 


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



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



RE: The build classpath

2007-10-04 Thread Sonar, Nishant
Hi Yan


Did you get any solution to this one, got any hold on the property?

Please share.

-Nishant

-Original Message-
From: Yan Huang [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 01, 2007 12:28 PM
To: Maven Users List
Subject: The build classpath

Hello,

Is there a maven property which I can get the build classpath for a
project?
the ${java.class.path} doesn't provide that.

Or, I have to write a mojo to get it through the call to
MavenProject.get*ClasspathElements()?

Thanks
Yan

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



RE: an issue with maven clean plug-in

2007-10-04 Thread Sonar, Nishant
Hi

You can try different workaround of specifying the excludes first and
then includes.

I never tried it but you can give it a shot...

Like

plugin
artifactIdmaven-clean-plugin/artifactId
configuration
  filesets
fileset
  directorysrc/directory
excludes
exclude**/*.init.xml/exclude
  /excludes
  includes
include**/*.xml/include
include**/*.sql/include
  /includes
  
  .../plugin


-Nishant

-Original Message-
From: Yan Huang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 1:11 PM
To: Maven Users List
Subject: an issue with maven clean plug-in

Hello,

It seems to me that maven clean plug-in doesn't handle excludes
configuration well. For example, I have this configuration:

  plugin
artifactIdmaven-clean-plugin/artifactId
configuration
  filesets
fileset
  directorysrc/directory
  includes
include**/*.xml/include
include**/*.sql/include
  /includes
  excludes
exclude**/*.init.xml/exclude
  /excludes
  .../plugin

My attention is to delete all *.xml file under src but leave
*.init.xml
alone. However, the plug-in removes everything including *.init.xml. Did
anyone encounter the same issue? If so, how did you work around it?
using
antrun plug-in instead?

Thanks
Yan

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



classes not refering to test resources internally?

2007-10-03 Thread Sonar, Nishant
Hi

 

I have some XML files as test resources to work on. I have the classes
use these resources as

 

String SOAP_REQUEST_SAML2_UNSIGNED_NO_ROLES 

= xml/SoapRequestSaml2Unsigned-NoRoles.xml;

 

String SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES 

= xml/SoapRequestSaml2EnvelopedDigitalSignature-NoRoles.xml;

 

String
SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES_REFERENCE_URI 

=
xml/SoapRequestSaml2EnvelopedDigitalSignature-NoRoles-ReferenceUri.xml
;

 

My project structure is

 

Src/main/java/ - sources

Src/test/java -test sources

Src/test/resources - test resources like XML files in xml/file1.xml etc.

 

When I compile test the resources are into

 

Test-classes/xml/xmlfiles

 

I am getting the execpetion

java.io.FileNotFoundException:

xml\SoapRequestSaml2EnvelopedDigitalSignature-NoRoles.xml (The system
cannot find the path specified)

 

how maven provide the test resources to java test cases when the
resources are demanded

internally . like in this case

 

 

Please help 

Please reply if further clarification needed. 

 

Regards,

Nishant

 



classes not refering to test resources internally?

2007-10-03 Thread Sonar, Nishant
Hi

 

I have some XML files as test resources to work on. I have the classes
use these resources as

 

String SOAP_REQUEST_SAML2_UNSIGNED_NO_ROLES 

= xml/SoapRequestSaml2Unsigned-NoRoles.xml;

 

String SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES 

= xml/SoapRequestSaml2EnvelopedDigitalSignature-NoRoles.xml;

 

String
SOAP_REQUEST_SAML2_ENVELOPED_DIGITAL_SIGNATURE_NO_ROLES_REFERENCE_URI 

=
xml/SoapRequestSaml2EnvelopedDigitalSignature-NoRoles-ReferenceUri.xml
;

 

My project structure is

 

Src/main/java/ - sources

Src/test/java -test sources

Src/test/resources - test resources like XML files in xml/file1.xml etc.

 

When I compile test the resources are into

 

Test-classes/xml/xmlfiles

 

I am getting the execpetion

java.io.FileNotFoundException:

xml\SoapRequestSaml2EnvelopedDigitalSignature-NoRoles.xml (The system
cannot find the path specified)

 

how maven provide the test resources to java test cases when the
resources are demanded

internally . like in this case

 

 

Please help 

Please reply if further clarification needed. 

 

Regards,

Nishant

 



didnt get this phenomena with symlinks

2007-10-02 Thread Sonar, Nishant
Hello

 

I have a dir structure as

 

LoginModules

|---LMCore

|---LMHttp

|---LMWebTest

|---supportfiles


what I want to do is 

1 .  In the parent pom (LoginModules), I am copying something from a
'suppportfiles' in 

To target/generated-resources/deployable/server/default/.

 

2. For the jars grnerated in sub-modules(LMCore,LMHttp,LMWebTest) 

I am copying them to
target/generated-resources/deployable/server/default/

In there respective directory , so what I have is something like

 

LoginModules

|---LMCore

|--- target/generated-resources/deployable/server/default/LMCore.jar

|---LMHttp

|--- target/generated-resources/deployable/server/default/
LMHttp.jar

|---LMWebTest

|--- target/generated-resources/deployable/server/default/
LMWebTest.war

|---supportfiles

 

With the submodules its fine I get the desired structure after running
mvn clean install, but for the parent

I am not getting 

 

LoginModules/
target/generated-resources/deployable/server/default/supportingfiles

 

 

What I see when running with -X is that there are some 'symlinks'
refered by manven and a clean

On child erases target for parent? I don't understand this phenomena

 

Also what I have seen is that a clean called for parent module deletes
the target for

Previous module.

 

Regards,

Nishant Sonar



custom jar contents?

2007-10-01 Thread Sonar, Nishant
Hi 

I have a structure as 

MyAppModule

Src

Main

Java

Com

Myapp

Bankapplication

Some classes

Utilities

FormulaCalc

someclasses

DateCalc

Someclasses

Pom.xml

 

I need top have 2 jars as utilitied and myappmodule. What can I do for
such a case where there's a single pom to generate 2 jars comprising
selective classes?

 

-Nishant



how to refer set of properties for maven?

2007-09-28 Thread Sonar, Nishant
Maven has got some properties (inherent) like
project.build.outputDirectory where can I find the rest of the
properties?

 

- Nishant



sending a file to remote place through ftp

2007-09-27 Thread Sonar, Nishant
Hi Users,

 

I need to copy a file to a remote server through ftp://server/place , is
there a plugin that picks the specific file and ftpes to the
destination, The distribution management way is not what I want I don't
want the artifacts to be hosted to a remote repository , I want to send
a file to a remote destination through ftp.

 

Thanks

Nishant



RE: selective modules build

2007-09-25 Thread Sonar, Nishant
Thanks tim,

But for this I need to add profiles /profiles for all kind of
combinations for modules.

e.g. 
profile
profile
id1n2/id
modules
module
Ch1
/module
module
Ch2
/module
/modules

/profile
profile
id3Only/id
modules
module
Ch3
/module
/modules

/profile
profiles

And the command as 
mvn clean -P3Only
mvn clean -P1n2

this is tedious, also when I need to do all the 
mvn clean -P3Only,1n2,somemore

Is there any workaround?


Thanks
Nishant


-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 3:09 AM
To: Maven Users List
Subject: Re: selective modules build

Hi,

$ mvn --help

usage: mvn [options] [goal(s)] [phase(s)]

Options:
[...]
  -P,--activate-profilesComma-delimited list of profiles to
activate

-Tim

Sonar, Nishant schrieb:
 Hi,
 
  
 
 I want to run a selective modules when I am building, my pom hierarchy
 is like
 
  
 
 * Super- parent
 
   *   Parent1
 
   *   Ch1
   *   Ch2
 
   *   Parent 2
 
   *   Ch1
   *   Ch2
 
   *   Parent 3
 
   *   Ch1
   *   Ch2
   *   Ch3
 
 I am running pom for super-parent as these are necessary tasks and
want
 to custom run modules like parent 1 only, parent 1@ only, parent 3
 only, in super-parent.pom I defined profiles as
 
 profile
 
 id1/id
 
 modules
 
 moduleparent1/module
 
 /profile
 
 profile
 
 id12/id
 
 modules
 
 moduleparent1/module
 
 moduleparent2/module
 
 /profile
 
 profile
 
 id3/id
 
 modules
 
 moduleparent3/module
 
 /profile
 
 profile
 
 idall/id
 
 modules
 
 moduleparent1/module
 
 moduleparent2/module
 
 moduleparent3/module
 
 /profile
 
  
 
 My intension is to control this selective module build from command
line
 specifying which modules to build, is it possible?
 
  
 
 Regards,
 
 Nishant Sonar
 
  
 
 


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


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



plugin for XML properties file read?

2007-09-25 Thread Sonar, Nishant
Hi 

 

Does anyone knows an XML Properties file plugin , like we had XML
property file in ANT

 

property name='foo' value='bar'

property name='foo'1 value='bar1'

property name='foo2' value='bar2'

 

I catch up with properties plugin from Zarar Siddiqui but it doesn't
solve my problem

 

Thanks

 

Nishant



RE: Copying files after a build

2007-09-25 Thread Sonar, Nishant
You can use copy plugin

plugin

groupIdde.qu.maven.maven-plugins/groupId

artifactIdcopy-maven-plugin/artifactId
version1.0.3/version
executions
execution
phaseinstall/phase
goals

goalcopy-files/goal
/goals
configuration
copyActions

copy-files

files

filetarget/*.ear/file

/files

targetDirectory

${basedir}/../${deploy.path}/${jboss.deploy.path}

/targetDirectory

/copy-files

copy-files

files

filetarget/*.ear/file

/files

targetDirectory

${jboss.home}/${jboss.deploy.path}

/targetDirectory

/copy-files
/copyActions
/configuration
/execution
/executions
/plugin

Thanks
nishant

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 12:52 PM
To: Maven Users List
Subject: Re: Copying files after a build

I was thinking about this the other day, and ran across this blog that
might be helpful:
http://www.gridshore.nl/blog/index.php?/archives/46-Luntbuild-and-Maven-
2,-the-ideal-couple.html

Wayne

On 9/25/07, Gordon Dickens [EMAIL PROTECTED] wrote:
 Hello,

 I have a multi project build with Maven 2 and when it is complete, I
 want to copy several files to a common directory.  Currently I am
using
 the Ant plugin to do this.  Is there a more Maven appropriate
 implementation?

 snippet
 plugins
   plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
 idmoveFiles/id
 phaseinstall/phase
 configuration
   tasks
 ...
   copy todir=somedir flatten=true overwrite=true
 verbose=true failonerror=true
   fileset dir=commonbuildtreedir
 includes=**/target/*-sa*.jar/
   fileset dir=someotherdir
includes=**/target/*.zip/
   /copy
 ...
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins



 Thanks,
 Gordon Dickens

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



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


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



RE: selective modules build

2007-09-25 Thread Sonar, Nishant
There should be a command line option to selectively build modules. Like
a module set only.

What do you think?
-Nishant
-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 25, 2007 5:21 PM
To: Maven Users List
Subject: Re: selective modules build

That is the only available option at this time.

Wayne

On 9/25/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
 Thanks tim,

 But for this I need to add profiles /profiles for all kind of
 combinations for modules.

 e.g.
 profile
 profile
 id1n2/id
 modules
 module
 Ch1
 /module
 module
 Ch2
 /module
 /modules

 /profile
 profile
 id3Only/id
 modules
 module
 Ch3
 /module
 /modules

 /profile
 profiles

 And the command as
 mvn clean -P3Only
 mvn clean -P1n2

 this is tedious, also when I need to do all the
 mvn clean -P3Only,1n2,somemore

 Is there any workaround?


 Thanks
 Nishant


 -Original Message-
 From: Tim Kettler [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 25, 2007 3:09 AM
 To: Maven Users List
 Subject: Re: selective modules build

 Hi,

 $ mvn --help

 usage: mvn [options] [goal(s)] [phase(s)]

 Options:
 [...]
   -P,--activate-profilesComma-delimited list of profiles to
 activate

 -Tim

 Sonar, Nishant schrieb:
  Hi,
 
 
 
  I want to run a selective modules when I am building, my pom
hierarchy
  is like
 
 
 
  * Super- parent
 
*   Parent1
 
*   Ch1
*   Ch2
 
*   Parent 2
 
*   Ch1
*   Ch2
 
*   Parent 3
 
*   Ch1
*   Ch2
*   Ch3
 
  I am running pom for super-parent as these are necessary tasks and
 want
  to custom run modules like parent 1 only, parent 1@ only, parent 3
  only, in super-parent.pom I defined profiles as
 
  profile
 
  id1/id
 
  modules
 
  moduleparent1/module
 
  /profile
 
  profile
 
  id12/id
 
  modules
 
  moduleparent1/module
 
  moduleparent2/module
 
  /profile
 
  profile
 
  id3/id
 
  modules
 
  moduleparent3/module
 
  /profile
 
  profile
 
  idall/id
 
  modules
 
  moduleparent1/module
 
  moduleparent2/module
 
  moduleparent3/module
 
  /profile
 
 
 
  My intension is to control this selective module build from command
 line
  specifying which modules to build, is it possible?
 
 
 
  Regards,
 
  Nishant Sonar
 
 
 
 


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


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



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


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



selective modules build

2007-09-24 Thread Sonar, Nishant
Hi,

 

I want to run a selective modules when I am building, my pom hierarchy
is like

 

*   Super- parent

*   Parent1

*   Ch1
*   Ch2

*   Parent 2

*   Ch1
*   Ch2

*   Parent 3

*   Ch1
*   Ch2
*   Ch3

I am running pom for super-parent as these are necessary tasks and want
to custom run modules like parent 1 only, parent 1@ only, parent 3
only, in super-parent.pom I defined profiles as

profile

id1/id

modules

moduleparent1/module

/profile

profile

id12/id

modules

moduleparent1/module

moduleparent2/module

/profile

profile

id3/id

modules

moduleparent3/module

/profile

profile

idall/id

modules

moduleparent1/module

moduleparent2/module

moduleparent3/module

/profile

 

My intension is to control this selective module build from command line
specifying which modules to build, is it possible?

 

Regards,

Nishant Sonar

 



how NOT to include any lib (dependencies) in the WAR ?

2007-09-18 Thread Sonar, Nishant
Whenever I create a WAR , it creates a WEB-INF/lib inside the war and
adds all the dependencies in the WAR .

What can I do NOT to include any lib (dependencies) in the WAR , and
exclude the lib folder to be in war, here's my 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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
parent
groupId workspace.samples/groupId
artifactIdsimpleWebService/artifactId
version1.0/version
/parent
groupIdworkspace.samples.simpleWebService/groupId
artifactIdwebService/artifactId
name${project.artifactId} module for
${project.parent.artifactId}/name
description${project.artifactId} module for
${project.parent.artifactId}/description
packagingwar/packaging
dependencies
dependency
groupIdjavax.jws/groupId
artifactIdjsr181/artifactId
version1.0/version
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxb-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxws-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymock/artifactId
version2.0/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymockclassextension/artifactId
version2.2/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging-api/artifactId
version1.0.4/version
/dependency
dependency
groupIdcom.sun.xml.ws/groupId
artifactIdjaxws-rt/artifactId
version2.1.1/version
/dependency
/dependencies
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId

artifactIdjaxws-maven-plugin/artifactId
version1.2/version
configuration
verbosefalse/verbose

seicom.service.DateServiceImpl/sei
genWsdlfalse/genWsdl
keepfalse/keep

destDirtarget\classes/destDir
/configuration
executions
execution
goals

goalwsgen/goal
/goals
phasecompile/phase
/execution
/executions
!--  for AnnotationProcessorFactory --
dependencies
dependency

groupIdcom.sun/groupId

artifactIdtools/artifactId

version1.5.0_11/version
/dependency
dependency

groupIdcom.sun.xml.ws/groupId

artifactIdjaxws-tools/artifactId
version2.1.1/version
/dependency
/dependencies
/plugin

Thanks,
Nishant

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



RE: how NOT to include any lib (dependencies) in the WAR ?

2007-09-18 Thread Sonar, Nishant
)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
executing: wsgen [-d,
C:\workspace\Maven\Workspace\Samples\simpleWebService\webservice\target\
classes, -cp,
C:\workspace\Maven\Workspace\Samples\simpleWebService\webservice\target\
classes, com.wachovia.cib.service.DateServiceImpl]
at
org.codehaus.mojo.jaxws.AbstractWsGenMojo.execute(AbstractWsGenMojo.java
:92)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
... 16 more
[INFO]

[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Sep 18 13:19:45 EDT 2007
[INFO] Final Memory: 9M/17M
[INFO]




Is there any other way not to create the lib folder at all? Or remove
the lib folder thus added from the WAR?

Regards,
Nishant Sonar


-Original Message-
From: Colomer Cornejo, Marcelo [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 18, 2007 11:22 AM
To: Maven Users List
Subject: RE: how NOT to include any lib (dependencies) in the WAR ?

Hi,
try to configure SCOPE dependency. 
   
scopeprovided/scope

Marcelo.

-Original Message-
From: Sonar, Nishant [mailto:[EMAIL PROTECTED] 
Sent: 18 September 2007 17:18
To: Maven Users List
Subject: how NOT to include any lib (dependencies) in the WAR ?

Whenever I create a WAR , it creates a WEB-INF/lib inside the war and
adds all the dependencies in the WAR .

What can I do NOT to include any lib (dependencies) in the WAR , and
exclude the lib folder to be in war, here's my 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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
parent
groupId workspace.samples/groupId
artifactIdsimpleWebService/artifactId
version1.0/version
/parent
groupIdworkspace.samples.simpleWebService/groupId
artifactIdwebService/artifactId
name${project.artifactId} module for
${project.parent.artifactId}/name
description${project.artifactId} module for
${project.parent.artifactId}/description
packagingwar/packaging
dependencies
dependency
groupIdjavax.jws/groupId
artifactIdjsr181/artifactId
version1.0/version
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxb-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxws-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymock/artifactId
version2.0/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymockclassextension/artifactId
version2.2/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging-api

RE: how NOT to include any lib (dependencies) in the WAR ?

2007-09-18 Thread Sonar, Nishant
Thanks a ton Barrett , I think I didn't do my homework on the WAR
plug-in , thank again for helping me out .

Hey Marcelo thanks to you too for helping me , I thin what Barrett has
told has solved my problem for now.

Regards,
Nishant Sonar
Synechron Technologies
-Original Message-
From: Barrett Nuzum [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 18, 2007 1:24 PM
To: Maven Users List
Subject: RE: how NOT to include any lib (dependencies) in the WAR ?

Nishant:
 
Adding
excludes**/lib/*/excludes
to the maven-war-plugin configuration will forcibly exclude all
libraries.
 
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.h
tml 
We typically call these Skinny WARs.
 
Note on that page, it says that it's decidedly broken with the 2.0
release of the war-plugin.
That might be your problem.
 
Barrett
 
::   
Barrett Nuzum
Sr. Consultant
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.us http://www.valtech.us/
Delivering Business Agility




From: Sonar, Nishant [mailto:[EMAIL PROTECTED]
Sent: Tue 9/18/2007 10:18 AM
To: Maven Users List
Subject: how NOT to include any lib (dependencies) in the WAR ?



Whenever I create a WAR , it creates a WEB-INF/lib inside the war and
adds all the dependencies in the WAR .

What can I do NOT to include any lib (dependencies) in the WAR , and
exclude the lib folder to be in war, here's my 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/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
parent
groupId workspace.samples/groupId
artifactIdsimpleWebService/artifactId
version1.0/version
/parent
groupIdworkspace.samples.simpleWebService/groupId
artifactIdwebService/artifactId
name${project.artifactId} module for
${project.parent.artifactId}/name
description${project.artifactId} module for
${project.parent.artifactId}/description
packagingwar/packaging
dependencies
dependency
groupIdjavax.jws/groupId
artifactIdjsr181/artifactId
version1.0/version
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxb-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdjaxws-ri/groupId
artifactIdjaxws-api/artifactId
version2.1.1/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymock/artifactId
version2.0/version
/dependency
dependency
groupIdeasymock/groupId
artifactIdeasymockclassextension/artifactId
version2.2/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging-api/artifactId
version1.0.4/version
/dependency
dependency
groupIdcom.sun.xml.ws/groupId
artifactIdjaxws-rt/artifactId
version2.1.1/version
/dependency
/dependencies
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
   
artifactIdjaxws-maven-plugin/artifactId
version1.2/version
configuration
verbosefalse/verbose
   
seicom.service.DateServiceImpl/sei
genWsdlfalse/genWsdl
keepfalse/keep
   
destDirtarget\classes/destDir
/configuration
executions
execution
goals
   
goalwsgen/goal
/goals
phasecompile/phase
/execution
/executions

RE: jaxws-maven-plugin jaxws:wsgen - Could not find class file

2007-09-18 Thread Sonar, Nishant

I think you changed the package for 
com.heartlab.ws.services.HelloServiceWS

Regards,
Nishant Sonar
Synechron Technologies


-Original Message-
From: Kyle.Bober [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 18, 2007 4:46 PM
To: users@maven.apache.org
Subject: jaxws-maven-plugin jaxws:wsgen - Could not find class file


I had the jaxws-maven-plugin working fine with a simple Java
WebService... It
worked fin up until an hour or so ago and I am not sure what I changed
that
caused the issue... Has anyone else seen this error before... It must be
a
something stupid simple that I am missing... The WebService runs fine
when I
deploy it on Jboss4.2... Any help in advance is much appreciated!

Thanks,
 Kyle



?xml version=1.0 encoding=UTF-8?
project
modelVersion4.0.0/modelVersion
groupIdcom.heartlab.ws/groupId
artifactIdWebSendServices/artifactId
packagingwar/packaging
version0.0.1/version

parent
groupIdcom.heartlab.ws/groupId
artifactIdWebSendParentPOM/artifactId
version0.0.1/version
relativePath../WebSendParentPOM/pom.xml/relativePath
/parent

build
finalName${pom.artifactId}/finalName
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
executions
execution
goals
goalwsgen/goal
goalwsimport/goal
goalwsgen-test/goal
/goals
/execution
/executions
configuration
seicom.heartlab.ws.services.HelloServiceWS/sei
genWsdltrue/genWsdl
keeptrue/keep
protocolsoap1.1/protocol
!-- protocolXsoap1.2/protocol --
!-- JAX-WS Target Version --
target2.1.1/target
verbosetrue/verbose
   
wsdlDirectory${project.build.directory}/jaxws/wsgen/wsdl/wsdlDirector
y
!-- sourceDestDirtarget/temp/sourceDestDir --
packageNamecom.heartlab.ws.services/packageName
/configuration
!-- if you want to use a specific version of JAX-WS,
you
can do so like this --
dependencies
groupIdjavax.jws/groupId
artifactIdjaxws-tools/artifactId
version2.1.1/version
/dependencies
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjboss-maven-plugin/artifactId
!-- Make this dynamic somehow to support multiple
server
configurations -- 
configuration
jbossHome${appserver.url}/jbossHome
port${appserver.port}/port
/configuration
/plugin
/plugins
/build

dependencies
dependency
groupIdcom.heartlab.ws/groupId
artifactIdWebSendUtility/artifactId
version0.0.1/version
scopecompile/scope
/dependency
dependency
groupIdjavax.annotation/groupId
artifactIdjsr250-api/artifactId
version1.0/version
scopeprovided/scope
/dependency
!-- JAX-WS Annotations --
dependency
groupIdjavax.jws/groupId
artifactIdjsr181-api/artifactId
version1.0-MR1/version
scopeprovided/scope
/dependency
dependency
groupIdjavax.jws/groupId
artifactIdjaxws-api/artifactId
version2.0/version
scopeprovided/scope
/dependency
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version4.1/version
scopetest/scope
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
scopeprovided/scope
/dependency
dependency
groupIdlog4j/groupId
artifactIdlog4j/artifactId
version1.2.12/version
scopeprovided/scope
/dependency
/dependencies

/project

Here is the error I am receiving :: (This all worked fine up until a few
hours ago... Not sure what I changed that would cause this. Also, the
class
HelloServiceWS.class is present in the target\classes folder... )

[INFO] [jaxws:wsgen-test]
error: Could not find class file for

RE: tie dependency to one repository

2007-09-14 Thread Sonar, Nishant
Hi Brian,

For plugins we can specify repositories in the 
pluginrepository/repositorypluginRepository/pluginRepos
itory/plugin tags . I never tried to an extent for this but you can
hit for it.

How can we do it using proximity?

Regards,
Nishant Sonar
-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 8:11 AM
To: Maven Users List
Subject: RE: tie dependency to one repository

You can't do this with maven, but you can do it with proximity.

-Original Message-
From: Sebastian Johnck [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 1:11 PM
To: users@maven.apache.org
Subject: tie dependency to one repository

Is it possible to bind a dependency to a single
repository so that when it comes time to check for
updates, only that repository is checked? 

I currently have a bunch of repositories, and all of
them get checked for updates, slowing my build
significantly.

Thanks in advance!
Maven2.0.6


   


Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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


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


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



RE: tie dependency to one repository

2007-09-14 Thread Sonar, Nishant
Hi Wayne

Proximity is a good option for a corporate repository, but its too much
of a pain task setting up all dependency and even more when hosting
oplugins on it there are issues with metadata-maven.xml (plugin metadata
information).I set it up for some org here, what I did was took all the
downloaded repositories from the internet through varios internet
repositories to the proximity server, Then it realy took a long time in
cleanin up the repo to suite my needs specially struggled with metadata
information for plugins. 

Is there any other way to create a repository from a existing local
downloaded repository from (central,codehaus) etc.?

Regards,
Nishant Sonar

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 3:27 PM
To: Maven Users List
Subject: Re: tie dependency to one repository

I'd suggest installing a Corporate repository using something like
Artifactory, Proximity etc and getting all of your artifacts from it.
This speeds things up dramatically as all requests are on your LAN.

Wayne

On 9/13/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
 Hi Sebastian,

 I still have this type of problem when going for a plugin (exec), it
 referred to both of the sites central and snapshots.codehaus, and got
 conflicts later on at build.

 Till now you can tell the version number as a chosing option.
Otherwise
 I don't see anything to specify the repository.

 Regards,
 Nishant Sonar


 -Original Message-
 From: Sebastian Johnck [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 13, 2007 1:11 PM
 To: users@maven.apache.org
 Subject: tie dependency to one repository

 Is it possible to bind a dependency to a single
 repository so that when it comes time to check for
 updates, only that repository is checked?

 I currently have a bunch of repositories, and all of
 them get checked for updates, slowing my build
 significantly.

 Thanks in advance!
 Maven2.0.6





 
 Yahoo! oneSearch: Finally, mobile search
 that gives answers, not web links.
 http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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


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



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


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



RE: tie dependency to one repository

2007-09-14 Thread Sonar, Nishant
Hi Brian

Can you tell me the URL of helo on this px features and how to do it.

Regards,
Nishant Sonar


-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 11:08 AM
To: Maven Users List
Subject: RE: tie dependency to one repository

With one of the latest snapshots of px, you can create rules that say
for group xyz look in this repo etc.


-Original Message-
From: Sonar, Nishant [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 10:46 AM
To: Maven Users List
Subject: RE: tie dependency to one repository

Hi Brian,

For plugins we can specify repositories in the 
pluginrepository/repositorypluginRepository/pluginRepos
itory/plugin tags . I never tried to an extent for this but you can
hit for it.

How can we do it using proximity?

Regards,
Nishant Sonar
-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 14, 2007 8:11 AM
To: Maven Users List
Subject: RE: tie dependency to one repository

You can't do this with maven, but you can do it with proximity.

-Original Message-
From: Sebastian Johnck [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 1:11 PM
To: users@maven.apache.org
Subject: tie dependency to one repository

Is it possible to bind a dependency to a single
repository so that when it comes time to check for
updates, only that repository is checked? 

I currently have a bunch of repositories, and all of
them get checked for updates, slowing my build
significantly.

Thanks in advance!
Maven2.0.6


   


Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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


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


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


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


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



Error constituent[0]:

2007-09-13 Thread Sonar, Nishant
 

Hi

 

I am getting following error when I run maven in Linux 64 bit
environment, I didn't get what is the line constituent[0] : file ...
says , is it that these some exception thrown from this file?

 

[INFO] Executed tasks

[INFO] Preparing exec:java

[WARNING] Removing: java from forked lifecycle, to prevent recursive
invocation.

[INFO] No goals needed for project - skipping

[INFO] [exec:java {execution: default}]

[INFO]


[ERROR] BUILD ERROR

[INFO]


---

constituent[0]:
file:/usr/local/maven-2.0.6/lib/maven-core-2.0.6-uber.jar

---

java.lang.NullPointerException

at
org.apache.maven.usability.MojoExecutionExceptionDiagnoser.diagnose(Mojo
ExecutionExceptionDiagnoser.java:64)

at
org.apache.maven.usability.diagnostics.ErrorDiagnostics.diagnose(ErrorDi
agnostics.java:84)

at
org.apache.maven.DefaultMaven.logDiagnostics(DefaultMaven.java:711)

at org.apache.maven.DefaultMaven.logError(DefaultMaven.java:656)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:131)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

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)

 

 

 

 

Regards,

Nishant Sonar



RE: tie dependency to one repository

2007-09-13 Thread Sonar, Nishant
Hi Sebastian,

I still have this type of problem when going for a plugin (exec), it
referred to both of the sites central and snapshots.codehaus, and got
conflicts later on at build.

Till now you can tell the version number as a chosing option. Otherwise
I don't see anything to specify the repository.

Regards,
Nishant Sonar


-Original Message-
From: Sebastian Johnck [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 13, 2007 1:11 PM
To: users@maven.apache.org
Subject: tie dependency to one repository

Is it possible to bind a dependency to a single
repository so that when it comes time to check for
updates, only that repository is checked? 

I currently have a bunch of repositories, and all of
them get checked for updates, slowing my build
significantly.

Thanks in advance!
Maven2.0.6


   


Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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


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



Assembly Plugin Error : appXML attribute required

2007-09-12 Thread Sonar, Nishant
Hi

 

Can anyone help me?

 

I am receiving following error with assembly plug-in

 

 

Failed to create assembly: Error creating assembly archive: appxml
attribute is required

 

Here's my descriptor file

 

assembly

  iddist/id

  formats

formatear/format

  /formats

  fileSets

fileSet

  directory./directory

  outputDirectory

target\generated-resources\ear

  /outputDirectory

  includes

include

 
target\generated-resources\war\SimpleWebService.war

/include

include*.xml/include

  /includes

/fileSet

  /fileSets

/assembly

 

And plug-in in POM  

 

plugin

  artifactIdmaven-assembly-plugin/artifactId

  executions

execution

  phasegenerate-test-sources/phase

  goals

goalassembly/goal

  /goals

  configuration

descriptors

  descriptor

assembly-descriptor.xml

  /descriptor

/descriptors

  /configuration

/execution

  /executions

/plugin

 

What is the appXml attribute? I didn't find any in side my descriptor
file.

 

Regards,

Nishant Sonar



RE: Assembly Plugin Error : appXML attribute required

2007-09-12 Thread Sonar, Nishant
I think that is it because EAR assembling is not implemented so far?

Regards,
Nishant Sonar

-Original Message-
From: Sonar, Nishant 
Sent: Wednesday, September 12, 2007 10:49 AM
To: Maven Users List
Subject: Assembly Plugin Error : appXML attribute required

Hi

 

Can anyone help me?

 

I am receiving following error with assembly plug-in

 

 

Failed to create assembly: Error creating assembly archive: appxml
attribute is required

 

Here's my descriptor file

 

assembly

  iddist/id

  formats

formatear/format

  /formats

  fileSets

fileSet

  directory./directory

  outputDirectory

target\generated-resources\ear

  /outputDirectory

  includes

include

 
target\generated-resources\war\SimpleWebService.war

/include

include*.xml/include

  /includes

/fileSet

  /fileSets

/assembly

 

And plug-in in POM  

 

plugin

  artifactIdmaven-assembly-plugin/artifactId

  executions

execution

  phasegenerate-test-sources/phase

  goals

goalassembly/goal

  /goals

  configuration

descriptors

  descriptor

assembly-descriptor.xml

  /descriptor

/descriptors

  /configuration

/execution

  /executions

/plugin

 

What is the appXml attribute? I didn't find any in side my descriptor
file.

 

Regards,

Nishant Sonar


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



RE: FW: Using Proximity Corporate Repository doesnt download plugins/dependencies

2007-09-11 Thread Sonar, Nishant
Thanks to Henry, Tamás

I have figured out the problem , the reason was I need to block the internet 
acces by disabling any proxy setting (in settings.xml), and mirror the 
'central' to http://somednsname:8080/px-webapp/repository/inhouse.
Also I need to be very much clear on the maven-metadata.xml in the repository 
for all the plugins and dependencies.

It worked!!

Regards,
Nishant Sonar

-Original Message-
From: Tamás Cservenák [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 11, 2007 12:52 PM
To: Maven Users List
Subject: Re: FW: Using Proximity Corporate Repository doesnt download 
plugins/dependencies

Hello all,

yes, i just wanted to correct Sonar, just as Heinrich did.

So, you have to fix your settings.xml and it should work as you expected!

Thanks,
~t~

On 9/11/07, Heinrich Nirschl [EMAIL PROTECTED] wrote:
 If you use the standard configuration, the url for the central mirror should 
 be
 urlhttp://somednsname:8080/px-webapp/repository/public/url
 instead of
 urlhttp://somednsname:8080/px-webapp/repository/inhouse/url

 Hope that helps,

 - Henry

 On 9/11/07, Wayne Fay [EMAIL PROTECTED] wrote:
  Perhaps Tamas will reply. I know he had a hardware failure and so the
  normal Proximity support channels are not available.
 
  Wayne
 
  On 9/10/07, Sonar, Nishant [EMAIL PROTECTED] wrote:
   Hello
  
  
  
   I am trying to setup a corporate repository through proximity. Her's
   what I did
  
  
  
   Installed proximity on apache by deploying the px-webap. Now I can
   browse to the proximity site through apache
   http://localhost:8080/px-webap. I will be using this site to host my
   repository in a way like
  
   http://somednsname:8080/px-webapp/repository/inhouse and will use it as
   to access repository from poms and will be making this entry in the
   setting.xml
  
   here's what in my setting.xml
  
  
  
   !-Settings .xml--
  
   settings
  
localRepositoryc:\Java\maven-2.0.6\repository/localRepository
  
  
  
!-- proxies
  
  | This is a list of proxies which can be used on this
   machine to connect to the network.
  
  | Unless otherwise specified (by system property or
   command-line switch), the first proxy
  
  | specification in this list marked as active will be used.
  
  |--
  
proxies
  
   !-I Intentionally commented proxy to not hit outside world --
  
  
  
  !--proxy
  
activetrue/active
  
protocolhttp/protocol
  
hostsingle-proxy.wachovia.net/host
  
port8080/port
  
/proxy
  
  --
  
/proxies
  
//mirrored central to corporate repo
  
mirrors
  
  mirror
  
idCentralMirror/id
  
nameProxied Central REPO/name
  
  
   urlhttp://somednsname:8080/px-webapp/repository/inhouse/url
  
mirrorOfcentral/mirrorOf
  
  /mirror
  
/mirrors
  
profiles
  
  profile
  
idSample/id
  
repositories
  
  repository
  
idCorporate/id
  
nameLocal Corporate Repo/name
  
url
  
  
   http://somednsname:8080/px-webapp/repository/inhouse
  
/url
  
snapshots
  
  enabledtrue/enabled
  
/snapshots
  
  /repository
  
/repositories
  
pluginRepositories
  
  pluginRepository
  
idCorporate/id
  
nameLocal Corporate Repo/name
  
url
  
  http://
   somednsname:8080/px-webapp/repository/inhouse
  
/url
  
releases
  
  enabledtrue/enabled
  
  updatePolicynever/updatePolicy
  
/releases
  
snapshots
  
  enabledtrue/enabled
  
/snapshots
  
  /pluginRepository
  
/pluginRepositories
  
  /profile
  
/profiles
  
activeProfiles
  
  activeProfileSample/activeProfile
  
/activeProfiles
  
   /settings
  
  
  
   I am getting following output when running build
  
  
  
  
  
   + Error stacktraces are turned on.
  
   [INFO] Scanning for projects...
  
   [INFO]
   
   
  
   [INFO] Building simpleWebService
  
   [INFO

FW: Using Proximity Corporate Repository doesnt download plugins/dependencies

2007-09-10 Thread Sonar, Nishant
Hello

 

I am trying to setup a corporate repository through proximity. Her's
what I did

 

Installed proximity on apache by deploying the px-webap. Now I can
browse to the proximity site through apache
http://localhost:8080/px-webap. I will be using this site to host my
repository in a way like 

http://somednsname:8080/px-webapp/repository/inhouse and will use it as
to access repository from poms and will be making this entry in the
setting.xml

here's what in my setting.xml

 

!-Settings .xml--

settings

  localRepositoryc:\Java\maven-2.0.6\repository/localRepository

 

  !-- proxies

| This is a list of proxies which can be used on this
machine to connect to the network.

| Unless otherwise specified (by system property or
command-line switch), the first proxy

| specification in this list marked as active will be used.

|--

  proxies

!-I Intentionally commented proxy to not hit outside world --

 

!--proxy

  activetrue/active

  protocolhttp/protocol

  hostsingle-proxy.wachovia.net/host

  port8080/port

  /proxy

--

  /proxies

  //mirrored central to corporate repo

  mirrors

mirror

  idCentralMirror/id

  nameProxied Central REPO/name

 
urlhttp://somednsname:8080/px-webapp/repository/inhouse/url

  mirrorOfcentral/mirrorOf

/mirror

  /mirrors

  profiles

profile

  idSample/id

  repositories

repository

  idCorporate/id

  nameLocal Corporate Repo/name

  url

 
http://somednsname:8080/px-webapp/repository/inhouse

  /url

  snapshots

enabledtrue/enabled

  /snapshots

/repository

  /repositories

  pluginRepositories

pluginRepository

  idCorporate/id

  nameLocal Corporate Repo/name

  url

http://
somednsname:8080/px-webapp/repository/inhouse

  /url

  releases

enabledtrue/enabled

updatePolicynever/updatePolicy

  /releases

  snapshots

enabledtrue/enabled

  /snapshots

/pluginRepository

  /pluginRepositories

/profile

  /profiles

  activeProfiles

activeProfileSample/activeProfile

  /activeProfiles

/settings

 

I am getting following output when running build

 

 

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO]



[INFO] Building simpleWebService

[INFO]task-segment: [clean, install]

[INFO]



[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from Corporate

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking
for updates from central

[INFO]


[ERROR] BUILD ERROR

[INFO]


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

[INFO]


[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
version could be found

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1286)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:1522)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
aging(DefaultLifecycleExecutor.java:1016)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:980)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)

  at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)