RE: force tasks

2007-01-05 Thread Marcelo Takeshi Fukushima
Cool!

Can i checkout from svn and play with it? i mean, is it stable enough?
many thanks

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: sexta-feira, 5 de janeiro de 2007 10:49
To: continuum-users@maven.apache.org
Subject: Re: force tasks


Not in 1.0.3 but available in 1.1 with a full checkout on each run

Emmanuel

Marcelo Takeshi Fukushima a écrit :
 Hello folks!

 the disappering of tasks seens to not be happening anymore wich is weird
by
 itself. Anyhow, is there any way to schedule a task to always run
regardless
 of its state in the scm?

 thanks in advance,
 takeshi








About config

2007-01-05 Thread fy

Hi,
I created a webapp,and I executed mvn jboss:harddeploy .now,The webapp have
a file src/main/config/web-config.xml, I want to deploy the file into the
webapp.war when I executed mvn jboss:harddeploy .how I to do? 
-- 
View this message in context: 
http://www.nabble.com/About-config-tf2924411s177.html#a8174432
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: AspectJ plugin and java 1.3 target JRE

2007-01-05 Thread nicolas de loof

I've created MOJO-606 for this and attached a patch.

Nico.

2006/12/22, nicolas de loof [EMAIL PROTECTED]:


I was searching for the m2 plugin.
I have no maven1 project that uses AspectJ compiler targeting a pre-java5
runtime, so I have no build ready for testing a fix.

Is there any similar issue for the AspectJ Mojo ?


2006/12/22, Lukas Theussl [EMAIL PROTECTED]:

 MPASPECTJ-22 is for the m1 plugin. If this is what you want, it can be
 fixed easily but I need someone to test it. Let me know if you're
 interested.

 Cheers,
 -Lukas

 nicolas de loof wrote:
  Hello,
 
  My project will run under Java 1.3, so I've configured the compiler
 plugin
  to use a custom bootclasspath that points to Java1.3 rt.jar.
 
  I'd like to do the same for the AspectJ compiler. According to
  http://jira.codehaus.org/browse/MPASPECTJ-22, the aspectJ plugin
 doesn't
  allow to configure the existing option of AJC.
 
  Is there any alternative to set this option, or do I need to wait this
  issue
  to be solved ? Beeing one year old with no vote (expect mine), it may
 take
  some time...
 
  Nico.
 

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





Re: Invoking ant java Task from Maven or similar approaches in MAVEN

2007-01-05 Thread Marco Mistroni

Hi,
you can use maven ant plugin and use same code that is within your target
elements
not sure if it can be an alternative, but if you are doing xslt there's an
xslt task in ant.

hth
marco

On 1/5/07, raju [EMAIL PROTECTED] wrote:



Hi ,
Currently I am invoking java org.apache.xalan.xslt.Process using an ant
build file in order to generate output based on XSL.IS there any way i can
do the same in MAVEN or maybe call this ant script from within MAVEN POM.

?xml version=1.0 encoding=UTF-8?
project name=Code Generation default=build basedir=.
property file=build.properties/
target name=build
java classname=harsh.javatoxml.Java2XML fork=true 
arg line=${dir.src}/*.java/
classpath
pathelement location=${java2xml.jarpath
}/
/classpath
/java
java classname=org.apache.xalan.xslt.Process
fork=true 
arg line=-in ${dir.outputsrcxml}/output.xml -xsl
${dir.inputsrcxml}/initial.xsl/
classpath
!-- Using Saxon as didnt find option to
write output to java--
pathelement location=${saxonapi.jar}/
pathelement location=${xalanapi.jar}/
!--pathelement location=${env.XALAN_BIN
}/bsf.jar/--
/classpath
/java
/target
/project

Regards
Raju
--
View this message in context:
http://www.nabble.com/Invoking-ant-java-Task-from-Maven-or-similar-approaches-in-MAVEN-tf2924117s177.html#a8173529
Sent from the Maven - Users mailing list archive at Nabble.com.


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




how deploy a jar in the webapp?

2007-01-05 Thread fy

Hi,
I created a webapp,The maven created the webapp.war when I executed mvn
package. now I want deploy some *.java (src\main\java\itms\dto\*.java) into
webapp.jar when I executed mvn package ,how I to do?
-- 
View this message in context: 
http://www.nabble.com/how-deploy-a-jar-in-the-webapp--tf2924643s177.html#a8175289
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Giving up on Archiva

2007-01-05 Thread Michael Horwitz

Hi,

Got to share some of the frustrations in setting things up - took a while to
learn which was the correct URL to use to access a repository, but once that
was sorted out Archiva is up and running and works as expected. It has been
an asset to our build environment.

Mike.


On 1/5/07, drekka [EMAIL PROTECTED] wrote:



Hi all

I've now been struggling with Archiva for over two days and we are going
to
drop it. All we wanted to do was:

1. Have a local company repository so that we can centrally store built
artifacts such as jars.
2. Have requests for artifacts from central automatically cached in the
repository so that when the next programmer requests it, it is downloaded
from there rather than across the net. I.e. proxying central.

Relatively speaking these should have been a piece of cake to setup.
Wrong.
The first thing I tried was to setup a copy of the archiva war as per the
instructions on a number of sites. This totally failed. A core file was
missing from the war and even after I manually copied it to the un-warred
directories on the linux box, archiva still refused to boot up. Gave up on
this after a day of frustration.

Next I uploaded the archiva command line version (almost not doco'd
anywhere!). This iimediately worked and didn't have to be run in
conjuction
with a web server. Much easier to setup and use. I created a company
respository and then a proxy of ibiblio which used the company repository
for storage.

Next I started to look at how to refer to the proxy to get common stuff
such
as commons-logging and log4j, etc. Here again I ran into poorly written
documentation and ended up wasting another day trying to get it to work. I
tried all sorts of configurations including adding stuff to settings.xmland
to the poms. Repositories referring to the company repository, the proxy,
mirror settings, profiles, everything I could find and all sorts of
variations on them. The only thing I could get to work was if I manually
added an artifact (junit for example) to the repository directories, I
could
then see it and have the dependencies resolved and the jar downloaded
rather
than from central. At no stage though, could I get the proxy functionality
to work. Accessing the proxies via the /proxy/id links totally failed to
resolve. No errors where logged either. The logs (now in debug) showed the
proxy code firing, failing to find the artifacts and apparently just
exiting. Not going to the company repository the proxy was pointed at or
ibiblio.

To aggravate this further looking into the source code for archiva I found
that the proxy managers sourc code exist sin two different projects !!
It's
code 's got practically zero documentation and debug which explained why
turning on debug did little in the way of helping out with diagnosing the
issue.

So basically I just don't have the time to keep trying to use this.
Perhaps
in a version or two I'll take another look.

ciao
Derek

--
View this message in context:
http://www.nabble.com/Giving-up-on-Archiva-tf2923923.html#a8173057
Sent from the archiva-users mailing list archive at Nabble.com.




Re: Invoking ant java Task from Maven or similar approaches in MAVEN

2007-01-05 Thread dawn.angelito

Hi Raju,

You can do this by adding this snippet of code to your pom.xml:

configuration
  tasks
ant antfile=${basedir}/build.xml inheritRefs=true
  target name=test/
/ant
  /tasks
/configuration

You may also refer to
http://maven.apache.org/plugins/maven-antrun-plugin/classpaths.html.

Hope this helps.

Dawn



raju wrote:
 
 Hi ,
 Currently I am invoking java org.apache.xalan.xslt.Process using an ant
 build file in order to generate output based on XSL.IS there any way i can
 do the same in MAVEN or maybe call this ant script from within MAVEN POM.
 
 ?xml version=1.0 encoding=UTF-8?
 project name=Code Generation default=build basedir=.
   property file=build.properties/
   target name=build
   java classname=harsh.javatoxml.Java2XML fork=true 
   arg line=${dir.src}/*.java/
   classpath
   pathelement location=${java2xml.jarpath}/
   /classpath
   /java
   java classname=org.apache.xalan.xslt.Process fork=true 
   arg line=-in ${dir.outputsrcxml}/output.xml -xsl
 ${dir.inputsrcxml}/initial.xsl/
   classpath
   
   pathelement location=${saxonapi.jar}/
   pathelement location=${xalanapi.jar}/
   
   /classpath
   /java
   /target
 /project
 
 Regards
 Raju
 

-- 
View this message in context: 
http://www.nabble.com/Invoking-ant-java-Task-from-Maven-or-similar-approaches-in-MAVEN-tf2924117s177.html#a8175641
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Bad Xref report generation for internationalized sites

2007-01-05 Thread Géraud DUGE de BERNONVILLE

Hello,

I'm trying to generate a site with two locales (en, fr) for my project. 
The mvn site command works well except for the XRef reports which are 
only generated for the default locale (en). I use maven 2.0.4.

After launching mvn site, the following directories are created :
target/
|__ site/
  |__ index.html
  |__ xref/
  |  |__ allclasses-frame.html
  |  |__ index.html
  |  |__ ... /* other xref files */
  |
  |__ fr/
   |__ index.html
   |__ xref/
 |__ index.html /* empty, no other files */

