Enclojure 1.4 Build and Clean Errors

18 views
Skip to first unread message

Harrison Maseko

unread,
Dec 5, 2010, 4:10:31 PM12/5/10
to enclojure
NetBeans: Executing '/home/harrison/apache-maven-3.0.1/bin/mvn -
Dnetbeans.execution=true clean install'
NetBeans: JAVA_HOME=/home/harrison/jdk1.6.0_22
Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective
model for org.enclojure:sample:jar:0.0.1
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 50,
column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.
[WARNING]

------------------------------------------------------------------------
Building MyClojureProject 0.0.1
------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar

When I tried to Build and Clean, I got the following errors. Anything
I need to do?
Thanks,
-h.

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 5.059s
Finished at: Sun Dec 05 23:06:46 CAT 2010
Final Memory: 1M/14M
------------------------------------------------------------------------
[ERROR]Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one
of its dependencies could not be resolved: Could not transfer artifact
org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 from/to central
(http://repo1.maven.org/maven2): Error transferring file: Connection
refused -> [Help 1]
[ERROR]
[ERROR]To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR]Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR]For more information about the errors and possible solutions,
please read the following articles:
[ERROR][Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

PPerm

unread,
Dec 8, 2010, 1:48:44 AM12/8/10
to enclojure
You can resolve the warnings by adding a version element to the maven-
compiler-plugin:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
...

The errors are likely caused by maven central being down or blocked
via a firewall etc.

On Dec 5, 1:10 pm, Harrison Maseko <lis...@gmail.com> wrote:
> NetBeans: Executing '/home/harrison/apache-maven-3.0.1/bin/mvn -
> Dnetbeans.execution=true clean install'
> NetBeans:      JAVA_HOME=/home/harrison/jdk1.6.0_22
> Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective
> model for org.enclojure:sample:jar:0.0.1
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 50,
> column 15
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer
> support building such malformed projects.
> [WARNING]
>
> ------------------------------------------------------------------------
> Building MyClojureProject 0.0.1
> ------------------------------------------------------------------------
> Downloading:http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-pl...
>
> When I tried to Build and Clean, I got the following errors. Anything
> I need to do?
> Thanks,
> -h.
>
> ------------------------------------------------------------------------
> BUILD FAILURE
> ------------------------------------------------------------------------
> Total time: 5.059s
> Finished at: Sun Dec 05 23:06:46 CAT 2010
> Final Memory: 1M/14M
> ------------------------------------------------------------------------
> [ERROR]Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one
> of its dependencies could not be resolved: Could not transfer artifact
> org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 from/to central
> (http://repo1.maven.org/maven2):Error transferring file: Connection
> refused -> [Help 1]
> [ERROR]
> [ERROR]To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR]Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR]For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR][Help 1]http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionExce...

Harrison Maseko

unread,
Dec 9, 2010, 4:09:28 PM12/9/10
to enclojure
Where is the maven-compiler-plugin installed and how do I edit it?
Thanks for your kind help.
-h.
> > (http://repo1.maven.org/maven2):Errortransferring file: Connection

PPerm

unread,
Dec 10, 2010, 5:08:09 AM12/10/10
to enclojure
You'd have to edit the pom.xml which should be in the project root.
> > > (http://repo1.maven.org/maven2):Errortransferringfile: Connection
Reply all
Reply to author
Forward
0 new messages