Re: Java is a swamp

2010-10-14 Thread Sam Wun
Haha :D

On Wed, Oct 13, 2010 at 7:38 PM, Jörg Schaible joerg.schai...@gmx.de wrote:
 Hi Kenneth,

 now, after your mail, I realize that Java is also a swamp, too:

 = % =
 import javax.script.ScriptEngine;
 import javax.script.ScriptEngineManager;
 import javax.script.ScriptException;

 public class HelloWorld {
  public void main(String[] args) {
    ScriptEngineManager manager = new ScriptEngineManager();
    ScriptEngine engine = manager.getEngineByName(JavaScript);
    engine.put(world, world);
    String result;
    try {
      result = (String)engine.eval('Hello ' + world + '!');
    } catch (ScriptException e) {
      return;
    }
    System.out.println(result);
  }
 }
 = % =

 Take a look at the most obvious problems in the above:

 = % =
    ScriptEngineManager manager = new ScriptEngineManager();
    ScriptEngine engine = manager.getEngineByName(JavaScript);
    engine.put(world, world);
    String result;
    try {
      result = (String)engine.eval('Hello ' + world + '!');
    } catch (ScriptException e) {
      return;
    }
 = % =

 I am very new to Java, but it strikes me that what the above is saying is
 (in shell script):

 echo Hello world!

 I am just so sick of using crappy solutions (read: Java) layered over top
 of what could be good solutions.

 Sorry, I had to vent.

 - Jörg


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



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



settings.xml

2010-03-07 Thread Sam Wun
Can anyone point me to a wiki about how to setup settings.xml for
mavern 2.0? I got an error Checksum failed.

Thanks
Sam

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



CHECKSUM FAILED - please help.

2010-03-05 Thread Sam Wun
Dear all,

Can anyone tell me how to resolve the following error:

Downloading: 
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar

[INFO] [install:install {execution: default-install}]
[INFO] Installing
e:\liferay-workspaces\omii-jaxws-examples-1.0.1\pom.xml to
C:\Users\samw\.m2\repository\uk\ac\omii\omii-jaxws-examples\1.0.1\omii-jaxws-examples-1.0.1.pom
[INFO] 
[INFO] Building Service Endpoint Interface example
[INFO]task-segment: [install]
[INFO] 
Downloading: 
https://maven2-repository.dev.java.net/nonav/repository/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
404b downloaded  (maven-resources-plugin-2.3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'527a9bce69bf4700c735f9fddea3dd2a49dd'; remote = '!DOCTYPE' -
RETRYING
Downloading: 
https://maven2-repository.dev.java.net/nonav/repository/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
404b downloaded  (maven-resources-plugin-2.3.pom)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'527a9bce69bf4700c735f9fddea3dd2a49dd'; remote = '!DOCTYPE' -
IGNORING
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-resources-plugin
POM Location: 
C:\Users\samw\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.3\maven-resources-plugin-2.3.pom

Reason: Not a v4.0.0 POM. for project
org.apache.maven.plugins:maven-resources-plugin at
C:\Users\samw\.m2\repository\org\apache\maven\plugins\maven-resources-plugin\2.3\maven-resources-plugin-2.3.pom


[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 2 minutes 15 seconds
[INFO] Finished at: Sat Mar 06 10:56:04 EST 2010
[INFO] Final Memory: 9M/17M
[INFO] 
bash-3.2$ ls
README  axis2.war  client  pom.xml  server  src-dist
bash-3.2$

I am using Mavern 2.2.1 in Cygwin in Windows Vista.

Very appreciate for any suggestion .

Thanks
Sam

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



Re: please remove me!

2009-08-02 Thread Sam Wun
:D

On Mon, Aug 3, 2009 at 2:09 PM, Stevo Slavićssla...@gmail.com wrote:
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

 On Mon, Aug 3, 2009 at 6:01 AM, Daggett, Jeremy jeremy.dagg...@hp.comwrote:

 unsubscribe



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



Re: Hi,guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-14 Thread Sam Wun
:D

2009/7/14 白鹏 bill.peng@gmail.com:
 C:\DOCUME~1\ADMINI~1set java
 JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05

 2009/7/14 Mick Knutson mickknut...@gmail.com

 Where is your JAVA_HOME installed to?

 ---
 Thank You...

 Mick Knutson, President

 BASE Logic, Inc.
 Enterprise Architecture, Design, Mentoring  Agile Consulting
 p. (866) BLiNC-411: (254-6241-1)
 f. (415) 685-4233

 Website: http://baselogic.com
 Linked IN: http://linkedin.com/in/mickknutson
 Vacation Rental: http://tahoe.baselogic.com
 ---



 On Mon, Jul 13, 2009 at 11:50 AM, David Weintraub qazw...@gmail.com
 wrote:

  Try:
 
  *C:\DOCUME~1\ADMINI~1 mvn archetype:generate
  *
  *
  *Instead of the archetype:create. The archetype:generate is the newer
  plugin, and you don't need to worry about providing it with any command
  line
  parameters that might cause errors.
 
  There could be several issues. Are you using Java 1.5 or higher?  What
  version of Maven are you using?
 
  **
  On Sun, Jul 12, 2009 at 2:17 AM, 白鹏 bill.peng@gmail.com wrote:
 
   C:\DOCUME~1\ADMINI~1mvn archetype:create -DgroupId=com.mycompany.app
   -DartifactId=my-app
   FATAL ERROR: Unable to start the embedded plexus container
  
   who can tell me why this happen ??
  
   Thanks a lot!
  
 
 
 
  --
  David Weintraub
  qazw...@gmail.com
 



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



Failed to fine a pom file. - please help

2009-07-09 Thread Sam Wun
Hi,
I was trying to install an RESTeasy example, but got some errors when
Maven tried to download a pom file.
This example I want to install:
/usr/resteasy-jaxrs-1.1.GA/examples/spring-hibernate

Getting the following errors:
spring-hibernate # !mv
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.resteasy:resteasy-maven-import

Reason: POM 'org.jboss.resteasy:resteasy-maven-import' not found in
repository: Unable to download the artifact from any repository

 org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 java.net (http://download.java.net/maven/1),
 scannotation (http://scannotation.sf.net/maven2),
 maven repo (http://repo1.maven.org/maven2/),
 jboss (http://repository.jboss.org/maven2)

 for project org.jboss.resteasy:resteasy-maven-import

Your help is very much appreciated.
Thanks

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



How to instruct maven look for local repository first?

2009-07-09 Thread Sam Wun
Hi,

I want to setup maven to look for resteasy-maven-import pom file in
the local repository.
Here is the file in my local repository:

# !find
find . -name resteasy-maven-import*
./repository/org/jboss/resteasy/resteasy-maven-import
./repository/org/jboss/resteasy/resteasy-maven-import/1.2.RC1/resteasy-maven-import-1.2.RC1.pom

pom.xml file:

   dependencyManagement
dependencies
dependency
groupIdorg.jboss.resteasy/groupId
artifactIdresteasy-maven-import/artifactId
version1.2.RC1/version
typepom/type
scopeimport/scope
/dependency
/dependencies
/dependencyManagement
.

Errors:
 # !mvn
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: null:resteasy-maven-import:pom:null

Reason: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for
project: null:resteasy-maven-import:pom:null for project
null:resteasy-maven-import:pom:null

It seems it doesn't look for local repository.
How to change the pom.xml so taht it looks for local repository?

Thanks
Sam

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



Re: How to instruct maven look for local repository first?

2009-07-09 Thread Sam Wun
Oh yeah. I need to to change my glasses. :p

On Thu, Jul 9, 2009 at 8:16 PM, Anders Hammarand...@hammar.net wrote:
 If you look at the error message you see that the problem is that the
 parent of resteasy-maven-import
 (org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1) can't be found.
 The resteasy-maven-import artifact is indeed found in the local repo.

 /Anders

 On Thu, Jul 9, 2009 at 11:51, Sam Wunswun2...@gmail.com wrote:
 Hi,

 I want to setup maven to look for resteasy-maven-import pom file in
 the local repository.
 Here is the file in my local repository:

 # !find
 find . -name resteasy-maven-import*
 ./repository/org/jboss/resteasy/resteasy-maven-import
 ./repository/org/jboss/resteasy/resteasy-maven-import/1.2.RC1/resteasy-maven-import-1.2.RC1.pom

 pom.xml file:
 
   dependencyManagement
        dependencies
            dependency
                groupIdorg.jboss.resteasy/groupId
                artifactIdresteasy-maven-import/artifactId
                version1.2.RC1/version
                typepom/type
                scopeimport/scope
            /dependency
        /dependencies
    /dependencyManagement
 .

 Errors:
  # !mvn
 mvn clean install
 [INFO] Scanning for projects...
 Downloading: 
 http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-jaxrs-all-1.2.RC1.pom
 [INFO] Unable to find resource
 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
 java.net (http://download.java.net/maven/1)
 Downloading: 
 http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
 [INFO] Unable to find resource
 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
 maven repo (http://repo1.maven.org/maven2/)
 Downloading: 
 http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
 [INFO] Unable to find resource
 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
 jboss (http://repository.jboss.org/maven2)
 Downloading: 
 http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
 [INFO] Unable to find resource
 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
 scannotation (http://scannotation.sf.net/maven2)
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-jaxrs-all/1.2.RC1/resteasy-jaxrs-all-1.2.RC1.pom
 [INFO] Unable to find resource
 'org.jboss.resteasy:resteasy-jaxrs-all:pom:1.2.RC1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:resteasy-maven-import:pom:null

 Reason: Cannot find parent: org.jboss.resteasy:resteasy-jaxrs-all for
 project: null:resteasy-maven-import:pom:null for project
 null:resteasy-maven-import:pom:null

 It seems it doesn't look for local repository.
 How to change the pom.xml so taht it looks for local repository?

 Thanks
 Sam

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



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



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



Can't download org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

2009-07-08 Thread Sam Wun
Hi,
I was trying to install an RESTeasy example, but got some errors.
This example I want to install:
/usr/resteasy-jaxrs-1.1.GA/examples/spring-hibernate

Getting the following errors:
spring-hibernate # !mv
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.resteasy:resteasy-maven-import

Reason: POM 'org.jboss.resteasy:resteasy-maven-import' not found in
repository: Unable to download the artifact from any repository

 org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 java.net (http://download.java.net/maven/1),
 scannotation (http://scannotation.sf.net/maven2),
 maven repo (http://repo1.maven.org/maven2/),
 jboss (http://repository.jboss.org/maven2)

 for project org.jboss.resteasy:resteasy-maven-import

Your help is very much appreciated.
Thanks

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



maven can't find repo1

2009-07-07 Thread Sam Wun
Hi,

Can anyone tell me how to resolve this error:

# mvn archetype:create-from-project
[INFO] Scanning for projects...
Downloading: 
http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
[INFO] Unable to find resource
'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



Thanks
Sam

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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

Thanks

On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
hehe Cool ^__^
and Thanks.

On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



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



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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
Sorry, I don't know where to put it in the settings.xml file.
I put it in the following area, but got caused mvn errors:


profile
  idjdk-1.4/id

  activation
jdk1.4/jdk
  /activation

  repositories
repository
  idjdk14/id
  nameRepository for JDK 1.4 builds/name
  urlhttp://www.myhost.com/maven/jdk14/url
  layoutdefault/layout
  snapshotPolicyalways/snapshotPolicy
/repository
repository
  idjboss-repository/id
  urlhttp://repository.jboss.org/maven2//url
/repository

  /repositories

/profile



On Tue, Jul 7, 2009 at 9:53 PM, Sam Wunswun2...@gmail.com wrote:
 hehe Cool ^__^
 and Thanks.

 On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



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




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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
I meant the error still the same as before... it s still looking for repo1.

Thanks


On Tue, Jul 7, 2009 at 10:11 PM, Sam Wunswun2...@gmail.com wrote:
 Sorry, I don't know where to put it in the settings.xml file.
 I put it in the following area, but got caused mvn errors:


    profile
      idjdk-1.4/id

      activation
        jdk1.4/jdk
      /activation

      repositories
        repository
          idjdk14/id
          nameRepository for JDK 1.4 builds/name
          urlhttp://www.myhost.com/maven/jdk14/url
          layoutdefault/layout
          snapshotPolicyalways/snapshotPolicy
        /repository
    repository
      idjboss-repository/id
      urlhttp://repository.jboss.org/maven2//url
    /repository

      /repositories

    /profile



 On Tue, Jul 7, 2009 at 9:53 PM, Sam Wunswun2...@gmail.com wrote:
 hehe Cool ^__^
 and Thanks.

 On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



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





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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
I put it here:
settings xmlns=http://maven.apache.org/settings/1.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;
project
  repositories
repository
  idjboss-repositories/id
  urlhttp://repository.jboss.org/maven2//url
/repository
  /repositories
/project

but error when I executed the following mvn commandline:

 # mvn archetype:generate --batch-mode
-DarchetypeArtifactId=maven-archetype-quickstart
-DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
-Dversion=1.0-SNAPSHOT
Error reading settings.xml: Unrecognised tag: 'project' (position:
START_TAG seen ...S/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd;\nproject... @51:10)
  Line:   51
  Column: 10


On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammarand...@hammar.net wrote:
 Don't add it in a profile (well, at least not for the normal case),
 but exactly as specified in the page I linked to. Like this:

 project
  ...
  repositories
    repository
      idjboss-repo/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
  ...
 /project

 Please check the pom schema!

 /Anders

 On Tue, Jul 7, 2009 at 14:11, Sam Wunswun2...@gmail.com wrote:
 Sorry, I don't know where to put it in the settings.xml file.
 I put it in the following area, but got caused mvn errors:


    profile
      idjdk-1.4/id

      activation
        jdk1.4/jdk
      /activation

      repositories
        repository
          idjdk14/id
          nameRepository for JDK 1.4 builds/name
          urlhttp://www.myhost.com/maven/jdk14/url
          layoutdefault/layout
          snapshotPolicyalways/snapshotPolicy
        /repository
    repository
      idjboss-repository/id
      urlhttp://repository.jboss.org/maven2//url
    /repository

      /repositories

    /profile



 On Tue, Jul 7, 2009 at 9:53 PM, Sam Wunswun2...@gmail.com wrote:
 hehe Cool ^__^
 and Thanks.

 On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



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




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



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



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



Re: maven can't find repo1

2009-07-07 Thread Sam Wun
lolz... as the page told me , it set it to settings.xml. :D
it works now, thank you for the great help.

On Tue, Jul 7, 2009 at 10:59 PM, Anders Hammarand...@hammar.net wrote:
 That's because it should go in your pom.xml! The project tag is for the POM.

 Please have a look at the pom schema, as I wrote!

 /Anders

 On Tue, Jul 7, 2009 at 14:53, Sam Wunswun2...@gmail.com wrote:
 I put it here:
 settings xmlns=http://maven.apache.org/settings/1.0.0;
          xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
          xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0
 http://maven.apache.org/xsd/settings-1.0.0.xsd;
 project
  repositories
    repository
      idjboss-repositories/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
 /project

 but error when I executed the following mvn commandline:

  # mvn archetype:generate --batch-mode
 -DarchetypeArtifactId=maven-archetype-quickstart
 -DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
 -Dversion=1.0-SNAPSHOT
 Error reading settings.xml: Unrecognised tag: 'project' (position:
 START_TAG seen ...S/1.0.0
 http://maven.apache.org/xsd/settings-1.0.0.xsd;\nproject... @51:10)
  Line:   51
  Column: 10


 On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammarand...@hammar.net wrote:
 Don't add it in a profile (well, at least not for the normal case),
 but exactly as specified in the page I linked to. Like this:

 project
  ...
  repositories
    repository
      idjboss-repo/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
  ...
 /project

 Please check the pom schema!

 /Anders

 On Tue, Jul 7, 2009 at 14:11, Sam Wunswun2...@gmail.com wrote:
 Sorry, I don't know where to put it in the settings.xml file.
 I put it in the following area, but got caused mvn errors:


    profile
      idjdk-1.4/id

      activation
        jdk1.4/jdk
      /activation

      repositories
        repository
          idjdk14/id
          nameRepository for JDK 1.4 builds/name
          urlhttp://www.myhost.com/maven/jdk14/url
          layoutdefault/layout
          snapshotPolicyalways/snapshotPolicy
        /repository
    repository
      idjboss-repository/id
      urlhttp://repository.jboss.org/maven2//url
    /repository

      /repositories

    /profile



 On Tue, Jul 7, 2009 at 9:53 PM, Sam Wunswun2...@gmail.com wrote:
 hehe Cool ^__^
 and Thanks.

 On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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



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



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



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




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



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



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

Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Sam Wun
As it running forward, near the end of the download.. there is an error:
...
[INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
[WARNING] Rule 1:
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
message:
Detected Maven Version: 2.1.0 is not in the allowed range [2.0.9,2.1).
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Some Enforcer rules have failed. Look above for specific
messages explaining why the rule failed.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 9 minutes 20 seconds
[INFO] Finished at: Tue Jul 07 23:12:08 EST 2009
[INFO] Final Memory: 37M/63M
[INFO] 

what is it?

I have found someone got this error as well, but could not find an answer.

Thanks


On Tue, Jul 7, 2009 at 11:04 PM, Sam Wunswun2...@gmail.com wrote:
 lolz... as the page told me , it set it to settings.xml. :D
 it works now, thank you for the great help.

 On Tue, Jul 7, 2009 at 10:59 PM, Anders Hammarand...@hammar.net wrote:
 That's because it should go in your pom.xml! The project tag is for the POM.

 Please have a look at the pom schema, as I wrote!

 /Anders

 On Tue, Jul 7, 2009 at 14:53, Sam Wunswun2...@gmail.com wrote:
 I put it here:
 settings xmlns=http://maven.apache.org/settings/1.0.0;
          xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
          xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.0.0
 http://maven.apache.org/xsd/settings-1.0.0.xsd;
 project
  repositories
    repository
      idjboss-repositories/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
 /project

 but error when I executed the following mvn commandline:

  # mvn archetype:generate --batch-mode
 -DarchetypeArtifactId=maven-archetype-quickstart
 -DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
 -Dversion=1.0-SNAPSHOT
 Error reading settings.xml: Unrecognised tag: 'project' (position:
 START_TAG seen ...S/1.0.0
 http://maven.apache.org/xsd/settings-1.0.0.xsd;\nproject... @51:10)
  Line:   51
  Column: 10


 On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammarand...@hammar.net wrote:
 Don't add it in a profile (well, at least not for the normal case),
 but exactly as specified in the page I linked to. Like this:

 project
  ...
  repositories
    repository
      idjboss-repo/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
  ...
 /project

 Please check the pom schema!

 /Anders

 On Tue, Jul 7, 2009 at 14:11, Sam Wunswun2...@gmail.com wrote:
 Sorry, I don't know where to put it in the settings.xml file.
 I put it in the following area, but got caused mvn errors:


    profile
      idjdk-1.4/id

      activation
        jdk1.4/jdk
      /activation

      repositories
        repository
          idjdk14/id
          nameRepository for JDK 1.4 builds/name
          urlhttp://www.myhost.com/maven/jdk14/url
          layoutdefault/layout
          snapshotPolicyalways/snapshotPolicy
        /repository
    repository
      idjboss-repository/id
      urlhttp://repository.jboss.org/maven2//url
    /repository

      /repositories

    /profile



 On Tue, Jul 7, 2009 at 9:53 PM, Sam Wunswun2...@gmail.com wrote:
 hehe Cool ^__^
 and Thanks.

 On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammarand...@hammar.net wrote:
 http://lmgtfy.com/?q=maven+add+remote+repositoryl=1

 On Tue, Jul 7, 2009 at 13:32, Sam Wunswun2...@gmail.com wrote:
 Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

 Thanks

 On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammarand...@hammar.net wrote:
 Hi,

 That artifact doesn't exist at central (aka repo1). Try jboss's
 repository instead:
 http://repository.jboss.org/maven2/

 /Anders

 On Tue, Jul 7, 2009 at 13:23, Sam Wunswun2...@gmail.com wrote:
 Hi,

 Can anyone tell me how to resolve this error:

 # mvn archetype:create-from-project
 [INFO] Scanning for projects...
 Downloading: 
 http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom
 [INFO] Unable to find resource
 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository
 central (http://repo1.maven.org/maven2)
 [INFO] 
 
 [ERROR] FATAL ERROR
 [INFO] 
 
 [INFO] Error building POM (may not be this project's POM).


 Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT



 Thanks
 Sam

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

Re: Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Sam Wun
Hi, I rather fix the project so that it works for 2.1, which files I
should modify and how?

Any detail?

Thanks
Sam

On Tue, Jul 7, 2009 at 11:27 PM, Martin Höllermar...@xss.co.at wrote:
 On Tuesday 07 July 2009 Sam Wun wrote:
 As it running forward, near the end of the download.. there is an error:
 ...
 [INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
 [WARNING] Rule 1:
 org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
 message:
 Detected Maven Version: 2.1.0 is not in the allowed range [2.0.9,2.1).
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Some Enforcer rules have failed. Look above for specific
 messages explaining why the rule failed.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 9 minutes 20 seconds
 [INFO] Finished at: Tue Jul 07 23:12:08 EST 2009
 [INFO] Final Memory: 37M/63M
 [INFO]
 

 what is it?

 Whatever you are building was not prepared for maven version 2.1 or later.
 It explicitly states that allowed version range is [2.0.9,2.1), so either
 use maven 2.0.9 or 2.0.10, or fix the project and make it work with maven
 2.1.

 hth,
 - martin

 PS: If you have problems with some public project, please try the projects
    mailinglists first, as your problems are not maven problems.


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



Detected Maven Version: 2.1.0 is not in the allowed range [2.0.9,2.1).

2009-07-07 Thread Sam Wun
Does anyone know which conf file I should change to get rid of this error?
I am with Maven 2.1, Java 1.6

Very appreciate for your help.

thanks

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



Re: Detected Maven Version: 2.1.0 is not in the allowed range [2.0.9,2.1).

2009-07-07 Thread Sam Wun
Thanks for the hints.
I put the following codes in the pom.xml file, but it is not right:

  rules
requireMavenVersion
  version[2.1,2.2)/version
/requireMavenVersion
  /rules

How do I incorproate the following codes into pom.xml file:

  configuration
  rules
bannedDependencies
  excludes
excludejboss:jboss-common-core/exclude
excludejboss:jboss-remoting/exclude
excludejboss.remoting:jboss-remoting/exclude
excludejboss:jboss-test/exclude
excludeorg.jboss:javassist/exclude
excludeorg.jboss:jboss-metadata/exclude
excludeorg.jboss:jboss-transaction-spi/exclude
excludeorg.jboss.microcontainer:jboss-container/exclude

excludeorg.jboss.microcontainer:jboss-deployers-core-spi/exclude
excludeorg.jboss.microcontainer:jboss-deployers-impl/exclude
excludeorg.jboss.microcontainer:jboss-deployers-spi/exclude
  /excludes
/bannedDependencies
requireMavenVersion
  version[2.0.9,2.1)/version
/requireMavenVersion
  /rules
/configuration

Thanks very much



On Wed, Jul 8, 2009 at 11:02 AM, Benson Marguliesbimargul...@gmail.com wrote:
 mvn help:effective-pom might give you a clue.

 On Tue, Jul 7, 2009 at 9:00 PM, Sam Wunswun2...@gmail.com wrote:
 Does anyone know which conf file I should change to get rid of this error?
 I am with Maven 2.1, Java 1.6

 Very appreciate for your help.

 thanks

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



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



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



Re: Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Sam Wun
there is no enforcer plugin in my pom.xml, here is its content:

# cat pom.xml
?xml version=1.0 encoding=UTF-8?

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;





  !-- Model Version --
  modelVersion4.0.0/modelVersion

  parent
groupIdorg.jboss.ejb3/groupId
artifactIdjboss-ejb3-tutorial-common/artifactId
version1.1.1/version
relativePath../common//relativePath
  /parent

  properties

ejb3.tutorial.clientorg.jboss.tutorial.stateless.client.Client/ejb3.tutorial.client
  /properties

  artifactIdjboss-ejb3-tutorial-stateless/artifactId
  version1.1.1-SNAPSHOT/version
  packagingjar/packaging
  nameEJB3.0 Stateless Bean Tutorial/name
  urlhttp://labs.jboss.com/jbossejb3//url
  description
Tutorial for Stateless EJB 3.0
  /description

  repositories
repository
  idjboss-repositories/id
  urlhttp://repository.jboss.org/maven2//url
/repository
  /repositories

/project

Move over, when I put the following new codes in the pom.xml file,
it causes errors:

  plugin
artifactIdmaven-enforcer-plugin/artifactId
version1.0-beta-1/version
executions
  execution
idenforce-banned-dependencies/id
goals
  goalenforce/goal
/goals
  /execution
  execution
idenforce-property/id
phasepre-integration-test/phase
goals
  goalenforce/goal
/goals
configuration
  rules
requireProperty
  propertyjboss.home/property
  messagePlease set JBOSS_HOME/message
/requireProperty
  /rules
  failtrue/fail
/configuration
  /execution
/executions
configuration
  rules
bannedDependencies
  excludes
excludejboss:jboss-common-core/exclude
excludejboss:jboss-remoting/exclude
excludejboss.remoting:jboss-remoting/exclude
excludejboss:jboss-test/exclude
excludeorg.jboss:javassist/exclude
excludeorg.jboss:jboss-metadata/exclude
excludeorg.jboss:jboss-transaction-spi/exclude
excludeorg.jboss.microcontainer:jboss-container/exclude

excludeorg.jboss.microcontainer:jboss-deployers-core-spi/exclude
excludeorg.jboss.microcontainer:jboss-deployers-impl/exclude
excludeorg.jboss.microcontainer:jboss-deployers-spi/exclude
  /excludes
/bannedDependencies
requireMavenVersion
  version[2.1,2.2)/version
/requireMavenVersion
  /rules
/configuration
  /plugin


On Wed, Jul 8, 2009 at 11:28 AM, Wayne Faywayne...@gmail.com wrote:
 Hi, I rather fix the project so that it works for 2.1, which files I
 should modify and how?

 Look at the pom.xml files in your project and find an entry for the
 enforcer plugin, then comment it out or tweak the configuration
 appropriately.

 Wayne

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



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



Unable to add module to the current project as it is not of packaging type 'pom' - Was: Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Sam Wun
Hi, I got a further errors after added new codes in the pom.xml file.
Please see below for more info.
# cat pom.xml
?xml version=1.0 encoding=UTF-8?

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;
  !-- Model Version --
  modelVersion4.0.0/modelVersion

  parent
groupIdorg.jboss.ejb3/groupId
artifactIdjboss-ejb3-tutorial-common/artifactId
version1.1.1/version
relativePath../common//relativePath
  /parent

  properties

ejb3.tutorial.clientorg.jboss.tutorial.stateless.client.Client/ejb3.tutorial.client
  /properties

  artifactIdjboss-ejb3-tutorial-stateless/artifactId
  version1.1.1-SNAPSHOT/version
  packagingjar/packaging
  nameEJB3.0 Stateless Bean Tutorial/name
  urlhttp://labs.jboss.com/jbossejb3//url
  description
Tutorial for Stateless EJB 3.0
  /description

  repositories
repository
  idjboss-repositories/id
  urlhttp://repository.jboss.org/maven2//url
/repository
  /repositories
build
  plugins
  plugin
artifactIdmaven-enforcer-plugin/artifactId
version1.0-beta-1/version
executions
  execution
idenforce-banned-dependencies/id
goals
  goalenforce/goal
/goals
  /execution
  execution
idenforce-property/id
phasepre-integration-test/phase
goals
  goalenforce/goal
/goals
configuration
  rules
requireProperty
  propertyjboss.home/property
  messagePlease set JBOSS_HOME/message
/requireProperty
  /rules
  failtrue/fail
/configuration
  /execution
/executions
configuration
  rules
bannedDependencies
  excludes
excludejboss:jboss-common-core/exclude
excludejboss:jboss-remoting/exclude
excludejboss.remoting:jboss-remoting/exclude
excludejboss:jboss-test/exclude
excludeorg.jboss:javassist/exclude
excludeorg.jboss:jboss-metadata/exclude
excludeorg.jboss:jboss-transaction-spi/exclude
excludeorg.jboss.microcontainer:jboss-container/exclude

excludeorg.jboss.microcontainer:jboss-deployers-core-spi/exclude
excludeorg.jboss.microcontainer:jboss-deployers-impl/exclude
excludeorg.jboss.microcontainer:jboss-deployers-spi/exclude
  /excludes
/bannedDependencies
requireMavenVersion
  version[2.1,2.2)/version
/requireMavenVersion
  /rules
/configuration
  /plugin
  /plugins
/build

/project



Error:
# mvn archetype:generate --batch-mode
-DarchetypeArtifactId=maven-archetype-quickstart
-DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
-Dversion=1.0-SNAPSHOT
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
WAGON_VERSION: 1.0-beta-2
[INFO] 
[INFO] Building EJB3.0 Stateless Bean Tutorial
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO] 
[INFO] Preparing archetype:generate
Downloading: 
http://repository.jboss.org/maven2//org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
repository jboss-repositories (http://repository.jboss.org/maven2/)
Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
repository jboss-snapshots (http://snapshots.jboss.org/maven2)
Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
repository snapshots.jboss.org (http://snapshots.jboss.org/maven2)
Downloading: 
http://download.java.net/maven/2//org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
repository maven2.java.net (http://download.java.net/maven/2/)
Downloading: 
http://download.java.net/maven/1//org.jboss.ws.native/poms/jbossws-native-saaj-1.0-SNAPSHOT.pom
[INFO] Unable to find resource
'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
repository java.net (http://download.java.net/maven/1/)
[INFO] [enforcer:enforce {execution: 

Re: Unable to add module to the current project as it is not of packaging type 'pom' - Was: Detected Maven Version: 2.1.0 is not in the allowed range

2009-07-07 Thread Sam Wun
ok Fixed.
thanks very much for that.

Sam

On Wed, Jul 8, 2009 at 12:34 PM, Edelson,
Justinjustin.edel...@mtvstaff.com wrote:
 That error message means what it says - you can't create a sub-project of a 
 project which doesn't have a packaging of pom. When you run the 
 archetype:generate goal and Maven sees that there's a existing project in the 
 current directory, it assumes you are trying to create a sub-project 
 (module). If this isn't your intention, then your current working directory 
 shouldn't contain a Maven pom.

 Justin

 

 From: Sam Wun [mailto:swun2...@gmail.com]
 Sent: Tue 7/7/2009 10:19 PM
 To: Maven Users List
 Subject: Unable to add module to the current project as it is not of 
 packaging type 'pom' - Was: Detected Maven Version: 2.1.0 is not in the 
 allowed range



 Hi, I got a further errors after added new codes in the pom.xml file.
 Please see below for more info.
 # cat pom.xml
 ?xml version=1.0 encoding=UTF-8?

 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;
  !-- Model Version --
  modelVersion4.0.0/modelVersion

  parent
    groupIdorg.jboss.ejb3/groupId
    artifactIdjboss-ejb3-tutorial-common/artifactId
    version1.1.1/version
    relativePath../common//relativePath
  /parent

  properties
    
 ejb3.tutorial.clientorg.jboss.tutorial.stateless.client.Client/ejb3.tutorial.client
  /properties

  artifactIdjboss-ejb3-tutorial-stateless/artifactId
  version1.1.1-SNAPSHOT/version
  packagingjar/packaging
  nameEJB3.0 Stateless Bean Tutorial/name
  urlhttp://labs.jboss.com/jbossejb3//url
  description
    Tutorial for Stateless EJB 3.0
  /description

  repositories
    repository
      idjboss-repositories/id
      urlhttp://repository.jboss.org/maven2//url
    /repository
  /repositories
 build
  plugins
      plugin
        artifactIdmaven-enforcer-plugin/artifactId
        version1.0-beta-1/version
        executions
          execution
            idenforce-banned-dependencies/id
            goals
              goalenforce/goal
            /goals
          /execution
          execution
            idenforce-property/id
            phasepre-integration-test/phase
            goals
              goalenforce/goal
            /goals
            configuration
              rules
                requireProperty
                  propertyjboss.home/property
                  messagePlease set JBOSS_HOME/message
                /requireProperty
              /rules
              failtrue/fail
            /configuration
          /execution
        /executions
        configuration
          rules
            bannedDependencies
              excludes
                excludejboss:jboss-common-core/exclude
                excludejboss:jboss-remoting/exclude
                excludejboss.remoting:jboss-remoting/exclude
                excludejboss:jboss-test/exclude
                excludeorg.jboss:javassist/exclude
                excludeorg.jboss:jboss-metadata/exclude
                excludeorg.jboss:jboss-transaction-spi/exclude
                excludeorg.jboss.microcontainer:jboss-container/exclude

 excludeorg.jboss.microcontainer:jboss-deployers-core-spi/exclude
                
 excludeorg.jboss.microcontainer:jboss-deployers-impl/exclude
                excludeorg.jboss.microcontainer:jboss-deployers-spi/exclude
              /excludes
            /bannedDependencies
            requireMavenVersion
              version[2.1,2.2)/version
            /requireMavenVersion
          /rules
        /configuration
      /plugin
  /plugins
 /build

 /project



 Error:
 # mvn archetype:generate --batch-mode
 -DarchetypeArtifactId=maven-archetype-quickstart
 -DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
 -Dversion=1.0-SNAPSHOT
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 WAGON_VERSION: 1.0-beta-2
 [INFO] 
 
 [INFO] Building EJB3.0 Stateless Bean Tutorial
 [INFO]    task-segment: [archetype:generate] (aggregator-style)
 [INFO] 
 
 [INFO] Preparing archetype:generate
 Downloading: 
 http://repository.jboss.org/maven2//org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
 [INFO] Unable to find resource
 'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
 repository jboss-repositories (http://repository.jboss.org/maven2/)
 Downloading: 
 http://snapshots.jboss.org/maven2/org/jboss/ws/native/jbossws-native-saaj/1.0-SNAPSHOT/jbossws-native-saaj-1.0-SNAPSHOT.pom
 [INFO] Unable to find resource
 'org.jboss.ws.native:jbossws-native-saaj:pom:1.0-SNAPSHOT' in
 repository jboss-snapshots (http://snapshots.jboss.org/maven2)
 Downloading: 
 http

import project into Eclipse 3.4

2008-08-23 Thread sam wun
HI,



I downloaded a sample project eg. com.eclipsedistilled.catalog in my 
c:\DEV\samples\ directory.

eg. 

c:\DEV\samples\com.eclipsedistilled.cataglog

c:\DEV\samples\com.eclipsedistilled.cataglog\bin

c:\DEV\samples\com.eclipsedistilled.cataglog\src

c:\DEV\samples\com.eclipsedistilled.cataglog\.classpath

c:\DEV\samples\com.eclipsedistilled.cataglog\.cvsignore

c:\DEV\samples\com.eclipsedistilled.cataglog\.project



I heard that we have to use maven to create a project (war / ear) file in 
order to import it into eclipse.

What is the procedure/steps to do that?



Thanks







where should I create this class file?

2008-08-21 Thread sam wun
Hi,



Sorry I post a java question in this mailing list. I know you guys know the 
answer.



I want to create a classdomain.Customer, and domain.Order so that the 
other class can useimport statement to reference this 2 classes.

eg. import domain.Customer;

  import domain.Order;



Where in my windows directory create the class file Customer.java and 
Order.java file?

The following shown the project DBTest I have created in Eclipse (3.4).



d:\workspace\DBTestdir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest

20/08/2008  09:58 PM    DIR  .
20/08/2008  09:58 PM    DIR  ..
20/08/2008  09:58 PM   618 .classpath
20/08/2008  09:58 PM 1,039 .project
20/08/2008  09:58 PM    DIR  .settings
20/08/2008  09:58 PM    DIR  build
21/08/2008  06:22 PM    DIR  src
20/08/2008  09:58 PM    DIR  WebContent
   2 File(s)  1,657 bytes
   6 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest



I also created a package name call command inside the directory:

d:\workspace\DBTest\src\commanddir
 Volume in drive D has no label.
 Volume Serial Number is 401A-FB2E

 Directory of d:\workspace\DBTest\src\command

21/08/2008  06:22 PM    DIR  .
21/08/2008  06:22 PM    DIR  ..
21/08/2008  06:22 PM 1,687 CommandExecutor.java
21/08/2008  06:22 PM   815 CreateCustomer.java
21/08/2008  06:22 PM   799 CreateOrder.java
21/08/2008  06:22 PM   915 DatabaseCommand.java
21/08/2008  06:22 PM 1,027 ListCustomerOrders.java
21/08/2008  06:22 PM   915 ListCustomers.java
   6 File(s)  6,158 bytes
   2 Dir(s)  57,258,811,392 bytes free

d:\workspace\DBTest\src\command




From the file CreateCustomer.java and CreateOrder.java, I want to *import* 
domain.Customer and domain.Order.

Where in my windows directory should create the Customer.java and 
Order.java file?



Thanks

Sam


error in maven command

2008-08-21 Thread sam wun
Hi,



I have maven2 and eclipse 3.4 in my windows vista system.

I tried to run the following mvn command, but got some error. I belileve it 
is a version issue.



d:\workspacemvn archetype:create -DarchetypeGroupId=org.springframework.ws 
-Dar
chetypeArtifactId=spring-ws-archetype -DarchetypeVesrion=1.0.0 
-DgroupId=com.myt
utorial -DartifactId=simpleWeb2
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 

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

[INFO] Setting property: classpath.resource.loader.class = 
'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate 
instead
[INFO] Defaulting package to group ID: com.mytutorial
[INFO] artifact org.springframework.ws:spring-ws-archetype: checking for 
updates
 from central
[WARNING] repository metadata for: 'artifact 
org.springframework.ws:spring-ws-ar
chetype' could not be retrieved from repository: central due to an error: 
Error
transferring file
[INFO] Repository 'central' will be blacklisted
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
Unable to determine the release version

Try downloading the file manually from the project website.

Then, install it using the command:
    mvn install:install-file -DgroupId=org.springframework.ws 
-DartifactId=sprin
g-ws-archetype -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file 
there:
    mvn deploy:deploy-file -DgroupId=org.springframework.ws 
-DartifactId=spring-
ws-archetype -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file 
-Durl=[url]
-DrepositoryId=[id]


  org.springframework.ws:spring-ws-archetype:jar:RELEASE


[INFO] 

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

[INFO] Total time: 41 seconds
[INFO] Finished at: Thu Aug 21 22:43:57 EST 2008
[INFO] Final Memory: 8M/15M
[INFO] 






How to modify the mvn command to execute it correctly?



Thanks

Sam



Create classes in Eclipse 3.4

2008-08-20 Thread sam wun
Hi,



In Eclipse 3.4, I have created  a Web  Project with the following 
commands in Eclipse: 

Go to File-New-Other, then expanding Web-Dynamic Web Project.



Now I want to create its spporting classes, how can I do that in Eclipse 
3.4?

I want to automatically generate getters and setters for the classes, but 
how to create those classes before I can generate getters and setters?



Thanks




Re: Re: simple online order form

2008-08-19 Thread sam wun
Hi,



I am wondering is this AppFuse a widely use framework or library for 
building form like this?



Thanks





 - Original Message -
 From: Rusty Wright
 Sent: 19/08/08 04:37 am
 To: Maven Users List
 Subject: Re: simple online order form
 
 You could try looking at AppFuse:
 
 http://www.ibm.com/developerworks/java/library/j-appfuse/
 
 
 sam wun wrote:
  Hi,
 
 
 
  I want to build a simple  online order with Struts, eclipse, and tomcat 
  (mysql database).
 
  Is there any example/tutorial I can follow to create this simple 
 project?
 
  I found many tutorials are based on MyEclipse, but I am using Elcipse 
 3.4.
 
 
 
  Thank  you in advance.
 
 
 

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


Building AppFuse with mvn

2008-08-19 Thread sam wun
Hi, I tried to build my first AppFuse project following the link I shown 
below,

http://appfuse.org/display/APF/AppFuse+QuickStart



But I hit the first error:



D:\DEV\samplesmkdir AppFuse

D:\DEV\samplescd AppFuse

D:\DEV\samples\AppFusemvn archetype:create 
-DarchetypeGroupId=org.appfuse.arche
types -DarchetypeArtifactId=appfuse-basic-jsf 
-DremoteRepositories=http://static
.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.ip6.app 
DartifactId
=phonecards
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 

[ERROR] BUILD FAILURE
[INFO] 

[INFO] Invalid task 'DartifactId=phonecards': you must specify a valid 
lifecycle
 phase, or a goal in the format plugin:goal or 
pluginGroupId:pluginArtifactId:pl
uginVersion:goal
[INFO] 

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

[INFO] Total time:  1 second
[INFO] Finished at: Tue Aug 19 20:24:11 EST 2008
[INFO] Final Memory: 2M/4M
[INFO] 


D:\DEV\samples\AppFuse


There is no reference related to the groupid and project name.

What is the proper way to create this project?



Thanks





 - Original Message -
 From: sam wun
 Sent: 19/08/08 04:08 pm
 To: Maven Users List, Maven Users List
 Subject: Re: Re: simple online order form
 
 Hi,
 
 
 
 I am wondering is this AppFuse a widely use framework or library for 
 building form like this?
 
 
 
 Thanks
 
 
 
 
 
  - Original Message -
  From: Rusty Wright
  Sent: 19/08/08 04:37 am
  To: Maven Users List
  Subject: Re: simple online order form
  
  You could try looking at AppFuse:
  
  http://www.ibm.com/developerworks/java/library/j-appfuse/
  
  
  sam wun wrote:
   Hi,
  
  
  
   I want to build a simple  online order with Struts, eclipse, and 
 tomcat 
   (mysql database).
  
   Is there any example/tutorial I can follow to create this simple 
  project?
  
   I found many tutorials are based on MyEclipse, but I am using Elcipse 
  3.4.
  
  
  
   Thank  you in advance.
  
  
  
 
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 


Re: Building AppFuse with mvn

2008-08-19 Thread sam wun
Thanks for the quick fix.

It built successfully.

Now from the README.txt file in the project directory, it said:

D:\DEV\samples\AppFuse\phonecardstype README.txt
AppFuse Basic JSF Archetype

---

If you're reading this then you've created your new project using Maven and
appfuse-basic-jsf.  You have only created the shell of an AppFuse Java EE
application.  The project object model (pom) is defined in the file 
pom.xml.
The application is ready to run as a web application. The pom.xml file is
pre-defined with Hibernate as a persistence model and JSF as the web 
framework.

To get started, please complete the following steps:

1. Download and install a MySQL 5.x database from
   http://dev.mysql.com/downloads/mysql/5.0.html#downloads.

2. Run mvn jetty:run-war and view the application at 
http://localhost:8080.

3. More information can be found at:

   http://appfuse.org/display/APF/QuickStart+Guide



But I don't have mysql in this windows Vista desktop.

I have insalled mysql 5 in a linux server. How can I make connection from 
this project to the mysql server in a remote server (linux system)?



Thanks





 - Original Message -
 From: Martijn Dashorst
 Sent: 19/08/08 08:37 pm
 To: Maven Users List
 Subject: Re: Building AppFuse with mvn
 
 add a minus character before your DartifactId=
 
 Martijn
 
 On Tue, Aug 19, 2008 at 12:30 PM, sam wun [EMAIL PROTECTED] wrote:
  Hi, I tried to build my first AppFuse project following the link I 
 shown
  below,
 
  http://appfuse.org/display/APF/AppFuse+QuickStart
 
 
 
  But I hit the first error:
 
 
 
  D:\DEV\samplesmkdir AppFuse
 
  D:\DEV\samplescd AppFuse
 
  D:\DEV\samples\AppFusemvn archetype:create
  -DarchetypeGroupId=org.appfuse.arche
  types -DarchetypeArtifactId=appfuse-basic-jsf
  -DremoteRepositories=http://static
  .appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.ip6.app
  DartifactId
  =phonecards
  [INFO] Scanning for projects...
  [INFO] Searching repository for plugin with prefix: 'archetype'.
  [INFO]
  
 
  [ERROR] BUILD FAILURE
  [INFO]
  
 
  [INFO] Invalid task 'DartifactId=phonecards': you must specify a valid
  lifecycle
   phase, or a goal in the format plugin:goal or
  pluginGroupId:pluginArtifactId:pl
  uginVersion:goal
  [INFO]
  
 
  [INFO] For more information, run Maven with the -e switch
  [INFO]
  
 
  [INFO] Total time:  1 second
  [INFO] Finished at: Tue Aug 19 20:24:11 EST 2008
  [INFO] Final Memory: 2M/4M
  [INFO]
  
 
 
  D:\DEV\samples\AppFuse
 
 
  There is no reference related to the groupid and project name.
 
  What is the proper way to create this project?
 
 
 
  Thanks
 
 
 
 
 
  - Original Message -
  From: sam wun
  Sent: 19/08/08 04:08 pm
  To: Maven Users List, Maven Users List
  Subject: Re: Re: simple online order form
 
  Hi,
 
 
 
  I am wondering is this AppFuse a widely use framework or library for
  building form like this?
 
 
 
  Thanks
 
 
 
 
 
   - Original Message -
   From: Rusty Wright
   Sent: 19/08/08 04:37 am
   To: Maven Users List
   Subject: Re: simple online order form
  
   You could try looking at AppFuse:
  
   http://www.ibm.com/developerworks/java/library/j-appfuse/
  
  
   sam wun wrote:
Hi,
   
   
   
I want to build a simple  online order with Struts, eclipse, and
  tomcat
(mysql database).
   
Is there any example/tutorial I can follow to create this simple
   project?
   
I found many tutorials are based on MyEclipse, but I am using 
 Elcipse
   3.4.
   
   
   
Thank  you in advance.
   
   
   
   
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


good tutorial for maven, eclipse3.4 and tomcat

2008-08-19 Thread sam wun
Hi,



Can anyone provide me a link of tutorial  that I can follow to build a 
simple web base application using maven, eclipse 3.4, tomcat and mysql?



Thanks




simple online order form

2008-08-18 Thread sam wun
Hi,



I want to build a simple  online order with Struts, eclipse, and tomcat 
(mysql database).

Is there any example/tutorial I can follow to create this simple project?

I found many tutorials are based on MyEclipse, but I am using Elcipse 3.4.



Thank  you in advance.




mvn command line failed with archetype..

2008-08-08 Thread Sam Wun
 | Hi,
 |
 | I am wondering how to fix the following attached error (mvn command
 run)?
 | I tried to follow the instruction shown in the following website, but
 got error.
 |
 http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html
 |
 |
 | === attached mvn command run ===
 | Maven version: 2.0.9
 | Java version: 1.6.0_10-beta
 | OS name: windows vista version: 6.0 arch: x86 Family: windows
 |
 | D:\workspace\samples\portletmvn archetype:create
 - -DgroupId=com.mycompany.mypor
 | let \
 | [INFO] Scanning for projects...
 | [INFO] Searching repository for plugin with prefix: 'archetype'.
 | [INFO]
 - 
 | [ERROR] BUILD FAILURE
 | [INFO]
 - 
 | [INFO] Invalid task '\': you must specify a valid lifecycle phase, or
 a goal in
 | the format plugin:goal or
 pluginGroupId:pluginArtifactId:pluginVersion:goal
 | [INFO]
 - 
 | [INFO] For more information, run Maven with the -e switch
 | [INFO]
 - 
 | [INFO] Total time:  1 second
 | [INFO] Finished at: Fri Aug 08 17:32:51 EST 2008
 | [INFO] Final Memory: 2M/4M
 | [INFO]
 - 
 |
 | D:\workspace\samples\portletmvn archetype:create
 - -DgroupId=com.mycompany.mypor
 | let  -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts
 - -DarchetypeAr
 | ifactId=struts2-archetype-portlet  -DarchetypeVersion=2.0.9-SNAPSHOT
  -Dremote
 | epositories=http://people.apache.org/repo/m2-snapshot-repository
 | [INFO] Scanning for projects...
 | [INFO] Searching repository for plugin with prefix: 'archetype'.
 | [INFO]
 - 
 | [INFO] Building Maven Default Project
 | [INFO]task-segment: [archetype:create] (aggregator-style)
 | [INFO]
 - 
 | [INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexu
 | .velocity.ContextClassLoaderResourceLoader'.
 | [INFO] Setting property: velocimacro.messages.on = 'false'.
 | [INFO] Setting property: resource.loader = 'classpath'.
 | [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 | [INFO] [archetype:create]
 | [WARNING] This goal is deprecated. Please use mvn archetype:generate
 instead
 | [INFO] Defaulting package to group ID: com.mycompany.myportlet
 | [INFO] We are using command line specified remote repositories:
 http://people.a
 | ache.org/repo/m2-snapshot-repository
 | [INFO] snapshot
 org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
 | king for updates from id0
 | Downloading:
 http://people.apache.org/repo/m2-snapshot-repository/org/apache/st
 |

 uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
 | PSHOT.jar
 | [INFO]
 - 
 | [ERROR] BUILD ERROR
 | [INFO]
 - 
 | [INFO] Error creating from archetype
 |
 | Embedded error: OldArchetype does not exist.
 | Unable to download the artifact from any repository
 | [INFO]
 - 
 | [INFO] For more information, run Maven with the -e switch
 | [INFO]
 - 
 | [INFO] Total time: 10 seconds
 | [INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
 | [INFO] Final Memory: 8M/15M
 | [INFO]
 - 

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