Re: How to install MAVEN on Windows 7

2011-10-14 Thread Alexandre Adao
Try this on windows 7

1.Let's assume you unzip the apache-maven-3.0.3-bin.zip to
c:\apache-maven-3.0.3 directory

2. Click on Control Panel
3. click on System and Security
4. click on System
on the left  you should have Advanced systems settings.

5. click on Advanced systems settings.

6. click on Environment Variables.

Follow this instructions: http://maven.apache.org/download.html
on the installation instructions section. It says windows 2000/XP but
is the same for windows7

Make sure you add your maven installation path on the  Environment
Variable PATH VALUE.
example:
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\apache-maven-3.0.3;C:\apache-maven-3.0.3\bin;C:\Program
Files\Java\jre7\bin;c:\openssl\bin

Take care and good luck!

--Alex Adao

On Thu, Oct 13, 2011 at 10:23 PM, Wayne Fay  wrote:
>> What environment variables do I modify for Windows 7?  The  system does
> not recognize the "mvn -version" command.
>
> What directions did you follow?
> What commands did you execute?
>
> I am aware of nothing special about installing on Win7. I think you simply
> skipped/missed a step or two in the documentation.
>
> Wayne
>

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



org.apache.maven.plugins:maven-compiler-plugin is missing

2011-08-10 Thread Alexandre Adao
I am new on MAVEN, I am trying to configure the CAS to auth against
LDAP,  and I am having the following problems,
please help

--Alex

 Directory of C:\cas-server-3.4.2.1\cas-server-support-ldap

08/10/2011  08:44 AM  .
08/10/2011  08:44 AM  ..
08/10/2011  08:44 AM 1,784 pom.xml
08/10/2011  08:44 AM  src
  1 File(s)  1,784 bytes
  3 Dir(s)  130,738,053,120 bytes free

C:\cas-server-3.4.2.1\cas-server-support-ldap>mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective
model for org.jasig.cas:cas-se
rver-support-ldap:jar:3.4.2.1
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missi
ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml,
line 107, column 12
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-surefire-plugin is missi
ng. @ line 39, column 15
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-enforcer-plugin is missi
ng. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml,
line 38, column 12
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-jar-plugin is missing. @
 org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml, line
115, column 12
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-source-plugin is missing
. @ org.jasig:jasig-parent:7,
C:\Users\Administrator\.m2\repository\org\jasig\jasig-parent\7\jasig-p
arent-7.pom, line 78, column 21
[WARNING] The expression ${pom.artifactId} is deprecated. Please use
${project.artifactId} instead.
[WARNING] 'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-checkstyle-plugin is
 missing. @ org.jasig.cas:cas-server:3.4.2.1,
C:\cas-server-3.4.2.1\pom.xml, line 577, column 12
[WARNING] 'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-jxr-plugin is missin
g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml,
line 591, column 12
[WARNING] 'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-pmd-plugin is missin
g. @ org.jasig.cas:cas-server:3.4.2.1, C:\cas-server-3.4.2.1\pom.xml,
line 595, column 12
[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 pro
jects.
[WARNING]
[INFO]
[INFO] 
[INFO] Building JA-SIG CAS LDAP Support 3.4.2.1
[INFO] 
Downloading: 
http://repository.jboss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 2.031s
[INFO] Finished at: Wed Aug 10 12:00:53 EDT 2011
[INFO] Final Memory: 7M/109M
[INFO] 
[ERROR] Failed to execute goal on project cas-server-support-ldap:
Could not resolve dependencies fo
r project org.jasig.cas:cas-server-support-ldap:jar:3.4.2.1: Failed to
collect dependencies for [org
.jasig.cas:cas-server-core:jar:3.4.2.1 (compile),
org.springframework.webflow:spring-webflow:jar:2.0
.8.RELEASE (compile),
org.springframework.ldap:spring-ldap-core:jar:1.3.0.RELEASE (compile),
org.spr
ingframework.ldap:spring-ldap-core-tiger:jar:1.3.0.RELEASE (compile),
junit:junit:jar:4.7 (test), or
g.springframework:spring-test:jar:3.0.1.RELEASE (test),
javax.servlet:servlet-api:jar:2.5 (provided)
, org.aspectj:aspectjrt:jar:1.6.7 (compile),
org.aspectj:aspectjweaver:jar:1.6.7 (compile), javax.va
lidation:validation-api:jar:1.0.0.GA (compile),
org.slf4j:slf4j-api:jar:1.5.8 (compile), org.slf4j:s
lf4j-log4j12:jar:1.5.8 (runtime), org.slf4j:jcl-over-slf4j:jar:1.5.8
(compile)]: Failed to read arti
fact descriptor for org.opensaml:opensaml:jar:1.1b: Could not transfer
artifact org.opensaml:opensam
l:pom:1.1b from/to jboss (http://repository.jboss.com/maven2): Access
denied to: http://repository.j
boss.com/maven2/org/opensaml/opensaml/1.1b/opensaml-1.1b.pom -> [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 arti
cles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
C:\cas-server-3.4.2.1\cas-server-support-ldap>
C:\cas-server-3.4.2.1\cas-server-support-ldap>
C:\cas-server-3.4.2.1\cas-server-support-ldap>mvan -version
'mvan' is not recognized as an internal or external command,
operab