Re: Maven install phase - Access is denied

2014-01-09 Thread andre999
Thanks for the input. Apologies for the goose chase. I have found that there
is an element true property in the
maven-install4j-plugin, which I did not include in
this thread.

With the  set to false, the maven install has stopped reading any
resources from the "install4j/certImport" folder, and copying resource into
repository. 

Thanks again.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5781054.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Maven install phase - Access is denied

2014-01-08 Thread Barrie Treloar
On 9 January 2014 06:56, andre999  wrote:
> 
[del]
> 
> org.apache.maven.plugins
> maven-install-plugin
> 2.5.1
> 
> certloader-custom-action.jar
> 
> certloader-custom-action-sources.jar

What do you expect this section to do?
http://maven.apache.org/plugins/maven-install-plugin/install-mojo.html
does not have a file property.
And file implies a single entry, specifying it a second time would
mean you overwrite the previous value.
Lists are normally plural. (something like
AB

If you want the sources to also be installed use the source plugin
http://maven.apache.org/plugins/maven-source-plugin/

You shouldn't need this section on install at all.

I can't see anything in that pom that would mean a directory is being
installed into your local m2 cache.

The assembly plugin can have these types of issues when you specify
"dir" as a distribution format on deploy.
But deploy is after install so this is not the problem.

The problem I have is that it is trying to install
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
to
P:\.m2\repository\net\healthlink\certloader\hlk-certloader\1.0.2-SNAPSHOT\lk-certloader-1.0.2-SNAPSHOT-certImport

Why is maven attaching \target\install4j\certImport as a build
artifact that it thinks it needs to install.

Try running mvn -X and redirect the output to a file.
Then search for target\install4j\certImport and see which plugin is
being configured with this value.
That might give you a hint as to where to look to turn that off.
I'd almost suspect the parent pom.
Using resources:copy-resource does not attach anything to be installed
and it is the only thing that is using target\install4j\certImport
from your supplied output.

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



Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
I suspect it has to do with your customization of the install goal:

>   
>   org.apache.maven.plugins
>   maven-install-plugin
>   2.5.1
>   
>   certloader-custom-action.jar
>   
> certloader-custom-action-sources.jar
>   
>   

It looks as though your customization is telling it to install something that 
would not be installed by default.

On Jan 8, 2014, at 4:33 PM, andre999  wrote:

> That's the problem. I do not know how to order maven install NOT to read the
> directory and not to create repository. Maven install reads the
> "install4j\certImport" folder and this is where it fails. How can I make
> maven not to read (skip) this "install4j\certImport" folder?
> 
> Thanks
> 
> 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5780969.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-
Author, Getting Started with Apache Maven 
<http://www.packtpub.com/getting-started-with-apache-maven/video>

Come read my webnovel, Take a Lemon <http://www.takealemon.com>, 
and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>!









Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
I'd rather say the question is why does it even tries to install it? There
must be some plugin that attaches it.
Le 8 janv. 2014 22:34, "andre999"  a écrit :

> That's the problem. I do not know how to order maven install NOT to read
> the
> directory and not to create repository. Maven install reads the
> "install4j\certImport" folder and this is where it fails. How can I make
> maven not to read (skip) this "install4j\certImport" folder?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5780969.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven install phase - Access is denied

2014-01-08 Thread andre999
That's the problem. I do not know how to order maven install NOT to read the
directory and not to create repository. Maven install reads the
"install4j\certImport" folder and this is where it fails. How can I make
maven not to read (skip) this "install4j\certImport" folder?

Thanks



--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5780969.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
Le 8 janv. 2014 20:39, "andre999"  a écrit :
>
> Caused by: java.io.FileNotFoundException:
>
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
> (Access is denied)
> at java.io.FileInputStream.open(Native Method)

Isn't the problem that you're trying to install a directory rather than a
file? I don't think that's possible, a folder is not an artifact, it has to
be archived somehow first.


Re: Maven install phase - Access is denied

2014-01-08 Thread andre999





org.apache.maven.plugins
maven-assembly-plugin
2.4


make-assembly
package

single



Loader-${project.version}


src/main/assembly/assembly.xml















--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5780962.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: Maven install phase - Access is denied

2014-01-08 Thread Wayne Fay
> [INFO] Error installing artifact:
> P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
> (Access is denied)

I hate to point out the obvious, but did you confirm that the user
executing Maven has write/create directory privileges in this
location? Assuming you are running from the Windows command line, can
you go there (as the same user) and "mkdir" etc?

Wayne

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



Re: Maven install phase - Access is denied

2014-01-08 Thread andre999
I have included the result with the actual filenames and folders in use.
Here are the result;

[DEBUG] -- end configuration --
[INFO] [install:install {execution: default-install}]
[INFO] Installing
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\certloader-custom-action.jar
to P:\.m2\repository\net\healthlink\certloader\hlk-certloader\1.0.2-S
APSHOT\hlk-certloader-1.0.2-SNAPSHOT.jar
[INFO] Installing
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\certloader-custom-action-sources.jar
to P:\.m2\repository\net\healthlink\certloader\hlk-certloader
1.0.2-SNAPSHOT\hlk-certloader-1.0.2-SNAPSHOT-sources.jar
[INFO] Installing
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
to
P:\.m2\repository\net\healthlink\certloader\hlk-certloader\1.0.2-SNAPSHOT\
lk-certloader-1.0.2-SNAPSHOT-certImport
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error installing artifact:
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
(Access is denied)

[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error installing
artifact:
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
(Access is d
nied)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error installing
artifact:
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
(Access i
 denied)
at
org.apache.maven.plugin.install.InstallMojo.installProject(InstallMojo.java:239)
at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:129)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by:
org.apache.maven.artifact.installer.ArtifactInstallationException: Error
installing artifact:
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\c
rtImport (Access is denied)
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:119)
at
org.apache.maven.plugin.install.InstallMojo.installProject(InstallMojo.java:230)
... 20 more
Caused by: java.io.FileNotFoundException:
P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at
hidden.org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:39)
at
hidden.org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1106)
at
hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:1013)
at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArtifactInstaller.java:98)
... 21 more
[INFO]