The configuration for site plugin is :
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-site-plugin/artifactId
   configuration
  inputEncodingUTF-8/inputEncoding
 outputEncodingUTF-8/outputEncoding
 localesen,fr/locales
   /configuration
 /plugin

The configuration for jxr plugin :
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jxr-plugin/artifactId
   configuration
   outputEncodingUTF-8/outputEncoding
   /configuration
 /plugin

Any suggestions?

--
Géraud


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



Using Custom Class Loader to load test classes

2007-01-05 Thread Balasubramanian, Ravi Shankar
Hi all,

I am using the maven-surefire-plugin to run the testNG cases for my
project. The test case calls an API internally that expects the current
class loader to be a custom class loader. It does something like the
following:

 CustomClassLoader customClassLoader = (CustomClassLoader)
Thread.currentThread().getContextClassLoader();

 

My test case looks something like as follows:

@Test

public void testMethod {

CustomClassLoader cl = new CustomClassLoader();

Thread.currentThread.setContextClassLoader(cl);

---call to the API

}

 

I set the class loader in my test case as shown above. However, I always
hit a class cast exception in the API at the line mentioned above as
follows:



Caused by: java.lang.ClassCastException:
org.apache.maven.surefire.booter.Isolat

edClassLoader



 

which means that the current loader is still the surefire's loader and
not the CustomClassLoader. 

 

Am I doing something wrong or this is the way the plugin works??

 

 

Thanks for any help,

Ravi.

Tough times never last, but tough men do...

 



unable to build

2007-01-05 Thread Murugan

Hi i created a maven project,but when i am trying compile the project the
build failure erroe will be occured.



mvn compile
[INFO] Scanning for projects...
[INFO]

[INFO] Building my-app
[INFO]task-segment: [compile]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.2/plexus-compiler-manager-1.5
.2.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.
 
Error transferring file
  org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
  snapshots (http://snapshots.maven.codehaus.org/maven2)
Path to dependency:
1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.1
2) org.codehaus.plexus:plexus-compiler-manager:jar:1.5.2
 
 
 
Caused by I/O exception: Server returned HTTP response code: 403 for URL:
http://repo1.maven.org/maven2/org/codehaus/ple
xus/plexus-compiler-manager/1.5.2/plexus-compiler-manager-1.5.2.jar
 
[INFO]

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

[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Jan 05 16:45:13 GMT+05:30 2007
[INFO] Final Memory: 2M/4M
[INFO]

-- 
View this message in context: 
http://www.nabble.com/unable-to-build-tf2925011s177.html#a8176440
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: how deploy a jar in the webapp?

2007-01-05 Thread garbandi

I'm still quite new to maven, so excuse if i'm wrong, but as far as i know,
maven deploys compiled java-classes as class-files into WEB-INF/classes. If
you really need your classes to be deployed as a jar file, i think you'll
have to create a separate jar-project and add this as a dependency to your
war-project.

hope that helps,
andi


fy wrote:
 
 Hi,
 I created a webapp,The maven created the webapp.war when I executed mvn
 package. now I want deploy some *.java (src\main\java\itms\dto\*.java)
 into webapp.jar when I executed mvn package ,how I to do?
 

-- 
View this message in context: 
http://www.nabble.com/how-deploy-a-jar-in-the-webapp--tf2924643s177.html#a8176681
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Packaging application with dependent jars?

2007-01-05 Thread mxc

Hi all,

Well this is what I have worked out.

1) Matthew's XML snippet runs the assembly as part of the build packaging
process. To run it using the mvn assembly:assembly command you need to edit
the pom.xml and add a configuration section.

2) You can use the default descriptor targets such as
bin/jar-with-dependencies etc or you can write your own assembly.xml files
and refer to them from your pom.xml. I.e under the plugin definition you
include

configuration
  descriptors
  descriptoryourassembly.xml /descriptor
  /descriptors
/configuration

I copied the default descriptor for the jar-with-dependencies target and
edited my pom.xml appropriately. When I run mvn assembly:assembly I get the
error


[INFO]

[INFO] An invalid artifact was detected.

This artifact might be in your project's POM, or it might have been included
transitively during the resolution process. Here is the information we do
have for this artifact:

o GroupID: za.co.jumpingbean
o ArtifactID:  appgen
o Version: 1.0-SNAPSHOT
o Type:jar

[INFO]

[INFO] Trace
org.apache.maven.artifact.InvalidArtifactRTException: For artifact
{za.co.jumpingbean:appgen:1.0-SNAPSHOT:jar}: An attached artifact must have
a different ID than its corresponding main artifact.



-- 
View this message in context: 
http://www.nabble.com/Packaging-application-with-dependent-jars--tf2916305s177.html#a8176705
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: how deploy a jar in the webapp?

2007-01-05 Thread kovalen pechaycaren

Let the packaging be 'jar', then use the maven-war-plugin to create a war.


Re: unable to build

2007-01-05 Thread kovalen pechaycaren

Try version *1.5* for plexus-compiler-manager.

see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/

Kovalen


Src directory not in the same pom.xml directory

2007-01-05 Thread Rahamim, Zvi \(Zvi\)
Hi,
In case I have a pom.xml file in a directory and I want that it will
take the src directory from another location than the pom.xml
How can I do it?
Thanks!

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



Re: Src directory not in the same pom.xml directory

2007-01-05 Thread Niels Gylling

In you pom:
build
  sourceDirectoryanywhere/sourceDirectory
/build

/Niels

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



Re: force tasks

2007-01-05 Thread Emmanuel Venisse

Not in 1.0.3 but available in 1.1 with a full checkout on each run

Emmanuel

Marcelo Takeshi Fukushima a écrit :

Hello folks!

the disappering of tasks seens to not be happening anymore wich is weird by
itself. Anyhow, is there any way to schedule a task to always run regardless
of its state in the scm?

thanks in advance,
takeshi








RE: using hibernate3-maven-plugin:hmb2ddl with test-classes

2007-01-05 Thread garbandi

hi johann,

thanks for your help. adding the flag to the properties leads to various
lines of output

[INFO] found EJB3 Entity bean: XXX

where XXX now contains the classes in the test-classes directory

but then i receive a new ClassNotFoundException for those classes:

