to JaspeServer Team

Dear JasperForge Team..

i did post on this forum 3 days ago (about how to send reports via email),but the problem still.
So , i did get the Source Code from SVN Repository, and want to re-build it, so that i want to use an IDE( like Eclipse) to import it, but i could not to import the source code.and when using Maven i got an exception(see the attached file to see it).
1)-the building using maven is painfully.
2)-how can i import the source code using an IDE..

Regards
Post edited by: alaa56mm, at: 2007/08/19 05:52
alaa56mm's picture
Joined: Apr 7 2007 - 10:59pm
Last seen: 6 months 3 weeks ago

7 Answers:

Regarding the Maven exception, try Maven version: 2.0.4 if that is not the one you are using.

Jenngang
JasperSoft
jshih's picture
994
Joined: Jul 7 2006 - 9:19am
Last seen: 17 years 2 months ago
iam using maven-2.0.7 , is it a problem by using latest version?
alaa56mm's picture
Joined: Apr 7 2007 - 10:59pm
Last seen: 6 months 3 weeks ago
After trying Maven version: 2.0.7, it doesn't seem to be the problem. What exception did you get when building with Maven version: 2.0.7? I don't find the attachment you mentioned.

Jenngang
JasperSoft
jshih's picture
994
Joined: Jul 7 2006 - 9:19am
Last seen: 17 years 2 months ago
ok, you can see this exception instead seeing it from attached file:

Code:
+ Error stacktraces are turned on.<br />
[INFO]<br />
NOTE: Maven is executing in offline mode. Any artifacts not already in your loca<br />
l<br />
repository will be inaccessible.<br />
<br />
[INFO] Scanning for projects...<br />
[INFO] Reactor build order:<br />
[INFO]   Jasper Server<br />
[INFO]   Jasper Server API<br />
[INFO]   Jasper Server API - Common<br />
[INFO]   Jasper Server API - Metadata Interfaces<br />
[INFO]   Jasper Server API - Engine<br />
[INFO]   Jasper Server API Implementations - Common<br />
[INFO]   Jasper Server API Implementations - All<br />
[INFO]   Jasper Server API Implementations - Metadata<br />
[INFO]   Jasper Server API Implementations - Engine<br />
[INFO]   Jasper Server Hibernate Mappings<br />
[INFO]   JasperServer Export Import Tool<br />
[INFO]   JasperServer Jar for Webapp<br />
[INFO]   JasperServer Common Webapp<br />
[INFO]   JasperServer Web application<br />
[INFO]   Web Services iReport Plugin Client Code<br />
[INFO] -------------------------------------------------------------------------<br />
---<br />
[INFO] Building Jasper Server<br />
[INFO]    task-segment: [clean, install]<br />
[INFO] -------------------------------------------------------------------------<br />
---<br />
[INFO] ------------------------------------------------------------------------<br />
[ERROR] BUILD ERROR<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist o<br />
r no valid version could be found<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] Trace<br />
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m<br />
aven.plugins:maven-clean-plugin' does not exist or no valid version could be fou<br />
nd<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa<br />
ultLifecycleExecutor.java:1286)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor<br />
(DefaultLifecycleExecutor.java:1522)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP<br />
ackaging(DefaultLifecycleExecutor.java:1016)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl<br />
eMappings(DefaultLifecycleExecutor.java:980)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau<br />
ltLifecycleExecutor.java:458)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan<br />
dleFailures(DefaultLifecycleExecutor.java:311)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen<br />
ts(DefaultLifecycleExecutor.java:278)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi<br />
fecycleExecutor.java:143)<br />
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)<br />
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)<br />
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.<br />
java:39)<br />
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces<br />
sorImpl.java:25)<br />
        at java.lang.reflect.Method.invoke(Method.java:585)<br />
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br />
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br />
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br />
<br />
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br />
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The p<br />
lugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid v<br />
ersion could be found<br />
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl<br />
uginVersion(DefaultPluginVersionManager.java:228)<br />
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl<br />
uginVersion(DefaultPluginVersionManager.java:90)<br />
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug<br />
inManager.java:166)<br />
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa<br />
ultLifecycleExecutor.java:1257)<br />
        ... 18 more<br />
[INFO] ------------------------------------------------------------------------<br />
[INFO] Total time: 1 second<br />
[INFO] Finished at: Sun Aug 19 09:13:19 GMT+02:00 2007<br />
[INFO] Final Memory: 1M/3M<br />
[INFO] ------------------------------------------------------------------------<br />
<br />
</td></tr></tbody></table><br />
<br />
Post edited by: alaa56mm, at: 2007/08/19 06:07<br>Post edited by: alaa56mm, at: 2007/08/19 06:10
alaa56mm's picture
Joined: Apr 7 2007 - 10:59pm
Last seen: 6 months 3 weeks ago
From the build outputs, looks like you are building in the ‘offline’ mode which prevents you from getting needed files from online sources. So, either change <offline>true</offline> to false in your settings.xml, and/or don’t use the offline (–o) option at the command line, and try the build again.

Also, if you are building this version of JasperServer for the first time, it’s a good idea to remove the existing directories/files under Maven's .m2\repository directory in case the new version has new dependencies that conflict with the existing ones.

Jenngang
JasperSoft
jshih's picture
994
Joined: Jul 7 2006 - 9:19am
Last seen: 17 years 2 months ago
Dear jshih..
how can i build without .m2/settings.xml,i can not delete it ?right?
alaa56mm's picture
Joined: Apr 7 2007 - 10:59pm
Last seen: 6 months 3 weeks ago
Yes, you still need settings.xml, but in case you have the element <offline>true</offline> defined in the file, remove the element or change the value to false.

Jenngang
JasperSoft
jshih's picture
994
Joined: Jul 7 2006 - 9:19am
Last seen: 17 years 2 months ago
Feedback