How add my guide into my project's site?

2007-01-28 Thread fy

He,
I have a guide.pdf in src/main/resources,Now I want add the file into site
when runed mvn site. 
how I to do?
-- 
View this message in context: 
http://www.nabble.com/How-add-my-guide-into-my-project%27s-site--tf3134503s177.html#a8685309
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About downloading artifacts from remote repositories

2007-01-19 Thread fy

Hi,
I want download artifacts from my server so I modified my mirror:
mirror
  idmaven/id
  mirrorOfmaven/mirrorOf
  namemaven/name
  urlhttp://10.10.100.22/maven/url
 /mirror

And I deployed junit-3.8.1.jar into server with runed deploy:deploy-file.
But it always downloaded the pom from  http://repo1.maven.org/maven2 when I
runned .

D:\workspace\maven_itmsmvn compile
[INFO] Scanning for projects...
[INFO]

[INFO] Building maven_itms Maven Webapp
[INFO]task-segment: [compile]
[INFO]

Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom
145b downloaded
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://10.10.100.22/maven/junit/junit/3.8.1/junit-3.8.1.jar
118K downloaded
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 11 seconds
[INFO] Finished at: Fri Jan 19 15:31:25 CST 2007
[INFO] Final Memory: 4M/9M
[INFO]


why? and how I to do?


-- 
View this message in context: 
http://www.nabble.com/About-downloading-artifacts--from-remote-repositories-tf3038777s177.html#a8445554
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About create maven reports with chinese .

2007-01-18 Thread fy

I want create a site with chinese,hot I to do?
-- 
View this message in context: 
http://www.nabble.com/About-create-maven-reports-with-chinese-.-tf3033323s177.html#a8428153
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About scm:checkin

2007-01-17 Thread fy

Hi,
I added scm into my pom.xml:
scm
   
connectionscm:cvs:ext:[EMAIL PROTECTED]:/home/cvsroot:maven_itms/connection
   
developerConnectionscm:cvs:ext:[EMAIL 
PROTECTED]:/home/cvsroot:maven_itms/developerConnection
urlhttp://10.10.202.22/maven/code/url
/scm

And I runnde mvn scm:checkin

D:\workspace\maven_itmsmvn scm:checkin
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'scm'.
[INFO]

[INFO] Building maven_itms Maven Webapp
[INFO]task-segment: [scm:checkin]
[INFO]

[INFO] [scm:checkin]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Cannot run checkin command :

Embedded error: Exception while executing SCM command.
Missing parameter: 'message'.
[INFO]

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

[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Jan 17 18:01:18 CST 2007
[INFO] Final Memory: 4M/9M
[INFO]


what's mean ? and how I to do?
-- 
View this message in context: 
http://www.nabble.com/About-scm%3Acheckin-tf3026271s177.html#a8407499
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About create maven reports with chinese .

2007-01-16 Thread fy

I want create maven reports with chinese,what I to do?
-- 
View this message in context: 
http://www.nabble.com/About-create-maven-reports-with-chinese-.-tf3024710s177.html#a8402755
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Eclipse throwed the error when runed compile

2007-01-11 Thread fy

Hi,
My project develope with Eclipse:3.2.1 , maven:2.0.4 and
org.maven.ide.eclipse:0.0.9.
Eclipse throwed the error when runed compile:
 [INFO]

[INFO] Building maven_itms Maven Webapp
[INFO]task-segment: [compile]
[INFO]

[INFO] resources:resources
[INFO] Using default encoding to copy filtered resources.
[INFO] compiler:compile
Compiling 132 source files to D:\workspace\maven_itms\target\classes
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com.novitech.itms:maven_itms:war:1.0 ( 
task-segment: [compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:505)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 8 more
But it was ok when runned mvn compile in CMD 
D:\workspace\maven_itmsmvn compile
[INFO] Scanning for projects...
[INFO]

[INFO] Building maven_itms Maven Webapp
[INFO]task-segment: [compile]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 132 source files to D:\workspace\maven_itms\target\classes
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 14 seconds
[INFO] Finished at: Thu Jan 11 18:09:58 CST 2007
[INFO] Final Memory: 4M/21M
[INFO]


Why? and how I to do?

 
-- 
View this message in context: 
http://www.nabble.com/Eclipse-throwed-the-error-when-runed-compile-tf2957962s177.html#a8274828
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to jar additional files outside of the default directories?

2007-01-10 Thread fy

I created a webapp project , and my pom.xml:
 plugin
  artifactIdmaven-jar-plugin/artifactId
  configuration

classesDirectorytarget\classes/classesDirectory
finalNameitsm-ejb/finalName
   
outputDirectoryF:\jboss-4.0.4.GA\server\maven_itms\deploy/outputDirectory

  /configuration
/plugin
Now I have src/main/config/ejb.xml,I want to jar it into web.jar.
How I to do?
-- 
View this message in context: 
http://www.nabble.com/How-to-jar-additional-files-outside-of-the-default-directories--tf2951672s177.html#a8255091
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How package a file into *.jar/META-INF /

2007-01-08 Thread fy

Hi,
I have a webapp project,and I have two files in src/main/config ,now I want
package these files into ejb.jar/META-INF when I execute mvn jar:jar .
This is  my  pom.xml :
  plugin
  artifactIdmaven-jar-plugin/artifactId
  configuration
classesDirectorytarget/classes/classesDirectory
finalNameejb/finalName
   
outputDirectoryF:\jboss-4.0.4.GA\server\maven\deploy/outputDirectory
  /configuration
/plugin

what I need to add ? how I to do?
 
-- 
View this message in context: 
http://www.nabble.com/How-package-a-file-into-*.jar-META-INF---tf2938316s177.html#a8215025
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About config

2007-01-05 Thread fy

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


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



how deploy a jar in the webapp?

2007-01-05 Thread fy

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


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



why my remote repository not work?

2006-12-25 Thread fy

 Hi,

I created a remote repositories in my server,and copy nfa-1.0.0.jar to it.

repositories
repository 
  iditsm/id
 nameServerRepository/name
  urlhttp://10.10.100.22/maven/url 
 /repository
  /repositories

 
Then deleted the nfa-1.0.0.jar from the 
locarepository(~/.m2/repository),but  it was not work and throwed the
following error:

 

D:\workspace\itmsdemomvn compile

[INFO] Scanning for projects...

[INFO]


[INFO] Building Unnamed - com.novitech.itsm:itmsdemo:jar:1.0.0

[INFO]task-segment: [compile]

[INFO]


[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

Downloading: http://10.10.100.22/maven/nfa/nfa/1.0.0/nfa-1.0.0.pom

[INFO]


[ERROR] BUILD ERROR

[INFO]


[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: nfa:nfa

 

Reason: Error getting POM for 'nfa:nfa' from the repository: Error
transferring file

  nfa:nfa:pom:1.0.0

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  itsm (http://10.10.100.22/maven)

 



[INFO]


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

[INFO]


[INFO] Total time: 2 seconds

[INFO] Finished at: Mon Dec 25 11:51:35 CST 2006

[INFO] Final Memory: 2M/4M

[INFO]


 

 

If I put the nfa-1.0.0.jar in my locarepository(~/.m2/repository),it was ok.

Why? And how I to do?

-- 
View this message in context: 
http://www.nabble.com/why-my-remote-repository-not-work--tf2878866s177.html#a8045670
Sent from the Maven - Users mailing list archive at Nabble.com.


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



About deploy:deploy-file

2006-12-25 Thread fy

I creaded my remote repository in
10.10.100.22/app/opt/Apache2/htdocs/maven,and I can accessed it with
http://10.10.100.22/mavne. now I want put a jar into it .First I added the
following code in the settings.xml:
server
  idmaven.repo/id
  usernamemaven/username
  passwordmavne/password
 /server
then I used the cmd :

C:\Documents and Settings\Administrator\.m2\nfa\nfa\1.0.0mvn -X
deploy:deploy-file -Dfile=nfa-1.0.0
.jar -Durl=http://10.10.100.22/mavne  -DrepositoryId=maven.repo 
-DgroupId=nfa -DartifactId=nfa -Dve
rsion=1.0.0 -Dpackaging=jar
+ Error stacktraces are turned on.
Maven version: 2.0.4
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and
Settings\Administrator\.m2
\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'C:\Program
Files\Apache Software Foundati
on\maven2\bin\..\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[DEBUG] maven-deploy-plugin: resolved to version 2.2.1 from repository
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for
project: null:maven-dep
loy-plugin:maven-plugin:2.2.1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project:
org.apache.maven.plugin
s:maven-plugins:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
org.apache.maven:maven-parent:pom:1
 from the repository.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]

[DEBUG]
org.apache.maven.plugins:maven-deploy-plugin:maven-plugin:2.2.1:runtime
(selected for runtim
e)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-artif
act-manager:jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected
for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
(selected for runti
me)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-artif
act:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-repos
itory-metadata:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime
(selected for runtime)
[DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected
for runtime)

[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-project:jar:2.0 f
rom the repository.
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-model
:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-profile:jar:2.0 f
rom the repository.
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-core:
jar:2.0 from the repository.
[DEBUG]   org.apache.maven:maven-core:jar:2.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-plugin-parameter-
documenter:jar:2.0 from the repository.
[DEBUG]
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:runtime (selected
for runtime
)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-error-diagnostics
:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0:runtime
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
org.apache.maven:maven-monit
or:jar:2.0 from the repository.
[DEBUG] org.apache.maven:maven-monitor:jar:2.0:runtime (selected for
runtime)
[DEBUG]
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime
(selected for runti
me)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project:
null:maven-settings:jar:2.0
from the repository.
[DEBUG] org.apache.maven:maven-settings:jar:2.0:runtime (selected for
runtime)
[DEBUG]
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5:runtime
(selected for runt
ime)
[DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5:runtime
(selected for runtime)