Caused by: java.lang.ClassNotFoundException: XXX
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112)
at
org.codehaus.mojo.hibernate3.configuration.AnnotationComponentConfiguration.classForName(AnnotationComponentConfiguration.java:204)
at
org.codehaus.mojo.hibernate3.configuration.AnnotationComponentConfiguration.addNamedAnnotatedClasses(AnnotationComponentConfiguration.java:175)
... 22 more

when i move the testclasses back to the src-area everything works.

seems that the classloader doesn't contain the test-classes, although you
find them.

any idea?

regards,
andi


Johann Reyes-2 wrote:
 
 Hello Andi
 
 Sorry, but I haven't document yet that part of the plugin because it's
 being
 tested. To scan the test-classes directory you need to add the following
 flag to your componentProperties element:
 
 componentProperties
   scan-classestrue/scan-classes
 /componentProperties
 
 Let me know if you have any question
 
 Regards
 
 Johann Reyes
 
 

-- 
View this message in context: 
http://www.nabble.com/using-hibernate3-maven-plugin%3Ahmb2ddl-with-test-classes-tf2912961s177.html#a8177566
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Disassemble Plugin

2007-01-05 Thread takai

Hi,

i'm looking for a plugin that disassembles a given artifact into some target
directory. Does anybody know of a plugin?

Thanks a bunch!
Daniel
-- 
View this message in context: 
http://www.nabble.com/Disassemble-Plugin-tf2925448s177.html#a8177790
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Overriding properties in a dependency's pom.xml

2007-01-05 Thread Larry Meadors

On 1/4/07, mraible [EMAIL PROTECTED] wrote:

Is Maven like Ant in that properties are immutable?  If so, can I hook into
the lifecycle sooner and set this dao.framework property from the local
pom.xml?


I was thinking the same thing - it sure is acting like that is the case, no?

Larry

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



Re: Disassemble Plugin

2007-01-05 Thread Andrius Šabanas

takai wrote:

Hi,

i'm looking for a plugin that disassembles a given artifact into some target
directory. Does anybody know of a plugin?

Thanks a bunch!
Daniel


Take a look at maven-dependency-plugin, 
http://maven.apache.org/plugins/maven-dependency-plugin/


cheers,

Andrius

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



Re: Disassemble Plugin

2007-01-05 Thread takai

Brilliant! That's what I need. But how to get the plugin? It's not in the
maven repo at ibiblio:

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/

There seems to be another version at codehaus called
dependency-maven-plugin. But the doc says it's not the same thing and please
don't use it.

I used the following snippet:

groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId

and get a plugin does not exist.

Thank you,
Daniel


Andrius Šabanas wrote:
 
 takai wrote:
 Hi,
 
 i'm looking for a plugin that disassembles a given artifact into some
 target
 directory. Does anybody know of a plugin?
 
 Thanks a bunch!
 Daniel
 
 Take a look at maven-dependency-plugin, 
 http://maven.apache.org/plugins/maven-dependency-plugin/
 
 cheers,
 
 Andrius
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Disassemble-Plugin-tf2925448s177.html#a8178371
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Dealing with properties in Maven 1.x

2007-01-05 Thread Rakesh Patel

Hi,

I am new to Maven so apologies if this is obvious to people.

I have a need to keep a set of properties and use them in various other 
files eg database connection settings need to make it to the tomcat 
server.xml file, the spring configuration file, etc.


Previously i used Ant and i would create multiple property files and 
have Ant work out which one to use during a build (the property file 
would be named in such a way as to include the current machine name). 
Not perfect (if i wanted to do a build for another machine from my box i 
had to do some manual work) but it meant I had one source of property 
values that could feed other files.


Quite a bit lost how to do something similar (or better?) in Maven 1.x.

Thanks

R

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



Re: unable to build

2007-01-05 Thread Murugan


Hi kovalen,

 Thx for yr reply.Stil  i get same error.
I am new to Maven. 

can u explain how to build a maven project.




 
  


kovalen pechaycaren wrote:
 
 Try version *1.5* for plexus-compiler-manager.
 
 see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/
 
 Kovalen
 
 

-- 
View this message in context: 
http://www.nabble.com/unable-to-build-tf2925011s177.html#a8178550
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: using hibernate3-maven-plugin:hmb2ddl with test-classes

2007-01-05 Thread Johann Reyes
Hello Andi

Well you just found a bug. I fixed already in SVN and deployed a new
snapshot. Try it out and let me know how it works

Regards

Johann Reyes

-Original Message-
From: garbandi [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 8:02 AM
To: users@maven.apache.org
Subject: RE: using hibernate3-maven-plugin:hmb2ddl with test-classes


hi johann,

thanks for your help. adding the flag to the properties leads to various
lines of output

[INFO] found EJB3 Entity bean: XXX

where XXX now contains the classes in the test-classes directory

but then i receive a new ClassNotFoundException for those classes:

Caused by: java.lang.ClassNotFoundException: XXX
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.j
ava:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:
255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:
274)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:
274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:21
4)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:112)
at
org.codehaus.mojo.hibernate3.configuration.AnnotationComponentConfiguration.
classForName(AnnotationComponentConfiguration.java:204)
at
org.codehaus.mojo.hibernate3.configuration.AnnotationComponentConfiguration.
addNamedAnnotatedClasses(AnnotationComponentConfiguration.java:175)
... 22 more

when i move the testclasses back to the src-area everything works.

seems that the classloader doesn't contain the test-classes, although you
find them.

any idea?

regards,
andi


Johann Reyes-2 wrote:
 
 Hello Andi
 
 Sorry, but I haven't document yet that part of the plugin because it's
 being
 tested. To scan the test-classes directory you need to add the following
 flag to your componentProperties element:
 
 componentProperties
   scan-classestrue/scan-classes
 /componentProperties
 
 Let me know if you have any question
 
 Regards
 
 Johann Reyes
 
 

-- 
View this message in context:
http://www.nabble.com/using-hibernate3-maven-plugin%3Ahmb2ddl-with-test-clas
ses-tf2912961s177.html#a8177566
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: Disassemble Plugin

2007-01-05 Thread Andrius Šabanas

takai wrote:

Brilliant! That's what I need. But how to get the plugin? It's not in the
maven repo at ibiblio:

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/

There seems to be another version at codehaus called
dependency-maven-plugin. But the doc says it's not the same thing and please
don't use it.

I used the following snippet:

groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId

and get a plugin does not exist.


You are right, it seems that the one from org.apache.maven.plugins is 
still unreleased, currently at 2.0-alpha-1-SNAPSHOT. You can either 
checkout the plugin code from SVN and build it yourself, or use the one 
from Codehaus MOJO project, which is what I am using. Version 1.0 of 
this plugin is available from the central repository, at 
org.codehaus.mojo:dependency-maven-plugin. Here are the docs: 
http://mojo.codehaus.org/dependency-maven-plugin/index.html.



Andrius

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



Re: jmeter maven plugin

2007-01-05 Thread JC Walmetz

Hi,

Did you find some more information about the JMeter plugin ?

J-C



