Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
SOWI Administratoren
chocolatey-packages
Commits
ba0666b3
Commit
ba0666b3
authored
May 18, 2013
by
John Allers
Browse files
Updated the Maven package to 3.0.5. Added an uninstall script.
parent
fe2e1123
Changes
4
Hide whitespace changes
Inline
Side-by-side
Maven/Maven.nuspec
View file @
ba0666b3
...
...
@@ -3,7 +3,7 @@
<
metadata
>
<
id
>
maven
</
id
>
<
title
>
Maven
</
title
>
<
version
>
3.0.
4
</
version
>
<
version
>
3.0.
5
</
version
>
<
authors
>
The
Apache
Maven
team
</
authors
>
<
owners
>
Elliando
Dias
</
owners
>
<
summary
>
Apache
Maven
is
a
software
project
management
and
comprehension
tool
.
Based
on
the
concept
of
a
project
object
...
...
@@ -11,7 +11,7 @@
<description>Apache Maven is a software project management and comprehension tool</description>
<projectUrl>http://maven.apache.org/</projectUrl>
<tags>maven java development</tags>
<copyright> 2002-2012
The Apache Software Foundation</copyright>
<copyright> 2002-2013
The Apache Software Foundation</copyright>
<licenseUrl>http://maven.apache.org/license.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://upload.wikimedia.org/wikipedia/commons/f/f5/Maven_logo.gif</iconUrl>
...
...
Maven/maven.3.0.5.nupkg
0 → 100644
View file @
ba0666b3
File added
Maven/tools/chocolateyInstall.ps1
View file @
ba0666b3
...
...
@@ -7,14 +7,14 @@ function CreateFolder ([string]$Path) {
$binRoot
=
join-path
$
env
:
systemdrive
'bin'
### Using an environment variable to
to
define the bin root until we implement YAML configuration ###
### Using an environment variable to define the bin root until we implement YAML configuration ###
if
(
$
env
:
chocolatey_bin_root
-ne
$null
){
$binRoot
=
join-path
$
env
:
systemdrive
$
env
:
chocolatey_bin_root
}
CreateFolder
(
$binRoot
)
$version
=
'3.0.
4
'
$version
=
'3.0.
5
'
$name
=
"apache-maven-
$version
"
$m2_home
=
Join-Path
$binRoot
$name
$m2_bin
=
Join-Path
$m2_home
'bin'
...
...
@@ -24,6 +24,7 @@ $m2_repo = Join-Path $env:USERPROFILE '.m2'
#$url = "http://ftp.unicamp.br/pub/apache/maven/binaries/$name-bin.zip"
$url
=
"http://www.bizdirusa.com/mirrors/apache/maven/maven-3/
$version
/binaries/
$name
-bin.zip"
[
Environment
]::
SetEnvironmentVariable
(
'M2_HOME'
,
$m2_home
,
"User"
)
[
Environment
]::
SetEnvironmentVariable
(
'MAVEN_OPTS'
,
'-Xms256m'
,
"User"
)
[
Environment
]::
SetEnvironmentVariable
(
'M2'
,
$m2_bin
,
"User"
)
...
...
Maven/tools/chocolateyUninstall.ps1
0 → 100644
View file @
ba0666b3
$binRoot
=
join-path
$
env
:
systemdrive
'bin'
### Using an environment variable to to define the bin root until we implement YAML configuration ###
if
(
$
env
:
chocolatey_bin_root
-ne
$null
){
$binRoot
=
join-path
$
env
:
systemdrive
$
env
:
chocolatey_bin_root
}
$version
=
'3.0.5'
$name
=
"apache-maven-
$version
"
$m2_home
=
Join-Path
$binRoot
$name
$m2_bin
=
Join-Path
$m2_home
'bin'
$m2_repo
=
Join-Path
$
env
:
USERPROFILE
'.m2'
[
Environment
]::
SetEnvironmentVariable
(
'M2_HOME'
,
$null
,
"User"
)
[
Environment
]::
SetEnvironmentVariable
(
'MAVEN_OPTS'
,
$null
,
"User"
)
[
Environment
]::
SetEnvironmentVariable
(
'M2'
,
$null
,
"User"
)
[
Environment
]::
SetEnvironmentVariable
(
'M2_REPO'
,
$null
,
"User"
)
"Please manually remove Maven (
$m2_home
) from the PATH environment variable."
# Remove Maven from the path environment variable
#if ($null -ne $env:path)
#{
# $p = $env:path.Split(";") |? {$_.toLower() -ne $m2_bin}
# $newPath = [String]::Join(";")
# [Environment]::SetEnvironmentVariable('PATH', $newPath, "User")
#}
Remove-Item
$m2_home
-Recurse
-Force
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment