Overriding Central Repository

2006-10-30 Thread ccadete

Hi,

I override my maven central repository, using this,

mirror
  idcentral/id
  mirrorOfcentral/mirrorOf
  nameMy Maven repository/name
  urlhttp://my.maven.repo.com/url
/mirror

but now, although it download packages, maven can't found the plugins !!
First, I clean up the repository, to force the download of the jar's.
Then I make, for example:

mvn archetype:create -DgroupId=pt.matrix -DartifactId=matrix

And

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

[ERROR] BUILD ERROR
[INFO]

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

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

[INFO] Total time: 1 second
[INFO] Finished at: Mon Oct 30 16:23:43 GMT 2006
[INFO] Final Memory: 1M/2M
[INFO]



It download some packages, but the archetype plugin does not, why ?


CCadete



The plugins are there of course...
-- 
View this message in context: 
http://www.nabble.com/Overriding-Central-Repository-tf2540428s177.html#a7077660
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 Central Repository

2006-10-30 Thread ccadete



I notice that it creates the directory tree and maven-metadata-central.xml
files of the plugin.

But with no jar!! How can it be ?


CCadete


-- 
View this message in context: 
http://www.nabble.com/Overriding-Central-Repository-tf2540428s177.html#a7077933
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] Archetype File Name Genration

2006-09-02 Thread ccadete



When I create an archetype I put in the directory pre-determined java
classes, like App.java generated by simple maven archetype.

But, if I want that App.java will be named MyArtifact.java, the name of the
java source generated will depend on the artifact name.

How can customize archetype to create a java source with the same name of
the artifact ?

ccadete

-- 
View this message in context: 
http://www.nabble.com/-M2--Archetype-File-Name-Genration-tf2207247.html#a6113174
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Archetype Resource Empty Directory!

2006-08-31 Thread ccadete

I am using the archetype.xml

archetype
  idApp/id
  
  sources
sourcesrc/main/java/App.java/source
  /sources
   
  resources
resourcesrc/main/webapp/WEB-INF/web.xml/resource
resourcesrc/main/webapp/index.jsp/resource
  /resources
 
  
/archetype

to create an archetype.

When I use it to create a new project, I see the resources specified and a
new empty directory resource

src/
java/
webApp/
index.jsp
META-INF/
   web.xml
resource/  -- Empty


If I don't specified it, in my archetype.xml why it is add to the new
project ?



-- 
View this message in context: 
http://www.nabble.com/-M2--Archetype-Resource-Empty-Directory%21-tf2199631.html#a6089499
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Creating archetypes

2006-08-30 Thread ccadete


I installed a new my archetype, created by me, in a repository, with the
groupId=My-Archetype, but when I choose to use it, using the
-DarchetypeGroupID=My-Archetype in the command line, maven will try to
download it from org.apache.maven.archetypes ( that is the default
archetypes location ), so it will not find it.

Maven try to download archetypes using the default
org.apache.maven.archetypes, and the option -DarchetypeGroupID does not
override the default archetypes location.

Is this a bug ?




-- 
View this message in context: 
http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6069348
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Creating archetypes

2006-08-30 Thread ccadete


I am using:

groupId:myarchetype
artifactId:myarchetype

First, I install the project in the repository,and I see it in the directory
m2/repository/myarchetype that is the groupId directory and it is ok.

Now I try to create a new project using my archetype:

mvn archetype:create 
-DartifactGroupId=myarchetype  
-DarchetypeArtifactId=myarchetype 
-DarchetypeVersion=1.0 
-DgroupId=my.cc 
-DartifactId=cc

and it gives me:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error creating from archetype

Embedded error: Archetype does not exist: Unable to download the artifact
from a
ny repository

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.archetypes
-DartifactId=
myarchetype \
-Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file


  org.apache.maven.archetypes:myarchetype:jar:1.0


And we can see that the groupId is org.apache.maven.archetypes, so it is
getting the default groupId for archetypes.







-- 
View this message in context: 
http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6070269
Sent from the Maven - Users forum at Nabble.com.


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



Re: [M2] Creating archetypes

2006-08-30 Thread ccadete



Yes, it was that, now it is working :) thanks.

ccadete

-- 
View this message in context: 
http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6070383
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Creating archetype default directoy