--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920p5780950.html
Sent from

Re: Maven install phase - Access is denied

2014-01-08 Thread Russell Gold
Hi Andrew, can you show us the result of doing this when you run the -X switch? 
It is likely to provide more information about what is going on; a copy of your 
pom.xml would also be very helpful.

Thanks,
Russ

On Jan 7, 2014, at 11:29 PM, andre999  wrote:

> Hi all,
> 
> I have a project which maven generates the following output in the target
> folder;
> \projects\mywork\trunk\target\.jar
> \projects\mywork\trunk\target\-sources.jar
> \projects\mywork\trunk\target\installer\folder
> 
> The above installer\folder is basically an empty folder which contains
> subfolders to be part of installer.
> 
> 
> I have a Build Error that displays "/Error installing artifact:
> \projects\mywork\trunk\target\installer\folder (Access is denied)/"
> when executing *mvn clean install*.
> 
> The maven copies the \projects\mywork\trunk\target\.jar,  
> \projects\mywork\trunk\target\-sources.jar into local
> repository with success. However the maven attempts to copy the 
> \projects\mywork\trunk\target\installer\folder into the local
> repository which is not I want to. This cause maven to throw the Build
> Error.
> 
> How do I prevent maven copying the empty folder into local/remote repository
> as an artifact?
> 
> Thanks,
> Andrew
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

-
Author, Getting Started with Apache Maven 
<http://www.packtpub.com/getting-started-with-apache-maven/video>

Come read my webnovel, Take a Lemon <http://www.takealemon.com>, 
and listen to the Misfile radio play <http://www.fuzzyfacetheater.com/misfile/>!









Maven install phase - Access is denied

2014-01-07 Thread andre999
Hi all,

I have a project which maven generates the following output in the target
folder;
\projects\mywork\trunk\target\.jar
\projects\mywork\trunk\target\-sources.jar
\projects\mywork\trunk\target\installer\folder

The above installer\folder is basically an empty folder which contains
subfolders to be part of installer.


I have a Build Error that displays "/Error installing artifact:
\projects\mywork\trunk\target\installer\folder (Access is denied)/"
when executing *mvn clean install*.
 
The maven copies the \projects\mywork\trunk\target\.jar,  
\projects\mywork\trunk\target\-sources.jar into local
repository with success. However the maven attempts to copy the 
\projects\mywork\trunk\target\installer\folder into the local
repository which is not I want to. This cause maven to throw the Build
Error.

How do I prevent maven copying the empty folder into local/remote repository
as an artifact?

Thanks,
Andrew





--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-install-phase-Access-is-denied-tp5780920.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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