A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Maven....annoying....

View: New views
9 Messages — Rating Filter:   Alert me  

Maven....annoying....

by insKy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exi
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: Thu May 31 01:37:04 CST 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

what`s wrong? Boss? I am your reader from Chinese. :D

Re: Maven....annoying....

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you behind a firewall or proxy server?  If so, you may need to configure Maven to be aware of it.

http://maven.apache.org/guides/mini/guide-proxies.html

Matt

On 5/30/07, insKy <microinsky@...> wrote:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin ' org.apache.maven.plugins:maven-resources-plugin' does not
exi
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: Thu May 31 01:37:04 CST 2007
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------

what`s wrong? Boss? I am your reader from Chinese. :D
--
View this message in context: http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10878954
Sent from the Equinox Users mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

Re: Maven....annoying....

by insKy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

maven -version works well,so i think there are no problem with maven`s configurations . I am sure i have chosed my firewall yet. Proxy server?what does it mean?Local Proxy?
ps: Tks Boss!
mraible wrote:
Are you behind a firewall or proxy server?  If so, you may need to configure
Maven to be aware of it.

http://maven.apache.org/guides/mini/guide-proxies.html

Matt

On 5/30/07, insKy <microinsky@hotmail.com> wrote:
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
> not
> exi
> 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: Thu May 31 01:37:04 CST 2007
> [INFO] Final Memory: 1M/4M
> [INFO]
> ------------------------------------------------------------------------
>
> what`s wrong? Boss? I am your reader from Chinese. :D
> --
> View this message in context:
> http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10878954
> Sent from the Equinox Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@equinox.dev.java.net
> For additional commands, e-mail: users-help@equinox.dev.java.net
>
>


--
http://raibledesigns.com

Re: Maven....annoying....

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has Maven downloaded any dependencies. If so, it's probably not a connectivity issue. Does it fix things if you run "mvn -U"? This command makes Maven look for plugins online instead of in your local repository. However, the error you're seeing below is often caused by Maven's inability to connect to the internet (because you're behind a proxy server or something similar).

Matt

On 5/30/07, insKy <microinsky@...> wrote:

maven -version works well,so i think there are no problem with maven`s
configurations . I am sure i have chosed my firewall yet. Proxy server?what
does it mean?Local Proxy?
ps: Tks Boss!

mraible wrote:

>
> Are you behind a firewall or proxy server?  If so, you may need to
> configure
> Maven to be aware of it.
>
> http://maven.apache.org/guides/mini/guide-proxies.html
>
> Matt
>
> On 5/30/07, insKy <microinsky@...> wrote:
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does
>> not
>> exi
>> 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: Thu May 31 01:37:04 CST 2007
>> [INFO] Final Memory: 1M/4M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> what`s wrong? Boss? I am your reader from Chinese. :D
>> --
>> View this message in context:
>> http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10878954
>> Sent from the Equinox Users mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>
>
> --
> http://raibledesigns.com
>
>

--
View this message in context: http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10879191
Sent from the Equinox Users mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

Re: Maven....annoying....

by insKy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mvn -U, the following results are:
E:\Documents and Settings\MicroinsKy\桌面\equinox-all-1.7\equinox-spring-ajax-hi
bernate-1.7.1>mvn -U
[INFO] Scanning for projects...
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Equinox
[INFO]    task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for up
dates from central
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for upd
ates from central
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for upd
ates from central
[INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates
from central
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for upda
tes from central
[INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for updates from
central
[INFO] artifact org.codehaus.cargo:cargo-maven2-plugin: checking for updates fro
m central
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: E:\Documents and Settings\MicroinsKy\桌面\equi
nox-all-1.7\equinox-spring-ajax-hibernate-1.7.1\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to create te
st class 'org.appfuse.service.UserManagerTest'; nested exception is java.lang.Cl
assNotFoundException: org.appfuse.service.UserManagerTest; nested exception is o
rg.apache.maven.surefire.testset.TestSetFailedException: Unable to create test c
lass 'org.appfuse.service.UserManagerTest'; nested exception is java.lang.ClassN
otFoundException: org.appfuse.service.UserManagerTest
org.apache.maven.surefire.testset.TestSetFailedException: Unable to create test
class 'org.appfuse.service.UserManagerTest'; nested exception is java.lang.Class
NotFoundException: org.appfuse.service.UserManagerTest
java.lang.ClassNotFoundException: org.appfuse.service.UserManagerTest
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat
edClassLoader.java:103)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
Sets(AbstractDirectoryTestSuite.java:87)
        at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:150)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:589)
        at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:290)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:818)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 31 02:22:53 CST 2007
[INFO] Final Memory: 7M/15M
[INFO] ------------------------------------------------------------------------

==============================
....God...

Re: Maven....annoying....

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can you try installing your application in a directory that doesn't have spaces? For example: e:\source\equinox-all.

It also may be a problem with trying to run things from your e: drive - I'm not sure.

Matt

On 5/30/07, insKy <microinsky@...> wrote:

mvn -U, the following results are:
E:\Documents and
Settings\MicroinsKy\桌面\equinox-all-1.7\equinox-spring-ajax-hi
bernate-1.7.1>mvn -U
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Equinox
[INFO]    task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking
for up
dates from central
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for
upd
ates from central
[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for
upd
ates from central
[INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for
updates
from central
[INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for
upda
tes from central
[INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for updates
from
central
[INFO] artifact org.codehaus.cargo:cargo-maven2-plugin: checking for updates
fro
m central
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: E:\Documents and
Settings\MicroinsKy\桌面\equi
nox-all-1.7\equinox-spring-ajax-hibernate-1.7.1\target\surefire-reports
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
create te
st class 'org.appfuse.service.UserManagerTest'; nested exception is
java.lang.Cl
assNotFoundException: org.appfuse.service.UserManagerTest; nested exception
is o
rg.apache.maven.surefire.testset.TestSetFailedException: Unable to create
test c
lass 'org.appfuse.service.UserManagerTest'; nested exception is
java.lang.ClassN
otFoundException: org.appfuse.service.UserManagerTest
org.apache.maven.surefire.testset.TestSetFailedException: Unable to create
test
class 'org.appfuse.service.UserManagerTest'; nested exception is
java.lang.Class
NotFoundException: org.appfuse.service.UserManagerTest
java.lang.ClassNotFoundException: org.appfuse.service.UserManagerTest
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at
org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(Isolat
edClassLoader.java:103)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTest
Sets(AbstractDirectoryTestSuite.java:87)
        at
org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire
.java:150)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:111)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:589)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:290)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:818)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 31 02:22:53 CST 2007
[INFO] Final Memory: 7M/15M
[INFO]
------------------------------------------------------------------------

==============================
....God...

--
View this message in context: http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10879768
Sent from the Equinox Users mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

Re: Maven....annoying....

by insKy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.maven.surefire.booter.IsolatedClaWARN - JDBCExceptionRepor
ter.logExceptions(77) | SQL Error: 0, SQLState: null
ERROR - JDBCExceptionReporter.logExceptions(78) | Cannot load JDBC driver class
'com.mysql.jdbc.Driver'
WARN - JDBCExceptionReporter.logExceptions(77) | SQL Error: 0, SQLState: null
ERROR - JDBCExceptionReporter.logExceptions(78) | Cannot load JDBC driver class
'com.mysql.jdbc.Driver'
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.344 sec <<< FA
ILURE!
Running org.appfuse.service.impl.UserManagerImplTest
DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user...
DEBUG - UserManagerImplTest.testAddAndRemoveUser(62) | Expected exception: Objec
t of class [org.appfuse.model.User] with identifier [1]: not found
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.appfuse.web.UserControllerTest
DEBUG - UserController.handleRequest(25) | entering 'handleRequest' method...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests in error:
  testGetUsers(org.appfuse.service.UserManagerTest)
  testGetUsers(org.appfuse.dao.UserDaoTest)
  testSaveUser(org.appfuse.dao.UserDaoTest)
  testAddAndRemoveUser(org.appfuse.dao.UserDaoTest)

Tests run: 9, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu May 31 02:54:28 CST 2007
[INFO] Final Memory: 7M/15M
[INFO] ------------------------------------------------------------------------
========================
i am using Hibernate and i havechanged the "hibernate.dialect" property in
   src/main/webapp/WEB-INF/applicationContext-hibernate.xml.
when i wanna modify pom.xml to replace the PostgreSQL driver to MySQL driver.I found there are no jar folder in my Maven repository.So it shows"Cannot load JDBC driver class 'com.mysql.jdbc.Driver'" ,what should i do?
 sorry to waste your golden time to answer my question.tks a lot!
insKy/China

Re: Maven....annoying....

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You should try using the 1.8 Beta version of AppFuse Light (I renamed the project recently from Equinox to AppFuse Light). This version uses MySQL by default instead of PostgreSQL.

https://appfuse-light.dev.java.net/servlets/NewsItemView?newsItemID=4916

Matt

On 5/30/07, insKy <microinsky@...> wrote:

Cannot load JDBC driver class 'com.mysql.jdbc.Driver '
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.maven.surefire.booter.IsolatedClaWARN -
JDBCExceptionRepor
ter.logExceptions(77) | SQL Error: 0, SQLState: null
ERROR - JDBCExceptionReporter.logExceptions(78) | Cannot load JDBC driver
class
'com.mysql.jdbc.Driver'
WARN - JDBCExceptionReporter.logExceptions (77) | SQL Error: 0, SQLState:
null
ERROR - JDBCExceptionReporter.logExceptions(78) | Cannot load JDBC driver
class
'com.mysql.jdbc.Driver'
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.344 sec
<<< FA
ILURE!
Running org.appfuse.service.impl.UserManagerImplTest
DEBUG - UserManagerImplTest.testAddAndRemoveUser(38) | removing user...
DEBUG - UserManagerImplTest.testAddAndRemoveUser (62) | Expected exception:
Objec
t of class [org.appfuse.model.User] with identifier [1]: not found
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running org.appfuse.web.UserControllerTest
DEBUG - UserController.handleRequest(25) | entering 'handleRequest'
method...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests in error:
  testGetUsers( org.appfuse.service.UserManagerTest)
  testGetUsers(org.appfuse.dao.UserDaoTest)
  testSaveUser(org.appfuse.dao.UserDaoTest)
  testAddAndRemoveUser(org.appfuse.dao.UserDaoTest)

Tests run: 9, Failures: 0, Errors: 4, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Thu May 31 02:54:28 CST 2007
[INFO] Final Memory: 7M/15M
[INFO]
------------------------------------------------------------------------
========================
i am using Hibernate and i havechanged the "hibernate.dialect" property in
   src/main/webapp/WEB-INF/applicationContext-hibernate.xml.
when i wanna modify pom.xml to replace the PostgreSQL driver to MySQL
driver.I found there are no jar folder in my Maven repository.So it
shows"Cannot load JDBC driver class 'com.mysql.jdbc.Driver'" ,what should i
do?
sorry to waste your golden time to answer my question.tks a lot!
insKy/China
--
View this message in context: http://www.nabble.com/Maven....annoying....-tf3841882s2369.html#a10880480
Sent from the Equinox Users mailing list archive at Nabble.com.

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




--
http://raibledesigns.com

Re: Maven....annoying....

by insKy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Finally,i have solved the problem by modify the file pom.xml as follows:
============
Original :
<dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>8.1-404.jdbc3</version>
    </dependency>
-------------
Now:
<dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>3.1.13</version>
    </dependency>

================
lucky,it works.
LightInTheBox - Buy quality products at wholesale price!