2006-08-30 Thread ccadete



I create an artifact with the following archetype.xml:

archetype
  idsimple/id
  
  sources
sourcesrc/main/java/App.java/source
  /sources
  
/archetype


And now and I using it to create a new project,

mvn archetype:create
-DarchetypeGroupId=myarchetype  
-DarchetypeArtifactId=myarchetype
-DarchetypeVersion=1.0
-DgroupId=my.cc
-DartifactId=cc 

And see that the directory 
src/main/java/App.java change to src/main/java/my/cc/App.java in the
final project directory. The new directory struture, now have the groupId
before App.java!!

I want to know if this is right behavior: to put all my default package
struture after the project groupId ?




-- 
View this message in context: 
http://www.nabble.com/-M2--Creating-archetype-default-directoy-tf2193554.html#a6070532
Sent from the Maven - Users forum at Nabble.com.


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



[M2] maven-javadoc-plugin - Stylesheetfile Bug

2006-08-27 Thread ccadete

The use of the property stylesheetfile in the plugin maven-javadoc-plugin
and it is not function properly.

I use the configuration in my pom:

plugin
   groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
outputDirectorytarget/javadoc/outputDirectory
stylesheetfilejavadocsStyle.css/stylesheetfile
 /configuration
/plugin

and it does override the default javadoc stylesheet with my own.

ccadete


-- 
View this message in context: 
http://www.nabble.com/-M2--maven-javadoc-plugin---Stylesheetfile-Bug-tf2172542.html#a6007001
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Maven Assembly Error

2006-08-27 Thread ccadete


-- 
View this message in context: 
http://www.nabble.com/-M2--Maven-Assembly-Error-tf2172774.html#a6007640
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Maven Assembly Error

2006-08-27 Thread ccadete

When I run maven-assembly-plugin version 2.1 it gives the following error:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plu
gins:maven-assembly-plugin:2.1:assembly': Unable to find the mojo
'org.apache.ma
ven.plugins:maven-assembly-plugin:2.1:assembly' in the plugin
'org.apache.maven.
plugins:maven-assembly-plugin'
org/codehaus/plexus/archiver/ArchiverException

I run it like

mvn assembly:assembly

I am using in my pom:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-assembly-plugin/artifactId
configuration
descriptors
descriptorsrc/main/assembly/release.xml/descriptor
/descriptors
/configuration
/plugin


and the assembly file:

?xml version=1.0 ?
assembly
  idsrc/id
  formats
formattar.gz/format
formattar.bz2/format
formatzip/format
  /formats
  fileSets
fileSet
  includes
includeREADME*/include
includeLICENSE*/include
includeNOTICE*/include
includepom.xml/include
  /includes
/fileSet
fileSet
  directorysrc/directory
/fileSet
  /fileSets
/assembly




ccadete

-- 
View this message in context: 
http://www.nabble.com/-M2--Maven-Assembly-Error-tf2172791.html#a6007683
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Help:Describe Error

2006-08-27 Thread ccadete


When I execute the following command:

mvn help:describe -DgroupId=org.apache.maven.archetypes
-DartifactId=maven-archetype-webapp

The response is an error message, with a null pointer exception.
I known that this artifact is not a plugin, is an archetype.

I guess, is that maven is not cheking if the artifact that I request is
really a plugin that I can describe.



-- 
View this message in context: 
http://www.nabble.com/-M2--Help%3ADescribe-Error-tf2173974.html#a6011356
Sent from the Maven - Users forum at Nabble.com.


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



Profile Activation Feature

2006-08-19 Thread ccadete

If I want to activate a profile using specified jdk version, I use. for
example:
profile
idJDK-1.5/id
activation
jdk1.5/jdk
/activation
/profiles

but how can it be activated for 1.5, or better. 
This is provided by the version tag in another context, I thing it would be
better if we can specified the version tag, like this, for example:

activation
  jdk
   version[1.5,)/version
   /jdk
/activation

or 

activation
  jdk[1.5,)/jdk
/activation


ccadete





-- 
View this message in context: 
http://www.nabble.com/Profile-Activation-Feature-tf2133948.html#a5889297
Sent from the Maven - Users forum at Nabble.com.


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