Re: Archetypes

2006-03-26 Thread Bill Siggelkow
For the list of released archetypes you can look at ibiblio at http:// 
www.ibiblio.org/maven2/org/apache/maven/archetypes/. AKAIK these are  
the Maven-provided archetypes; there may be others released other  
parties.


-Bill Siggelkow

On Mar 26, 2006, at 4:03 PM, Peter L. Berghold wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Where does a list exist of the predefined archetypes for the  
archetype
plugin?  I only know of the quickstart and the webapp archetypes  
and I'm

going in circles trying to figure out the rest of them.

- --
:: 
::
Peter L. Berghold  
[EMAIL PROTECTED]

Those who fail to learn from history are condemned to repeat it.
AIM: redcowdawgYahoo IM: blue_cowdawg  ICQ:  
11455958

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org

iD8DBQFEJwGWUM9/01RIhaARAnaMAJ49hhMeeDwH9T712qG7gA+U9esD4wCfehFN
4sVNZ+w2nrXP61V4tc6I+0o=
=k2pb
-END PGP SIGNATURE-

-
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: M2 : Having problems with a javac on a very simple build of my first M2 project.

2005-12-02 Thread Bill Siggelkow
Are you sure that there is not another JAVA_HOME environment variable  
defined; maybe like a system-level one? Or maybe something else weird  
in your PATH variable?


-Bill Siggelkow

On Dec 2, 2005, at 9:53 AM, Matthew Wheaton wrote:


A little background first.
I've been using Maven even before the 1.0 release, and have been  
very happy

with it. I've created very complex builds and have a very good working
knowledge of Maven 1.x. The structure I describe below, is  
precisely how

I've successfully built projects with Maven 1.x countless times.

I'm starting a whole new project, and would like to see if Maven 2  
is going

to be something I want to use.

Now on to my problem. Maven 2 cannot find the Javac Compiler that I  
believe

I pointed it to.

I'm running the latest Maven download, version 2.0, on Windows XP

I've created two project modules :

csi_build
csi_common

csi_common  contains my first simple project I'd like to build with  
Maven 2


csi_build  contains my Maven 2 binaries, AND a number of JDKs I use  
for
builds. I store my JDKs in version control (Subversion), as some  
deployments
require different versions of the JDK and because I want anyone to  
be able
to pull down the latest code from the repository and immediately be  
able to

execute a build, even if they don't have the JDK installed.

I simply go to the csi_common directory and execute the following  
build.batfile

===
echo off
set
JAVA_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk 
\jdk1.5.0_04

set
MAVEN_HOME=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven 
\maven-2.0

set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
echo PATH=%PATH%
mvn package -e
===

Here's my simple pom.xml for csi_common
===
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
  groupIdcom.csi.common/groupId
  artifactIdcsi_common/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
  build
  sourceDirectorysrc/java/sourceDirectory
  /build
  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
/dependency
  /dependencies
/project
===

The output complains Unable to locate the Javac Compiler in:
C:\jre1.5.0_04\..\lib\tools.jar
Here's the output:
===
C:\CSI\eclipse_workspaces\CSI\csi_commonecho off
PATH=C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\jdk 
\jdk1.5.0_04\bin;

C:\CSI\eclipse_workspaces\CSI\csi_build\src\tools\maven\maven-2.0\bin;
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
-- 
--

[INFO] Building Maven Quick Start Archetype
[INFO]task-segment: [package]
[INFO]
-- 
--

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 4 source files to
C:\CSI\eclipse_workspaces\CSI\csi_common\target\classes
[INFO]
-- 
--

[ERROR] BUILD FAILURE
[INFO]
-- 
--

[INFO] Compilation failure

Unable to locate the Javac Compiler in:
  C:\jre1.5.0_04\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.

[INFO]
-- 
--

[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(

DefaultLifecycleExecutor.java:540)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif 
ecycle

(DefaultLifecycleExecutor.java:469)
at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(

DefaultLifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
leFailures

(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
s(

DefaultLifecycleExecutor.java:268)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316

[m2] Location of source for integration-test

2005-11-01 Thread Bill Siggelkow
I apologize if this is a stupid question, but what is the proper  
location for integration-test source (as opposed to the src/test/java  
for unit tests)? I read the intro to the std dir layout and did not  
see any mention of this.


-Bill Siggelkow

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



Problem with m2 clean:clean package

2005-10-15 Thread Bill Siggelkow
I am new user of Maven 2 (and have only dabbled with Maven 1). I was  
following the instructions from the getting started page and ran into  
the following error when I tried to run 'm2 clean:clean package' on  
the webapp archetype I created. I am using the maven-2.0-beta-3.  
Here's the stack trace ...


Exception in thread main java.lang.NoSuchMethodError:  
org.codehaus.plexus.util.FileUtils.getDefaultExcludesAsList()Ljava/ 
util/List;
at org.apache.maven.plugin.war.AbstractWarMojo.getExcludes 
(AbstractWarMojo.java:157)
at org.apache.maven.plugin.war.AbstractWarMojo.getWarFiles 
(AbstractWarMojo.java:310)
at org.apache.maven.plugin.war.AbstractWarMojo.copyResources 
(AbstractWarMojo.java:227)
at  
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp 
(AbstractWarMojo.java:196)
at org.apache.maven.plugin.war.WarMojo.performPackaging 
(WarMojo.java:108)

at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:86)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:417)


This would seem to be from an incorrect jar for Plexus. Any help  
would be appreciated.


-Bill Siggelkow

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