Re: AW: resouce files not in the built jar

2009-10-29 Thread thomas2004

I do use m2eclipse to build my project and then use clean package to compile
it. 

Now I move the context.xml to /src/main/resources and I can find it in
jar.

But as I start to run the program in Eclipse I got exception like:
[code]
...
Exception in thread main
org.springframework.beans.factory.BeanDefinitionStoreException: IOException
parsing XML document from class path resource [context.xml]; nested
exception is java.io.FileNotFoundException: class path resource
[context.xml] cannot be opened because it does not exist
...
[/code]

My class looks like:
[code]
...
public class App {
public static void main(String[] args) {
ApplicationContext context = new
ClassPathXmlApplicationContext(context.xml, TestBean.class);
TestBean testBean = (TestBean) context.getBean(test);
}
}
[/code]

And here is my POM.XML

[code]
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.weichen.app/groupId
artifactIdTestSimpleStandAloneSpringApp/artifactId
packagingjar/packaging
version1.0/version
nameTestSimpleStandAloneSpringApp/name
urlhttp://maven.apache.org/url
properties
spring.version2.5.4/spring.version
/properties
dependencies
dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
dependency
groupIdorg.springframework/groupId
artifactIdspring/artifactId
version${spring.version}/version
/dependency
/dependencies
build
sourceDirectorysrc/main/java/sourceDirectory
resources
resource
directorysrc/main/resources/directory
/resource
/resources
pluginManagement
plugins
plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/pluginManagement
/build
/project
[/code]





Lewis, Eric wrote:
 
 Also, if you're not yet using it, get m2eclipse and import your Maven
 project.
 src/main/resources will be treated as source folder automatically.
 
 Best regards,
 Eric 
 
 -Ursprüngliche Nachricht-
 Von: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
 Gesendet: Mittwoch, 28. Oktober 2009 15:27
 An: Maven Users List
 Betreff: Re: resouce files not in the built jar
 
 because resources should be in src/main/resources/___ and not
 src/main/java/___
 
 eclipse is a fool... maven is a know-all
 
 -Stephen
 
 2009/10/28 thomas2004 thomas200...@yahoo.de
 

 Hi all,

 I use maven 2.0.9 and Eclipse to build my program. But I met a strange
 thing: I put some resource files such as context.xml in the same
 package
 as my java files. But after I built the project/program with mvn clean
 package, I can't find the context.xml inside the jar. That's the reason
 why I got FileNotFoundException as I run the program.

 Someone knows why?
 --
 View this message in context:
 http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26107811.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



resouce files not in the built jar

2009-10-28 Thread thomas2004

Hi all,

I use maven 2.0.9 and Eclipse to build my program. But I met a strange
thing: I put some resource files such as context.xml in the same package
as my java files. But after I built the project/program with mvn clean
package, I can't find the context.xml inside the jar. That's the reason
why I got FileNotFoundException as I run the program.

Someone knows why?
-- 
View this message in context: 
http://www.nabble.com/resouce-files-not-in-the-built-jar-tp26095189p26095189.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: A questionabout Error building POM (may not be this project's POM).

2009-01-20 Thread thomas2004

waitting for answer


thomas2004 wrote:
 
 Hi all,
 
 As I build the project in Eclipse with mvn package, it is successful.
 But as I build it again in command prompt I got error as follow.
 
 I changed the 'jar' to 'pom' in the pom-file but I still get the same
 error.
 
 Someone has tips?
 
 *
 
 D:\Temp\MyProjects\jboss-seam-multi\jboss-seam-warmvn package
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building 1.0.0-1-SNAPSHOT jboss-seam-war
 [INFO]task-segment: [package]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 1 resource
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).
 
 
 Project ID: org.richfaces.ui:richfaces-ui
 
 Reason: Parent: org.richfaces:ui:jar:3.2.2.SR1 of project:
 org.richfaces.ui:rich
 faces-ui has wrong packaging: jar. Must be 'pom'. for project
 org.richfaces.ui:r
 ichfaces-ui
 
 
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 3 seconds
 [INFO] Finished at: Fri Jan 16 10:18:17 CET 2009
 [INFO] Final Memory: 6M/12M
 [INFO]
 
 

-- 
View this message in context: 
http://www.nabble.com/A-questionabout-%22Error-building-POM-%28may-not-be-this-project%27s-POM%29.%22-tp21495408p21564589.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: A questionabout Error building POM (may not be this project's POM).

2009-01-20 Thread thomas2004

I solved the problem.



thomas2004 wrote:
 
 Hi all,
 
 As I build the project in Eclipse with mvn package, it is successful.
 But as I build it again in command prompt I got error as follow.
 
 Someone has tips?
 
 *
 
 D:\Temp\MyProjects\jboss-seam-multi\jboss-seam-warmvn package
 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] Building 1.0.0-1-SNAPSHOT jboss-seam-war
 [INFO]task-segment: [package]
 [INFO]
 
 [INFO] [resources:resources]
 [INFO] Using 'UTF-8' encoding to copy filtered resources.
 [INFO] Copying 1 resource
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error building POM (may not be this project's POM).
 
 
 Project ID: org.richfaces.ui:richfaces-ui
 
 Reason: Parent: org.richfaces:ui:jar:3.2.2.SR1 of project:
 org.richfaces.ui:rich
 faces-ui has wrong packaging: jar. Must be 'pom'. for project
 org.richfaces.ui:r
 ichfaces-ui
 
 
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 3 seconds
 [INFO] Finished at: Fri Jan 16 10:18:17 CET 2009
 [INFO] Final Memory: 6M/12M
 [INFO]
 
 

-- 
View this message in context: 
http://www.nabble.com/A-questionabout-%22Error-building-POM-%28may-not-be-this-project%27s-POM%29.%22-tp21495408p21578112.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to construct the pom.xml ti build an EAR file?

2009-01-19 Thread thomas2004

I want to build an EAR file which looks as follow:
http://www.nabble.com/file/p21545349/maven-ear.jpg 

My pom.xml looks as follow but I can't get the structure as shown above.
Has someone idea?

*

?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;
modelVersion4.0.0/modelVersion
groupIdcom.wei.chen.jboss.seam.ear/groupId
artifactIdjboss-seam-ear/artifactId
version1.0.0-1-SNAPSHOT/version
name${project.version} ${artifactId}/name
descriptionA web interface for .../description
parent
groupIdcom.wei.chen.jboss.seam/groupId
artifactIdjboss-seam-multi/artifactId
version1.0.0-1-SNAPSHOT/version
/parent
packagingear/packaging
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-ear-plugin/artifactId
version2.2/version
configuration

defaultJavaBundleDirlib//defaultJavaBundleDir
finalName${artifactId}/finalName
modules
javaModule

groupIdorg.jboss.seam/groupId

artifactIdjboss-seam/artifactId

version${seam-version}/version
bundleDir//bundleDir
/javaModule
javaModule

groupIdcom.wei.chen.jboss.seam.jar/groupId

artifactIdjboss-seam-jar/artifactId
bundleDir//bundleDir
/javaModule
/modules
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/build
dependencies
dependency
groupIdcom.wei.chen.jboss.seam.jar/groupId
artifactIdjboss-seam-jar/artifactId
version${project.version}/version
typejar/type
exclusions
exclusion

groupIdorg.richfaces.framework/groupId
artifactIdrichfaces-impl/artifactId
/exclusion
exclusion
groupIdorg.richfaces.ui/groupId
artifactIdrichfaces-ui/artifactId
/exclusion
/exclusions
/dependency
dependency
groupIdcom.wei.chen.jboss.seam.war/groupId
artifactIdjboss-seam-war/artifactId
version${project.version}/version
typewar/type
/dependency
/dependencies
/project
-- 
View this message in context: 
http://www.nabble.com/How-to-construct-the-%22pom.xml%22-ti-build-an-EAR-file--tp21545349p21545349.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A questionabout Error building POM (may not be this project's POM).

2009-01-16 Thread thomas2004

Hi all,

As I build the project in Eclipse with mvn package, it is successful. But
as I build it again in command prompt I got error as follow.

Someone has tips?

*

D:\Temp\MyProjects\jboss-seam-multi\jboss-seam-warmvn package
[INFO] Scanning for projects...
[INFO]

[INFO] Building 1.0.0-1-SNAPSHOT jboss-seam-war
[INFO]task-segment: [package]
[INFO]

[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]

[ERROR] BUILD ERROR
[INFO]

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


Project ID: org.richfaces.ui:richfaces-ui

Reason: Parent: org.richfaces:ui:jar:3.2.2.SR1 of project:
org.richfaces.ui:rich
faces-ui has wrong packaging: jar. Must be 'pom'. for project
org.richfaces.ui:r
ichfaces-ui


[INFO]

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

[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Jan 16 10:18:17 CET 2009
[INFO] Final Memory: 6M/12M
[INFO]

-- 
View this message in context: 
http://www.nabble.com/A-questionabout-%22Error-building-POM-%28may-not-be-this-project%27s-POM%29.%22-tp21495408p21495408.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



denpendency/ for org/testng/testng/5.8/

2009-01-15 Thread thomas2004

Hi all,

I need the testng-5.8-jdk15.jar in my program and I find it under:
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/testng/testng/5.8/

I put this dependency in the pom.xml as follow but it couldn't find that.
What is the correct writting for dependency/?

dependency
groupIdorg.testng/groupId
artifactIdtestng-5.8/artifactId
version5.8-jdk15/version
/dependency

-- 
View this message in context: 
http://www.nabble.com/%3Cdenpendency-%3E-for-org-testng-testng-5.8--tp21476664p21476664.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: denpendency/ for org/testng/testng/5.8/

2009-01-15 Thread thomas2004



inbroker wrote:
 
 
  I tried the following in Eclipse and worked fine
 dependency
   groupIdorg.testng/groupId
   artifactIdtestng/artifactId
   version5.8/version
   typejar/type
   classifierjdk15/classifier
   scopecompile/scope
 /dependency
 although this was from the central repository.
 http://repo1.maven.org/maven2.
 
 I hope it helps.
 Inbroker
 

Bingo, it works!

Thanks.
-- 
View this message in context: 
http://www.nabble.com/%3Cdenpendency-%3E-for-org-testng-testng-5.8--tp21476664p21476836.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



required artifact is missing ......

2009-01-09 Thread thomas2004

Hi all,

I use mvn to build/compile my multi-project locally and it is successful.
Later I deploy it to the TeamCity and build/compile it again. But htis time
I got error as follow. From the error message one can see one that 1
required artifact is missing. But which one is this? 

***
...
 [INFO]
[14:36:57]:
[ERROR] BUILD ERROR[14:36:57]: [INFO]
[14:36:57]:
[INFO] Failed to resolve artifact.[14:36:57]: Missing:[14:36:57]:
--[14:36:57]: 1)
local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT[14:36:57]:   Path to
dependency: [14:36:57]: 1)
de.proactiv.mq.monitoring.ws:mq-monitoring-ws:war:1.0-SNAPSHOT[14:36:57]:   
2) local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT[14:36:57]:
--[14:36:57]: 1 required artifact is missing.[14:36:57]: for
artifact: [14:36:57]:  
de.proactiv.mq.monitoring.ws:mq-monitoring-ws:war:1.0-SNAPSHOT[14:36:57]:
from the specified remote repositories:[14:36:57]:   ibiblio.org
(http://mirrors.ibiblio.org/pub/mirrors/maven2),[14:36:57]:  
com.springsource.repository.bundles.release
(http://repository.springsource.com/maven/bundles/release),[14:36:57]:  
custom-artifacts
(file:///opt/maven-repositorys/custom-artifact-repository),[14:36:57]:  
codehaus (http://repository.codehaus.org/),[14:36:57]:  
com.springsource.repository.bundles.external
(http://repository.springsource.com/maven/bundles/external),[14:36:57]:  
com.springsource.repository.bundles.snapshot
(http://repository.springsource.com/maven/bundles/snapshot),[14:36:57]:  
maven2-repository.dev.java.net
(http://download.java.net/maven/2),[14:36:57]:  
maven-repository.dev.java.net (http://download.java.net/maven/1),[14:36:57]:  
proactiv-snapshot
(file:///opt/maven-repositorys/snapshot-repository),[14:36:57]:  
proactiv-release
(file:///opt/maven-repositorys/release-repository),[14:36:57]:   JBOSS
(http://repository.jboss.org/maven2)[14:36:58]: [INFO]
[14:36:58]:
[INFO] Trace[14:36:58]:
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:[14:36:58]:
--[14:36:58]: 1)
local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT[14:36:58]:   Path to
dependency: [14:36:58]: 1)
de.proactiv.mq.monitoring.ws:mq-monitoring-ws:war:1.0-SNAPSHOT[14:36:58]:   
2) local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT[14:36:58]:
--[14:36:58]: 1 required artifact is missing.[14:36:58]: for
artifact: [14:36:58]:  
de.proactiv.mq.monitoring.ws:mq-monitoring-ws:war:1.0-SNAPSHOT[14:36:58]:
from the specified remote repositories:[14:36:58]:   ibiblio.org
(http://mirrors.ibiblio.org/pub/mirrors/maven2),[14:36:58]:  
com.springsource.repository.bundles.release
(http://repository.springsource.com/maven/bundles/release),[14:36:58]:  
custom-artifacts
(file:///opt/maven-repositorys/custom-artifact-repository),[14:36:58]:  
codehaus (http://repository.codehaus.org/),[14:36:58]:  
com.springsource.repository.bundles.external
(http://repository.springsource.com/maven/bundles/external),[14:36:58]:  
com.springsource.repository.bundles.snapshot
(http://repository.springsource.com/maven/bundles/snapshot),[14:36:58]:  
maven2-repository.dev.java.net
(http://download.java.net/maven/2),[14:36:58]:  
maven-repository.dev.java.net (http://download.java.net/maven/1),[14:36:58]:  
proactiv-snapshot
(file:///opt/maven-repositorys/snapshot-repository),[14:36:58]:  
proactiv-release
(file:///opt/maven-repositorys/release-repository),[14:36:58]:   JBOSS
(http://repository.jboss.org/maven2)[14:36:58]: at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:575)[14:36:58]:
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)[14:36:58]:
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)[14:36:58]:
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)[14:36:58]:
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)[14:36:58]:
 
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)[14:36:58]:
 
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)[14:36:58]: 
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)[14:36:58]: 
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)[14:36:58]: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[14:36:58]:  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[14:36:58]:
 
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[14:36:58]:
 
at java.lang.reflect.Method.invoke(Method.java:585)[14:36:58]:  at

Re: required artifact is missing ......

2009-01-09 Thread thomas2004

Here is the screen-shot of my repository. Can you see what is wrong?

http://www.nabble.com/file/p21373356/pom.jpg 



Jaikiran wrote:
 
 Its' missing this one :  local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT 
 
 thomas2004 wrote:
 
 [14:36:57]: Missing:
 [14:36:57]: --
 [14:36:57]: 1) local.sun.java.net:jaxws-ri:pom:2.1-EA3-SNAPSHOT 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/required-artifact-is-missing-..-tp21372605p21373356.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: required artifact is missing ......

2009-01-09 Thread thomas2004


Wendy Smoak-3 wrote:
 
 
 It can't find the jaxws-ri-2.1-EA3-SNAPSHOT pom, which is a dependency
 of your mq-monitoring-ws webapp.
 
 My guess is that you installed this in your local repository, and it's
 not available in any of the remote repos that your CI server can see.
 
 The reason for that might be the strange groupId starting with
 'local'.  Was that intentional?  (Or is Sun really using that
 groupId?)
 
 -- 
 Wendy
 
 

I downloaded zip file which contains many jars and I unzip this and deployed
this locally. But I also deploy this to the repository of our company. 

'local' is not intentional. But I think this should not the problem since by
building maven will look for dependencies in the company repository. Right?

-- 
View this message in context: 
http://www.nabble.com/required-artifact-is-missing-..-tp21372605p21373939.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A question about -DarchetypeArtifactId=maven-archetype-webapp

2008-11-19 Thread thomas2004

Hi all,

I use the following mvn command to create a web project, but the generaed
web.xml uses web-app_2_3.dtd. But what I want is web-app_2_4.xsd or even
web-app_2_5.xsd. 

Someone knows is there a new maven artifact to do so?

Regards

Thomas
-- 
View this message in context: 
http://www.nabble.com/A-question-about-%22-DarchetypeArtifactId%3Dmaven-archetype-webapp%22-tp20588259p20588259.html
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: A question about -DarchetypeArtifactId=maven-archetype-webapp

2008-11-19 Thread thomas2004

For example? :-)



brettporter wrote:
 
 Archetype's are just a very simple starting point. I suggest if you  
 are doing this frequently, you create your own that has more than just  
 the standard web.xml in it anyway.
 
 Cheers,
 Brett
 
 On 20/11/2008, at 7:11 AM, thomas2004 wrote:
 

 Hi all,

 I use the following mvn command to create a web project, but the  
 generaed
 web.xml uses web-app_2_3.dtd. But what I want is web-app_2_4.xsd  
 or even
 web-app_2_5.xsd.

 Someone knows is there a new maven artifact to do so?

 Regards

 Thomas
 -- 
 View this message in context:
 http://www.nabble.com/A-question-about-%22-DarchetypeArtifactId%3Dmaven-archetype-webapp%22-tp20588259p20588259.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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

 
 --
 Brett Porter
 [EMAIL PROTECTED]
 http://blogs.exist.com/bporter/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-%22-DarchetypeArtifactId%3Dmaven-archetype-webapp%22-tp20588259p20588456.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



jaxws-maven-plugin : Failed to execute wsgen

2008-11-12 Thread thomas2004

Hi all,

I use Eclipse 3.4 and has maven2 plugin installed. As I run mvn package in
Eclipse with following pom.xml, I got following error:

[ERROR] 

The following mojo encountered an error while executing:
Group-Id: org.codehaus.mojo
Artifact-Id: jaxws-maven-plugin
Version: 1.10
Mojo: wsgen
brought in via: POM

While building project:
Group-Id: com.weichen.jax.ws
Artifact-Id: TestJaxWs
Version: 1.0-SNAPSHOT
From file: C:\Project\TestJaxWs\pom.xml
Reason: Failed to execute wsgen

But as I run in cmd-console, it is successful. Why?
-- 
View this message in context: 
http://www.nabble.com/jaxws-maven-plugin-%3A-Failed-to-execute-wsgen-tp20470612p20470612.html
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: Does Java 1.4 support maven-jaxb-plugin?

2008-11-01 Thread thomas2004

Many thanks. I will try.



The plugin you use is for JAXB 2.x which requires you to use at least
java 1.5. For java 1.4 you need JAXB 1.x. You may want to use this JAXB
1.0 plugin.

  plugin
groupIdorg.jvnet.jaxb1.maven2/groupId
artifactIdmaven-jaxb1-plugin/artifactId
executions
  execution
idgenerate/id
phasegenerate-sources/phase
goals
  goalgenerate/goal
/goals
configuration
  extensiontrue/extension
  stricttrue/strict
  bindingDirectorysrc/main/jaxb/bindingDirectory
  schemaDirectorysrc/main/jaxb/schemaDirectory
/configuration
  /execution
/executions
  /plugin

For this to work you need some additional repositories, since that
plugin is not available via the central repository.

  repositories
repository
  idmaven2-repository.dev.java.net/id
  nameJava.net Maven 2 Repository/name
  urlhttp://download.java.net/maven/2//url
  snapshots
enabledfalse/enabled
  /snapshots
/repository
repository
  idmaven-repository.dev.java.net/id
  nameJava.net Maven 1 Repository (legacy)/name
  urlhttp://download.java.net/maven/1//url
  layoutlegacy/layout
/repository
  /repositories
  pluginRepositories
pluginRepository
  idmaven2-repository.dev.java.net/id
  nameJava.net Maven 2 Repository/name
  urlhttp://download.java.net/maven/2//url
  snapshots
enabledfalse/enabled
  /snapshots
/pluginRepository
pluginRepository
  idmaven-repository.dev.java.net/id
  nameJava.net Maven 1 Repository (legacy)/name
  urlhttp://download.java.net/maven/1//url
  snapshots
enabledfalse/enabled
  /snapshots
  layoutlegacy/layout
/pluginRepository
  /pluginRepositories

And you will need the corresponding JAXB dependencies for java 1.4.

  dependency
groupIdjavax.xml.bind/groupId
artifactIdjaxb-api/artifactId
version1.0/version
scopecompile/scope
exclusions
  !--
  Excluded because of certificate problems.
  Classes must be provided by additional jaxp-api
  dependency when used.
  --
  exclusion
groupIdjavax.xml/groupId
artifactIdnamespace/artifactId
  /exclusion
  exclusion
groupIdjavax.xml/groupId
artifactIdjax-qname/artifactId
  /exclusion
/exclusions
  /dependency
  dependency
groupIdcom.sun.xml.bind/groupId
artifactIdjaxb-impl/artifactId
version1.0.6/version
scopecompile/scope
  /dependency

  dependency
groupIdjavax.xml.parsers/groupId
artifactIdjaxp-api/artifactId
version1.4/version
scopecompile/scope
  /dependency
  dependency
groupIdcom.sun.xml.parsers/groupId
artifactIdjaxp-ri/artifactId
version1.4/version
scoperuntime/scope
  /dependency

Give it a try.

-- 
Christian

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




-- 
View this message in context: 
http://www.nabble.com/Does-Java-1.4-support-%22maven-jaxb-plugin%22--tp20226200p20284336.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Does Java 1.4 support maven-jaxb-plugin?

2008-10-29 Thread thomas2004

Hi all,

I use following plugin in my pom.xml to convert XSD to java:
...
plugin
groupIdcom.sun.tools.xjc.maven2/groupId
artifactIdmaven-jaxb-plugin/artifactId
executions
execution
phasegenerate-sources/phase
goals
goalgenerate/goal
/goals
/execution
/executions
configuration

generatePackagecom.mycompany/generatePackage

schemaDirectorysrc/main/webapp/WEB-INF/xsd/schemaDirectory
/configuration
/plugin
...

I use Java 1.4. As I run mvn install, I got error as follow:
...
[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'com.sun.tools.xjc.ma
ven2:maven-jaxb-plugin:1.1:generate': Unable to find the mojo
'com.sun.tools.xjc
.maven2:maven-jaxb-plugin:1.1:generate' in the plugin
'com.sun.tools.xjc.maven2:
maven-jaxb-plugin'
com/sun/tools/xjc/maven2/XJCMojo (Unsupported major.minor version 49.0)
[INFO]

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Oct 29 13:38:08 CET 2008
[INFO] Final Memory: 8M/15M
[INFO]

...

Surely when I use Java 1.5. It is OK. But I do want to use Java 1.4 since I
will deploy my web-application to WebLogic 8 which is just compatible with
Java 1.4.

Has someone idea?
-- 
View this message in context: 
http://www.nabble.com/Does-Java-1.4-support-%22maven-jaxb-plugin%22--tp20226200p20226200.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



java.lang.UnsupportedClassVersionError:.... (Unsupported major.minor version 49.0)

2008-10-29 Thread thomas2004

Hi all,

I use Eclipse Ganymede and I start it with Java 6. I've installed the maven
plugin.

But I configure a project with JRE of Java 1.4.2. As I run any maven command
such as mvn clean or mvn install, I got exception as follow. But as I
change the JRE to Java 1.5, it's OK. But I do want to create project in Java
1.4. Any idea?

java.lang.UnsupportedClassVersionError:
org/apache/maven/artifact/resolver/AbstractArtifactResolutionException
(Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at
org.apache.maven.cli.MavenCli.buildEmbedderConfiguration(MavenCli.java:204)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:52)
Exception in thread main 
-- 
View this message in context: 
http://www.nabble.com/java.lang.UnsupportedClassVersionError%3A-%28Unsupported-major.minor-version-49.0%29-tp20228678p20228678.html
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: Does Java 1.4 support maven-jaxb-plugin?

2008-10-29 Thread thomas2004

I do use the version of 1.4 as follow. But it doesn't help. The created java
files by maven-jaxb-plugin contains annotation which is not supported by
Java 1.4.

plugin
artifactIdmaven-war-plugin/artifactId
configuration
archive
manifest

addClasspathtrue/addClasspath
/manifest
/archive
/configuration
/plugin
plugin
groupIdcom.sun.tools.xjc.maven2/groupId
artifactIdmaven-jaxb-plugin/artifactId
executions
execution
phasegenerate-sources/phase
goals
goalgenerate/goal
/goals
/execution
/executions
configuration

generatePackagede.proactiv.pbv.dsl/generatePackage

schemaDirectorysrc/main/webapp/WEB-INF/xsd/schemaDirectory
/configuration
/plugin
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.4/source
target1.4/target
/configuration
/plugin




Nick Stolwijk-4 wrote:
 
 Use Java 1.5 to run maven, but configure the compiler plugin to output
 Java 1.4 code. [1]
 
 [1]
 http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#source
 
 Hth,
 
 Nick Stolwijk
 ~Java Developer~
 
 Iprofs BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 www.iprofs.nl
 
 
 
 On Wed, Oct 29, 2008 at 1:39 PM, thomas2004 [EMAIL PROTECTED] wrote:

 Hi all,

 I use following plugin in my pom.xml to convert XSD to java:
 ...
plugin
   
 groupIdcom.sun.tools.xjc.maven2/groupId
artifactIdmaven-jaxb-plugin/artifactId
executions
execution
   
 phasegenerate-sources/phase
goals
   
 goalgenerate/goal
/goals
/execution
/executions
configuration
   
 generatePackagecom.mycompany/generatePackage
   
 schemaDirectorysrc/main/webapp/WEB-INF/xsd/schemaDirectory
/configuration
/plugin
 ...

 I use Java 1.4. As I run mvn install, I got error as follow:
 ...
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Internal error in the plugin manager executing goal
 'com.sun.tools.xjc.ma
 ven2:maven-jaxb-plugin:1.1:generate': Unable to find the mojo
 'com.sun.tools.xjc
 .maven2:maven-jaxb-plugin:1.1:generate' in the plugin
 'com.sun.tools.xjc.maven2:
 maven-jaxb-plugin'
 com/sun/tools/xjc/maven2/XJCMojo (Unsupported major.minor version 49.0)
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 2 seconds
 [INFO] Finished at: Wed Oct 29 13:38:08 CET 2008
 [INFO] Final Memory: 8M/15M
 [INFO]
 
 ...

 Surely when I use Java 1.5. It is OK. But I do want to use Java 1.4 since
 I
 will deploy my web-application to WebLogic 8 which is just compatible
 with
 Java 1.4.

 Has someone idea?
 --
 View this message in context:
 http://www.nabble.com/Does-Java-1.4-support-%22maven-jaxb-plugin%22--tp20226200p20226200.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

A question about maven2 and unitest/

2008-09-26 Thread thomas2004

Hi all,

Formerly I used maven1 and I can set the unitTest/ in project.xml. Now I
use maven2. How can I set or define the unitTest/ in pom.xml?
-- 
View this message in context: 
http://www.nabble.com/A-question-about-maven2-and-%3Cunitest-%3E-tp19687862p19687862.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A question about error message annotations are not supported in -source 1.3

2008-09-24 Thread thomas2004

Hi all,

I use Eclipse and the maven2 plugins to build project in Eclipse. I get an
error as I run mvn install:

[code]
...
D:\Temp\myproject\src\main\java\com\mycompany\Person.java:[41,1] annotations
are not supported in -source 1.3
(try -source 1.5 to enable annotations)
@XmlAccessorType(XmlAccessType.FIELD)
...
[/code]

And the class Person.java looks as follow:
[code]
...
@XmlAccessorType(XmlAccessType.FIELD)  // here is the line 41
@XmlType(name = Person, propOrder = {
name
})
...
public class Person {

@XmlElement(required = true)
protected String name;
...
}

[/code]

My pom.xml looks as follow:
[code]
...
build
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/build
...
[/code]

Someone can help?
-- 
View this message in context: 
http://www.nabble.com/A-question-about-error-message-%22annotations-are-not-supported-in--source-1.3%22-tp19645391p19645391.html
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 create the .project file?

2008-09-21 Thread thomas2004

I use mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mycompany.app
-DartifactId=TestWebApp to create a project. But I have to create the
.project file sothat I can import the project in Eclipse. Surely I can use
mvn eclipse:eclipse to create the .project. But is there another way
(another maven command) to do this?
-- 
View this message in context: 
http://www.nabble.com/How-to-create-the-%22.project%22-file--tp19593035p19593035.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



maven1 and Wtp support in Eclipse

2008-09-07 Thread thomas2004

I know there is WTP support in maven2:
mvn -Dwtpversion=R7 eclipse:eclipse

Who knows is there any WTP support for maven1?
-- 
View this message in context: 
http://www.nabble.com/maven1-and-Wtp-support-in-Eclipse-tp19359006p19359006.html
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: Unable to download org.apache.maven.plugins:maven-dependency-plugin:pom:2.0

2008-09-06 Thread thomas2004

1.
I have no problem with connection/firewall, since I can run other poms.

2.
What do you mean bad metadata in my local repo? How can I clean it?

Thanks




Brian E Fox wrote:
 
 I can't see anything obvious in your config, and ibiblio does have the
 file:
 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/m
 aven-dependency-plugin/2.0/
 
 So either there is bad metadata in your local repo, or you have some
 connection problem/firewall etc.
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19343533.html
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: Unable to download org.apache.maven.plugins:maven-dependency-plugin:pom:2.0

2008-09-06 Thread thomas2004

As I try it today again, seems the plugin can be downloaded. But as I run
mvn install, I got another error:
[code]
Missing:
--
1) javax.jms:jms:jar:1.1
2) com.sun.jdmk:jmxtools:jar:1.2.1
3) com.sun.jmx:jmxri:jar:1.2.1
[/code]





Brian E Fox wrote:
 
 I can't see anything obvious in your config, and ibiblio does have the
 file:
 http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/plugins/m
 aven-dependency-plugin/2.0/
 
 So either there is bad metadata in your local repo, or you have some
 connection problem/firewall etc.
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19343762.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A questionm about mirror/ settings in settings.xml of maven2

2008-09-06 Thread thomas2004

We know the default repo is http://repo1.maven.org/maven2;. But very often
some jars can not be downloaded from this repo. So one can configure other
repos in the settings.xml, sothat if the jar can not be found from this
repo, it may be fpund from other. Following is my mirror/-settings. I am
not sure if it is correct:

[code]
mirror
  idrepo1.maven.org/id
  namerepo1 Mirror of http://repo1.maven.org/maven2/name
  urlhttp://repo1.maven.org/maven2/url
  mirrorOfcentral/mirrorOf
/mirror
mirror
  idibiblio.org/id
  nameibiblio Mirror of http://repo1.maven.org/maven2//name
  urlhttp://mirrors.ibiblio.org/pub/mirrors/maven2/url
  mirrorOflegacy/mirrorOf
/mirror
mirror
  idrepo2.maven.org/id
  namerepo2 Mirror of http://repo2.maven.org/maven2/name
  urlhttp://repo2.maven.org/maven2/url
  mirrorOflegacy/mirrorOf
/mirror
mirror
  idjboss.com/maven2/id
  namerepo2 Mirror of http://repository.jboss.com/maven2//name
  urlhttp://repository.jboss.com/maven2/url
  mirrorOflegacy/mirrorOf
/mirror
[/code]
-- 
View this message in context: 
http://www.nabble.com/A-questionm-about-%3Cmirror-%3E-settings-in-%22settings.xml%22-of-maven2-tp19343966p19343966.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Where to find repos to download the following jars?

2008-09-06 Thread thomas2004

1) com.sun.jdmk:jmxtools:jar:1.2.1
2) com.sun.jmx:jmxri:jar:1.2.1

-- 
View this message in context: 
http://www.nabble.com/Where-to-find-repos-to-download-the-following-jars--tp19344017p19344017.html
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: Where to find repos to download the following jars?

2008-09-06 Thread thomas2004

I can't find the two jars from the link you gave me.


Manuel EVENO wrote:
 
 Here : http://download.java.net/maven/1/
 
 Take care it is a legacy layout (maven1) ...
 
 On Sat, Sep 6, 2008 at 11:50 AM, Olivier Lamy [EMAIL PROTECTED] wrote:
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Where-to-find-repos-to-download-the-following-jars--tp19344017p19347426.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Unable to download org.apache.maven.plugins:maven-dependency-plugin:pom:2.0

2008-09-05 Thread thomas2004

Hi all, the following is my pom.xml. As I run mvn clean I got error:

[code]
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-dependency-plugin:pom:2.0

from the specified remote repositories:
  ibiblio.org (http://mirrors.ibiblio.org/pub/mirrors/maven2)


[INFO]

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

[INFO] Total time: 42 seconds
[INFO] Finished at: Fri Sep 05 18:44:00 CEST 2008
[INFO] Final Memory: 1M/3M
[INFO]


[/code]

My pom.xml:
[code]
build
plugins
plugin
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idcopy-dependencies/id
phasepackage/phase
goals

goalcopy-dependencies/goal
/goals
configuration

excludeScopeprovided/excludeScope
/configuration
/execution
/executions
/plugin
plugin
artifactIdmaven-assembly-plugin/artifactId
executions
execution
idmake-assembly/id
phasepackage/phase
goals
goalattached/goal
/goals
/execution
/executions
configuration
descriptors

descriptorassembly.xml/descriptor
/descriptors
/configuration
/plugin
plugin
artifactIdmaven-war-plugin/artifactId
configuration
archive
manifest

addClasspathtrue/addClasspath
/manifest
/archive

packagingExcludesWEB-INF/lib/*.jar/packagingExcludes
/configuration
/plugin
/plugins
/build
[/code]
-- 
View this message in context: 
http://www.nabble.com/Unable-to-download-%22org.apache.maven.plugins%3Amaven-dependency-plugin%3Apom%3A2.0%22-tp19335385p19335385.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Problem witrh Maven Integration for Eclipse

2008-09-04 Thread thomas2004

Hi all,

Last week I installed the Maven Integration for Eclipse (from
http://m2eclipse.sonatype.org/update) in Eclipse Ganymede and it runs. I.g.
I can see the maven logo in the context-menu when I right click on a
project.

Yesterday I uninstall the Maven Integration for Eclipse because of some
reason. Today as I installed it again, though I can find the maven from the
Installed Software, but I can't see the maven logo any more in the
context-menu when I right click on a project.

Someone knows why?
-- 
View this message in context: 
http://www.nabble.com/Problem-witrh-%22Maven-Integration-for-Eclipse%22-tp19304616p19304616.html
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: Missing: org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4

2008-09-01 Thread thomas2004

Hi,

Surely I can download the jar file first and then install it manually. But I
don't like in such a way so much.

Can I do it automatically?

Regards

Thomas



Yoav  Landman wrote:
 
 Yes, we installed a newer version of Artifactory over the weekend. Should
 be alright now and
 your artifact is available at
 http://repo.jfrog.org/artifactory/plugins-releases-local/org/jfrog/maven/annomojo/maven-plugin-anno/1.2.4/maven-plugin-anno-1.2.4.jar
 
 Yoav
 
 
 matinh wrote:
 
 On Friday 29 August 2008 thomas2004 wrote:
 Hi all,

 As I try to build the project by mvn eclipse:eclipse I got error as
 follow:

 [code]
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4
 
 You get this because the maven-plugin-anno is not in maven's central 
 repository. According to [0] your can configure maven to use JFrog's 
 repository which would be the best option. Unfortunately this repo seems
 to 
 be broken at the moment.
 
 As an alternative you can download the ZIP file as also explained on the 
 page mentioned above [0] and extract it into your local repository 
 (~/.m2/repository on unix).
 
 hth,
 - martin
 
 [0] http://www.jfrog.org/sites/mvn-anno-mojo/latest/
 
  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Missing%3A-org.jfrog.maven.annomojo%3Amaven-plugin-anno%3Ajar%3A1.2.4-tp19217580p19250071.html
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: Missing: org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4

2008-09-01 Thread thomas2004

Hi martinh,

I do as in your link [0] tells as follow. But I even got the same error.

dependency
groupIdorg.jfrog.maven.annomojo/groupId
artifactIdmaven-plugin-anno/artifactId
version1.2.4/version
/dependency

build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-plugin-plugin/artifactId
version2.3/version
dependencies
dependency

groupIdorg.jfrog.maven.annomojo/groupId

artifactIdmaven-plugin-tools-anno/artifactId
version1.2.4/version
scoperuntime/scope
/dependency
/dependencies
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
/build







matinh wrote:
 
 On Friday 29 August 2008 thomas2004 wrote:
 Hi all,

 As I try to build the project by mvn eclipse:eclipse I got error as
 follow:

 [code]
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 Missing:
 --
 1) org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4
 
 You get this because the maven-plugin-anno is not in maven's central 
 repository. According to [0] your can configure maven to use JFrog's 
 repository which would be the best option. Unfortunately this repo seems
 to 
 be broken at the moment.
 
 As an alternative you can download the ZIP file as also explained on the 
 page mentioned above [0] and extract it into your local repository 
 (~/.m2/repository on unix).
 
 hth,
 - martin
 
 [0] http://www.jfrog.org/sites/mvn-anno-mojo/latest/
 
  
 

-- 
View this message in context: 
http://www.nabble.com/Missing%3A-org.jfrog.maven.annomojo%3Amaven-plugin-anno%3Ajar%3A1.2.4-tp19217580p19250075.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Caused by: java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException

2008-09-01 Thread thomas2004

I build my project with mvn eclipse:eclipse but I got error:

Caused by: java.lang.NoClassDefFoundError:
javax/activation/MimeTypeParseException

I've check the class javax.activation.MimeTypeParseException.java is in
activation-1.1.jar and this jar is already in the Maven dependency in
Eclipse.

What could be the problem?
-- 
View this message in context: 
http://www.nabble.com/Caused-by%3A-java.lang.NoClassDefFoundError%3A-javax-activation-MimeTypeParseException-tp19250275p19250275.html
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: Caused by: java.lang.NoClassDefFoundError: javax/activation/MimeTypeParseException

2008-09-01 Thread thomas2004

Hi,

The error is overcame. I change Java5 to Java6. The error is gone.



Jan Torben Heuer-3 wrote:
 
 thomas2004 wrote:
 
 Hi thomas2004,
 
 I build my project with mvn eclipse:eclipse but I got error:
 
 Caused by: java.lang.NoClassDefFoundError:
 javax/activation/MimeTypeParseException
 
 I've check the class javax.activation.MimeTypeParseException.java is in
 activation-1.1.jar and this jar is already in the Maven dependency in
 Eclipse.
 
 What could be the problem?
 
 AFAIK the eclipse goal does not compile your code thus it shouldn't raise
 the error - but I may be wrong. Can you post the relevant lines from
 mvn -X -e eclipse:eclipse?
 
 Jan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Caused-by%3A-java.lang.NoClassDefFoundError%3A-javax-activation-MimeTypeParseException-tp19250275p19252677.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Missing: org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4

2008-08-29 Thread thomas2004

Hi all,

As I try to build the project by mvn eclipse:eclipse I got error as
follow:

[code]
[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.2.4

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=org.jfrog.maven.annomojo
-DartifactId=m
aven-plugin-anno -Dversion=1.2.4 -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.jfrog.maven.annomojo
-DartifactId=mav
en-plugin-anno -Dversion=1.2.4 -Dpackaging=jar -Dfile=/path/to/file
-Durl=[url]
-DrepositoryId=[id]
[/code]

1.
I try to download the plugin manually but couldn't find the URL.

2.
I don't think it's a good idea to download the plugin manually. Maybe it's
the problem anywhere?

Regards

Thomas
-- 
View this message in context: 
http://www.nabble.com/Missing%3A-org.jfrog.maven.annomojo%3Amaven-plugin-anno%3Ajar%3A1.2.4-tp19217580p19217580.html
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: Error: Unable to read the metadata file for artifact 'net.java.dev.jets3t:jets3t:jar' ...

2008-08-23 Thread thomas2004

I solved the problem now.

I did as follow:
1.
Goto
http://s3browse.com/explore/maven.springframework.org/external/net/java/dev/jets3t/jets3t/0.5.1-20080115/

2.
Download the jets3t-0.5.1-20080115.jar and the .pom to my local repo.


-- 
View this message in context: 
http://www.nabble.com/Error%3A-Unable-to-read-the-metadata-file-for-artifact-%27net.java.dev.jets3t%3Ajets3t%3Ajar%27-...-tp19123292p19127841.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Is is possible to start maven in Eclipse?

2008-07-23 Thread thomas2004

I use maven1 and Eclipse 3.3.x.

Now when I compile a project or run other maven commands, I have to open
Command Prompt and enter the maven command.

I wonder if one can simple run maven command in Eclipse directly, such as
right click the project and choose run maven command in the context menu.



-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-start-maven-in-Eclipse--tp18614085p18614085.html
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: Is is possible to run maven command in Eclipse?

2008-07-23 Thread thomas2004

It seems it use maven2. But I use maven1.




Gopal Patwa wrote:
 
 you might want to try this 
 
 http://maven.apache.org/eclipse-plugin.html
 
 http://m2eclipse.codehaus.org/
 
 -Gopal
 
 
 thomas2004 wrote:
 
 I use maven1 and Eclipse 3.3.x.
 
 Now when I compile a project or run other maven commands, I have to open
 Command Prompt and enter the maven command.
 
 I wonder if one can simple run maven command in Eclipse directly, such as
 right click the project and choose run maven command in the context
 menu.
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-is-possible-to-run-maven-command-in-Eclipse--tp18614085p18614637.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Does maven1 works with Java5?

2008-07-21 Thread thomas2004

I have a java project built with Java5. Today as I rebuild the project with
maven1 I got error. It doesn't recognize the generics. I doubt the maven1
doesn't work with Java5. Is it right?

Regards

Thomas

-- 
View this message in context: 
http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html
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: Does maven1 works with Java5?

2008-07-21 Thread thomas2004

How and where can I set the compiler version?



Martijn Dashorst wrote:
 
 make sure you set the compiler version correctly. The compiler plugin
 defaults to java 1.3
 
 Martijn
 
 On Mon, Jul 21, 2008 at 11:35 AM, thomas2004 [EMAIL PROTECTED]
 wrote:

 I have a java project built with Java5. Today as I rebuild the project
 with
 maven1 I got error. It doesn't recognize the generics. I doubt the maven1
 doesn't work with Java5. Is it right?

 Regards

 Thomas

 --
 View this message in context:
 http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565148.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Does-maven1-works-with-Java5--tp18565148p18565311.html
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: Antwort: How to set/configure the maven.repo.local?

2008-07-18 Thread thomas2004

Good to know. Many thanks! :-)



torsten.reinhard wrote:
 
 you can pass -Dmaven.repo.local=.
 
 That´s very usefull too, if you have a Continuous Build system running, 
 where each build should work on its own local repository.
 
 Torsten
 
 
 
 
 thomas2004 [EMAIL PROTECTED] 
 17.07.2008 17:15
 Bitte antworten an
 Maven Users List users@maven.apache.org
 
 
 An
 users@maven.apache.org
 Kopie
 
 Thema
 How to set/configure the maven.repo.local?
 
 
 
 
 
 
 
 Hi all,
 
 Sofar I know, If I run maven command, maven will first look up the local
 repository and then the remote repository. I know also, the default local
 repository is ${user.home}/.maven. How can I change this to another
 directory, assumed to c:\projects\mvexe ?
 
 Besides, my project called MyProject is locates under c:\projects\,
 i.g.:
 c:
   \projects
 \mvexe
 \MyProject
 
 Regards
 
 Thomas
 -- 
 View this message in context: 
 http://www.nabble.com/How-to-set-configure-the-maven.repo.local--tp18510850p18510850.html
 
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-configure-the-maven.repo.local--tp18510850p18525594.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A question about maven site and the created JavaDocs

2008-07-18 Thread thomas2004

A class looks as follow:

/**
 * 
 * @author Thomas
 * 
 */
public class PriceIncrease {
/** Logger for this class and subclasses */
protected final Log logger = LogFactory.getLog(getClass());

private int percentage;

/**
 * 
 * @param i Percentage
 * My comments: This function sets ...
 */
public void setPercentage(int i) {
percentage = i;
logger.info(Percentage set to  + i);
}
...
}

After I used maven site, the JavaDocs are generated. But as I open this
class in javadocs, I see the followings:

setPercentage
public void setPercentage(int i)Parameters:
i - Percentage

I can't see the text of MyComments, why?


-- 
View this message in context: 
http://www.nabble.com/A-question-about-maven-site-and-the-created-JavaDocs-tp18525606p18525606.html
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: A question about maven site and the created JavaDocs

2008-07-18 Thread thomas2004

Hi Marco,

You are right. But where can I find information about the order of such
parameter settings? I use Eclipse. After I type the @ and Ctrl-space, I get
a context menu with a list of paramaters such as @reture, @see etc. I wonder
there  should be something like @comments.

Regards

Thomas




Marco Huber wrote:
 
 Hi Thomas,
 
 I think you don't use the javadoc correctly.
 
 You comment must be followed by the @param tags:
 
 /**
   * My comments: This function sets ...
   *
   * @param i Percentage
   */
 
 See also http://java.sun.com/j2se/javadoc/writingdoccomments/
 
 Regards
 Marco
 
 thomas2004 wrote:
 A class looks as follow:
 
 /**
  * 
  * @author Thomas
  * 
  */
 public class PriceIncrease {
  /** Logger for this class and subclasses */
  protected final Log logger = LogFactory.getLog(getClass());
 
  private int percentage;
  
  /**
   * 
   * @param i Percentage
  * My comments: This function sets ...
   */
  public void setPercentage(int i) {
  percentage = i;
  logger.info(Percentage set to  + i);
  }
 ...
 }
 
 After I used maven site, the JavaDocs are generated. But as I open this
 class in javadocs, I see the followings:
 
 setPercentage
 public void setPercentage(int i)Parameters:
 i - Percentage
 
 I can't see the text of MyComments, why?
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-maven-site-and-the-created-JavaDocs-tp18525606p18528256.html
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: A question about maven site and the created JavaDocs

2008-07-18 Thread thomas2004

great, many thanks!



Stefan Seidel wrote:
 
 erm, maybe you should look here: http://java.sun.com/j2se/javadoc/
 
 Stefan
 
 thomas2004 wrote:
 Hi Marco,
 
 You are right. But where can I find information about the order of such
 parameter settings? I use Eclipse. After I type the @ and Ctrl-space, I
 get
 a context menu with a list of paramaters such as @reture, @see etc. I
 wonder
 there  should be something like @comments.
 
 Regards
 
 Thomas
 
 
 
 
 Marco Huber wrote:
 Hi Thomas,

 I think you don't use the javadoc correctly.

 You comment must be followed by the @param tags:

 /**
   * My comments: This function sets ...
   *
   * @param i Percentage
   */

 See also http://java.sun.com/j2se/javadoc/writingdoccomments/

 Regards
 Marco

 thomas2004 wrote:
 A class looks as follow:

 /**
  * 
  * @author Thomas
  * 
  */
 public class PriceIncrease {
/** Logger for this class and subclasses */
protected final Log logger = LogFactory.getLog(getClass());

private int percentage;

/**
 * 
 * @param i Percentage
  * My comments: This function sets ...
 */
public void setPercentage(int i) {
percentage = i;
logger.info(Percentage set to  + i);
}
 ...
 }

 After I used maven site, the JavaDocs are generated. But as I open this
 class in javadocs, I see the followings:

 setPercentage
 public void setPercentage(int i)Parameters:
 i - Percentage

 I can't see the text of MyComments, why?



 -
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/A-question-about-maven-site-and-the-created-JavaDocs-tp18525606p18530549.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



A question about configuring denpendency/ in project.xml by using maven1

2008-07-18 Thread thomas2004

I use maven1. The dependency code in my project.xml looks as follow:

...
...
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
typejar/type
/dependency
...
...

And the repository structure looks as follow:
../repository
  /commons-logging
 /jars/commons-logging-1.0.4.jar

But now I have another repository structur like:
../repository
  /commons-logging
  /commons-logging
   /1.0.4/commons-logging-1.0.4.jar

It seems this is a maven2 repository structure. How can I use this
repository with maven1? Someone told me I have to rename this repository
structure like that in maven1. This would will quite boring and a huge work. 


-- 
View this message in context: 
http://www.nabble.com/A-question-about-configuring-%3Cdenpendency-%3E-in-%22project.xml%22-by-using-maven1-tp18531130p18531130.html
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 set/configure the maven.repo.local?

2008-07-17 Thread thomas2004

Hi all,

Sofar I know, If I run maven command, maven will first look up the local
repository and then the remote repository. I know also, the default local
repository is ${user.home}/.maven. How can I change this to another
directory, assumed to c:\projects\mvexe ?

Besides, my project called MyProject is locates under c:\projects\,
i.g.:
c:
  \projects
\mvexe
\MyProject

Regards

Thomas
-- 
View this message in context: 
http://www.nabble.com/How-to-set-configure-the-maven.repo.local--tp18510850p18510850.html
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: How to set/configure the maven.repo.local?

2008-07-17 Thread thomas2004

That's right! Many thanks!



Jörg Schaible wrote:
 
 HI Thomas,
 
 Add a build.properties file to your user.home containing th line:
 
 maven.repo.local=wherever you want
 
 - Jörg
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-configure-the-maven.repo.local--tp18510850p18512269.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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