Ed Young wrote:
 
 I found a jmeter maven plugin that has been developed and I am
 having some difficulty installing it. I found the wiki here:
 http://wiki.apache.org/jakarta-jmeter/JMeterMavenPlugin
 
 Are there any more resources on how to install and use this? I'm
 having trouble installing it. (By the way, I posted a similar message
 as this to the jmeter user list. )
 
 1. I followed the instructions but am confused by something: Where do
 I drop the jar and pom files? I have a maven repository, in my
 .m2/repository but normally I install jar dependencies with a mvn
 install:install-file -DgroupId...etc.
 
 2. I downloaded the tarball and ran mvn install. When I did I got:
 C:\Installs\apache\maven-jmeter-pluginmvn install
 mvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building Maven JMeter Plugin
 [INFO]task-segment: [install]
 [INFO]
 
 [INFO] [plugin:descriptor]
 [INFO] Using 2 extractors.
 [INFO] Applying extractor for language: java
 [INFO] Extractor for language: java found 1 mojo descriptors.
 [INFO] Applying extractor for language: bsh
 [INFO] Extractor for language: bsh found 0 mojo descriptors.
 [INFO] [resources:resources]
 [INFO] Using default encoding to copy filtered resources.
 Downloading:
 http://fellagoagain-dr.santamonica.corp.yahoo.com/maven/org/apache/jmeter/jmeter/2.2/jmeter-2.2.pom
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).
 
 
 Project ID: org.apache.jmeter:jmeter
 
 Reason: Error getting POM for 'org.apache.jmeter:jmeter' from the
 repository: Error transferring file
  org.apache.jmeter:jmeter:pom:2.2
 
 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  yahoo-music (http://fellagoagain-dr.santamonica.corp.yahoo.com/maven)
 
 Thanks for any pointers.
 
 
 -- 
 Ed
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/jmeter-maven-plugin-tf2862564s177.html#a8178754
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Disassemble Plugin

2007-01-05 Thread takai

The main trunk from 

http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/

does not build. I use the Codehaus version now which works fine. Thanks a
bunch!



Andrius Šabanas wrote:
 
 takai wrote:
 Brilliant! That's what I need. But how to get the plugin? It's not in the
 maven repo at ibiblio:
 
 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/
 
 There seems to be another version at codehaus called
 dependency-maven-plugin. But the doc says it's not the same thing and
 please
 don't use it.
 
 I used the following snippet:
 
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 
 and get a plugin does not exist.
 
 You are right, it seems that the one from org.apache.maven.plugins is 
 still unreleased, currently at 2.0-alpha-1-SNAPSHOT. You can either 
 checkout the plugin code from SVN and build it yourself, or use the one 
 from Codehaus MOJO project, which is what I am using. Version 1.0 of 
 this plugin is available from the central repository, at 
 org.codehaus.mojo:dependency-maven-plugin. Here are the docs: 
 http://mojo.codehaus.org/dependency-maven-plugin/index.html.
 
 
 Andrius
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Disassemble-Plugin-tf2925448s177.html#a8178811
Sent from the Maven - Users mailing list archive at Nabble.com.


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



RE: Disassemble Plugin

2007-01-05 Thread Brian E. Fox
The apache version should be released by this weekend. A vote was called on 
Tuesday and it must wait 72hrs. 

-Original Message-
From: takai [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 9:30 AM
To: users@maven.apache.org
Subject: Re: Disassemble Plugin


The main trunk from 

http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/

does not build. I use the Codehaus version now which works fine. Thanks a bunch!



Andrius Šabanas wrote:
 
 takai wrote:
 Brilliant! That's what I need. But how to get the plugin? It's not in 
 the maven repo at ibiblio:
 
 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugin
 s/
 
 There seems to be another version at codehaus called 
 dependency-maven-plugin. But the doc says it's not the same thing and 
 please don't use it.
 
 I used the following snippet:
 
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 
 and get a plugin does not exist.
 
 You are right, it seems that the one from org.apache.maven.plugins is 
 still unreleased, currently at 2.0-alpha-1-SNAPSHOT. You can either 
 checkout the plugin code from SVN and build it yourself, or use the 
 one from Codehaus MOJO project, which is what I am using. Version 1.0 
 of this plugin is available from the central repository, at 
 org.codehaus.mojo:dependency-maven-plugin. Here are the docs:
 http://mojo.codehaus.org/dependency-maven-plugin/index.html.
 
 
 Andrius
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

--
View this message in context: 
http://www.nabble.com/Disassemble-Plugin-tf2925448s177.html#a8178811
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]



Corrupt GIF image file resource when filtered on Linux

2007-01-05 Thread Morris Jones

Hi ...

I subscribed to the list to pose this problem, but I found a solution 
and wanted to share it.


In my resources folder (src/main/resources) for a webapp I have several 
property files which get filtered for local environment, along with a 
couple of GIF icon image files.  I thought nothing of filtering all the 
resources, and on Windows the package worked just fine.


When it came time to release my webapp, I checked out my project and did 
a mvn package on a Linux system.  But when the WAR file was deployed to 
Tomcat, the image files were corrupt.


I solved the problem by adding an excludes element to the resource 
with filtering on, and a second resource element with filtering off for 
the image files.


I haven't looked at any source to see what might cause the different 
behavior between the two environments.  As far as I know they're all 
Intel little-endian machines.  The JVM on both is 1.5_06.


Best regards,
Mojo
--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers http://www.otastro.org

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



Re: unable to build

2007-01-05 Thread Patrick Schneider

Murugan,

Are there any special settings in your settings.xml file?
(~/.m2/settings.xml)

A 403 response for that artifact is odd -- click on the link; it should
work.  (Works for me at least.)  I assume your internet connection is
working on the machine from which you are trying to build?


Patrick

On 1/5/07, Murugan [EMAIL PROTECTED] wrote:




Hi kovalen,

 Thx for yr reply.Stil  i get same error.
I am new to Maven.

can u explain how to build a maven project.








kovalen pechaycaren wrote:

 Try version *1.5* for plexus-compiler-manager.

 see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/

 Kovalen



--
View this message in context:
http://www.nabble.com/unable-to-build-tf2925011s177.html#a8178550
Sent from the Maven - Users mailing list archive at Nabble.com.


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




[m2] maven-native-plugin TEMP dir problem

2007-01-05 Thread hgv
Hi!

 

I'm trying to build the JNI example, but the linker informs me that it
cannot open 'TEMPFILE'. I've tried to find out if the %TMP% or %TEMP%
variables are changed using an ant echo goal, but no luck just yet (it
won't run the task if the jar's not present). Any hints to solve this
would be most appreciated.

 

I might add that I'm not running as an Administrator, nor do I have
access to C:\WINDOWS\Temp, which of course is where the system vars are
pointing.

 

Here's a snippet of the build run:

 

D:\Eclipse\VersionTesting\jni-examplemvn -Dplatform=win32 -Ddebug
compile

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   JNI Example

[INFO]   JNI - Java

[INFO]   JNI - Natives

[INFO]   JNI - DLL

[INFO]



[INFO] Building JNI Example

[INFO]task-segment: [compile]

[INFO]



[INFO] No goals needed for project - skipping

[INFO]



[INFO] Building JNI - Java

[INFO]task-segment: [compile]

[INFO]



[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:compile]

[INFO] Nothing to compile - all classes are up to date

[INFO]



[INFO] Building JNI - Natives

[INFO]task-segment: [compile]

[INFO]



[INFO] No goals needed for project - skipping

[INFO]



[INFO] Building JNI - DLL

[INFO]task-segment: [compile]

[INFO]



[INFO] [native:initialize]

[INFO] [native:javah {execution: javah}]

[INFO] javah -o
D:\Eclipse\VersionTesting\jni-example\native\win32\target\custom-javah\H

2\target\classes;D:\Eclipse\VersionTesting\jni-example\java\target\class
es HelloWorld

[INFO] [native:resource-compile {execution: resource-compile}]

[INFO]
D:\Eclipse\VersionTesting\jni-example\native\win32\..\src\main\native\he
llo.rc is

[INFO] [native:compile]

[INFO] [native:link]

[INFO] link.exe /DEBUG /INCREMENTAL:NO /DLL oldnames.lib kernel32.lib
/out:D:\Eclipse\Ve

target\HelloWorld.obj

Microsoft (R) Incremental Linker Version 7.10.6030

Copyright (C) Microsoft Corporation.  All rights reserved.

 

LINK : warning LNK4068: /MACHINE not specified; defaulting to X86

LINK : fatal error LNK1104: cannot open file 'TEMPFILE'

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error executing command line. Exit code:1104

 

 

Sincerely

 

Hans-Gunnar Vold



Re: uml reports

2007-01-05 Thread Dmitry Beransky

I'd like to have images (png, png, vml, etc.)

On 1/4/07, Wayne Fay [EMAIL PROTECTED] wrote:

What do you want to do with them -- convert to JPG or PNG and
include in Javadoc or another webpage? Or just include links to the
UML files?

Wayne



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



Re: [m2] maven-native-plugin TEMP dir problem

2007-01-05 Thread Dan Tran

Try with JDK5.

I think there is a problem with JDK4 with maven-native where TMP var is
nullified.

-D


On 1/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi!



I'm trying to build the JNI example, but the linker informs me that it
cannot open 'TEMPFILE'. I've tried to find out if the %TMP% or %TEMP%
variables are changed using an ant echo goal, but no luck just yet (it
won't run the task if the jar's not present). Any hints to solve this
would be most appreciated.



I might add that I'm not running as an Administrator, nor do I have
access to C:\WINDOWS\Temp, which of course is where the system vars are
pointing.



Here's a snippet of the build run:



D:\Eclipse\VersionTesting\jni-examplemvn -Dplatform=win32 -Ddebug
compile

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   JNI Example

[INFO]   JNI - Java

[INFO]   JNI - Natives

[INFO]   JNI - DLL

[INFO]



[INFO] Building JNI Example

[INFO]task-segment: [compile]

[INFO]



[INFO] No goals needed for project - skipping

[INFO]



[INFO] Building JNI - Java

[INFO]task-segment: [compile]

[INFO]



[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:compile]

[INFO] Nothing to compile - all classes are up to date

[INFO]



[INFO] Building JNI - Natives

[INFO]task-segment: [compile]

[INFO]



[INFO] No goals needed for project - skipping

[INFO]



[INFO] Building JNI - DLL

[INFO]task-segment: [compile]

[INFO]



[INFO] [native:initialize]

[INFO] [native:javah {execution: javah}]

[INFO] javah -o
D:\Eclipse\VersionTesting\jni-example\native\win32\target\custom-javah\H

2\target\classes;D:\Eclipse\VersionTesting\jni-example\java\target\class
es HelloWorld

[INFO] [native:resource-compile {execution: resource-compile}]

[INFO]
D:\Eclipse\VersionTesting\jni-example\native\win32\..\src\main\native\he
llo.rc is

[INFO] [native:compile]

[INFO] [native:link]

[INFO] link.exe /DEBUG /INCREMENTAL:NO /DLL oldnames.lib kernel32.lib
/out:D:\Eclipse\Ve

target\HelloWorld.obj

Microsoft (R) Incremental Linker Version 7.10.6030

Copyright (C) Microsoft Corporation.  All rights reserved.



LINK : warning LNK4068: /MACHINE not specified; defaulting to X86

LINK : fatal error LNK1104: cannot open file 'TEMPFILE'

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error executing command line. Exit code:1104





Sincerely



Hans-Gunnar Vold





Re: Where did tomahawk get moved to on ibiblio???

2007-01-05 Thread Mick Knutson

1. Is that the same as:

   repository
   idMyFaces Staging/id
   nameMyFaces Staging Repository/name
   urlhttp://myfaces.zones.apache.org/dist/maven-repository/url
   snapshots
   enabledtrue/enabled
   /snapshots
   releases
   enabledfalse/enabled
   /releases
   /repository





On 1/5/07, Carlos Sanchez [EMAIL PROTECTED] wrote:


I don't think it was ever there, nothing gets deleted from ibiblio

you probably are confusing with

http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/

On 1/5/07, Mick Knutson [EMAIL PROTECTED] wrote:
 This does not work anymore:

 dependency
 groupIdorg.apache.myfaces.tomahawk/groupId
 artifactIdtomahawk/artifactId
 version1.1.3/version
 scopecompile/scope
 typejar/type
 /dependency


 and it is not located:

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/myfaces/tomahawk

 There is just no tomahawk DIR at all

 --
 Thanks

 DJ MICK

 (Mick Knutson)
 http://www.djmick.com
 http://www.myspace.com/djmick_dot_com
 http://www.thumpradio.com




--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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





--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com


Re: Corrupt GIF image file resource when filtered on Linux

2007-01-05 Thread Torsten Stolpmann

Hi Morris,

I can confirm this behavior - we also stumbled upon this problem.
AFAIK this relates to a CR/LF - CR conversion occurring during the 
filtering of the binary image resources.


HTH,

Torsten

Morris Jones wrote:

Hi ...

I subscribed to the list to pose this problem, but I found a solution 
and wanted to share it.


In my resources folder (src/main/resources) for a webapp I have several 
property files which get filtered for local environment, along with a 
couple of GIF icon image files.  I thought nothing of filtering all the 
resources, and on Windows the package worked just fine.


When it came time to release my webapp, I checked out my project and did 
a mvn package on a Linux system.  But when the WAR file was deployed to 
Tomcat, the image files were corrupt.


I solved the problem by adding an excludes element to the resource 
with filtering on, and a second resource element with filtering off for 
the image files.


I haven't looked at any source to see what might cause the different 
behavior between the two environments.  As far as I know they're all 
Intel little-endian machines.  The JVM on both is 1.5_06.


Best regards,
Mojo



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



Where did tomahawk get moved to on ibiblio???

2007-01-05 Thread Mick Knutson

This does not work anymore:

   dependency
   groupIdorg.apache.myfaces.tomahawk/groupId
   artifactIdtomahawk/artifactId
   version1.1.3/version
   scopecompile/scope
   typejar/type
   /dependency


and it is not located:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/myfaces/tomahawk

There is just no tomahawk DIR at all

--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com


Re: Where did tomahawk get moved to on ibiblio???

2007-01-05 Thread Carlos Sanchez

I don't think it was ever there, nothing gets deleted from ibiblio

you probably are confusing with
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/

On 1/5/07, Mick Knutson [EMAIL PROTECTED] wrote:

This does not work anymore:

dependency
groupIdorg.apache.myfaces.tomahawk/groupId
artifactIdtomahawk/artifactId
version1.1.3/version
scopecompile/scope
typejar/type
/dependency


and it is not located:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/myfaces/tomahawk

There is just no tomahawk DIR at all

--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: Where did tomahawk get moved to on ibiblio???

2007-01-05 Thread Carlos Sanchez

that's something myfaces developers would have to tell you, it is not
a maven issue

On 1/5/07, Mick Knutson [EMAIL PROTECTED] wrote:

1. Is that the same as:

repository
idMyFaces Staging/id
nameMyFaces Staging Repository/name
urlhttp://myfaces.zones.apache.org/dist/maven-repository/url
snapshots
enabledtrue/enabled
/snapshots
releases
enabledfalse/enabled
/releases
/repository





On 1/5/07, Carlos Sanchez [EMAIL PROTECTED] wrote:

 I don't think it was ever there, nothing gets deleted from ibiblio

 you probably are confusing with

 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/

 On 1/5/07, Mick Knutson [EMAIL PROTECTED] wrote:
  This does not work anymore:
 
  dependency
  groupIdorg.apache.myfaces.tomahawk/groupId
  artifactIdtomahawk/artifactId
  version1.1.3/version
  scopecompile/scope
  typejar/type
  /dependency
 
 
  and it is not located:
 
 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/myfaces/tomahawk
 
  There is just no tomahawk DIR at all
 
  --
  Thanks
 
  DJ MICK
 
  (Mick Knutson)
  http://www.djmick.com
  http://www.myspace.com/djmick_dot_com
  http://www.thumpradio.com
 
 


 --
 I could give you my word as a Spaniard.
 No good. I've known too many Spaniards.
  -- The Princess Bride

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




--
Thanks

DJ MICK

(Mick Knutson)
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



RE: maven version management in ant

2007-01-05 Thread EJ Ciramella
New question, so I'm loading via a pom.xml file, how can I reference the
classpath (filled with dependencies)?

project name=capi default=compile
xmlns:artifact=antlib:org.apache.maven.artifact.ant

target name=init
artifact:pom id=project file=pom.xml /
echoThe version is ${project.version}/echo
echo ${project.build.directory}/echo
!-- echoproperties/ --
/target

target name=compile depends=init 
  mkdir dir=target/classes/
  javac srcdir=src/main/java
 destdir=target/classes
 includes=**/*.java
 classpathref=maven.project.classpath
 debug=on
  /
/target
/project


??? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 3:49 PM
To: Maven Users List
Subject: RE: maven version management in ant

Sorry - I'm building with jdk 1.5.1 now and this is gone. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 1:03 PM
To: Maven Users List
Subject: RE: maven version management in ant

I'm trying this out with a VERY simple example (download one
dependency), but I'm getting this:

BUILD FAILED
java.lang.NoSuchMethodError
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
--- Nested Exception ---
java.lang.NoSuchMethodError
at
org.codehaus.plexus.component.configurator.ComponentConfigurationExcepti
on.init(ComponentConfigurationException.java:24)
at
org.codehaus.plexus.component.configurator.converters.basic.IntConverter
.fromString(IntConverter.java:46)
at
org.codehaus.plexus.component.configurator.converters.basic.AbstractBasi
cConverter.fromConfiguration(AbstractBasicConverter.java:61)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSett
er.configure(ComponentValueSetter.java:207)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWi
thFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1
37)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.co
nfigureComponent(BasicComponentConfigurator.java:56)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator
.configureComponent(AbstractComponentConfigurator.java:54)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator
.configureComponent(AbstractComponentConfigurator.java:47)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhas
e.execute(AutoConfigurePhase.java:39)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:331)
at
org.codehaus.plexus.DefaultPlexusContainer.initializeLoggerManager(Defau
ltPlexusContainer.java:1204)
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusConta
iner.java:642)
at org.codehaus.plexus.embed.Embedder.start(Embedder.java:216)
at org.codehaus.plexus.embed.Embedder.start(Embedder.java:183)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.getEmbedder(AbstractA
rtifactTask.java:312)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.lookup(AbstractArtifa
ctTask.java:276)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRe
pository(AbstractArtifactTask.java:78)
at
org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTas
k.java:75)
at
org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtif
actTask.java:451)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at 

Re: First impressions of using maven (long)

2007-01-05 Thread Johannes Schneider

Hi,

thanks for your post. I think you have addressed several issues that 
should be fixed asap.
But unfortunately the developing speed of Maven seems to be very low. 
There exist many bugs and shortcomings everybody complains about (e.g. 
site generation for multi module projects...) :-(.


The problem is that Maven is the best java build system available (the 
perl among thorns). And apperently there isn't too much motivation for 
fixing the existing issues without competition...



Johannes Schneider


Christian Goetze wrote:

In this post, I'd like to summarize my first impressions of using maven.

The product built in my company is a mixed bag of C/C++ code, java code 
and perl code. It is a classic three tier app, with the back end written 
in C/C++, the middle tier written in perl and java and the GUI written 
in java.


The java code is built via ant scripts, and they have grown to be quite 
intricate and unwieldy, and they also tended to obscure the actual 
dependencies between artifacts, causing multiple jars to contain varying 
subsets of the class files, and various random jars being duplicated 
into several places in the source tree -- in other words: your classic 
organically grown mess. Also, the way the ant scripts were written made 
it very hard to get incremental parallel builds to work, since they 
tended to spill files all over the tree while invoking each others in 
scary ways.


The top level build system is written in a make clone called cook, 
written by a nice guy in Australia, Peter Miller. This clone has a 
variety of extras not available in any other build tool, which made it 
possible for me to write a system implementing a philosophy that matches 
almost perfectly with maven's philosophy. See 
http://www.cg-soft.com/tools/build/ for details. One thing to note is 
that cook is fairly old software (I think that the first version came 
out over 20 years ago), which makes the absence of many of its features 
in newer systems that much more depressing - more on that later.


So maven seems like a perfect fit, especially since our java code is 
fairly vanilla, using standard technologies and very few hacks. Indeed, 
it was possible for me to convert about 60% of the java build to maven 
builds within 2 days after reading the Better Builds with Maven book. 
Needless to say, I was impressed.


I really want to like maven. I think it has the right ideas, and the way 
it deals with deploying and reusing artifacts built elsewhere is a great 
model for dealing with third party software, and even inhouse software 
build by separate teams. It effortlessly implements a wink-in scheme 
which usually requires a lot of effort to get to work. In particular, I 
like the fact that developers only need to have those subtrees checked 
out where they are actually making changes, and can still build the 
complete product by downloading the artifacts built and deployed by the 
continuous build loop.


I am in the process of integrating some of the maven ideas (mainly the 
plugin architecture) into my cook based build system, and I almost 
wished maven had some support for C/C++ style artifacts - but I realize 
that this is a much harder problem than java artifacts - a testament to 
the wisdom of the java designers.


Nevertheless, there are difficulties and disappointments:

   * Incremental builds are not reliable;
   * Builds are not reproducible;
   * Builds are not parallizable and distributable;
   * Reactor builds are all or nothing;
   * Propagation of build parameters is undocumented and unpredictable;
   * Release process is bizarre.

I think these are important issues. I'll go into details later, but I 
cannot stress how important it is to have a reliable build tool that 
actually removes workload from developers. Most developers are not 
thrilled about having control taken away from them via an opiniated 
tool like maven. They will only go along if it provides tangible 
benefits. It is therefore -extremely-important- to not disappoint them. 
I don't think there is disagreement about that - after all, the idea 
plugin is a great step in the right direction, but I do fear that people 
do not fully appreciate the difficulties created by having a build tool 
that fails in mysterious and random, hard to debug ways. Developers have 
strong egos, and will go to great lengths to try to figure out things by 
themselves and will only come and ask questions when they are desperate 
- and then they will blame the tool and the people who brought it into 
their lives.


Now, in detail:

_Incremental Builds are not Reliable_

There are two well known failure modes:

   * A source file has been relocated or removed
   * A source file was updated, but with a timestamp older than the
 associated derived file(s).

Supporting those two cases is not really that hard: In the first case, 
you record a hash signature of the sorted list of all ingredient files 
used to produce the target file, and consider it 

Different scopes for same jar depending on profile?

2007-01-05 Thread Thierry Lach

I'm putting together a build process in which I want to be able to customize
the war build to optionally exclude certain jars under certain profiles.
Specifically, I want to exclude the junit jar from WEB-INF/lib if (and only
if) I'm building using the profile jboss, triggered by -Djboss-build on the
command line.

So I want scopeprovided/scope when building for jboss, but
scopecompile/scope when not.  Is there any way that I can accomplish
this?


Using version range fails build, but exact version works

2007-01-05 Thread matthewadams

Hi all,

I'm using Maven 2.0.4 and the maven-antrun-plugin, and I express a
dependency on a version of an artifact in the plugin.  If I use an exact
version number for that artifact, Maven2 succeeds.  If I change the version
number from an exact version to a version range, Maven fails to resolve the
artifact.

More specifics:

My project uses the version range string successfully:
project
...
dependencies
dependency
groupIdcom.xcalia/groupId
artifactIdxic/artifactId
version[4.3.1-1250,)/version
/dependency
...
/dependencies
...

When I use the same dependency in the maven-antrun-plugin, Maven fails to
resolve the artifact.  Here's my plugin element:
plugin
artifactIdmaven-antrun-plugin/artifactId
executions
execution
idenhance-and-create-database/id
phaseprocess-classes/phase
configuration
tasks
ant antfile=enhance.mvn.ant.xml
dir=${basedir} inheritAll=true inheritRefs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
dependencies
dependency
groupIdcom.xcalia/groupId
artifactIdxic/artifactId
!-- USING VERSION RANGE HERE CAUSES FAILURE TO RESOLVE ARTIFACT --
version[4.3.1-1250,)/version
/dependency
/dependencies
/plugin

How do I get this to work?

Thanks in advance,
Matthew
-- 
View this message in context: 
http://www.nabble.com/Using-version-range-fails-build%2C-but-exact-version-works-tf2927616s177.html#a8184722
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: force tasks

2007-01-05 Thread Wendy Smoak

On 1/5/07, Marcelo Takeshi Fukushima [EMAIL PROTECTED] wrote:


Can i checkout from svn and play with it? i mean, is it stable enough?
many thanks


If the 'build fresh' feature is what you're looking for, better wait
until this one is fixed:
http://jira.codehaus.org/browse/CONTINUUM-1103

--
Wendy


RE: maven version management in ant

2007-01-05 Thread EJ Ciramella
I made it a bit further:

project name=capi default=compile
xmlns:artifact=antlib:org.apache.maven.artifact.ant

target name=init
artifact:pom id=project file=pom.xml/
echoThe version is ${project.version}/echo
echo ${project.build.directory}/echo
echo ${project.name}/echo
echo ${project.dependencies}/echo
!-- echoproperties/ --
/target

target name=compile depends=init 
  mkdir dir=target/classes/
  javac srcdir=src/main/java
 destdir=target/classes
 includes=**/*.java
 classpathref=maven.project.classpath
 debug=on
  /
/target

Is the actual classpath used for compiling unavailable to ant as a
property?   

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 05, 2007 2:07 PM
To: Maven Users List
Subject: RE: maven version management in ant

New question, so I'm loading via a pom.xml file, how can I reference the
classpath (filled with dependencies)?

project name=capi default=compile
xmlns:artifact=antlib:org.apache.maven.artifact.ant

target name=init
artifact:pom id=project file=pom.xml /
echoThe version is ${project.version}/echo
echo ${project.build.directory}/echo
!-- echoproperties/ --
/target

target name=compile depends=init 
  mkdir dir=target/classes/
  javac srcdir=src/main/java
 destdir=target/classes
 includes=**/*.java
 classpathref=maven.project.classpath
 debug=on
  /
/target
/project


??? 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 3:49 PM
To: Maven Users List
Subject: RE: maven version management in ant

Sorry - I'm building with jdk 1.5.1 now and this is gone. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 03, 2007 1:03 PM
To: Maven Users List
Subject: RE: maven version management in ant

I'm trying this out with a VERY simple example (download one
dependency), but I'm getting this:

BUILD FAILED
java.lang.NoSuchMethodError
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecut
or.java:40)
at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
--- Nested Exception ---
java.lang.NoSuchMethodError
at
org.codehaus.plexus.component.configurator.ComponentConfigurationExcepti
on.init(ComponentConfigurationException.java:24)
at
org.codehaus.plexus.component.configurator.converters.basic.IntConverter
.fromString(IntConverter.java:46)
at
org.codehaus.plexus.component.configurator.converters.basic.AbstractBasi
cConverter.fromConfiguration(AbstractBasicConverter.java:61)
at
org.codehaus.plexus.component.configurator.converters.ComponentValueSett
er.configure(ComponentValueSetter.java:207)
at
org.codehaus.plexus.component.configurator.converters.composite.ObjectWi
thFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:1
37)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator.co
nfigureComponent(BasicComponentConfigurator.java:56)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator
.configureComponent(AbstractComponentConfigurator.java:54)
at
org.codehaus.plexus.component.configurator.AbstractComponentConfigurator
.configureComponent(AbstractComponentConfigurator.java:47)
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.AutoConfigurePhas
e.execute(AutoConfigurePhase.java:39)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:105)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:92)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:331)
at
org.codehaus.plexus.DefaultPlexusContainer.initializeLoggerManager(Defau
ltPlexusContainer.java:1204)
at
org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusConta
iner.java:642)
at org.codehaus.plexus.embed.Embedder.start(Embedder.java:216)
at 

Re: Corrupt GIF image file resource when filtered on Linux

2007-01-05 Thread Morris Jones
I would have suspected CR vs. CRLF treatment as well, but in such an 
instance the file size would change, and it doesn't in this case.  I 
haven't analyzed the actual change to the file with a hex dump (they're 
small enough that I could), but noted that the checksum of the file was 
certainly changed while its size was the same.


Thanks for the confirmation!

Mojo

Torsten Stolpmann wrote:

Hi Morris,

I can confirm this behavior - we also stumbled upon this problem.
AFAIK this relates to a CR/LF - CR conversion occurring during the 
filtering of the binary image resources.


HTH,

Torsten

Morris Jones wrote:

Hi ...

I subscribed to the list to pose this problem, but I found a solution 
and wanted to share it.


In my resources folder (src/main/resources) for a webapp I have 
several property files which get filtered for local environment, along 
with a couple of GIF icon image files.  I thought nothing of filtering 
all the resources, and on Windows the package worked just fine.


When it came time to release my webapp, I checked out my project and 
did a mvn package on a Linux system.  But when the WAR file was 
deployed to Tomcat, the image files were corrupt.


I solved the problem by adding an excludes element to the resource 
with filtering on, and a second resource element with filtering off 
for the image files.


I haven't looked at any source to see what might cause the different 
behavior between the two environments.  As far as I know they're all 
Intel little-endian machines.  The JVM on both is 1.5_06.


Best regards,
Mojo



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



--
Morris Jones
Monrovia, CA
http://www.whiteoaks.com
Old Town Astronomers http://www.otastro.org

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



Re: Corrupt GIF image file resource when filtered on Linux

2007-01-05 Thread Max Cooper
Whatever the cause of the different behavior on Windows versus Linux, 
binary resources should never be filtered.


An image file could contain bytes that equal ${pom.version} (or some 
other filterable variable) when viewed as a string. Filtering binary 
files is asking for trouble, and wastes time during the build, too.


-Max

Morris Jones wrote:
I would have suspected CR vs. CRLF treatment as well, but in such an 
instance the file size would change, and it doesn't in this case.  I 
haven't analyzed the actual change to the file with a hex dump (they're 
small enough that I could), but noted that the checksum of the file was 
certainly changed while its size was the same.


Thanks for the confirmation!

Mojo

Torsten Stolpmann wrote:

Hi Morris,

I can confirm this behavior - we also stumbled upon this problem.
AFAIK this relates to a CR/LF - CR conversion occurring during the 
filtering of the binary image resources.


HTH,

Torsten

Morris Jones wrote:

Hi ...

I subscribed to the list to pose this problem, but I found a solution 
and wanted to share it.


In my resources folder (src/main/resources) for a webapp I have 
several property files which get filtered for local environment, 
along with a couple of GIF icon image files.  I thought nothing of 
filtering all the resources, and on Windows the package worked just 
fine.


When it came time to release my webapp, I checked out my project and 
did a mvn package on a Linux system.  But when the WAR file was 
deployed to Tomcat, the image files were corrupt.


I solved the problem by adding an excludes element to the resource 
with filtering on, and a second resource element with filtering off 
for the image files.


I haven't looked at any source to see what might cause the different 
behavior between the two environments.  As far as I know they're all 
Intel little-endian machines.  The JVM on both is 1.5_06.


Best regards,
Mojo



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



Java EE 5 in Java.net Maven repo soon (Forwarded)

2007-01-05 Thread Wayne Fay

Just forwarding from Glassfish Dev list...

Wayne

-- Forwarded message --
From: Ludovic Champenois [EMAIL PROTECTED]
Date: Jan 5, 2007 11:26 AM
Subject: Re: ... and EJB API not in the maven repository
Cc: [EMAIL PROTECTED]

Breaking news: I am back from the winter break and a Java EE 5
javaee.jar jar (without any code, only APIs and non usable
implementation of methods) is going to be publish on java.net in the
next 3 days.
Bill: should I extend this process to the J2EE 1.4 j2ee.jar as well?
Thanks,
Ludo

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



Re: Checksum on the pom for maven-ear-plugin is wrong

2007-01-05 Thread tquach

The central (http://repo1.maven.org/maven2) repository has the invalid
checksum:


[INFO] artifact org.apache.maven.plugins:maven-ear-plugin: checking for
updates from central
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'e672c73f1430e99f1886bdf5bb9ae7a3cc2faf63'; remote =
'5ac53c281a15f370daf30b13ebddb5ae2f6e8bdf' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'e672c73f1430e99f1886bdf5bb9ae7a3cc2faf63'; remote =
'5ac53c281a15f370daf30b13ebddb5ae2f6e8bdf' - IGNORING


Stephane Nicoll-2 wrote:
 
 which pom? which repo?
 
 On 12/21/06, Michael Schlotfeldt [EMAIL PROTECTED] wrote:
 I think the checksum on the pom for maven-ear-plugin is wrong. Might be
 more but something is wrong because we are getting checksum errors.
 Can somebody please fix or test it?

 Thanks,
 Michael



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


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

-- 
View this message in context: 
http://www.nabble.com/Checksum-on-the-pom-for-maven-ear-plugin-is-wrong-tf2868593s177.html#a8189063
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Giving up on Archiva

2007-01-05 Thread Henri Yandell

On 1/4/07, drekka [EMAIL PROTECTED] wrote:


Hi all

I've now been struggling with Archiva for over two days and we are going to
drop it. All we wanted to do was:


Thanks for the email Derek, it's very constructive criticism.


1. Have a local company repository so that we can centrally store built
artifacts such as jars.
2. Have requests for artifacts from central automatically cached in the
repository so that when the next programmer requests it, it is downloaded
from there rather than across the net. I.e. proxying central.


Would you have an internal repository and an external repository (via
maven proxy)? ie: two repositories for internal developers to hit. Or
would you want the local company repository jars to be seen through
the same proxy so just the one url for your developers?

I've been ignoring proxying up til now when I play with Archiva as my
interests are in repository visualization, but I'm quite happy to
embrace your use case so I can have a test and raise some bugs.

Hen


Re: unable to build

2007-01-05 Thread Murugan

Hi Patrick

   Thx for yr reply..but in my folder setting doesn't have
settings.xml.

Actualy i did following things..


1. mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app 

2.  Automatically create App.jav file in my local Repository.

my folder setting like this 


my-app
|-- pom.xml
`-- src
|-- main
|   `-- java
|   `-- com
|   `-- mycompany
|   `-- app
|   `-- App.java
`-- test
`-- java
`-- com
`-- mycompany
`-- app
`-- AppTest.java


3. then i try mvn compile

i get error.so what i do now


plz reply as soon as possible





Patrick Schneider-4 wrote:
 
 Murugan,
 
 Are there any special settings in your settings.xml file?
 (~/.m2/settings.xml)
 
 A 403 response for that artifact is odd -- click on the link; it should
 work.  (Works for me at least.)  I assume your internet connection is
 working on the machine from which you are trying to build?
 
 
 Patrick
 
 On 1/5/07, Murugan [EMAIL PROTECTED] wrote:



 Hi kovalen,

  Thx for yr reply.Stil  i get same error.
 I am new to Maven.

 can u explain how to build a maven project.








 kovalen pechaycaren wrote:
 
  Try version *1.5* for plexus-compiler-manager.
 
  see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/
 
  Kovalen
 
 

 --
 View this message in context:
 http://www.nabble.com/unable-to-build-tf2925011s177.html#a8178550
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/unable-to-build-tf2925011s177.html#a8191340
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: unable to build

2007-01-05 Thread Wayne Fay

I'll repeat Patrick's request since you didn't respond to it... Did
you try using the URL to download the file yourself manually from a
web browser using the same computer you're attempting to build your
Maven project on?

http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-compiler-manager/1.5.2/plexus-compiler-manager-1.5.2.jar

This kind of error message is odd and would seem to indicate a problem
with your Internet connection. Are you perhaps behind an Internet
proxy or something?

Also, try running mvn -cpu compile to force an update of the plugins.

Wayne

On 1/6/07, Murugan [EMAIL PROTECTED] wrote:


Hi Patrick

  Thx for yr reply..but in my folder setting doesn't have
settings.xml.

Actualy i did following things..


1. mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

2.  Automatically create App.jav file in my local Repository.

my folder setting like this


my-app
|-- pom.xml
`-- src
   |-- main
   |   `-- java
   |   `-- com
   |   `-- mycompany
   |   `-- app
   |   `-- App.java
   `-- test
   `-- java
   `-- com
   `-- mycompany
   `-- app
   `-- AppTest.java


3. then i try mvn compile

i get error.so what i do now


plz reply as soon as possible





Patrick Schneider-4 wrote:

 Murugan,

 Are there any special settings in your settings.xml file?
 (~/.m2/settings.xml)

 A 403 response for that artifact is odd -- click on the link; it should
 work.  (Works for me at least.)  I assume your internet connection is
 working on the machine from which you are trying to build?


 Patrick

 On 1/5/07, Murugan [EMAIL PROTECTED] wrote:



 Hi kovalen,

  Thx for yr reply.Stil  i get same error.
 I am new to Maven.

 can u explain how to build a maven project.








 kovalen pechaycaren wrote:
 
  Try version *1.5* for plexus-compiler-manager.
 
  see: http://repo1.maven.org/maven2/plexus/plexus-compiler-manager/
 
  Kovalen
 
 

 --
 View this message in context:
 http://www.nabble.com/unable-to-build-tf2925011s177.html#a8178550
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
View this message in context: 
http://www.nabble.com/unable-to-build-tf2925011s177.html#a8191340
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]



Need Help | Restricting execution to a particular phase only

2007-01-05 Thread shinjan sen

Hi,
I wanted to restrict the execution of maven-antrun-plugin to a particular
phase. Normally if we specify the phase as install then whatever is
specified in the phase install gets executed alongwith phases preceeding
that in maven execution  hierarchy, for example, test, compile etc.
Is there any way in which I can restrict execution to only one phase while
execution of the pom file.
I have the following pom.xml :

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
groupIdtest/groupId
 artifactIdcomponents-test/artifactId
 version1.0/version
 packagingpom/packaging
 build
 plugins
plugin
  artifactIdmaven-antrun-plugin/artifactId
  executions
execution
  idone/id
  phaseinstall/phase
inheritedno/inherited
  configuration
tasks
  echo message=Install!!!/
/tasks
  /configuration
  goals
goalrun/goal
  /goals
/execution
execution
idtwo/id
  phasetest/phase
  configuration
tasks
   echo
message=test/
/tasks
  /configuration
  goals
goalrun/goal
  /goals
/execution
 /executions
/plugin
/plugins
 /build
/project

Here I have two phases install and test. While executing install is
there any way in which I can skip the phase test.
Any pointers will be of great help for me.
Thanks in advance,

Regards,
Shinjan