You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Inandjo Taurel <in...@hotmail.com> on 2005/01/30 18:17:58 UTC

Errors on maven genapp and libraries available offline but not found!

Hi, I'm a newbie, trying to get started with M.E.T.A, but I have the
following problem when I run "maven genapp":

[INFO] App - - __  __
[INFO] App - -|  \/  |__ _Apache__ ___
[INFO] App - -| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
[INFO] App - -|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
[INFO] App - -
log4j:WARN No appenders could be found for logger
(org.apache.commons.beanutils.
BeanUtils).
log4j:WARN Please initialize the log4j system properly.
[WARN] DependencyVerifier - -The use of the remote repository has been
disabled.

[WARN] DependencyVerifier - -The use of the remote repository has been
disabled.

Enter a project template to use: [default]

Please specify an id for your application:  [app]
myapp
Please specify a name for your application:  [Example Application]
helloworld
Please specify the package for your application:  [example.app]
helloworld.app
build:start:

genapp:
     [copy] Copying 1 file to C:\dev\tests\src\java\helloworld\app
     [copy] Copying 3 files to C:\dev\tests\src\test\helloworld\app

BUILD FAILED
File...... C:\Documents and
Settings\Administrateur\.maven\cache\maven-genapp-pl
ugin-2.2\plugin.jelly
element... ant:include
Line...... 140
Column.... 41
java.lang.NullPointerException
[INFO] App - -Total time: 28 seconds
[INFO] App - -Finished at: Sun Jan 30 04:54:37 GMT 2005
[INFO] App - -

I followed the instructions on the "Getting started" page in the maven
homesite, but whether I use a build.properties file or not, the output is
still the same, and doesn't change anything to the behavior of maven. The
file jelly.properties in the cache folder, is the default one given along
with maven distribution. The problematic lines are the following:

<ant:fileset dir="${maven.genapp.resources}">
   <j:forEach var="res" items="${maven.genapp.filter.split}">
<!-- THE FOLLOWING LINE IS PROBLEMANTIC-->
       <ant:include name="${res}"/>
   </j:forEach>
</ant:fileset>




Also, whenever I try to run "maven -Dturbine.app.name=helloworld
turbine:setup" and I have a relevant build.properties file, maven always try
to download the maven-torque-plugin-3.1.1.jar file, despite the fact that I
already have that plugin in the repository, and that i have disabled the
access to the remote repository.
This is the content of my setup.properties file:

maven.mode.online=false
maven.plugin.unpacked.dir=C:/Documents and
Settings/Administrateur/.maven/cache
maven.plugin.dir=C:/Program Files/Apache Group/Maven 1.0.2/plugins
maven.repo.local=C:/Documents and Settings/Administrateur/.maven/repository
maven.repo.remote.enabled=false


How can I tell maven that the file is already in the local repository
anyway??



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